From 4f38edca225653fe6bfd6e54b8ae9662c63e50ee Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 16 Feb 2021 16:18:09 -0800 Subject: [PATCH 001/401] ci: linkage monitor CI job to use build.sh (#358) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/96c62e92-13ae-4f3c-9727-c854ec8b7488/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/f327d3b657a63ae4a8efd7f011a15eacae36b59c --- .github/workflows/ci.yaml | 13 +++---------- synth.metadata | 4 ++-- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 98a472e1..def8b3a2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -55,17 +55,10 @@ jobs: java-version: 8 - run: java -version - name: Install artifacts to local Maven repository - run: | - source .kokoro/common.sh - retry_with_backoff 3 10 \ - mvn install -B -V \ - -Dmaven.test.skip -DskipTests=true \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -Dmaven.javadoc.skip=true \ - -Dgcloud.download.skip=true + run: .kokoro/build.sh shell: bash - - uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor + - name: Validate any conflicts with regard to com.google.cloud:libraries-bom (latest release) + uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor lint: runs-on: ubuntu-latest steps: diff --git a/synth.metadata b/synth.metadata index d5684ea1..c40b41ce 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "bc172567b4f6443b4ba69f8718e2523757adfdd7" + "sha": "a7aceadaeaf584d8bde081af967fc82addbac21a" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "2414b817065726eae0bc525346c7e874f969369d" + "sha": "f327d3b657a63ae4a8efd7f011a15eacae36b59c" } } ], From aac107eb2c61578d3690359582ca5d085cb13769 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 17 Feb 2021 08:58:07 -0800 Subject: [PATCH 002/401] chore: update gapic-generator-java to 0.0.20 (#357) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/96c62e92-13ae-4f3c-9727-c854ec8b7488/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 357800868 Source-Link: https://github.com/googleapis/googleapis/commit/e8bc4471a88ac5f60defe3ed436f517174e59ba0 --- .../tasks/v2/stub/GrpcCloudTasksStub.java | 18 +++ .../v2beta2/stub/GrpcCloudTasksStub.java | 22 +++ .../v2beta3/stub/GrpcCloudTasksStub.java | 18 +++ .../cloud/tasks/v2/MockCloudTasksImpl.java | 122 ++++++++++++-- .../tasks/v2beta2/MockCloudTasksImpl.java | 150 +++++++++++++++--- .../tasks/v2beta3/MockCloudTasksImpl.java | 122 ++++++++++++-- synth.metadata | 4 +- 7 files changed, 402 insertions(+), 54 deletions(-) diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java index cb7c55dc..057e17bf 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java @@ -536,75 +536,93 @@ public GrpcOperationsStub getOperationsStub() { return operationsStub; } + @Override public UnaryCallable listQueuesCallable() { return listQueuesCallable; } + @Override public UnaryCallable listQueuesPagedCallable() { return listQueuesPagedCallable; } + @Override public UnaryCallable getQueueCallable() { return getQueueCallable; } + @Override public UnaryCallable createQueueCallable() { return createQueueCallable; } + @Override public UnaryCallable updateQueueCallable() { return updateQueueCallable; } + @Override public UnaryCallable deleteQueueCallable() { return deleteQueueCallable; } + @Override public UnaryCallable purgeQueueCallable() { return purgeQueueCallable; } + @Override public UnaryCallable pauseQueueCallable() { return pauseQueueCallable; } + @Override public UnaryCallable resumeQueueCallable() { return resumeQueueCallable; } + @Override public UnaryCallable getIamPolicyCallable() { return getIamPolicyCallable; } + @Override public UnaryCallable setIamPolicyCallable() { return setIamPolicyCallable; } + @Override public UnaryCallable testIamPermissionsCallable() { return testIamPermissionsCallable; } + @Override public UnaryCallable listTasksCallable() { return listTasksCallable; } + @Override public UnaryCallable listTasksPagedCallable() { return listTasksPagedCallable; } + @Override public UnaryCallable getTaskCallable() { return getTaskCallable; } + @Override public UnaryCallable createTaskCallable() { return createTaskCallable; } + @Override public UnaryCallable deleteTaskCallable() { return deleteTaskCallable; } + @Override public UnaryCallable runTaskCallable() { return runTaskCallable; } diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java index 354a0aa4..47b06bdf 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java @@ -646,91 +646,113 @@ public GrpcOperationsStub getOperationsStub() { return operationsStub; } + @Override public UnaryCallable listQueuesCallable() { return listQueuesCallable; } + @Override public UnaryCallable listQueuesPagedCallable() { return listQueuesPagedCallable; } + @Override public UnaryCallable getQueueCallable() { return getQueueCallable; } + @Override public UnaryCallable createQueueCallable() { return createQueueCallable; } + @Override public UnaryCallable updateQueueCallable() { return updateQueueCallable; } + @Override public UnaryCallable deleteQueueCallable() { return deleteQueueCallable; } + @Override public UnaryCallable purgeQueueCallable() { return purgeQueueCallable; } + @Override public UnaryCallable pauseQueueCallable() { return pauseQueueCallable; } + @Override public UnaryCallable resumeQueueCallable() { return resumeQueueCallable; } + @Override public UnaryCallable getIamPolicyCallable() { return getIamPolicyCallable; } + @Override public UnaryCallable setIamPolicyCallable() { return setIamPolicyCallable; } + @Override public UnaryCallable testIamPermissionsCallable() { return testIamPermissionsCallable; } + @Override public UnaryCallable listTasksCallable() { return listTasksCallable; } + @Override public UnaryCallable listTasksPagedCallable() { return listTasksPagedCallable; } + @Override public UnaryCallable getTaskCallable() { return getTaskCallable; } + @Override public UnaryCallable createTaskCallable() { return createTaskCallable; } + @Override public UnaryCallable deleteTaskCallable() { return deleteTaskCallable; } + @Override public UnaryCallable leaseTasksCallable() { return leaseTasksCallable; } + @Override public UnaryCallable acknowledgeTaskCallable() { return acknowledgeTaskCallable; } + @Override public UnaryCallable renewLeaseCallable() { return renewLeaseCallable; } + @Override public UnaryCallable cancelLeaseCallable() { return cancelLeaseCallable; } + @Override public UnaryCallable runTaskCallable() { return runTaskCallable; } diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java index 2ec7a748..d4636099 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java @@ -538,75 +538,93 @@ public GrpcOperationsStub getOperationsStub() { return operationsStub; } + @Override public UnaryCallable listQueuesCallable() { return listQueuesCallable; } + @Override public UnaryCallable listQueuesPagedCallable() { return listQueuesPagedCallable; } + @Override public UnaryCallable getQueueCallable() { return getQueueCallable; } + @Override public UnaryCallable createQueueCallable() { return createQueueCallable; } + @Override public UnaryCallable updateQueueCallable() { return updateQueueCallable; } + @Override public UnaryCallable deleteQueueCallable() { return deleteQueueCallable; } + @Override public UnaryCallable purgeQueueCallable() { return purgeQueueCallable; } + @Override public UnaryCallable pauseQueueCallable() { return pauseQueueCallable; } + @Override public UnaryCallable resumeQueueCallable() { return resumeQueueCallable; } + @Override public UnaryCallable getIamPolicyCallable() { return getIamPolicyCallable; } + @Override public UnaryCallable setIamPolicyCallable() { return setIamPolicyCallable; } + @Override public UnaryCallable testIamPermissionsCallable() { return testIamPermissionsCallable; } + @Override public UnaryCallable listTasksCallable() { return listTasksCallable; } + @Override public UnaryCallable listTasksPagedCallable() { return listTasksPagedCallable; } + @Override public UnaryCallable getTaskCallable() { return getTaskCallable; } + @Override public UnaryCallable createTaskCallable() { return createTaskCallable; } + @Override public UnaryCallable deleteTaskCallable() { return deleteTaskCallable; } + @Override public UnaryCallable runTaskCallable() { return runTaskCallable; } diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java index 5c4207ab..cdb7d200 100644 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java +++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java @@ -75,7 +75,13 @@ public void listQueues( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListQueues, expected %s or %s", + response.getClass().getName(), + ListQueuesResponse.class.getName(), + Exception.class.getName()))); } } @@ -90,7 +96,13 @@ public void getQueue( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetQueue, expected %s or %s", + response.getClass().getName(), + com.google.cloud.tasks.v2.Queue.class.getName(), + Exception.class.getName()))); } } @@ -106,7 +118,13 @@ public void createQueue( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateQueue, expected %s or %s", + response.getClass().getName(), + com.google.cloud.tasks.v2.Queue.class.getName(), + Exception.class.getName()))); } } @@ -122,7 +140,13 @@ public void updateQueue( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateQueue, expected %s or %s", + response.getClass().getName(), + com.google.cloud.tasks.v2.Queue.class.getName(), + Exception.class.getName()))); } } @@ -136,7 +160,13 @@ public void deleteQueue(DeleteQueueRequest request, StreamObserver respon } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteQueue, expected %s or %s", + response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); } } @@ -151,7 +181,13 @@ public void purgeQueue( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method PurgeQueue, expected %s or %s", + response.getClass().getName(), + com.google.cloud.tasks.v2.Queue.class.getName(), + Exception.class.getName()))); } } @@ -166,7 +202,13 @@ public void pauseQueue( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method PauseQueue, expected %s or %s", + response.getClass().getName(), + com.google.cloud.tasks.v2.Queue.class.getName(), + Exception.class.getName()))); } } @@ -182,7 +224,13 @@ public void resumeQueue( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ResumeQueue, expected %s or %s", + response.getClass().getName(), + com.google.cloud.tasks.v2.Queue.class.getName(), + Exception.class.getName()))); } } @@ -196,7 +244,13 @@ public void getIamPolicy(GetIamPolicyRequest request, StreamObserver res } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", + response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); } } @@ -210,7 +264,13 @@ public void setIamPolicy(SetIamPolicyRequest request, StreamObserver res } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", + response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); } } @@ -226,7 +286,13 @@ public void testIamPermissions( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TestIamPermissions, expected %s or %s", + response.getClass().getName(), + TestIamPermissionsResponse.class.getName(), + Exception.class.getName()))); } } @@ -241,7 +307,13 @@ public void listTasks( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListTasks, expected %s or %s", + response.getClass().getName(), + ListTasksResponse.class.getName(), + Exception.class.getName()))); } } @@ -255,7 +327,11 @@ public void getTask(GetTaskRequest request, StreamObserver responseObserve } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetTask, expected %s or %s", + response.getClass().getName(), Task.class.getName(), Exception.class.getName()))); } } @@ -269,7 +345,11 @@ public void createTask(CreateTaskRequest request, StreamObserver responseO } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateTask, expected %s or %s", + response.getClass().getName(), Task.class.getName(), Exception.class.getName()))); } } @@ -283,7 +363,13 @@ public void deleteTask(DeleteTaskRequest request, StreamObserver response } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteTask, expected %s or %s", + response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); } } @@ -297,7 +383,11 @@ public void runTask(RunTaskRequest request, StreamObserver responseObserve } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RunTask, expected %s or %s", + response.getClass().getName(), Task.class.getName(), Exception.class.getName()))); } } } diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java index 4a4e7bce..f90008fc 100644 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java +++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java @@ -75,7 +75,13 @@ public void listQueues( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListQueues, expected %s or %s", + response.getClass().getName(), + ListQueuesResponse.class.getName(), + Exception.class.getName()))); } } @@ -91,7 +97,13 @@ public void getQueue( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetQueue, expected %s or %s", + response.getClass().getName(), + com.google.cloud.tasks.v2beta2.Queue.class.getName(), + Exception.class.getName()))); } } @@ -107,7 +119,13 @@ public void createQueue( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateQueue, expected %s or %s", + response.getClass().getName(), + com.google.cloud.tasks.v2beta2.Queue.class.getName(), + Exception.class.getName()))); } } @@ -123,7 +141,13 @@ public void updateQueue( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateQueue, expected %s or %s", + response.getClass().getName(), + com.google.cloud.tasks.v2beta2.Queue.class.getName(), + Exception.class.getName()))); } } @@ -137,7 +161,13 @@ public void deleteQueue(DeleteQueueRequest request, StreamObserver respon } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteQueue, expected %s or %s", + response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); } } @@ -153,7 +183,13 @@ public void purgeQueue( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method PurgeQueue, expected %s or %s", + response.getClass().getName(), + com.google.cloud.tasks.v2beta2.Queue.class.getName(), + Exception.class.getName()))); } } @@ -169,7 +205,13 @@ public void pauseQueue( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method PauseQueue, expected %s or %s", + response.getClass().getName(), + com.google.cloud.tasks.v2beta2.Queue.class.getName(), + Exception.class.getName()))); } } @@ -185,7 +227,13 @@ public void resumeQueue( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ResumeQueue, expected %s or %s", + response.getClass().getName(), + com.google.cloud.tasks.v2beta2.Queue.class.getName(), + Exception.class.getName()))); } } @@ -199,7 +247,13 @@ public void getIamPolicy(GetIamPolicyRequest request, StreamObserver res } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", + response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); } } @@ -213,7 +267,13 @@ public void setIamPolicy(SetIamPolicyRequest request, StreamObserver res } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", + response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); } } @@ -229,7 +289,13 @@ public void testIamPermissions( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TestIamPermissions, expected %s or %s", + response.getClass().getName(), + TestIamPermissionsResponse.class.getName(), + Exception.class.getName()))); } } @@ -244,7 +310,13 @@ public void listTasks( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListTasks, expected %s or %s", + response.getClass().getName(), + ListTasksResponse.class.getName(), + Exception.class.getName()))); } } @@ -258,7 +330,11 @@ public void getTask(GetTaskRequest request, StreamObserver responseObserve } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetTask, expected %s or %s", + response.getClass().getName(), Task.class.getName(), Exception.class.getName()))); } } @@ -272,7 +348,11 @@ public void createTask(CreateTaskRequest request, StreamObserver responseO } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateTask, expected %s or %s", + response.getClass().getName(), Task.class.getName(), Exception.class.getName()))); } } @@ -286,7 +366,13 @@ public void deleteTask(DeleteTaskRequest request, StreamObserver response } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteTask, expected %s or %s", + response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); } } @@ -301,7 +387,13 @@ public void leaseTasks( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method LeaseTasks, expected %s or %s", + response.getClass().getName(), + LeaseTasksResponse.class.getName(), + Exception.class.getName()))); } } @@ -316,7 +408,13 @@ public void acknowledgeTask( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method AcknowledgeTask, expected %s or %s", + response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); } } @@ -330,7 +428,11 @@ public void renewLease(RenewLeaseRequest request, StreamObserver responseO } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RenewLease, expected %s or %s", + response.getClass().getName(), Task.class.getName(), Exception.class.getName()))); } } @@ -344,7 +446,11 @@ public void cancelLease(CancelLeaseRequest request, StreamObserver respons } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CancelLease, expected %s or %s", + response.getClass().getName(), Task.class.getName(), Exception.class.getName()))); } } @@ -358,7 +464,11 @@ public void runTask(RunTaskRequest request, StreamObserver responseObserve } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RunTask, expected %s or %s", + response.getClass().getName(), Task.class.getName(), Exception.class.getName()))); } } } diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java index 7e8e25cc..0f1ba1e2 100644 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java +++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java @@ -75,7 +75,13 @@ public void listQueues( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListQueues, expected %s or %s", + response.getClass().getName(), + ListQueuesResponse.class.getName(), + Exception.class.getName()))); } } @@ -91,7 +97,13 @@ public void getQueue( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetQueue, expected %s or %s", + response.getClass().getName(), + com.google.cloud.tasks.v2beta3.Queue.class.getName(), + Exception.class.getName()))); } } @@ -107,7 +119,13 @@ public void createQueue( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateQueue, expected %s or %s", + response.getClass().getName(), + com.google.cloud.tasks.v2beta3.Queue.class.getName(), + Exception.class.getName()))); } } @@ -123,7 +141,13 @@ public void updateQueue( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateQueue, expected %s or %s", + response.getClass().getName(), + com.google.cloud.tasks.v2beta3.Queue.class.getName(), + Exception.class.getName()))); } } @@ -137,7 +161,13 @@ public void deleteQueue(DeleteQueueRequest request, StreamObserver respon } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteQueue, expected %s or %s", + response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); } } @@ -153,7 +183,13 @@ public void purgeQueue( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method PurgeQueue, expected %s or %s", + response.getClass().getName(), + com.google.cloud.tasks.v2beta3.Queue.class.getName(), + Exception.class.getName()))); } } @@ -169,7 +205,13 @@ public void pauseQueue( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method PauseQueue, expected %s or %s", + response.getClass().getName(), + com.google.cloud.tasks.v2beta3.Queue.class.getName(), + Exception.class.getName()))); } } @@ -185,7 +227,13 @@ public void resumeQueue( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ResumeQueue, expected %s or %s", + response.getClass().getName(), + com.google.cloud.tasks.v2beta3.Queue.class.getName(), + Exception.class.getName()))); } } @@ -199,7 +247,13 @@ public void getIamPolicy(GetIamPolicyRequest request, StreamObserver res } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", + response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); } } @@ -213,7 +267,13 @@ public void setIamPolicy(SetIamPolicyRequest request, StreamObserver res } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", + response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); } } @@ -229,7 +289,13 @@ public void testIamPermissions( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method TestIamPermissions, expected %s or %s", + response.getClass().getName(), + TestIamPermissionsResponse.class.getName(), + Exception.class.getName()))); } } @@ -244,7 +310,13 @@ public void listTasks( } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListTasks, expected %s or %s", + response.getClass().getName(), + ListTasksResponse.class.getName(), + Exception.class.getName()))); } } @@ -258,7 +330,11 @@ public void getTask(GetTaskRequest request, StreamObserver responseObserve } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetTask, expected %s or %s", + response.getClass().getName(), Task.class.getName(), Exception.class.getName()))); } } @@ -272,7 +348,11 @@ public void createTask(CreateTaskRequest request, StreamObserver responseO } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateTask, expected %s or %s", + response.getClass().getName(), Task.class.getName(), Exception.class.getName()))); } } @@ -286,7 +366,13 @@ public void deleteTask(DeleteTaskRequest request, StreamObserver response } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteTask, expected %s or %s", + response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); } } @@ -300,7 +386,11 @@ public void runTask(RunTaskRequest request, StreamObserver responseObserve } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); } else { - responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RunTask, expected %s or %s", + response.getClass().getName(), Task.class.getName(), Exception.class.getName()))); } } } diff --git a/synth.metadata b/synth.metadata index c40b41ce..98965a3a 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,8 +11,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "8d8c008e56f1af31d57f75561e0f1848ffb29eeb", - "internalRef": "356341083" + "sha": "e8bc4471a88ac5f60defe3ed436f517174e59ba0", + "internalRef": "357800868" } }, { From 1fdc0fed2d6e903f063ad5a65bb40ffa47ef649d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 17 Feb 2021 09:06:09 -0800 Subject: [PATCH 003/401] chore: update cloud-rad buckets (#359) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/0a285685-944f-4f44-84fb-761c5c361020/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/b416a7befcdbc42de41cf387dcf428f894fb812b --- .kokoro/release/publish_javadoc.cfg | 4 ++-- .kokoro/release/publish_javadoc.sh | 2 +- .kokoro/release/publish_javadoc11.cfg | 2 +- .kokoro/release/publish_javadoc11.sh | 2 +- synth.metadata | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.kokoro/release/publish_javadoc.cfg b/.kokoro/release/publish_javadoc.cfg index 57efb232..add8ea26 100644 --- a/.kokoro/release/publish_javadoc.cfg +++ b/.kokoro/release/publish_javadoc.cfg @@ -7,10 +7,10 @@ env_vars: { value: "docs-staging" } +# cloud-rad staging env_vars: { key: "STAGING_BUCKET_V2" - value: "docs-staging-v2" - # Production will be at: docs-staging-v2 + value: "docs-staging-v2-staging" } env_vars: { diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh index b7eeb148..db7876af 100755 --- a/.kokoro/release/publish_javadoc.sh +++ b/.kokoro/release/publish_javadoc.sh @@ -71,7 +71,7 @@ python3 -m docuploader create-metadata \ --version ${VERSION} \ --language java -# upload docs +# upload docs to staging bucket python3 -m docuploader upload . \ --credentials ${CREDENTIALS} \ --staging-bucket ${STAGING_BUCKET_V2} diff --git a/.kokoro/release/publish_javadoc11.cfg b/.kokoro/release/publish_javadoc11.cfg index cac631d5..22fb9913 100644 --- a/.kokoro/release/publish_javadoc11.cfg +++ b/.kokoro/release/publish_javadoc11.cfg @@ -1,9 +1,9 @@ # Format: //devtools/kokoro/config/proto/build.proto +# cloud-rad production env_vars: { key: "STAGING_BUCKET_V2" value: "docs-staging-v2" - # Production will be at: docs-staging-v2 } # Configure the docker image for kokoro-trampoline diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index 43e1d176..6af6be28 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -48,7 +48,7 @@ python3 -m docuploader create-metadata \ --version ${VERSION} \ --language java -# upload yml +# upload yml to production bucket python3 -m docuploader upload . \ --credentials ${CREDENTIALS} \ --staging-bucket ${STAGING_BUCKET_V2} \ diff --git a/synth.metadata b/synth.metadata index 98965a3a..78450789 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "a7aceadaeaf584d8bde081af967fc82addbac21a" + "sha": "4f38edca225653fe6bfd6e54b8ae9662c63e50ee" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "f327d3b657a63ae4a8efd7f011a15eacae36b59c" + "sha": "b416a7befcdbc42de41cf387dcf428f894fb812b" } } ], From ffcd7221042afd14d56692a5dc6124a9d4f930f5 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 19 Feb 2021 07:48:14 -0800 Subject: [PATCH 004/401] build: reduce download junk in log files (#360) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/83fbc024-ecda-4d7c-bdb6-c1f6343e492a/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/6946fd71ae9215b0e7ae188f5057df765ee6d7d2 --- .kokoro/dependencies.sh | 4 ++-- synth.metadata | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index c91e5a56..0fb8c843 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -31,7 +31,7 @@ export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m" # this should run maven enforcer retry_with_backoff 3 10 \ - mvn install -B -V \ + mvn install -B -V -ntp \ -DskipTests=true \ -Dclirr.skip=true @@ -86,4 +86,4 @@ then else msg "Errors found. See log statements above." exit 1 -fi \ No newline at end of file +fi diff --git a/synth.metadata b/synth.metadata index 78450789..8ab6c3b6 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "4f38edca225653fe6bfd6e54b8ae9662c63e50ee" + "sha": "1fdc0fed2d6e903f063ad5a65bb40ffa47ef649d" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "b416a7befcdbc42de41cf387dcf428f894fb812b" + "sha": "6946fd71ae9215b0e7ae188f5057df765ee6d7d2" } } ], From a3856385cfd835e6bf031bd606cf8ef9c0b84e04 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 19 Feb 2021 22:52:06 +0100 Subject: [PATCH 005/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 (#361) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `0.18.0` -> `0.19.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.19.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.19.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.19.0/compatibility-slim/0.18.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.19.0/confidence-slim/0.18.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v0.19.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0190-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0180v0190-2021-02-19) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.18.0...v0.19.0) ##### Bug Fixes - update repo name ([#​274](https://www.github.com/googleapis/java-shared-dependencies/issues/274)) ([4a98470](https://www.github.com/googleapis/java-shared-dependencies/commit/4a98470b7493c98137191b7bb3cabca23f98628f)) ##### Dependencies - downgrade opencensus version back to 0.28.0 ([#​265](https://www.github.com/googleapis/java-shared-dependencies/issues/265)) ([f37025c](https://www.github.com/googleapis/java-shared-dependencies/commit/f37025c70f951b1e34904ee983815c0ed8ec4086)) - update dependency com.google.api-client:google-api-client-bom to v1.31.2 ([#​254](https://www.github.com/googleapis/java-shared-dependencies/issues/254)) ([1b0b4a6](https://www.github.com/googleapis/java-shared-dependencies/commit/1b0b4a637cae0c22cd0336c527002025780317d5)) - update dependency com.google.auth:google-auth-library-bom to v0.23.0 ([#​261](https://www.github.com/googleapis/java-shared-dependencies/issues/261)) ([1c0b7bd](https://www.github.com/googleapis/java-shared-dependencies/commit/1c0b7bd60b3d73c16cc6c19ab90d8ccedece3706)) - update dependency com.google.cloud:google-cloud-core to v1.94.1 ([#​272](https://www.github.com/googleapis/java-shared-dependencies/issues/272)) ([44fd4c3](https://www.github.com/googleapis/java-shared-dependencies/commit/44fd4c3c6cae98bd514525f03462b830050828a8)) - update dependency com.google.errorprone:error_prone_annotations to v2.5.1 ([#​255](https://www.github.com/googleapis/java-shared-dependencies/issues/255)) ([6367023](https://www.github.com/googleapis/java-shared-dependencies/commit/63670233424e8f24c3924bba5e2cb6ca97525795)) - update dependency com.google.http-client:google-http-client-bom to v1.38.1 ([#​253](https://www.github.com/googleapis/java-shared-dependencies/issues/253)) ([ad87c74](https://www.github.com/googleapis/java-shared-dependencies/commit/ad87c74d9d893726042156d65850806d92e79952)) - update dependency com.google.protobuf:protobuf-bom to v3.15.0 ([#​278](https://www.github.com/googleapis/java-shared-dependencies/issues/278)) ([989efbd](https://www.github.com/googleapis/java-shared-dependencies/commit/989efbd29bcf4135f7abce49a697303df2cf1a60)) - update dependency io.grpc:grpc-bom to v1.35.0 ([#​248](https://www.github.com/googleapis/java-shared-dependencies/issues/248)) ([7a28c6e](https://www.github.com/googleapis/java-shared-dependencies/commit/7a28c6e7053c181993b1288adcae56de89312113)) - update gax.version to v1.61.0 ([#​277](https://www.github.com/googleapis/java-shared-dependencies/issues/277)) ([f1c3fb9](https://www.github.com/googleapis/java-shared-dependencies/commit/f1c3fb9295f2e1c130b9fc329faa60f4f8474ba6)) - update iam.version to v1.0.7 ([#​252](https://www.github.com/googleapis/java-shared-dependencies/issues/252)) ([5cb3ed9](https://www.github.com/googleapis/java-shared-dependencies/commit/5cb3ed906537269cd7f8d9ccf4b065754b5f5b48)) - update iam.version to v1.0.8 ([#​273](https://www.github.com/googleapis/java-shared-dependencies/issues/273)) ([4d5e7f7](https://www.github.com/googleapis/java-shared-dependencies/commit/4d5e7f720d847918b307a83c95cea10c244ba595))
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b2594e65..906b716b 100644 --- a/pom.xml +++ b/pom.xml @@ -106,7 +106,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.18.0 + 0.19.0 pom import From 2ad2d7fe9d33bfddc552721183984ed00a524ead Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 22 Feb 2021 09:04:10 -0800 Subject: [PATCH 006/401] chore: release gapic-generator-java v0.0.21 with gapic_metadata.json support (#362) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/a4dfcac9-87c7-4251-8a4d-6c8c171521f5/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 358516065 Source-Link: https://github.com/googleapis/googleapis/commit/af8f71dae961ee036a0ac52a1965270149a6b2c9 --- .../google/cloud/tasks/v2/gapic_metadata.json | 66 ++++++++++++++++ .../cloud/tasks/v2beta2/gapic_metadata.json | 78 +++++++++++++++++++ .../cloud/tasks/v2beta3/gapic_metadata.json | 66 ++++++++++++++++ synth.metadata | 9 ++- 4 files changed, 216 insertions(+), 3 deletions(-) create mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/gapic_metadata.json create mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/gapic_metadata.json create mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/gapic_metadata.json diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/gapic_metadata.json b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/gapic_metadata.json new file mode 100644 index 00000000..ed965741 --- /dev/null +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/gapic_metadata.json @@ -0,0 +1,66 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.tasks.v2", + "libraryPackage": "com.google.cloud.tasks.v2", + "services": { + "CloudTasks": { + "clients": { + "grpc": { + "libraryClient": "CloudTasksClient", + "rpcs": { + "CreateQueue": { + "methods": ["createQueue", "createQueue", "createQueue", "createQueueCallable"] + }, + "CreateTask": { + "methods": ["createTask", "createTask", "createTask", "createTaskCallable"] + }, + "DeleteQueue": { + "methods": ["deleteQueue", "deleteQueue", "deleteQueue", "deleteQueueCallable"] + }, + "DeleteTask": { + "methods": ["deleteTask", "deleteTask", "deleteTask", "deleteTaskCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] + }, + "GetQueue": { + "methods": ["getQueue", "getQueue", "getQueue", "getQueueCallable"] + }, + "GetTask": { + "methods": ["getTask", "getTask", "getTask", "getTaskCallable"] + }, + "ListQueues": { + "methods": ["listQueues", "listQueues", "listQueues", "listQueuesPagedCallable", "listQueuesCallable"] + }, + "ListTasks": { + "methods": ["listTasks", "listTasks", "listTasks", "listTasksPagedCallable", "listTasksCallable"] + }, + "PauseQueue": { + "methods": ["pauseQueue", "pauseQueue", "pauseQueue", "pauseQueueCallable"] + }, + "PurgeQueue": { + "methods": ["purgeQueue", "purgeQueue", "purgeQueue", "purgeQueueCallable"] + }, + "ResumeQueue": { + "methods": ["resumeQueue", "resumeQueue", "resumeQueue", "resumeQueueCallable"] + }, + "RunTask": { + "methods": ["runTask", "runTask", "runTask", "runTaskCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateQueue": { + "methods": ["updateQueue", "updateQueue", "updateQueueCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/gapic_metadata.json b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/gapic_metadata.json new file mode 100644 index 00000000..c0501ad8 --- /dev/null +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/gapic_metadata.json @@ -0,0 +1,78 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.tasks.v2beta2", + "libraryPackage": "com.google.cloud.tasks.v2beta2", + "services": { + "CloudTasks": { + "clients": { + "grpc": { + "libraryClient": "CloudTasksClient", + "rpcs": { + "AcknowledgeTask": { + "methods": ["acknowledgeTask", "acknowledgeTask", "acknowledgeTask", "acknowledgeTaskCallable"] + }, + "CancelLease": { + "methods": ["cancelLease", "cancelLease", "cancelLease", "cancelLeaseCallable"] + }, + "CreateQueue": { + "methods": ["createQueue", "createQueue", "createQueue", "createQueueCallable"] + }, + "CreateTask": { + "methods": ["createTask", "createTask", "createTask", "createTaskCallable"] + }, + "DeleteQueue": { + "methods": ["deleteQueue", "deleteQueue", "deleteQueue", "deleteQueueCallable"] + }, + "DeleteTask": { + "methods": ["deleteTask", "deleteTask", "deleteTask", "deleteTaskCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] + }, + "GetQueue": { + "methods": ["getQueue", "getQueue", "getQueue", "getQueueCallable"] + }, + "GetTask": { + "methods": ["getTask", "getTask", "getTask", "getTaskCallable"] + }, + "LeaseTasks": { + "methods": ["leaseTasks", "leaseTasks", "leaseTasks", "leaseTasksCallable"] + }, + "ListQueues": { + "methods": ["listQueues", "listQueues", "listQueues", "listQueuesPagedCallable", "listQueuesCallable"] + }, + "ListTasks": { + "methods": ["listTasks", "listTasks", "listTasks", "listTasksPagedCallable", "listTasksCallable"] + }, + "PauseQueue": { + "methods": ["pauseQueue", "pauseQueue", "pauseQueue", "pauseQueueCallable"] + }, + "PurgeQueue": { + "methods": ["purgeQueue", "purgeQueue", "purgeQueue", "purgeQueueCallable"] + }, + "RenewLease": { + "methods": ["renewLease", "renewLease", "renewLease", "renewLeaseCallable"] + }, + "ResumeQueue": { + "methods": ["resumeQueue", "resumeQueue", "resumeQueue", "resumeQueueCallable"] + }, + "RunTask": { + "methods": ["runTask", "runTask", "runTask", "runTaskCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateQueue": { + "methods": ["updateQueue", "updateQueue", "updateQueueCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/gapic_metadata.json b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/gapic_metadata.json new file mode 100644 index 00000000..6e066ae0 --- /dev/null +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/gapic_metadata.json @@ -0,0 +1,66 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.tasks.v2beta3", + "libraryPackage": "com.google.cloud.tasks.v2beta3", + "services": { + "CloudTasks": { + "clients": { + "grpc": { + "libraryClient": "CloudTasksClient", + "rpcs": { + "CreateQueue": { + "methods": ["createQueue", "createQueue", "createQueue", "createQueueCallable"] + }, + "CreateTask": { + "methods": ["createTask", "createTask", "createTask", "createTaskCallable"] + }, + "DeleteQueue": { + "methods": ["deleteQueue", "deleteQueue", "deleteQueue", "deleteQueueCallable"] + }, + "DeleteTask": { + "methods": ["deleteTask", "deleteTask", "deleteTask", "deleteTaskCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] + }, + "GetQueue": { + "methods": ["getQueue", "getQueue", "getQueue", "getQueueCallable"] + }, + "GetTask": { + "methods": ["getTask", "getTask", "getTask", "getTaskCallable"] + }, + "ListQueues": { + "methods": ["listQueues", "listQueues", "listQueues", "listQueuesPagedCallable", "listQueuesCallable"] + }, + "ListTasks": { + "methods": ["listTasks", "listTasks", "listTasks", "listTasksPagedCallable", "listTasksCallable"] + }, + "PauseQueue": { + "methods": ["pauseQueue", "pauseQueue", "pauseQueue", "pauseQueueCallable"] + }, + "PurgeQueue": { + "methods": ["purgeQueue", "purgeQueue", "purgeQueue", "purgeQueueCallable"] + }, + "ResumeQueue": { + "methods": ["resumeQueue", "resumeQueue", "resumeQueue", "resumeQueueCallable"] + }, + "RunTask": { + "methods": ["runTask", "runTask", "runTask", "runTaskCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateQueue": { + "methods": ["updateQueue", "updateQueue", "updateQueueCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/synth.metadata b/synth.metadata index 8ab6c3b6..d69f77c4 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "1fdc0fed2d6e903f063ad5a65bb40ffa47ef649d" + "sha": "a3856385cfd835e6bf031bd606cf8ef9c0b84e04" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "e8bc4471a88ac5f60defe3ed436f517174e59ba0", - "internalRef": "357800868" + "sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9", + "internalRef": "358516065" } }, { @@ -120,6 +120,7 @@ "codecov.yaml", "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java", "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java", + "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/gapic_metadata.json", "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java", "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStub.java", "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java", @@ -127,6 +128,7 @@ "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java", "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java", "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java", + "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/gapic_metadata.json", "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java", "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStub.java", "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java", @@ -134,6 +136,7 @@ "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java", "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java", "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java", + "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/gapic_metadata.json", "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java", "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStub.java", "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java", From 9b2bc3511fd97b4a80d1d2918b8fa5e58cb1bca1 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 22 Feb 2021 20:54:08 +0000 Subject: [PATCH 007/401] chore(master): release 1.30.13 (#353) :robot: I have created a release \*beep\* \*boop\* --- ### [1.30.13](https://www.github.com/googleapis/java-tasks/compare/v1.30.12...v1.30.13) (2021-02-22) ### Documentation * generate sample code in the Java microgenerator ([#351](https://www.github.com/googleapis/java-tasks/issues/351)) ([bc17256](https://www.github.com/googleapis/java-tasks/commit/bc172567b4f6443b4ba69f8718e2523757adfdd7)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 ([#361](https://www.github.com/googleapis/java-tasks/issues/361)) ([a385638](https://www.github.com/googleapis/java-tasks/commit/a3856385cfd835e6bf031bd606cf8ef9c0b84e04)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 12 ++++++++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 49 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a0dce94..d497c7f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +### [1.30.13](https://www.github.com/googleapis/java-tasks/compare/v1.30.12...v1.30.13) (2021-02-22) + + +### Documentation + +* generate sample code in the Java microgenerator ([#351](https://www.github.com/googleapis/java-tasks/issues/351)) ([bc17256](https://www.github.com/googleapis/java-tasks/commit/bc172567b4f6443b4ba69f8718e2523757adfdd7)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 ([#361](https://www.github.com/googleapis/java-tasks/issues/361)) ([a385638](https://www.github.com/googleapis/java-tasks/commit/a3856385cfd835e6bf031bd606cf8ef9c0b84e04)) + ### [1.30.12](https://www.github.com/googleapis/java-tasks/compare/v1.30.11...v1.30.12) (2021-01-14) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index a6508977..88d80bcd 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 1.30.13-SNAPSHOT + 1.30.13 pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.86.13-SNAPSHOT + 0.86.13 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.86.13-SNAPSHOT + 0.86.13 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.86.13-SNAPSHOT + 0.86.13 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.30.13-SNAPSHOT + 1.30.13 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.86.13-SNAPSHOT + 0.86.13 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.30.13-SNAPSHOT + 1.30.13 com.google.cloud google-cloud-tasks - 1.30.13-SNAPSHOT + 1.30.13 diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 1b2aad84..85627843 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 1.30.13-SNAPSHOT + 1.30.13 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.30.13-SNAPSHOT + 1.30.13 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index b4671c97..d58c00e3 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.30.13-SNAPSHOT + 1.30.13 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.30.13-SNAPSHOT + 1.30.13 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index de8cbd65..d79d5248 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.86.13-SNAPSHOT + 0.86.13 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.30.13-SNAPSHOT + 1.30.13 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index ed383456..6c23e148 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.86.13-SNAPSHOT + 0.86.13 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.30.13-SNAPSHOT + 1.30.13 diff --git a/pom.xml b/pom.xml index 906b716b..140e8af6 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.30.13-SNAPSHOT + 1.30.13 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.86.13-SNAPSHOT + 0.86.13 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.86.13-SNAPSHOT + 0.86.13 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.30.13-SNAPSHOT + 1.30.13 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.86.13-SNAPSHOT + 0.86.13 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.86.13-SNAPSHOT + 0.86.13 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.30.13-SNAPSHOT + 1.30.13 com.google.cloud google-cloud-tasks - 1.30.13-SNAPSHOT + 1.30.13 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 176ee2a5..064f3645 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.30.13-SNAPSHOT + 1.30.13 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.30.13-SNAPSHOT + 1.30.13 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 5bf86e19..a9d956b9 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.86.13-SNAPSHOT + 0.86.13 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.30.13-SNAPSHOT + 1.30.13 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 28f9ffdc..578566e9 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.86.13-SNAPSHOT + 0.86.13 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.30.13-SNAPSHOT + 1.30.13 diff --git a/versions.txt b/versions.txt index 22e26654..d39b8dbf 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.86.12:0.86.13-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.86.12:0.86.13-SNAPSHOT -proto-google-cloud-tasks-v2:1.30.12:1.30.13-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.86.12:0.86.13-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.86.12:0.86.13-SNAPSHOT -grpc-google-cloud-tasks-v2:1.30.12:1.30.13-SNAPSHOT -google-cloud-tasks:1.30.12:1.30.13-SNAPSHOT \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.86.13:0.86.13 +proto-google-cloud-tasks-v2beta2:0.86.13:0.86.13 +proto-google-cloud-tasks-v2:1.30.13:1.30.13 +grpc-google-cloud-tasks-v2beta3:0.86.13:0.86.13 +grpc-google-cloud-tasks-v2beta2:0.86.13:0.86.13 +grpc-google-cloud-tasks-v2:1.30.13:1.30.13 +google-cloud-tasks:1.30.13:1.30.13 \ No newline at end of file From 8f7e9c42a31a70cf6e95ecbbb4b101b8029b36c6 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 22 Feb 2021 21:02:05 +0000 Subject: [PATCH 008/401] chore(master): release 1.30.14-SNAPSHOT (#363) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 88d80bcd..1eb2a47f 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 1.30.13 + 1.30.14-SNAPSHOT pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.86.13 + 0.86.14-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.86.13 + 0.86.14-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.86.13 + 0.86.14-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 1.30.13 + 1.30.14-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.86.13 + 0.86.14-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.30.13 + 1.30.14-SNAPSHOT com.google.cloud google-cloud-tasks - 1.30.13 + 1.30.14-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 85627843..9f2aa8fd 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 1.30.13 + 1.30.14-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.30.13 + 1.30.14-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index d58c00e3..beec46df 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.30.13 + 1.30.14-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.30.13 + 1.30.14-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index d79d5248..6222da56 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.86.13 + 0.86.14-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.30.13 + 1.30.14-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 6c23e148..ae7a45b3 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.86.13 + 0.86.14-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.30.13 + 1.30.14-SNAPSHOT diff --git a/pom.xml b/pom.xml index 140e8af6..8a947e3f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.30.13 + 1.30.14-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.86.13 + 0.86.14-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.86.13 + 0.86.14-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 1.30.13 + 1.30.14-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.86.13 + 0.86.14-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.86.13 + 0.86.14-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.30.13 + 1.30.14-SNAPSHOT com.google.cloud google-cloud-tasks - 1.30.13 + 1.30.14-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 064f3645..180be2be 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.30.13 + 1.30.14-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.30.13 + 1.30.14-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index a9d956b9..7ba97db9 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.86.13 + 0.86.14-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.30.13 + 1.30.14-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 578566e9..62e0f20a 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.86.13 + 0.86.14-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.30.13 + 1.30.14-SNAPSHOT diff --git a/versions.txt b/versions.txt index d39b8dbf..ebc075a2 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.86.13:0.86.13 -proto-google-cloud-tasks-v2beta2:0.86.13:0.86.13 -proto-google-cloud-tasks-v2:1.30.13:1.30.13 -grpc-google-cloud-tasks-v2beta3:0.86.13:0.86.13 -grpc-google-cloud-tasks-v2beta2:0.86.13:0.86.13 -grpc-google-cloud-tasks-v2:1.30.13:1.30.13 -google-cloud-tasks:1.30.13:1.30.13 \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.86.13:0.86.14-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.86.13:0.86.14-SNAPSHOT +proto-google-cloud-tasks-v2:1.30.13:1.30.14-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.86.13:0.86.14-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.86.13:0.86.14-SNAPSHOT +grpc-google-cloud-tasks-v2:1.30.13:1.30.14-SNAPSHOT +google-cloud-tasks:1.30.13:1.30.14-SNAPSHOT \ No newline at end of file From 13b383cce54ff09a0cffcd84f88ccd6283a18b7b Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 24 Feb 2021 09:20:03 -0800 Subject: [PATCH 009/401] feat(v2beta2): add tombstoning and task retention (#365) See #344 for real code changes feat(v2beta2): add QueueStats message feat(v2beta3): add tombstoning and task retention feat(v2beta3): add QueueStats message docs: updates to AppEngineHttpRequest description PiperOrigin-RevId: 353032056 Source-Link: googleapis/googleapis@a0b91c3 PiperOrigin-RevId: 353031255 Source-Link: googleapis/googleapis@d7b8108 From 52fe1d53fe9629cfc0b78bc3d632dd777b368629 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 24 Feb 2021 09:30:02 -0800 Subject: [PATCH 010/401] chore: regenerate README (#367) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-02-24 17:22:29,601 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-tasks/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-24 17:22:31,127 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/0bbfded4-eb62-478b-9627-42c51cc920c7/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index c0ecfea3..95b1935b 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "f144a2a3520400f059947c39994036a1b47c929b" + "sha": "13b383cce54ff09a0cffcd84f88ccd6283a18b7b" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "33366574ffb9e11737b3547eb6f020ecae0536e8" + "sha": "79ab0b44a2cc7d803d07c107f9faf07729fc4012" } } ] diff --git a/README.md b/README.md index 0b69c8fd..406911a2 100644 --- a/README.md +++ b/README.md @@ -17,18 +17,18 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 1.30.12 + 1.30.13 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-tasks:1.30.12' +compile 'com.google.cloud:google-cloud-tasks:1.30.13' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.30.12" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.30.13" ``` ## Authentication From 21449a1cb766726042c7443321188f50c0193387 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 24 Feb 2021 20:36:19 +0100 Subject: [PATCH 011/401] chore(deps): update dependency com.google.cloud:libraries-bom to v17 (#364) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `16.4.0` -> `17.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/compatibility-slim/16.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/confidence-slim/16.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index a31c31df..9af4b0fb 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.4.0 + 17.0.0 pom import From 533e74b4d9c31a295f7f94eb72274393887ef25c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 24 Feb 2021 20:50:25 +0100 Subject: [PATCH 012/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v1.30.13 (#349) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `1.30.11` -> `1.30.13` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.30.13/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.30.13/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.30.13/compatibility-slim/1.30.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.30.13/confidence-slim/1.30.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-tasks ### [`v1.30.13`](https://togithub.com/googleapis/java-tasks/blob/master/CHANGELOG.md#​13013-httpswwwgithubcomgoogleapisjava-taskscomparev13012v13013-2021-02-22) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v1.30.12...v1.30.13) ### [`v1.30.12`](https://togithub.com/googleapis/java-tasks/blob/master/CHANGELOG.md#​13012-httpswwwgithubcomgoogleapisjava-taskscomparev13011v13012-2021-01-14) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v1.30.11...v1.30.12)
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index e032117a..98c104f1 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 1.30.11 + 1.30.13 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 10b3116c..516f064a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 1.30.11 + 1.30.13 From e60519f79d5cfcbe52704f2bca6d3335ce87ac0e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 24 Feb 2021 22:40:04 +0000 Subject: [PATCH 013/401] chore(master): release 1.31.0 (#366) :robot: I have created a release \*beep\* \*boop\* --- ## [1.31.0](https://www.github.com/googleapis/java-tasks/compare/v1.30.13...v1.31.0) (2021-02-24) ### Features * **v2beta2:** add QueueStats message ([13b383c](https://www.github.com/googleapis/java-tasks/commit/13b383cce54ff09a0cffcd84f88ccd6283a18b7b)) * **v2beta2:** add tombstoning and task retention ([#365](https://www.github.com/googleapis/java-tasks/issues/365)) ([13b383c](https://www.github.com/googleapis/java-tasks/commit/13b383cce54ff09a0cffcd84f88ccd6283a18b7b)) * **v2beta3:** add QueueStats message ([13b383c](https://www.github.com/googleapis/java-tasks/commit/13b383cce54ff09a0cffcd84f88ccd6283a18b7b)) * **v2beta3:** add tombstoning and task retention ([13b383c](https://www.github.com/googleapis/java-tasks/commit/13b383cce54ff09a0cffcd84f88ccd6283a18b7b)) ### Documentation * updates to AppEngineHttpRequest description ([13b383c](https://www.github.com/googleapis/java-tasks/commit/13b383cce54ff09a0cffcd84f88ccd6283a18b7b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 15 +++++++++++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 52 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d497c7f7..81153829 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## [1.31.0](https://www.github.com/googleapis/java-tasks/compare/v1.30.13...v1.31.0) (2021-02-24) + + +### Features + +* **v2beta2:** add QueueStats message ([13b383c](https://www.github.com/googleapis/java-tasks/commit/13b383cce54ff09a0cffcd84f88ccd6283a18b7b)) +* **v2beta2:** add tombstoning and task retention ([#365](https://www.github.com/googleapis/java-tasks/issues/365)) ([13b383c](https://www.github.com/googleapis/java-tasks/commit/13b383cce54ff09a0cffcd84f88ccd6283a18b7b)) +* **v2beta3:** add QueueStats message ([13b383c](https://www.github.com/googleapis/java-tasks/commit/13b383cce54ff09a0cffcd84f88ccd6283a18b7b)) +* **v2beta3:** add tombstoning and task retention ([13b383c](https://www.github.com/googleapis/java-tasks/commit/13b383cce54ff09a0cffcd84f88ccd6283a18b7b)) + + +### Documentation + +* updates to AppEngineHttpRequest description ([13b383c](https://www.github.com/googleapis/java-tasks/commit/13b383cce54ff09a0cffcd84f88ccd6283a18b7b)) + ### [1.30.13](https://www.github.com/googleapis/java-tasks/compare/v1.30.12...v1.30.13) (2021-02-22) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 1eb2a47f..503f6788 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 1.30.14-SNAPSHOT + 1.31.0 pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.86.14-SNAPSHOT + 0.87.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.86.14-SNAPSHOT + 0.87.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.86.14-SNAPSHOT + 0.87.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.30.14-SNAPSHOT + 1.31.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.86.14-SNAPSHOT + 0.87.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.30.14-SNAPSHOT + 1.31.0 com.google.cloud google-cloud-tasks - 1.30.14-SNAPSHOT + 1.31.0
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 9f2aa8fd..57a68394 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 1.30.14-SNAPSHOT + 1.31.0 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.30.14-SNAPSHOT + 1.31.0 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index beec46df..c14994de 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.30.14-SNAPSHOT + 1.31.0 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.30.14-SNAPSHOT + 1.31.0 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 6222da56..8cee35ab 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.86.14-SNAPSHOT + 0.87.0 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.30.14-SNAPSHOT + 1.31.0 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index ae7a45b3..78051039 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.86.14-SNAPSHOT + 0.87.0 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.30.14-SNAPSHOT + 1.31.0 diff --git a/pom.xml b/pom.xml index 8a947e3f..69b01347 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.30.14-SNAPSHOT + 1.31.0 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.86.14-SNAPSHOT + 0.87.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.86.14-SNAPSHOT + 0.87.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.30.14-SNAPSHOT + 1.31.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.86.14-SNAPSHOT + 0.87.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.86.14-SNAPSHOT + 0.87.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.30.14-SNAPSHOT + 1.31.0 com.google.cloud google-cloud-tasks - 1.30.14-SNAPSHOT + 1.31.0 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 180be2be..9e88c7ce 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.30.14-SNAPSHOT + 1.31.0 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.30.14-SNAPSHOT + 1.31.0 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 7ba97db9..c9646b13 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.86.14-SNAPSHOT + 0.87.0 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.30.14-SNAPSHOT + 1.31.0 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 62e0f20a..c91b1d4d 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.86.14-SNAPSHOT + 0.87.0 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.30.14-SNAPSHOT + 1.31.0 diff --git a/versions.txt b/versions.txt index ebc075a2..a74e2fd9 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.86.13:0.86.14-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.86.13:0.86.14-SNAPSHOT -proto-google-cloud-tasks-v2:1.30.13:1.30.14-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.86.13:0.86.14-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.86.13:0.86.14-SNAPSHOT -grpc-google-cloud-tasks-v2:1.30.13:1.30.14-SNAPSHOT -google-cloud-tasks:1.30.13:1.30.14-SNAPSHOT \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.87.0:0.87.0 +proto-google-cloud-tasks-v2beta2:0.87.0:0.87.0 +proto-google-cloud-tasks-v2:1.31.0:1.31.0 +grpc-google-cloud-tasks-v2beta3:0.87.0:0.87.0 +grpc-google-cloud-tasks-v2beta2:0.87.0:0.87.0 +grpc-google-cloud-tasks-v2:1.31.0:1.31.0 +google-cloud-tasks:1.31.0:1.31.0 \ No newline at end of file From 40c3bd1966b1d1eb3fef6892db73a9c53c1b4a11 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 24 Feb 2021 22:54:05 +0000 Subject: [PATCH 014/401] chore(master): release 1.31.1-SNAPSHOT (#368) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 503f6788..71362b2b 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 1.31.0 + 1.31.1-SNAPSHOT pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.87.0 + 0.87.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.87.0 + 0.87.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.87.0 + 0.87.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 1.31.0 + 1.31.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.87.0 + 0.87.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.31.0 + 1.31.1-SNAPSHOT com.google.cloud google-cloud-tasks - 1.31.0 + 1.31.1-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 57a68394..59e7bc16 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 1.31.0 + 1.31.1-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.31.0 + 1.31.1-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index c14994de..01fc4e06 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.31.0 + 1.31.1-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.31.0 + 1.31.1-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 8cee35ab..9aa43b9a 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.87.0 + 0.87.1-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.31.0 + 1.31.1-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 78051039..59d3102a 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.87.0 + 0.87.1-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.31.0 + 1.31.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 69b01347..d84626d8 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.31.0 + 1.31.1-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.87.0 + 0.87.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.87.0 + 0.87.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 1.31.0 + 1.31.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.87.0 + 0.87.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.87.0 + 0.87.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.31.0 + 1.31.1-SNAPSHOT com.google.cloud google-cloud-tasks - 1.31.0 + 1.31.1-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 9e88c7ce..9080c8c8 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.31.0 + 1.31.1-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.31.0 + 1.31.1-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index c9646b13..753f1071 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.87.0 + 0.87.1-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.31.0 + 1.31.1-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index c91b1d4d..8c7ebeb8 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.87.0 + 0.87.1-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.31.0 + 1.31.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index a74e2fd9..97e56831 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.87.0:0.87.0 -proto-google-cloud-tasks-v2beta2:0.87.0:0.87.0 -proto-google-cloud-tasks-v2:1.31.0:1.31.0 -grpc-google-cloud-tasks-v2beta3:0.87.0:0.87.0 -grpc-google-cloud-tasks-v2beta2:0.87.0:0.87.0 -grpc-google-cloud-tasks-v2:1.31.0:1.31.0 -google-cloud-tasks:1.31.0:1.31.0 \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.87.0:0.87.1-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.87.0:0.87.1-SNAPSHOT +proto-google-cloud-tasks-v2:1.31.0:1.31.1-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.87.0:0.87.1-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.87.0:0.87.1-SNAPSHOT +grpc-google-cloud-tasks-v2:1.31.0:1.31.1-SNAPSHOT +google-cloud-tasks:1.31.0:1.31.1-SNAPSHOT \ No newline at end of file From 84fb7d54154d115b977207af2add0b2bb672c10e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 25 Feb 2021 16:08:19 +0100 Subject: [PATCH 015/401] chore(deps): update dependency com.google.cloud:libraries-bom to v18 (#370) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `17.0.0` -> `18.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/compatibility-slim/17.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/confidence-slim/17.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 9af4b0fb..4f6f13d5 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 17.0.0 + 18.0.0 pom import From 4aceb4f6429197ae4ff59195d5f48261dd8de246 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 25 Feb 2021 07:18:31 -0800 Subject: [PATCH 016/401] chore: regenerate README (#371) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-02-25 15:10:31,557 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-tasks/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-02-25 15:10:33,097 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/e445ee09-0c5c-444c-be2f-74fd4bdd8810/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 95b1935b..7dd3e1b2 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "13b383cce54ff09a0cffcd84f88ccd6283a18b7b" + "sha": "84fb7d54154d115b977207af2add0b2bb672c10e" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "79ab0b44a2cc7d803d07c107f9faf07729fc4012" + "sha": "0199c79b8324fba66476300824aa931788c47e2d" } } ] diff --git a/README.md b/README.md index 406911a2..5ea73f94 100644 --- a/README.md +++ b/README.md @@ -17,18 +17,18 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 1.30.13 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-tasks:1.30.13' +compile 'com.google.cloud:google-cloud-tasks:1.31.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.30.13" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.31.0" ``` ## Authentication From a0843161f10cf407972a01e01fafb6ad7faf32ca Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 25 Feb 2021 19:36:09 +0100 Subject: [PATCH 017/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v1.31.0 (#369) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `1.30.13` -> `1.31.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.31.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.31.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.31.0/compatibility-slim/1.30.13)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.31.0/confidence-slim/1.30.13)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-tasks ### [`v1.31.0`](https://togithub.com/googleapis/java-tasks/blob/master/CHANGELOG.md#​1310-httpswwwgithubcomgoogleapisjava-taskscomparev13013v1310-2021-02-24) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v1.30.13...v1.31.0) ##### Features - **v2beta2:** add QueueStats message ([13b383c](https://www.github.com/googleapis/java-tasks/commit/13b383cce54ff09a0cffcd84f88ccd6283a18b7b)) - **v2beta2:** add tombstoning and task retention ([#​365](https://www.github.com/googleapis/java-tasks/issues/365)) ([13b383c](https://www.github.com/googleapis/java-tasks/commit/13b383cce54ff09a0cffcd84f88ccd6283a18b7b)) - **v2beta3:** add QueueStats message ([13b383c](https://www.github.com/googleapis/java-tasks/commit/13b383cce54ff09a0cffcd84f88ccd6283a18b7b)) - **v2beta3:** add tombstoning and task retention ([13b383c](https://www.github.com/googleapis/java-tasks/commit/13b383cce54ff09a0cffcd84f88ccd6283a18b7b)) ##### Documentation - updates to AppEngineHttpRequest description ([13b383c](https://www.github.com/googleapis/java-tasks/commit/13b383cce54ff09a0cffcd84f88ccd6283a18b7b)) ##### [1.30.13](https://www.github.com/googleapis/java-tasks/compare/v1.30.12...v1.30.13) (2021-02-22) ##### Documentation - generate sample code in the Java microgenerator ([#​351](https://www.github.com/googleapis/java-tasks/issues/351)) ([bc17256](https://www.github.com/googleapis/java-tasks/commit/bc172567b4f6443b4ba69f8718e2523757adfdd7)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 ([#​361](https://www.github.com/googleapis/java-tasks/issues/361)) ([a385638](https://www.github.com/googleapis/java-tasks/commit/a3856385cfd835e6bf031bd606cf8ef9c0b84e04)) ##### [1.30.12](https://www.github.com/googleapis/java-tasks/compare/v1.30.11...v1.30.12) (2021-01-14) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.18.0 ([#​339](https://www.github.com/googleapis/java-tasks/issues/339)) ([1dbb707](https://www.github.com/googleapis/java-tasks/commit/1dbb7070e64368f208bce046147809f8ad013077)) ##### [1.30.11](https://www.github.com/googleapis/java-tasks/compare/v1.30.10...v1.30.11) (2021-01-06) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.17.0 ([#​326](https://www.github.com/googleapis/java-tasks/issues/326)) ([3c25ad3](https://www.github.com/googleapis/java-tasks/commit/3c25ad38f0e5388427aa8be3270cc7067dddea07)) ##### [1.30.10](https://www.github.com/googleapis/java-tasks/compare/v1.30.9...v1.30.10) (2020-12-14) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.1 ([13a93fc](https://www.github.com/googleapis/java-tasks/commit/13a93fce2a52036769e4496dc5ff3fb7ed6a9bf9)) ##### [1.30.9](https://www.github.com/googleapis/java-tasks/compare/v1.30.8...v1.30.9) (2020-12-02) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.0 ([#​313](https://www.github.com/googleapis/java-tasks/issues/313)) ([fae186d](https://www.github.com/googleapis/java-tasks/commit/fae186d9d9e128b3733cab3335e9f6fb94738d5f)) ##### [1.30.8](https://www.github.com/googleapis/java-tasks/compare/v1.30.7...v1.30.8) (2020-11-11) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.15.0 ([#​299](https://www.github.com/googleapis/java-tasks/issues/299)) ([ff919b4](https://www.github.com/googleapis/java-tasks/commit/ff919b4e5d60526c629cf42584a6cfa774719577)) ##### [1.30.7](https://www.github.com/googleapis/java-tasks/compare/v1.30.6...v1.30.7) (2020-10-31) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.14.1 ([#​287](https://www.github.com/googleapis/java-tasks/issues/287)) ([1adb43a](https://www.github.com/googleapis/java-tasks/commit/1adb43a3a50224b176d7ecb7788ef8da6631079f)) ##### [1.30.6](https://www.github.com/googleapis/java-tasks/compare/v1.30.5...v1.30.6) (2020-10-21) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.13.0 ([#​270](https://www.github.com/googleapis/java-tasks/issues/270)) ([842092b](https://www.github.com/googleapis/java-tasks/commit/842092b7e9fe46a1a1e5eaf06753f2d8b516536e)) ##### [1.30.5](https://www.github.com/googleapis/java-tasks/compare/v1.30.4...v1.30.5) (2020-10-19) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.12.1 ([#​261](https://www.github.com/googleapis/java-tasks/issues/261)) ([bc5725f](https://www.github.com/googleapis/java-tasks/commit/bc5725f1e7764e1fe7eada68cd72d0f4036af143)) ##### [1.30.4](https://www.github.com/googleapis/java-tasks/compare/v1.30.3...v1.30.4) (2020-10-08) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.2 ([#​246](https://www.github.com/googleapis/java-tasks/issues/246)) ([9466e66](https://www.github.com/googleapis/java-tasks/commit/9466e66de588d4649825c790e5369180e6e95986)) ##### [1.30.3](https://www.github.com/googleapis/java-tasks/compare/v1.30.2...v1.30.3) (2020-09-23) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.0 ([#​232](https://www.github.com/googleapis/java-tasks/issues/232)) ([1a99c3d](https://www.github.com/googleapis/java-tasks/commit/1a99c3ddfbb948e9ebbb62b3e90e7d25ebf341e6)) ##### [1.30.2](https://www.github.com/googleapis/java-tasks/compare/v1.30.1...v1.30.2) (2020-09-21) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 ([#​215](https://www.github.com/googleapis/java-tasks/issues/215)) ([b446cd7](https://www.github.com/googleapis/java-tasks/commit/b446cd7dd3e3669a17d571097fbf44da0ad0df75)) ##### [1.30.1](https://www.github.com/googleapis/java-tasks/compare/v1.30.0...v1.30.1) (2020-08-07) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.6 ([#​191](https://www.github.com/googleapis/java-tasks/issues/191)) ([f46ed3d](https://www.github.com/googleapis/java-tasks/commit/f46ed3dd0f75115ffe61eb8c099d8199d3c8ec7d))
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 98c104f1..5bd42b68 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 1.30.13 + 1.31.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 516f064a..77d244f7 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 1.30.13 + 1.31.0 From a0b978dcb58b4f62e957b5b1bcc2313549c0ac80 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 25 Feb 2021 20:38:25 +0100 Subject: [PATCH 018/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.11.0 (#372) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.10.0` -> `0.11.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.0/compatibility-slim/0.10.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.0/confidence-slim/0.10.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v0.11.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​0110-httpswwwgithubcomgoogleapisjava-shared-configcomparev0100v0110-2021-02-25) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.10.0...v0.11.0) ##### Features - migrate releases to the new Google Sonatype endpoint to address Sonatype errors. ([#​230](https://www.github.com/googleapis/java-shared-config/issues/230)) ([ff6a95f](https://www.github.com/googleapis/java-shared-config/commit/ff6a95f7b0d24a1c37c38ba8ac6c6624ee97cc15)) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v8.40 ([#​221](https://www.github.com/googleapis/java-shared-config/issues/221)) ([d9b2d4a](https://www.github.com/googleapis/java-shared-config/commit/d9b2d4aab9a9bba1c2df6fcb52ac96ee8b001ad6)) - update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.1.2 ([#​219](https://www.github.com/googleapis/java-shared-config/issues/219)) ([f7c3f79](https://www.github.com/googleapis/java-shared-config/commit/f7c3f798ef8ad1bc59ae673c84fbdd9f93ee2413))
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 71362b2b..d266638e 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.10.0 + 0.11.0 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index d84626d8..e68d3afc 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.10.0 + 0.11.0 From 08ca5e117ba7a4274ca4e6c32bc0d0700f013a8f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 25 Feb 2021 22:48:12 +0100 Subject: [PATCH 019/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.0 (#373) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `0.19.0` -> `0.20.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.0/compatibility-slim/0.19.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.0/confidence-slim/0.19.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v0.20.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0200-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0190v0200-2021-02-25) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.19.0...v0.20.0) ##### Dependencies - update dependency com.google.auth:google-auth-library-bom to v0.24.0 ([#​284](https://www.github.com/googleapis/java-shared-dependencies/issues/284)) ([5e4914c](https://www.github.com/googleapis/java-shared-dependencies/commit/5e4914cc4a8ccd41a219f150a7455da116d1594b)) - update dependency com.google.http-client:google-http-client-bom to v1.39.0 ([#​288](https://www.github.com/googleapis/java-shared-dependencies/issues/288)) ([70bb862](https://www.github.com/googleapis/java-shared-dependencies/commit/70bb862029b840fbd99ba0109fa2b8f585812793)) - update dependency com.google.protobuf:protobuf-bom to v3.15.1 ([#​282](https://www.github.com/googleapis/java-shared-dependencies/issues/282)) ([44283bd](https://www.github.com/googleapis/java-shared-dependencies/commit/44283bdfdc9288b4a8d16b6ed3a61541792d147e)) - update dependency com.google.protobuf:protobuf-bom to v3.15.2 ([#​287](https://www.github.com/googleapis/java-shared-dependencies/issues/287)) ([bdae560](https://www.github.com/googleapis/java-shared-dependencies/commit/bdae5600f9033219ef8beb6c4d1c521fb062eaec)) - update dependency io.grpc:grpc-bom to v1.36.0 ([#​285](https://www.github.com/googleapis/java-shared-dependencies/issues/285)) ([c59771b](https://www.github.com/googleapis/java-shared-dependencies/commit/c59771b2436ac1a4fbc92b48049900472dd6d3ff)) - update gax.version to v1.62.0 ([#​291](https://www.github.com/googleapis/java-shared-dependencies/issues/291)) ([66bd070](https://www.github.com/googleapis/java-shared-dependencies/commit/66bd0702bd3deb64e0f6c73635e0ffd51a4d637e)) - update google.common-protos.version to v2.1.0 ([#​289](https://www.github.com/googleapis/java-shared-dependencies/issues/289)) ([43c9f02](https://www.github.com/googleapis/java-shared-dependencies/commit/43c9f026b1fa82f38dcb93b902281c2559e82d8e)) - update iam.version to v1.0.9 ([#​281](https://www.github.com/googleapis/java-shared-dependencies/issues/281)) ([ee44d0b](https://www.github.com/googleapis/java-shared-dependencies/commit/ee44d0b41e101931ccf5de2561dfcfcc9ff88b88))
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e68d3afc..542dc9e1 100644 --- a/pom.xml +++ b/pom.xml @@ -106,7 +106,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.19.0 + 0.20.0 pom import From 6acdf7483c1e60f48b2a981087c669242d542ae6 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 25 Feb 2021 22:14:17 +0000 Subject: [PATCH 020/401] chore(master): release 1.31.1 (#374) :robot: I have created a release \*beep\* \*boop\* --- ### [1.31.1](https://www.github.com/googleapis/java-tasks/compare/v1.31.0...v1.31.1) (2021-02-25) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.0 ([#373](https://www.github.com/googleapis/java-tasks/issues/373)) ([08ca5e1](https://www.github.com/googleapis/java-tasks/commit/08ca5e117ba7a4274ca4e6c32bc0d0700f013a8f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81153829..59ce287d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.31.1](https://www.github.com/googleapis/java-tasks/compare/v1.31.0...v1.31.1) (2021-02-25) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.0 ([#373](https://www.github.com/googleapis/java-tasks/issues/373)) ([08ca5e1](https://www.github.com/googleapis/java-tasks/commit/08ca5e117ba7a4274ca4e6c32bc0d0700f013a8f)) + ## [1.31.0](https://www.github.com/googleapis/java-tasks/compare/v1.30.13...v1.31.0) (2021-02-24) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index d266638e..7027836a 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 1.31.1-SNAPSHOT + 1.31.1 pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.87.1-SNAPSHOT + 0.87.1 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.87.1-SNAPSHOT + 0.87.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.87.1-SNAPSHOT + 0.87.1 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.31.1-SNAPSHOT + 1.31.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.87.1-SNAPSHOT + 0.87.1 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.31.1-SNAPSHOT + 1.31.1 com.google.cloud google-cloud-tasks - 1.31.1-SNAPSHOT + 1.31.1
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 59e7bc16..d22d8c88 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 1.31.1-SNAPSHOT + 1.31.1 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.31.1-SNAPSHOT + 1.31.1 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 01fc4e06..b378ce07 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.31.1-SNAPSHOT + 1.31.1 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.31.1-SNAPSHOT + 1.31.1 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 9aa43b9a..e32134df 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.87.1-SNAPSHOT + 0.87.1 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.31.1-SNAPSHOT + 1.31.1 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 59d3102a..8288a7ff 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.87.1-SNAPSHOT + 0.87.1 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.31.1-SNAPSHOT + 1.31.1 diff --git a/pom.xml b/pom.xml index 542dc9e1..e0a735e1 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.31.1-SNAPSHOT + 1.31.1 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.87.1-SNAPSHOT + 0.87.1 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.87.1-SNAPSHOT + 0.87.1 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.31.1-SNAPSHOT + 1.31.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.87.1-SNAPSHOT + 0.87.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.87.1-SNAPSHOT + 0.87.1 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.31.1-SNAPSHOT + 1.31.1 com.google.cloud google-cloud-tasks - 1.31.1-SNAPSHOT + 1.31.1 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 9080c8c8..55c1b3b5 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.31.1-SNAPSHOT + 1.31.1 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.31.1-SNAPSHOT + 1.31.1 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 753f1071..ed21149e 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.87.1-SNAPSHOT + 0.87.1 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.31.1-SNAPSHOT + 1.31.1 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 8c7ebeb8..9bf16f48 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.87.1-SNAPSHOT + 0.87.1 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.31.1-SNAPSHOT + 1.31.1 diff --git a/versions.txt b/versions.txt index 97e56831..bc688acf 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.87.0:0.87.1-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.87.0:0.87.1-SNAPSHOT -proto-google-cloud-tasks-v2:1.31.0:1.31.1-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.87.0:0.87.1-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.87.0:0.87.1-SNAPSHOT -grpc-google-cloud-tasks-v2:1.31.0:1.31.1-SNAPSHOT -google-cloud-tasks:1.31.0:1.31.1-SNAPSHOT \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.87.1:0.87.1 +proto-google-cloud-tasks-v2beta2:0.87.1:0.87.1 +proto-google-cloud-tasks-v2:1.31.1:1.31.1 +grpc-google-cloud-tasks-v2beta3:0.87.1:0.87.1 +grpc-google-cloud-tasks-v2beta2:0.87.1:0.87.1 +grpc-google-cloud-tasks-v2:1.31.1:1.31.1 +google-cloud-tasks:1.31.1:1.31.1 \ No newline at end of file From 5c71783e654d8b0a6c09182909a3113fab786b5b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 1 Mar 2021 09:30:22 -0800 Subject: [PATCH 021/401] feat(generator): update protoc to v3.15.3 (#377) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/c70c2328-69c5-4e5d-a0a1-376c1f8b88da/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 359781040 Source-Link: https://github.com/googleapis/googleapis/commit/f6dd7e47620566925a4b3f1ce029e74e1b2f2516 --- .../cloud/tasks/v2beta2/RetryConfig.java | 64 +++++++++++++++++++ .../tasks/v2beta2/RetryConfigOrBuilder.java | 27 ++++++++ synth.metadata | 6 +- 3 files changed, 94 insertions(+), 3 deletions(-) diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java index e9c6a638..87f39ca6 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java @@ -213,6 +213,24 @@ public NumAttemptsCase getNumAttemptsCase() { } public static final int MAX_ATTEMPTS_FIELD_NUMBER = 1; + /** + * + * + *
+   * The maximum number of attempts for a task.
+   * Cloud Tasks will attempt the task `max_attempts` times (that
+   * is, if the first attempt fails, then there will be
+   * `max_attempts - 1` retries).  Must be > 0.
+   * 
+ * + * int32 max_attempts = 1; + * + * @return Whether the maxAttempts field is set. + */ + @java.lang.Override + public boolean hasMaxAttempts() { + return numAttemptsCase_ == 1; + } /** * * @@ -236,6 +254,21 @@ public int getMaxAttempts() { } public static final int UNLIMITED_ATTEMPTS_FIELD_NUMBER = 2; + /** + * + * + *
+   * If true, then the number of attempts is unlimited.
+   * 
+ * + * bool unlimited_attempts = 2; + * + * @return Whether the unlimitedAttempts field is set. + */ + @java.lang.Override + public boolean hasUnlimitedAttempts() { + return numAttemptsCase_ == 2; + } /** * * @@ -1017,6 +1050,23 @@ public Builder clearNumAttempts() { return this; } + /** + * + * + *
+     * The maximum number of attempts for a task.
+     * Cloud Tasks will attempt the task `max_attempts` times (that
+     * is, if the first attempt fails, then there will be
+     * `max_attempts - 1` retries).  Must be > 0.
+     * 
+ * + * int32 max_attempts = 1; + * + * @return Whether the maxAttempts field is set. + */ + public boolean hasMaxAttempts() { + return numAttemptsCase_ == 1; + } /** * * @@ -1081,6 +1131,20 @@ public Builder clearMaxAttempts() { return this; } + /** + * + * + *
+     * If true, then the number of attempts is unlimited.
+     * 
+ * + * bool unlimited_attempts = 2; + * + * @return Whether the unlimitedAttempts field is set. + */ + public boolean hasUnlimitedAttempts() { + return numAttemptsCase_ == 2; + } /** * * diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfigOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfigOrBuilder.java index 6e985248..f78d7ff0 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfigOrBuilder.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfigOrBuilder.java @@ -23,6 +23,21 @@ public interface RetryConfigOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.RetryConfig) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+   * The maximum number of attempts for a task.
+   * Cloud Tasks will attempt the task `max_attempts` times (that
+   * is, if the first attempt fails, then there will be
+   * `max_attempts - 1` retries).  Must be > 0.
+   * 
+ * + * int32 max_attempts = 1; + * + * @return Whether the maxAttempts field is set. + */ + boolean hasMaxAttempts(); /** * * @@ -39,6 +54,18 @@ public interface RetryConfigOrBuilder */ int getMaxAttempts(); + /** + * + * + *
+   * If true, then the number of attempts is unlimited.
+   * 
+ * + * bool unlimited_attempts = 2; + * + * @return Whether the unlimitedAttempts field is set. + */ + boolean hasUnlimitedAttempts(); /** * * diff --git a/synth.metadata b/synth.metadata index d69f77c4..fcca71df 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "a3856385cfd835e6bf031bd606cf8ef9c0b84e04" + "sha": "6acdf7483c1e60f48b2a981087c669242d542ae6" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9", - "internalRef": "358516065" + "sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516", + "internalRef": "359781040" } }, { From 5adaee7d662f0097593eb03fda904ada495bfa34 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 1 Mar 2021 09:44:13 -0800 Subject: [PATCH 022/401] chore: regenerate README (#378) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-03-01 17:32:49,098 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-tasks/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-03-01 17:32:50,761 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/915e9066-5bce-42c8-892c-822cc6328d1f/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 7dd3e1b2..1a5b21f4 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "84fb7d54154d115b977207af2add0b2bb672c10e" + "sha": "5c71783e654d8b0a6c09182909a3113fab786b5b" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "0199c79b8324fba66476300824aa931788c47e2d" + "sha": "8c5628b86cfa8386de7b8fc1675e6b528b552d57" } } ] diff --git a/README.md b/README.md index 5ea73f94..c463e77c 100644 --- a/README.md +++ b/README.md @@ -17,18 +17,18 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 1.31.0 + 1.31.1 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-tasks:1.31.0' +compile 'com.google.cloud:google-cloud-tasks:1.31.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.31.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.31.1" ``` ## Authentication From 0586b3177ce32f1eb4b40e128956fba09db09d34 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 2 Mar 2021 15:28:29 -0800 Subject: [PATCH 023/401] chore: remove docLava v2 doc generation (#379) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/fd53b9bb-17c4-48a0-a8eb-0e31c2fe8730/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/21da7d9fa02f6916d9f87cf4072b3547b5c72eb5 --- .kokoro/release/publish_javadoc.cfg | 8 +------- .kokoro/release/publish_javadoc.sh | 19 ------------------- synth.metadata | 4 ++-- 3 files changed, 3 insertions(+), 28 deletions(-) diff --git a/.kokoro/release/publish_javadoc.cfg b/.kokoro/release/publish_javadoc.cfg index add8ea26..328a8375 100644 --- a/.kokoro/release/publish_javadoc.cfg +++ b/.kokoro/release/publish_javadoc.cfg @@ -7,12 +7,6 @@ env_vars: { value: "docs-staging" } -# cloud-rad staging -env_vars: { - key: "STAGING_BUCKET_V2" - value: "docs-staging-v2-staging" -} - env_vars: { key: "TRAMPOLINE_BUILD_FILE" value: "github/java-tasks/.kokoro/release/publish_javadoc.sh" @@ -26,4 +20,4 @@ before_action { keyname: "docuploader_service_account" } } -} \ No newline at end of file +} diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh index db7876af..4d9b7ef4 100755 --- a/.kokoro/release/publish_javadoc.sh +++ b/.kokoro/release/publish_javadoc.sh @@ -56,22 +56,3 @@ python3 -m docuploader create-metadata \ python3 -m docuploader upload . \ --credentials ${CREDENTIALS} \ --staging-bucket ${STAGING_BUCKET} - -popd - -# V2 due to problems w/ the released javadoc plugin doclava, Java 8 is required. Beware of accidental updates. - -mvn clean site -B -q -Ddevsite.template="${KOKORO_GFILE_DIR}/java/" - -pushd target/devsite/reference - -# create metadata -python3 -m docuploader create-metadata \ - --name ${NAME} \ - --version ${VERSION} \ - --language java - -# upload docs to staging bucket -python3 -m docuploader upload . \ - --credentials ${CREDENTIALS} \ - --staging-bucket ${STAGING_BUCKET_V2} diff --git a/synth.metadata b/synth.metadata index fcca71df..caae0ede 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "6acdf7483c1e60f48b2a981087c669242d542ae6" + "sha": "5adaee7d662f0097593eb03fda904ada495bfa34" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "6946fd71ae9215b0e7ae188f5057df765ee6d7d2" + "sha": "21da7d9fa02f6916d9f87cf4072b3547b5c72eb5" } } ], From 3c3b392d4bfdc138dccd93a1f3b23a40a6fd765f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Mar 2021 00:50:06 +0100 Subject: [PATCH 024/401] chore(deps): update dependency com.google.cloud:libraries-bom to v18.1.0 (#380) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `18.0.0` -> `18.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.1.0/compatibility-slim/18.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.1.0/confidence-slim/18.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 4f6f13d5..26b012bd 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 18.0.0 + 18.1.0 pom import From 6d4e7f92607199e1972f1e5b6a9719f62a1e8dba Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 4 Mar 2021 08:30:07 -0800 Subject: [PATCH 025/401] chore(release): update Java microgenerator to 1.0.1 (#381) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/f87c3986-84f0-40b9-b8fa-0b81b37f3b3f/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 360805639 Source-Link: https://github.com/googleapis/googleapis/commit/3befd26ca55723d3e8111909331eac1249837987 --- .../java/com/google/cloud/tasks/v2/CloudTasksClient.java | 2 +- .../java/com/google/cloud/tasks/v2/CloudTasksSettings.java | 2 +- .../main/java/com/google/cloud/tasks/v2/package-info.java | 2 +- .../java/com/google/cloud/tasks/v2/stub/CloudTasksStub.java | 2 +- .../google/cloud/tasks/v2/stub/CloudTasksStubSettings.java | 2 +- .../cloud/tasks/v2/stub/GrpcCloudTasksCallableFactory.java | 2 +- .../com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java | 2 +- .../com/google/cloud/tasks/v2beta2/CloudTasksClient.java | 2 +- .../com/google/cloud/tasks/v2beta2/CloudTasksSettings.java | 2 +- .../java/com/google/cloud/tasks/v2beta2/package-info.java | 2 +- .../com/google/cloud/tasks/v2beta2/stub/CloudTasksStub.java | 2 +- .../cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java | 2 +- .../tasks/v2beta2/stub/GrpcCloudTasksCallableFactory.java | 2 +- .../google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java | 2 +- .../com/google/cloud/tasks/v2beta3/CloudTasksClient.java | 2 +- .../com/google/cloud/tasks/v2beta3/CloudTasksSettings.java | 2 +- .../java/com/google/cloud/tasks/v2beta3/package-info.java | 2 +- .../com/google/cloud/tasks/v2beta3/stub/CloudTasksStub.java | 2 +- .../cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java | 2 +- .../tasks/v2beta3/stub/GrpcCloudTasksCallableFactory.java | 2 +- .../google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java | 2 +- .../com/google/cloud/tasks/v2/CloudTasksClientTest.java | 2 +- .../test/java/com/google/cloud/tasks/v2/MockCloudTasks.java | 2 +- .../java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java | 2 +- .../google/cloud/tasks/v2beta2/CloudTasksClientTest.java | 2 +- .../java/com/google/cloud/tasks/v2beta2/MockCloudTasks.java | 2 +- .../com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java | 2 +- .../google/cloud/tasks/v2beta3/CloudTasksClientTest.java | 2 +- .../java/com/google/cloud/tasks/v2beta3/MockCloudTasks.java | 2 +- .../com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java | 2 +- .../main/java/com/google/cloud/tasks/v2/LocationName.java | 2 +- .../src/main/java/com/google/cloud/tasks/v2/QueueName.java | 2 +- .../src/main/java/com/google/cloud/tasks/v2/TaskName.java | 2 +- .../java/com/google/cloud/tasks/v2beta2/LocationName.java | 2 +- .../main/java/com/google/cloud/tasks/v2beta2/QueueName.java | 2 +- .../main/java/com/google/cloud/tasks/v2beta2/TaskName.java | 2 +- .../java/com/google/cloud/tasks/v2beta3/LocationName.java | 2 +- .../main/java/com/google/cloud/tasks/v2beta3/QueueName.java | 2 +- .../main/java/com/google/cloud/tasks/v2beta3/TaskName.java | 2 +- synth.metadata | 6 +++--- 40 files changed, 42 insertions(+), 42 deletions(-) diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java index 1cdaa9ff..da25a4de 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java index ee09abd7..91acf435 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java index 2bafba51..c587018a 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStub.java index 342bf2f0..f4bc72fa 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStub.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java index 6540ba7d..c39db763 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksCallableFactory.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksCallableFactory.java index 2f7091ac..5ad8073e 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksCallableFactory.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java index 057e17bf..090400e3 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java index d3896960..0cc31811 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java index ba7d3be2..63e71a74 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java index 87a9cf32..6b83d110 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStub.java index f14b4110..cdc47d99 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStub.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java index 5dfc3c4b..a3a26fdc 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksCallableFactory.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksCallableFactory.java index b4c40836..0ebd5ea5 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksCallableFactory.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java index 47b06bdf..2b9a7d6e 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java index a0036fb5..00325a4f 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java index f7cbd962..f4b31eac 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java index 9861c354..0a884409 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStub.java index 6989483f..1fbad68e 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStub.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java index 521debc6..d7acadc5 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksCallableFactory.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksCallableFactory.java index faee6639..388c2112 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksCallableFactory.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java index d4636099..bbdff01f 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java index ad15245b..23a326c9 100644 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java +++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasks.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasks.java index 5ce95edf..29bf65ae 100644 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasks.java +++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasks.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java index cdb7d200..4df154c6 100644 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java +++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java index e0528ae1..2acf5d51 100644 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java +++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasks.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasks.java index 11c89137..2dc23ac9 100644 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasks.java +++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasks.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java index f90008fc..cd24f793 100644 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java +++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java index e7143ee0..700533f4 100644 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java +++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasks.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasks.java index e19fb6e0..aa5ecd29 100644 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasks.java +++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasks.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java index 0f1ba1e2..de6438e4 100644 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java +++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java index 52d1090d..715ae4f1 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueName.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueName.java index 66df2844..3c4438b3 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueName.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java index 3439a807..8aedbd87 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LocationName.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LocationName.java index 869a06d5..8a0078f8 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LocationName.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LocationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueName.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueName.java index 28a56eaf..5c2a87d4 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueName.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskName.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskName.java index 066449e3..5c59e0ba 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskName.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/LocationName.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/LocationName.java index 24567edc..ae50f06d 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/LocationName.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/LocationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueName.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueName.java index d06f78ea..42dc8436 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueName.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskName.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskName.java index c1a444dc..91e4b717 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskName.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/synth.metadata b/synth.metadata index caae0ede..ddd4af93 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "5adaee7d662f0097593eb03fda904ada495bfa34" + "sha": "3c3b392d4bfdc138dccd93a1f3b23a40a6fd765f" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "f6dd7e47620566925a4b3f1ce029e74e1b2f2516", - "internalRef": "359781040" + "sha": "3befd26ca55723d3e8111909331eac1249837987", + "internalRef": "360805639" } }, { From 03b9bdb4b9e53e34a70e1c499d04d4778c969c53 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Mar 2021 20:36:28 +0100 Subject: [PATCH 026/401] chore(deps): update dependency com.google.cloud:libraries-bom to v19 (#382) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `18.1.0` -> `19.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/compatibility-slim/18.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/confidence-slim/18.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 26b012bd..a2a99baf 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 18.1.0 + 19.0.0 pom import From b298148e0a8a6755eb1e47d3b9f4857df3c13105 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 4 Mar 2021 15:08:20 -0800 Subject: [PATCH 027/401] chore: copy README to docfx-yml dir (#383) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/e006cc60-1a44-4267-85d4-fdb18bd0f44e/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/d0bdade9a962042dc0f770cf631086f3db59b5b0 --- .kokoro/release/publish_javadoc11.sh | 5 ++++- synth.metadata | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index 6af6be28..587fbbbc 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -40,6 +40,9 @@ export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) # generate yml mvn clean site -B -q -P docFX +# copy README to docfx-yml dir and rename index.md +cp README.md target/docfx-yml/index.md + pushd target/docfx-yml # create metadata @@ -52,4 +55,4 @@ python3 -m docuploader create-metadata \ python3 -m docuploader upload . \ --credentials ${CREDENTIALS} \ --staging-bucket ${STAGING_BUCKET_V2} \ - --destination-prefix docfx- + --destination-prefix docfx diff --git a/synth.metadata b/synth.metadata index ddd4af93..f143b307 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "3c3b392d4bfdc138dccd93a1f3b23a40a6fd765f" + "sha": "03b9bdb4b9e53e34a70e1c499d04d4778c969c53" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "21da7d9fa02f6916d9f87cf4072b3547b5c72eb5" + "sha": "d0bdade9a962042dc0f770cf631086f3db59b5b0" } } ], From b9dc458074f301edcbfbf9afdb16c3b5b0008878 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 8 Mar 2021 08:26:03 -0800 Subject: [PATCH 028/401] chore: update gax-java dependency to 1.62 (#384) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/b096316f-13b7-4a8e-84ef-7f6422d1caba/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 361377784 Source-Link: https://github.com/googleapis/googleapis/commit/0e915217fb5261c1e57bfaf0e16ee5c7feaaba89 --- .../google/cloud/tasks/v2/CloudTasksGrpc.java | 191 +++++++------- .../cloud/tasks/v2beta2/CloudTasksGrpc.java | 237 ++++++++++-------- .../cloud/tasks/v2beta3/CloudTasksGrpc.java | 191 +++++++------- synth.metadata | 6 +- 4 files changed, 347 insertions(+), 278 deletions(-) diff --git a/grpc-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksGrpc.java b/grpc-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksGrpc.java index 4ba2a4ac..ee78fba8 100644 --- a/grpc-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksGrpc.java +++ b/grpc-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.tasks.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -748,7 +743,7 @@ public void listQueues( com.google.cloud.tasks.v2.ListQueuesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListQueuesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListQueuesMethod(), responseObserver); } /** @@ -761,7 +756,7 @@ public void listQueues( public void getQueue( com.google.cloud.tasks.v2.GetQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetQueueMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetQueueMethod(), responseObserver); } /** @@ -783,7 +778,8 @@ public void getQueue( public void createQueue( com.google.cloud.tasks.v2.CreateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateQueueMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateQueueMethod(), responseObserver); } /** @@ -807,7 +803,8 @@ public void createQueue( public void updateQueue( com.google.cloud.tasks.v2.UpdateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateQueueMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateQueueMethod(), responseObserver); } /** @@ -829,7 +826,8 @@ public void updateQueue( public void deleteQueue( com.google.cloud.tasks.v2.DeleteQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteQueueMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteQueueMethod(), responseObserver); } /** @@ -845,7 +843,7 @@ public void deleteQueue( public void purgeQueue( com.google.cloud.tasks.v2.PurgeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPurgeQueueMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPurgeQueueMethod(), responseObserver); } /** @@ -863,7 +861,7 @@ public void purgeQueue( public void pauseQueue( com.google.cloud.tasks.v2.PauseQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPauseQueueMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPauseQueueMethod(), responseObserver); } /** @@ -886,7 +884,8 @@ public void pauseQueue( public void resumeQueue( com.google.cloud.tasks.v2.ResumeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getResumeQueueMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResumeQueueMethod(), responseObserver); } /** @@ -905,7 +904,8 @@ public void resumeQueue( public void getIamPolicy( com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); } /** @@ -925,7 +925,8 @@ public void getIamPolicy( public void setIamPolicy( com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); } /** @@ -944,7 +945,8 @@ public void testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); } /** @@ -963,7 +965,7 @@ public void testIamPermissions( public void listTasks( com.google.cloud.tasks.v2.ListTasksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListTasksMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTasksMethod(), responseObserver); } /** @@ -976,7 +978,7 @@ public void listTasks( public void getTask( com.google.cloud.tasks.v2.GetTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTaskMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTaskMethod(), responseObserver); } /** @@ -991,7 +993,7 @@ public void getTask( public void createTask( com.google.cloud.tasks.v2.CreateTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateTaskMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTaskMethod(), responseObserver); } /** @@ -1007,7 +1009,7 @@ public void createTask( public void deleteTask( com.google.cloud.tasks.v2.DeleteTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteTaskMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTaskMethod(), responseObserver); } /** @@ -1038,7 +1040,7 @@ public void deleteTask( public void runTask( com.google.cloud.tasks.v2.RunTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getRunTaskMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunTaskMethod(), responseObserver); } @java.lang.Override @@ -1046,98 +1048,98 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListQueuesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.ListQueuesRequest, com.google.cloud.tasks.v2.ListQueuesResponse>(this, METHODID_LIST_QUEUES))) .addMethod( getGetQueueMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.GetQueueRequest, com.google.cloud.tasks.v2.Queue>( this, METHODID_GET_QUEUE))) .addMethod( getCreateQueueMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.CreateQueueRequest, com.google.cloud.tasks.v2.Queue>(this, METHODID_CREATE_QUEUE))) .addMethod( getUpdateQueueMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.UpdateQueueRequest, com.google.cloud.tasks.v2.Queue>(this, METHODID_UPDATE_QUEUE))) .addMethod( getDeleteQueueMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.DeleteQueueRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_QUEUE))) .addMethod( getPurgeQueueMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.PurgeQueueRequest, com.google.cloud.tasks.v2.Queue>( this, METHODID_PURGE_QUEUE))) .addMethod( getPauseQueueMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.PauseQueueRequest, com.google.cloud.tasks.v2.Queue>( this, METHODID_PAUSE_QUEUE))) .addMethod( getResumeQueueMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.ResumeQueueRequest, com.google.cloud.tasks.v2.Queue>(this, METHODID_RESUME_QUEUE))) .addMethod( getGetIamPolicyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( this, METHODID_GET_IAM_POLICY))) .addMethod( getSetIamPolicyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( this, METHODID_SET_IAM_POLICY))) .addMethod( getTestIamPermissionsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>( this, METHODID_TEST_IAM_PERMISSIONS))) .addMethod( getListTasksMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.ListTasksRequest, com.google.cloud.tasks.v2.ListTasksResponse>(this, METHODID_LIST_TASKS))) .addMethod( getGetTaskMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.GetTaskRequest, com.google.cloud.tasks.v2.Task>( this, METHODID_GET_TASK))) .addMethod( getCreateTaskMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.CreateTaskRequest, com.google.cloud.tasks.v2.Task>( this, METHODID_CREATE_TASK))) .addMethod( getDeleteTaskMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.DeleteTaskRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_TASK))) .addMethod( getRunTaskMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2.RunTaskRequest, com.google.cloud.tasks.v2.Task>( this, METHODID_RUN_TASK))) @@ -1175,7 +1177,7 @@ public void listQueues( com.google.cloud.tasks.v2.ListQueuesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListQueuesMethod(), getCallOptions()), request, responseObserver); } @@ -1189,7 +1191,7 @@ public void listQueues( public void getQueue( com.google.cloud.tasks.v2.GetQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetQueueMethod(), getCallOptions()), request, responseObserver); } @@ -1212,7 +1214,7 @@ public void getQueue( public void createQueue( com.google.cloud.tasks.v2.CreateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateQueueMethod(), getCallOptions()), request, responseObserver); @@ -1239,7 +1241,7 @@ public void createQueue( public void updateQueue( com.google.cloud.tasks.v2.UpdateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateQueueMethod(), getCallOptions()), request, responseObserver); @@ -1264,7 +1266,7 @@ public void updateQueue( public void deleteQueue( com.google.cloud.tasks.v2.DeleteQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), request, responseObserver); @@ -1283,7 +1285,7 @@ public void deleteQueue( public void purgeQueue( com.google.cloud.tasks.v2.PurgeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPurgeQueueMethod(), getCallOptions()), request, responseObserver); } @@ -1302,7 +1304,7 @@ public void purgeQueue( public void pauseQueue( com.google.cloud.tasks.v2.PauseQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPauseQueueMethod(), getCallOptions()), request, responseObserver); } @@ -1326,7 +1328,7 @@ public void pauseQueue( public void resumeQueue( com.google.cloud.tasks.v2.ResumeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getResumeQueueMethod(), getCallOptions()), request, responseObserver); @@ -1348,7 +1350,7 @@ public void resumeQueue( public void getIamPolicy( com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); @@ -1371,7 +1373,7 @@ public void getIamPolicy( public void setIamPolicy( com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); @@ -1393,7 +1395,7 @@ public void testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); @@ -1415,7 +1417,7 @@ public void testIamPermissions( public void listTasks( com.google.cloud.tasks.v2.ListTasksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListTasksMethod(), getCallOptions()), request, responseObserver); } @@ -1429,7 +1431,7 @@ public void listTasks( public void getTask( com.google.cloud.tasks.v2.GetTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetTaskMethod(), getCallOptions()), request, responseObserver); } @@ -1445,7 +1447,7 @@ public void getTask( public void createTask( com.google.cloud.tasks.v2.CreateTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateTaskMethod(), getCallOptions()), request, responseObserver); } @@ -1462,7 +1464,7 @@ public void createTask( public void deleteTask( com.google.cloud.tasks.v2.DeleteTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteTaskMethod(), getCallOptions()), request, responseObserver); } @@ -1494,7 +1496,7 @@ public void deleteTask( public void runTask( com.google.cloud.tasks.v2.RunTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRunTaskMethod(), getCallOptions()), request, responseObserver); } } @@ -1529,7 +1531,8 @@ protected CloudTasksBlockingStub build( */ public com.google.cloud.tasks.v2.ListQueuesResponse listQueues( com.google.cloud.tasks.v2.ListQueuesRequest request) { - return blockingUnaryCall(getChannel(), getListQueuesMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListQueuesMethod(), getCallOptions(), request); } /** @@ -1541,7 +1544,8 @@ public com.google.cloud.tasks.v2.ListQueuesResponse listQueues( */ public com.google.cloud.tasks.v2.Queue getQueue( com.google.cloud.tasks.v2.GetQueueRequest request) { - return blockingUnaryCall(getChannel(), getGetQueueMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetQueueMethod(), getCallOptions(), request); } /** @@ -1562,7 +1566,8 @@ public com.google.cloud.tasks.v2.Queue getQueue( */ public com.google.cloud.tasks.v2.Queue createQueue( com.google.cloud.tasks.v2.CreateQueueRequest request) { - return blockingUnaryCall(getChannel(), getCreateQueueMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateQueueMethod(), getCallOptions(), request); } /** @@ -1585,7 +1590,8 @@ public com.google.cloud.tasks.v2.Queue createQueue( */ public com.google.cloud.tasks.v2.Queue updateQueue( com.google.cloud.tasks.v2.UpdateQueueRequest request) { - return blockingUnaryCall(getChannel(), getUpdateQueueMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateQueueMethod(), getCallOptions(), request); } /** @@ -1606,7 +1612,8 @@ public com.google.cloud.tasks.v2.Queue updateQueue( */ public com.google.protobuf.Empty deleteQueue( com.google.cloud.tasks.v2.DeleteQueueRequest request) { - return blockingUnaryCall(getChannel(), getDeleteQueueMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteQueueMethod(), getCallOptions(), request); } /** @@ -1621,7 +1628,8 @@ public com.google.protobuf.Empty deleteQueue( */ public com.google.cloud.tasks.v2.Queue purgeQueue( com.google.cloud.tasks.v2.PurgeQueueRequest request) { - return blockingUnaryCall(getChannel(), getPurgeQueueMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPurgeQueueMethod(), getCallOptions(), request); } /** @@ -1638,7 +1646,8 @@ public com.google.cloud.tasks.v2.Queue purgeQueue( */ public com.google.cloud.tasks.v2.Queue pauseQueue( com.google.cloud.tasks.v2.PauseQueueRequest request) { - return blockingUnaryCall(getChannel(), getPauseQueueMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPauseQueueMethod(), getCallOptions(), request); } /** @@ -1660,7 +1669,8 @@ public com.google.cloud.tasks.v2.Queue pauseQueue( */ public com.google.cloud.tasks.v2.Queue resumeQueue( com.google.cloud.tasks.v2.ResumeQueueRequest request) { - return blockingUnaryCall(getChannel(), getResumeQueueMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResumeQueueMethod(), getCallOptions(), request); } /** @@ -1677,7 +1687,8 @@ public com.google.cloud.tasks.v2.Queue resumeQueue( * */ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return blockingUnaryCall(getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } /** @@ -1695,7 +1706,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * */ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return blockingUnaryCall(getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } /** @@ -1712,7 +1724,7 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -1731,7 +1743,8 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( */ public com.google.cloud.tasks.v2.ListTasksResponse listTasks( com.google.cloud.tasks.v2.ListTasksRequest request) { - return blockingUnaryCall(getChannel(), getListTasksMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTasksMethod(), getCallOptions(), request); } /** @@ -1743,7 +1756,8 @@ public com.google.cloud.tasks.v2.ListTasksResponse listTasks( */ public com.google.cloud.tasks.v2.Task getTask( com.google.cloud.tasks.v2.GetTaskRequest request) { - return blockingUnaryCall(getChannel(), getGetTaskMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTaskMethod(), getCallOptions(), request); } /** @@ -1757,7 +1771,8 @@ public com.google.cloud.tasks.v2.Task getTask( */ public com.google.cloud.tasks.v2.Task createTask( com.google.cloud.tasks.v2.CreateTaskRequest request) { - return blockingUnaryCall(getChannel(), getCreateTaskMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTaskMethod(), getCallOptions(), request); } /** @@ -1772,7 +1787,8 @@ public com.google.cloud.tasks.v2.Task createTask( */ public com.google.protobuf.Empty deleteTask( com.google.cloud.tasks.v2.DeleteTaskRequest request) { - return blockingUnaryCall(getChannel(), getDeleteTaskMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTaskMethod(), getCallOptions(), request); } /** @@ -1802,7 +1818,8 @@ public com.google.protobuf.Empty deleteTask( */ public com.google.cloud.tasks.v2.Task runTask( com.google.cloud.tasks.v2.RunTaskRequest request) { - return blockingUnaryCall(getChannel(), getRunTaskMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunTaskMethod(), getCallOptions(), request); } } @@ -1836,7 +1853,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.tasks.v2.ListQueuesResponse> listQueues(com.google.cloud.tasks.v2.ListQueuesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListQueuesMethod(), getCallOptions()), request); } @@ -1849,7 +1866,8 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture getQueue(com.google.cloud.tasks.v2.GetQueueRequest request) { - return futureUnaryCall(getChannel().newCall(getGetQueueMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetQueueMethod(), getCallOptions()), request); } /** @@ -1870,7 +1888,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture createQueue(com.google.cloud.tasks.v2.CreateQueueRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateQueueMethod(), getCallOptions()), request); } @@ -1894,7 +1912,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture updateQueue(com.google.cloud.tasks.v2.UpdateQueueRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateQueueMethod(), getCallOptions()), request); } @@ -1916,7 +1934,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture deleteQueue(com.google.cloud.tasks.v2.DeleteQueueRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), request); } @@ -1932,7 +1950,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture purgeQueue(com.google.cloud.tasks.v2.PurgeQueueRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPurgeQueueMethod(), getCallOptions()), request); } @@ -1950,7 +1968,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture pauseQueue(com.google.cloud.tasks.v2.PauseQueueRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPauseQueueMethod(), getCallOptions()), request); } @@ -1973,7 +1991,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture resumeQueue(com.google.cloud.tasks.v2.ResumeQueueRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getResumeQueueMethod(), getCallOptions()), request); } @@ -1992,7 +2010,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); } @@ -2012,7 +2030,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); } @@ -2031,7 +2049,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.iam.v1.TestIamPermissionsResponse> testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); } @@ -2051,7 +2069,8 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.tasks.v2.ListTasksResponse> listTasks(com.google.cloud.tasks.v2.ListTasksRequest request) { - return futureUnaryCall(getChannel().newCall(getListTasksMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTasksMethod(), getCallOptions()), request); } /** @@ -2063,7 +2082,8 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture getTask(com.google.cloud.tasks.v2.GetTaskRequest request) { - return futureUnaryCall(getChannel().newCall(getGetTaskMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTaskMethod(), getCallOptions()), request); } /** @@ -2077,7 +2097,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture createTask(com.google.cloud.tasks.v2.CreateTaskRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateTaskMethod(), getCallOptions()), request); } @@ -2093,7 +2113,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture deleteTask( com.google.cloud.tasks.v2.DeleteTaskRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteTaskMethod(), getCallOptions()), request); } @@ -2124,7 +2144,8 @@ public com.google.common.util.concurrent.ListenableFuture runTask(com.google.cloud.tasks.v2.RunTaskRequest request) { - return futureUnaryCall(getChannel().newCall(getRunTaskMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunTaskMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksGrpc.java b/grpc-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksGrpc.java index b4d447b1..e6ec9acc 100644 --- a/grpc-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksGrpc.java +++ b/grpc-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.tasks.v2beta2; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -943,7 +938,7 @@ public void listQueues( com.google.cloud.tasks.v2beta2.ListQueuesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListQueuesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListQueuesMethod(), responseObserver); } /** @@ -956,7 +951,7 @@ public void listQueues( public void getQueue( com.google.cloud.tasks.v2beta2.GetQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetQueueMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetQueueMethod(), responseObserver); } /** @@ -978,7 +973,8 @@ public void getQueue( public void createQueue( com.google.cloud.tasks.v2beta2.CreateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateQueueMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateQueueMethod(), responseObserver); } /** @@ -1002,7 +998,8 @@ public void createQueue( public void updateQueue( com.google.cloud.tasks.v2beta2.UpdateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateQueueMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateQueueMethod(), responseObserver); } /** @@ -1024,7 +1021,8 @@ public void updateQueue( public void deleteQueue( com.google.cloud.tasks.v2beta2.DeleteQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteQueueMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteQueueMethod(), responseObserver); } /** @@ -1040,7 +1038,7 @@ public void deleteQueue( public void purgeQueue( com.google.cloud.tasks.v2beta2.PurgeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPurgeQueueMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPurgeQueueMethod(), responseObserver); } /** @@ -1058,7 +1056,7 @@ public void purgeQueue( public void pauseQueue( com.google.cloud.tasks.v2beta2.PauseQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPauseQueueMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPauseQueueMethod(), responseObserver); } /** @@ -1081,7 +1079,8 @@ public void pauseQueue( public void resumeQueue( com.google.cloud.tasks.v2beta2.ResumeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getResumeQueueMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResumeQueueMethod(), responseObserver); } /** @@ -1100,7 +1099,8 @@ public void resumeQueue( public void getIamPolicy( com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); } /** @@ -1120,7 +1120,8 @@ public void getIamPolicy( public void setIamPolicy( com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); } /** @@ -1139,7 +1140,8 @@ public void testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); } /** @@ -1159,7 +1161,7 @@ public void listTasks( com.google.cloud.tasks.v2beta2.ListTasksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListTasksMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTasksMethod(), responseObserver); } /** @@ -1172,7 +1174,7 @@ public void listTasks( public void getTask( com.google.cloud.tasks.v2beta2.GetTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTaskMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTaskMethod(), responseObserver); } /** @@ -1189,7 +1191,7 @@ public void getTask( public void createTask( com.google.cloud.tasks.v2beta2.CreateTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateTaskMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTaskMethod(), responseObserver); } /** @@ -1205,7 +1207,7 @@ public void createTask( public void deleteTask( com.google.cloud.tasks.v2beta2.DeleteTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteTaskMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTaskMethod(), responseObserver); } /** @@ -1237,7 +1239,7 @@ public void leaseTasks( com.google.cloud.tasks.v2beta2.LeaseTasksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getLeaseTasksMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLeaseTasksMethod(), responseObserver); } /** @@ -1260,7 +1262,8 @@ public void leaseTasks( public void acknowledgeTask( com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getAcknowledgeTaskMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAcknowledgeTaskMethod(), responseObserver); } /** @@ -1276,7 +1279,7 @@ public void acknowledgeTask( public void renewLease( com.google.cloud.tasks.v2beta2.RenewLeaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getRenewLeaseMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRenewLeaseMethod(), responseObserver); } /** @@ -1293,7 +1296,8 @@ public void renewLease( public void cancelLease( com.google.cloud.tasks.v2beta2.CancelLeaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCancelLeaseMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelLeaseMethod(), responseObserver); } /** @@ -1326,7 +1330,7 @@ public void cancelLease( public void runTask( com.google.cloud.tasks.v2beta2.RunTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getRunTaskMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunTaskMethod(), responseObserver); } @java.lang.Override @@ -1334,124 +1338,124 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListQueuesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.ListQueuesRequest, com.google.cloud.tasks.v2beta2.ListQueuesResponse>( this, METHODID_LIST_QUEUES))) .addMethod( getGetQueueMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.GetQueueRequest, com.google.cloud.tasks.v2beta2.Queue>(this, METHODID_GET_QUEUE))) .addMethod( getCreateQueueMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.CreateQueueRequest, com.google.cloud.tasks.v2beta2.Queue>(this, METHODID_CREATE_QUEUE))) .addMethod( getUpdateQueueMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.UpdateQueueRequest, com.google.cloud.tasks.v2beta2.Queue>(this, METHODID_UPDATE_QUEUE))) .addMethod( getDeleteQueueMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.DeleteQueueRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_QUEUE))) .addMethod( getPurgeQueueMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.PurgeQueueRequest, com.google.cloud.tasks.v2beta2.Queue>(this, METHODID_PURGE_QUEUE))) .addMethod( getPauseQueueMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.PauseQueueRequest, com.google.cloud.tasks.v2beta2.Queue>(this, METHODID_PAUSE_QUEUE))) .addMethod( getResumeQueueMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.ResumeQueueRequest, com.google.cloud.tasks.v2beta2.Queue>(this, METHODID_RESUME_QUEUE))) .addMethod( getGetIamPolicyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( this, METHODID_GET_IAM_POLICY))) .addMethod( getSetIamPolicyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( this, METHODID_SET_IAM_POLICY))) .addMethod( getTestIamPermissionsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>( this, METHODID_TEST_IAM_PERMISSIONS))) .addMethod( getListTasksMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.ListTasksRequest, com.google.cloud.tasks.v2beta2.ListTasksResponse>(this, METHODID_LIST_TASKS))) .addMethod( getGetTaskMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.GetTaskRequest, com.google.cloud.tasks.v2beta2.Task>(this, METHODID_GET_TASK))) .addMethod( getCreateTaskMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.CreateTaskRequest, com.google.cloud.tasks.v2beta2.Task>(this, METHODID_CREATE_TASK))) .addMethod( getDeleteTaskMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.DeleteTaskRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_TASK))) .addMethod( getLeaseTasksMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.LeaseTasksRequest, com.google.cloud.tasks.v2beta2.LeaseTasksResponse>( this, METHODID_LEASE_TASKS))) .addMethod( getAcknowledgeTaskMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest, com.google.protobuf.Empty>(this, METHODID_ACKNOWLEDGE_TASK))) .addMethod( getRenewLeaseMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.RenewLeaseRequest, com.google.cloud.tasks.v2beta2.Task>(this, METHODID_RENEW_LEASE))) .addMethod( getCancelLeaseMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.CancelLeaseRequest, com.google.cloud.tasks.v2beta2.Task>(this, METHODID_CANCEL_LEASE))) .addMethod( getRunTaskMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta2.RunTaskRequest, com.google.cloud.tasks.v2beta2.Task>(this, METHODID_RUN_TASK))) @@ -1489,7 +1493,7 @@ public void listQueues( com.google.cloud.tasks.v2beta2.ListQueuesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListQueuesMethod(), getCallOptions()), request, responseObserver); } @@ -1503,7 +1507,7 @@ public void listQueues( public void getQueue( com.google.cloud.tasks.v2beta2.GetQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetQueueMethod(), getCallOptions()), request, responseObserver); } @@ -1526,7 +1530,7 @@ public void getQueue( public void createQueue( com.google.cloud.tasks.v2beta2.CreateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateQueueMethod(), getCallOptions()), request, responseObserver); @@ -1553,7 +1557,7 @@ public void createQueue( public void updateQueue( com.google.cloud.tasks.v2beta2.UpdateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateQueueMethod(), getCallOptions()), request, responseObserver); @@ -1578,7 +1582,7 @@ public void updateQueue( public void deleteQueue( com.google.cloud.tasks.v2beta2.DeleteQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), request, responseObserver); @@ -1597,7 +1601,7 @@ public void deleteQueue( public void purgeQueue( com.google.cloud.tasks.v2beta2.PurgeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPurgeQueueMethod(), getCallOptions()), request, responseObserver); } @@ -1616,7 +1620,7 @@ public void purgeQueue( public void pauseQueue( com.google.cloud.tasks.v2beta2.PauseQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPauseQueueMethod(), getCallOptions()), request, responseObserver); } @@ -1640,7 +1644,7 @@ public void pauseQueue( public void resumeQueue( com.google.cloud.tasks.v2beta2.ResumeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getResumeQueueMethod(), getCallOptions()), request, responseObserver); @@ -1662,7 +1666,7 @@ public void resumeQueue( public void getIamPolicy( com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); @@ -1685,7 +1689,7 @@ public void getIamPolicy( public void setIamPolicy( com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); @@ -1707,7 +1711,7 @@ public void testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); @@ -1730,7 +1734,7 @@ public void listTasks( com.google.cloud.tasks.v2beta2.ListTasksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListTasksMethod(), getCallOptions()), request, responseObserver); } @@ -1744,7 +1748,7 @@ public void listTasks( public void getTask( com.google.cloud.tasks.v2beta2.GetTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetTaskMethod(), getCallOptions()), request, responseObserver); } @@ -1762,7 +1766,7 @@ public void getTask( public void createTask( com.google.cloud.tasks.v2beta2.CreateTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateTaskMethod(), getCallOptions()), request, responseObserver); } @@ -1779,7 +1783,7 @@ public void createTask( public void deleteTask( com.google.cloud.tasks.v2beta2.DeleteTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteTaskMethod(), getCallOptions()), request, responseObserver); } @@ -1812,7 +1816,7 @@ public void leaseTasks( com.google.cloud.tasks.v2beta2.LeaseTasksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getLeaseTasksMethod(), getCallOptions()), request, responseObserver); } @@ -1836,7 +1840,7 @@ public void leaseTasks( public void acknowledgeTask( com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getAcknowledgeTaskMethod(), getCallOptions()), request, responseObserver); @@ -1855,7 +1859,7 @@ public void acknowledgeTask( public void renewLease( com.google.cloud.tasks.v2beta2.RenewLeaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRenewLeaseMethod(), getCallOptions()), request, responseObserver); } @@ -1873,7 +1877,7 @@ public void renewLease( public void cancelLease( com.google.cloud.tasks.v2beta2.CancelLeaseRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCancelLeaseMethod(), getCallOptions()), request, responseObserver); @@ -1909,7 +1913,7 @@ public void cancelLease( public void runTask( com.google.cloud.tasks.v2beta2.RunTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRunTaskMethod(), getCallOptions()), request, responseObserver); } } @@ -1944,7 +1948,8 @@ protected CloudTasksBlockingStub build( */ public com.google.cloud.tasks.v2beta2.ListQueuesResponse listQueues( com.google.cloud.tasks.v2beta2.ListQueuesRequest request) { - return blockingUnaryCall(getChannel(), getListQueuesMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListQueuesMethod(), getCallOptions(), request); } /** @@ -1956,7 +1961,8 @@ public com.google.cloud.tasks.v2beta2.ListQueuesResponse listQueues( */ public com.google.cloud.tasks.v2beta2.Queue getQueue( com.google.cloud.tasks.v2beta2.GetQueueRequest request) { - return blockingUnaryCall(getChannel(), getGetQueueMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetQueueMethod(), getCallOptions(), request); } /** @@ -1977,7 +1983,8 @@ public com.google.cloud.tasks.v2beta2.Queue getQueue( */ public com.google.cloud.tasks.v2beta2.Queue createQueue( com.google.cloud.tasks.v2beta2.CreateQueueRequest request) { - return blockingUnaryCall(getChannel(), getCreateQueueMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateQueueMethod(), getCallOptions(), request); } /** @@ -2000,7 +2007,8 @@ public com.google.cloud.tasks.v2beta2.Queue createQueue( */ public com.google.cloud.tasks.v2beta2.Queue updateQueue( com.google.cloud.tasks.v2beta2.UpdateQueueRequest request) { - return blockingUnaryCall(getChannel(), getUpdateQueueMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateQueueMethod(), getCallOptions(), request); } /** @@ -2021,7 +2029,8 @@ public com.google.cloud.tasks.v2beta2.Queue updateQueue( */ public com.google.protobuf.Empty deleteQueue( com.google.cloud.tasks.v2beta2.DeleteQueueRequest request) { - return blockingUnaryCall(getChannel(), getDeleteQueueMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteQueueMethod(), getCallOptions(), request); } /** @@ -2036,7 +2045,8 @@ public com.google.protobuf.Empty deleteQueue( */ public com.google.cloud.tasks.v2beta2.Queue purgeQueue( com.google.cloud.tasks.v2beta2.PurgeQueueRequest request) { - return blockingUnaryCall(getChannel(), getPurgeQueueMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPurgeQueueMethod(), getCallOptions(), request); } /** @@ -2053,7 +2063,8 @@ public com.google.cloud.tasks.v2beta2.Queue purgeQueue( */ public com.google.cloud.tasks.v2beta2.Queue pauseQueue( com.google.cloud.tasks.v2beta2.PauseQueueRequest request) { - return blockingUnaryCall(getChannel(), getPauseQueueMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPauseQueueMethod(), getCallOptions(), request); } /** @@ -2075,7 +2086,8 @@ public com.google.cloud.tasks.v2beta2.Queue pauseQueue( */ public com.google.cloud.tasks.v2beta2.Queue resumeQueue( com.google.cloud.tasks.v2beta2.ResumeQueueRequest request) { - return blockingUnaryCall(getChannel(), getResumeQueueMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResumeQueueMethod(), getCallOptions(), request); } /** @@ -2092,7 +2104,8 @@ public com.google.cloud.tasks.v2beta2.Queue resumeQueue( * */ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return blockingUnaryCall(getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } /** @@ -2110,7 +2123,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * */ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return blockingUnaryCall(getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } /** @@ -2127,7 +2141,7 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -2146,7 +2160,8 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( */ public com.google.cloud.tasks.v2beta2.ListTasksResponse listTasks( com.google.cloud.tasks.v2beta2.ListTasksRequest request) { - return blockingUnaryCall(getChannel(), getListTasksMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTasksMethod(), getCallOptions(), request); } /** @@ -2158,7 +2173,8 @@ public com.google.cloud.tasks.v2beta2.ListTasksResponse listTasks( */ public com.google.cloud.tasks.v2beta2.Task getTask( com.google.cloud.tasks.v2beta2.GetTaskRequest request) { - return blockingUnaryCall(getChannel(), getGetTaskMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTaskMethod(), getCallOptions(), request); } /** @@ -2174,7 +2190,8 @@ public com.google.cloud.tasks.v2beta2.Task getTask( */ public com.google.cloud.tasks.v2beta2.Task createTask( com.google.cloud.tasks.v2beta2.CreateTaskRequest request) { - return blockingUnaryCall(getChannel(), getCreateTaskMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTaskMethod(), getCallOptions(), request); } /** @@ -2189,7 +2206,8 @@ public com.google.cloud.tasks.v2beta2.Task createTask( */ public com.google.protobuf.Empty deleteTask( com.google.cloud.tasks.v2beta2.DeleteTaskRequest request) { - return blockingUnaryCall(getChannel(), getDeleteTaskMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTaskMethod(), getCallOptions(), request); } /** @@ -2219,7 +2237,8 @@ public com.google.protobuf.Empty deleteTask( */ public com.google.cloud.tasks.v2beta2.LeaseTasksResponse leaseTasks( com.google.cloud.tasks.v2beta2.LeaseTasksRequest request) { - return blockingUnaryCall(getChannel(), getLeaseTasksMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLeaseTasksMethod(), getCallOptions(), request); } /** @@ -2241,7 +2260,8 @@ public com.google.cloud.tasks.v2beta2.LeaseTasksResponse leaseTasks( */ public com.google.protobuf.Empty acknowledgeTask( com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest request) { - return blockingUnaryCall(getChannel(), getAcknowledgeTaskMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAcknowledgeTaskMethod(), getCallOptions(), request); } /** @@ -2256,7 +2276,8 @@ public com.google.protobuf.Empty acknowledgeTask( */ public com.google.cloud.tasks.v2beta2.Task renewLease( com.google.cloud.tasks.v2beta2.RenewLeaseRequest request) { - return blockingUnaryCall(getChannel(), getRenewLeaseMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRenewLeaseMethod(), getCallOptions(), request); } /** @@ -2272,7 +2293,8 @@ public com.google.cloud.tasks.v2beta2.Task renewLease( */ public com.google.cloud.tasks.v2beta2.Task cancelLease( com.google.cloud.tasks.v2beta2.CancelLeaseRequest request) { - return blockingUnaryCall(getChannel(), getCancelLeaseMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelLeaseMethod(), getCallOptions(), request); } /** @@ -2304,7 +2326,8 @@ public com.google.cloud.tasks.v2beta2.Task cancelLease( */ public com.google.cloud.tasks.v2beta2.Task runTask( com.google.cloud.tasks.v2beta2.RunTaskRequest request) { - return blockingUnaryCall(getChannel(), getRunTaskMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunTaskMethod(), getCallOptions(), request); } } @@ -2338,7 +2361,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.tasks.v2beta2.ListQueuesResponse> listQueues(com.google.cloud.tasks.v2beta2.ListQueuesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListQueuesMethod(), getCallOptions()), request); } @@ -2351,7 +2374,8 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture getQueue(com.google.cloud.tasks.v2beta2.GetQueueRequest request) { - return futureUnaryCall(getChannel().newCall(getGetQueueMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetQueueMethod(), getCallOptions()), request); } /** @@ -2372,7 +2396,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture createQueue(com.google.cloud.tasks.v2beta2.CreateQueueRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateQueueMethod(), getCallOptions()), request); } @@ -2396,7 +2420,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture updateQueue(com.google.cloud.tasks.v2beta2.UpdateQueueRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateQueueMethod(), getCallOptions()), request); } @@ -2418,7 +2442,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture deleteQueue(com.google.cloud.tasks.v2beta2.DeleteQueueRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), request); } @@ -2434,7 +2458,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture purgeQueue(com.google.cloud.tasks.v2beta2.PurgeQueueRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPurgeQueueMethod(), getCallOptions()), request); } @@ -2452,7 +2476,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture pauseQueue(com.google.cloud.tasks.v2beta2.PauseQueueRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPauseQueueMethod(), getCallOptions()), request); } @@ -2475,7 +2499,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture resumeQueue(com.google.cloud.tasks.v2beta2.ResumeQueueRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getResumeQueueMethod(), getCallOptions()), request); } @@ -2494,7 +2518,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); } @@ -2514,7 +2538,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); } @@ -2533,7 +2557,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.iam.v1.TestIamPermissionsResponse> testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); } @@ -2553,7 +2577,8 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.tasks.v2beta2.ListTasksResponse> listTasks(com.google.cloud.tasks.v2beta2.ListTasksRequest request) { - return futureUnaryCall(getChannel().newCall(getListTasksMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTasksMethod(), getCallOptions()), request); } /** @@ -2565,7 +2590,8 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture getTask(com.google.cloud.tasks.v2beta2.GetTaskRequest request) { - return futureUnaryCall(getChannel().newCall(getGetTaskMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTaskMethod(), getCallOptions()), request); } /** @@ -2581,7 +2607,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture createTask(com.google.cloud.tasks.v2beta2.CreateTaskRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateTaskMethod(), getCallOptions()), request); } @@ -2597,7 +2623,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture deleteTask( com.google.cloud.tasks.v2beta2.DeleteTaskRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteTaskMethod(), getCallOptions()), request); } @@ -2629,7 +2655,7 @@ public com.google.common.util.concurrent.ListenableFuture leaseTasks(com.google.cloud.tasks.v2beta2.LeaseTasksRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getLeaseTasksMethod(), getCallOptions()), request); } @@ -2652,7 +2678,7 @@ public com.google.common.util.concurrent.ListenableFuture acknowledgeTask(com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAcknowledgeTaskMethod(), getCallOptions()), request); } @@ -2668,7 +2694,7 @@ public com.google.common.util.concurrent.ListenableFuture renewLease(com.google.cloud.tasks.v2beta2.RenewLeaseRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRenewLeaseMethod(), getCallOptions()), request); } @@ -2685,7 +2711,7 @@ public com.google.common.util.concurrent.ListenableFuture cancelLease(com.google.cloud.tasks.v2beta2.CancelLeaseRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCancelLeaseMethod(), getCallOptions()), request); } @@ -2718,7 +2744,8 @@ public com.google.common.util.concurrent.ListenableFuture runTask(com.google.cloud.tasks.v2beta2.RunTaskRequest request) { - return futureUnaryCall(getChannel().newCall(getRunTaskMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunTaskMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksGrpc.java b/grpc-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksGrpc.java index 4a438234..077b7c75 100644 --- a/grpc-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksGrpc.java +++ b/grpc-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.tasks.v2beta3; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -770,7 +765,7 @@ public void listQueues( com.google.cloud.tasks.v2beta3.ListQueuesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListQueuesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListQueuesMethod(), responseObserver); } /** @@ -783,7 +778,7 @@ public void listQueues( public void getQueue( com.google.cloud.tasks.v2beta3.GetQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetQueueMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetQueueMethod(), responseObserver); } /** @@ -805,7 +800,8 @@ public void getQueue( public void createQueue( com.google.cloud.tasks.v2beta3.CreateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateQueueMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateQueueMethod(), responseObserver); } /** @@ -829,7 +825,8 @@ public void createQueue( public void updateQueue( com.google.cloud.tasks.v2beta3.UpdateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateQueueMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateQueueMethod(), responseObserver); } /** @@ -851,7 +848,8 @@ public void updateQueue( public void deleteQueue( com.google.cloud.tasks.v2beta3.DeleteQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteQueueMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteQueueMethod(), responseObserver); } /** @@ -867,7 +865,7 @@ public void deleteQueue( public void purgeQueue( com.google.cloud.tasks.v2beta3.PurgeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPurgeQueueMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPurgeQueueMethod(), responseObserver); } /** @@ -885,7 +883,7 @@ public void purgeQueue( public void pauseQueue( com.google.cloud.tasks.v2beta3.PauseQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getPauseQueueMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPauseQueueMethod(), responseObserver); } /** @@ -908,7 +906,8 @@ public void pauseQueue( public void resumeQueue( com.google.cloud.tasks.v2beta3.ResumeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getResumeQueueMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResumeQueueMethod(), responseObserver); } /** @@ -927,7 +926,8 @@ public void resumeQueue( public void getIamPolicy( com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); } /** @@ -947,7 +947,8 @@ public void getIamPolicy( public void setIamPolicy( com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); } /** @@ -966,7 +967,8 @@ public void testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); } /** @@ -986,7 +988,7 @@ public void listTasks( com.google.cloud.tasks.v2beta3.ListTasksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListTasksMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTasksMethod(), responseObserver); } /** @@ -999,7 +1001,7 @@ public void listTasks( public void getTask( com.google.cloud.tasks.v2beta3.GetTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetTaskMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTaskMethod(), responseObserver); } /** @@ -1014,7 +1016,7 @@ public void getTask( public void createTask( com.google.cloud.tasks.v2beta3.CreateTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateTaskMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTaskMethod(), responseObserver); } /** @@ -1030,7 +1032,7 @@ public void createTask( public void deleteTask( com.google.cloud.tasks.v2beta3.DeleteTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteTaskMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTaskMethod(), responseObserver); } /** @@ -1061,7 +1063,7 @@ public void deleteTask( public void runTask( com.google.cloud.tasks.v2beta3.RunTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getRunTaskMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunTaskMethod(), responseObserver); } @java.lang.Override @@ -1069,99 +1071,99 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getListQueuesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.ListQueuesRequest, com.google.cloud.tasks.v2beta3.ListQueuesResponse>( this, METHODID_LIST_QUEUES))) .addMethod( getGetQueueMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.GetQueueRequest, com.google.cloud.tasks.v2beta3.Queue>(this, METHODID_GET_QUEUE))) .addMethod( getCreateQueueMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.CreateQueueRequest, com.google.cloud.tasks.v2beta3.Queue>(this, METHODID_CREATE_QUEUE))) .addMethod( getUpdateQueueMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.UpdateQueueRequest, com.google.cloud.tasks.v2beta3.Queue>(this, METHODID_UPDATE_QUEUE))) .addMethod( getDeleteQueueMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.DeleteQueueRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_QUEUE))) .addMethod( getPurgeQueueMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.PurgeQueueRequest, com.google.cloud.tasks.v2beta3.Queue>(this, METHODID_PURGE_QUEUE))) .addMethod( getPauseQueueMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.PauseQueueRequest, com.google.cloud.tasks.v2beta3.Queue>(this, METHODID_PAUSE_QUEUE))) .addMethod( getResumeQueueMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.ResumeQueueRequest, com.google.cloud.tasks.v2beta3.Queue>(this, METHODID_RESUME_QUEUE))) .addMethod( getGetIamPolicyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( this, METHODID_GET_IAM_POLICY))) .addMethod( getSetIamPolicyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( this, METHODID_SET_IAM_POLICY))) .addMethod( getTestIamPermissionsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>( this, METHODID_TEST_IAM_PERMISSIONS))) .addMethod( getListTasksMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.ListTasksRequest, com.google.cloud.tasks.v2beta3.ListTasksResponse>(this, METHODID_LIST_TASKS))) .addMethod( getGetTaskMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.GetTaskRequest, com.google.cloud.tasks.v2beta3.Task>(this, METHODID_GET_TASK))) .addMethod( getCreateTaskMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.CreateTaskRequest, com.google.cloud.tasks.v2beta3.Task>(this, METHODID_CREATE_TASK))) .addMethod( getDeleteTaskMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.DeleteTaskRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_TASK))) .addMethod( getRunTaskMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.tasks.v2beta3.RunTaskRequest, com.google.cloud.tasks.v2beta3.Task>(this, METHODID_RUN_TASK))) @@ -1199,7 +1201,7 @@ public void listQueues( com.google.cloud.tasks.v2beta3.ListQueuesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListQueuesMethod(), getCallOptions()), request, responseObserver); } @@ -1213,7 +1215,7 @@ public void listQueues( public void getQueue( com.google.cloud.tasks.v2beta3.GetQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetQueueMethod(), getCallOptions()), request, responseObserver); } @@ -1236,7 +1238,7 @@ public void getQueue( public void createQueue( com.google.cloud.tasks.v2beta3.CreateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateQueueMethod(), getCallOptions()), request, responseObserver); @@ -1263,7 +1265,7 @@ public void createQueue( public void updateQueue( com.google.cloud.tasks.v2beta3.UpdateQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateQueueMethod(), getCallOptions()), request, responseObserver); @@ -1288,7 +1290,7 @@ public void updateQueue( public void deleteQueue( com.google.cloud.tasks.v2beta3.DeleteQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), request, responseObserver); @@ -1307,7 +1309,7 @@ public void deleteQueue( public void purgeQueue( com.google.cloud.tasks.v2beta3.PurgeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPurgeQueueMethod(), getCallOptions()), request, responseObserver); } @@ -1326,7 +1328,7 @@ public void purgeQueue( public void pauseQueue( com.google.cloud.tasks.v2beta3.PauseQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getPauseQueueMethod(), getCallOptions()), request, responseObserver); } @@ -1350,7 +1352,7 @@ public void pauseQueue( public void resumeQueue( com.google.cloud.tasks.v2beta3.ResumeQueueRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getResumeQueueMethod(), getCallOptions()), request, responseObserver); @@ -1372,7 +1374,7 @@ public void resumeQueue( public void getIamPolicy( com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); @@ -1395,7 +1397,7 @@ public void getIamPolicy( public void setIamPolicy( com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); @@ -1417,7 +1419,7 @@ public void testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); @@ -1440,7 +1442,7 @@ public void listTasks( com.google.cloud.tasks.v2beta3.ListTasksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListTasksMethod(), getCallOptions()), request, responseObserver); } @@ -1454,7 +1456,7 @@ public void listTasks( public void getTask( com.google.cloud.tasks.v2beta3.GetTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetTaskMethod(), getCallOptions()), request, responseObserver); } @@ -1470,7 +1472,7 @@ public void getTask( public void createTask( com.google.cloud.tasks.v2beta3.CreateTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateTaskMethod(), getCallOptions()), request, responseObserver); } @@ -1487,7 +1489,7 @@ public void createTask( public void deleteTask( com.google.cloud.tasks.v2beta3.DeleteTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteTaskMethod(), getCallOptions()), request, responseObserver); } @@ -1519,7 +1521,7 @@ public void deleteTask( public void runTask( com.google.cloud.tasks.v2beta3.RunTaskRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRunTaskMethod(), getCallOptions()), request, responseObserver); } } @@ -1554,7 +1556,8 @@ protected CloudTasksBlockingStub build( */ public com.google.cloud.tasks.v2beta3.ListQueuesResponse listQueues( com.google.cloud.tasks.v2beta3.ListQueuesRequest request) { - return blockingUnaryCall(getChannel(), getListQueuesMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListQueuesMethod(), getCallOptions(), request); } /** @@ -1566,7 +1569,8 @@ public com.google.cloud.tasks.v2beta3.ListQueuesResponse listQueues( */ public com.google.cloud.tasks.v2beta3.Queue getQueue( com.google.cloud.tasks.v2beta3.GetQueueRequest request) { - return blockingUnaryCall(getChannel(), getGetQueueMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetQueueMethod(), getCallOptions(), request); } /** @@ -1587,7 +1591,8 @@ public com.google.cloud.tasks.v2beta3.Queue getQueue( */ public com.google.cloud.tasks.v2beta3.Queue createQueue( com.google.cloud.tasks.v2beta3.CreateQueueRequest request) { - return blockingUnaryCall(getChannel(), getCreateQueueMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateQueueMethod(), getCallOptions(), request); } /** @@ -1610,7 +1615,8 @@ public com.google.cloud.tasks.v2beta3.Queue createQueue( */ public com.google.cloud.tasks.v2beta3.Queue updateQueue( com.google.cloud.tasks.v2beta3.UpdateQueueRequest request) { - return blockingUnaryCall(getChannel(), getUpdateQueueMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateQueueMethod(), getCallOptions(), request); } /** @@ -1631,7 +1637,8 @@ public com.google.cloud.tasks.v2beta3.Queue updateQueue( */ public com.google.protobuf.Empty deleteQueue( com.google.cloud.tasks.v2beta3.DeleteQueueRequest request) { - return blockingUnaryCall(getChannel(), getDeleteQueueMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteQueueMethod(), getCallOptions(), request); } /** @@ -1646,7 +1653,8 @@ public com.google.protobuf.Empty deleteQueue( */ public com.google.cloud.tasks.v2beta3.Queue purgeQueue( com.google.cloud.tasks.v2beta3.PurgeQueueRequest request) { - return blockingUnaryCall(getChannel(), getPurgeQueueMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPurgeQueueMethod(), getCallOptions(), request); } /** @@ -1663,7 +1671,8 @@ public com.google.cloud.tasks.v2beta3.Queue purgeQueue( */ public com.google.cloud.tasks.v2beta3.Queue pauseQueue( com.google.cloud.tasks.v2beta3.PauseQueueRequest request) { - return blockingUnaryCall(getChannel(), getPauseQueueMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPauseQueueMethod(), getCallOptions(), request); } /** @@ -1685,7 +1694,8 @@ public com.google.cloud.tasks.v2beta3.Queue pauseQueue( */ public com.google.cloud.tasks.v2beta3.Queue resumeQueue( com.google.cloud.tasks.v2beta3.ResumeQueueRequest request) { - return blockingUnaryCall(getChannel(), getResumeQueueMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResumeQueueMethod(), getCallOptions(), request); } /** @@ -1702,7 +1712,8 @@ public com.google.cloud.tasks.v2beta3.Queue resumeQueue( * */ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return blockingUnaryCall(getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } /** @@ -1720,7 +1731,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * */ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return blockingUnaryCall(getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } /** @@ -1737,7 +1749,7 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } @@ -1756,7 +1768,8 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( */ public com.google.cloud.tasks.v2beta3.ListTasksResponse listTasks( com.google.cloud.tasks.v2beta3.ListTasksRequest request) { - return blockingUnaryCall(getChannel(), getListTasksMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTasksMethod(), getCallOptions(), request); } /** @@ -1768,7 +1781,8 @@ public com.google.cloud.tasks.v2beta3.ListTasksResponse listTasks( */ public com.google.cloud.tasks.v2beta3.Task getTask( com.google.cloud.tasks.v2beta3.GetTaskRequest request) { - return blockingUnaryCall(getChannel(), getGetTaskMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTaskMethod(), getCallOptions(), request); } /** @@ -1782,7 +1796,8 @@ public com.google.cloud.tasks.v2beta3.Task getTask( */ public com.google.cloud.tasks.v2beta3.Task createTask( com.google.cloud.tasks.v2beta3.CreateTaskRequest request) { - return blockingUnaryCall(getChannel(), getCreateTaskMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTaskMethod(), getCallOptions(), request); } /** @@ -1797,7 +1812,8 @@ public com.google.cloud.tasks.v2beta3.Task createTask( */ public com.google.protobuf.Empty deleteTask( com.google.cloud.tasks.v2beta3.DeleteTaskRequest request) { - return blockingUnaryCall(getChannel(), getDeleteTaskMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTaskMethod(), getCallOptions(), request); } /** @@ -1827,7 +1843,8 @@ public com.google.protobuf.Empty deleteTask( */ public com.google.cloud.tasks.v2beta3.Task runTask( com.google.cloud.tasks.v2beta3.RunTaskRequest request) { - return blockingUnaryCall(getChannel(), getRunTaskMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunTaskMethod(), getCallOptions(), request); } } @@ -1861,7 +1878,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.tasks.v2beta3.ListQueuesResponse> listQueues(com.google.cloud.tasks.v2beta3.ListQueuesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListQueuesMethod(), getCallOptions()), request); } @@ -1874,7 +1891,8 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture getQueue(com.google.cloud.tasks.v2beta3.GetQueueRequest request) { - return futureUnaryCall(getChannel().newCall(getGetQueueMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetQueueMethod(), getCallOptions()), request); } /** @@ -1895,7 +1913,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture createQueue(com.google.cloud.tasks.v2beta3.CreateQueueRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateQueueMethod(), getCallOptions()), request); } @@ -1919,7 +1937,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture updateQueue(com.google.cloud.tasks.v2beta3.UpdateQueueRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateQueueMethod(), getCallOptions()), request); } @@ -1941,7 +1959,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture deleteQueue(com.google.cloud.tasks.v2beta3.DeleteQueueRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), request); } @@ -1957,7 +1975,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture purgeQueue(com.google.cloud.tasks.v2beta3.PurgeQueueRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPurgeQueueMethod(), getCallOptions()), request); } @@ -1975,7 +1993,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture pauseQueue(com.google.cloud.tasks.v2beta3.PauseQueueRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPauseQueueMethod(), getCallOptions()), request); } @@ -1998,7 +2016,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture resumeQueue(com.google.cloud.tasks.v2beta3.ResumeQueueRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getResumeQueueMethod(), getCallOptions()), request); } @@ -2017,7 +2035,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); } @@ -2037,7 +2055,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); } @@ -2056,7 +2074,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.iam.v1.TestIamPermissionsResponse> testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); } @@ -2076,7 +2094,8 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.tasks.v2beta3.ListTasksResponse> listTasks(com.google.cloud.tasks.v2beta3.ListTasksRequest request) { - return futureUnaryCall(getChannel().newCall(getListTasksMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTasksMethod(), getCallOptions()), request); } /** @@ -2088,7 +2107,8 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture getTask(com.google.cloud.tasks.v2beta3.GetTaskRequest request) { - return futureUnaryCall(getChannel().newCall(getGetTaskMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTaskMethod(), getCallOptions()), request); } /** @@ -2102,7 +2122,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture createTask(com.google.cloud.tasks.v2beta3.CreateTaskRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateTaskMethod(), getCallOptions()), request); } @@ -2118,7 +2138,7 @@ protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOption */ public com.google.common.util.concurrent.ListenableFuture deleteTask( com.google.cloud.tasks.v2beta3.DeleteTaskRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteTaskMethod(), getCallOptions()), request); } @@ -2149,7 +2169,8 @@ public com.google.common.util.concurrent.ListenableFuture runTask(com.google.cloud.tasks.v2beta3.RunTaskRequest request) { - return futureUnaryCall(getChannel().newCall(getRunTaskMethod(), getCallOptions()), request); + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunTaskMethod(), getCallOptions()), request); } } diff --git a/synth.metadata b/synth.metadata index f143b307..c9cf3cd8 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "03b9bdb4b9e53e34a70e1c499d04d4778c969c53" + "sha": "b298148e0a8a6755eb1e47d3b9f4857df3c13105" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "3befd26ca55723d3e8111909331eac1249837987", - "internalRef": "360805639" + "sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89", + "internalRef": "361377784" } }, { From 305bc5ce1f9da4156fcb4f93c7c31adbbfc4361b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 8 Mar 2021 20:28:02 +0000 Subject: [PATCH 029/401] chore: release 1.31.2-SNAPSHOT (#375) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 7027836a..1fc14e0d 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 1.31.1 + 1.31.2-SNAPSHOT pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.87.1 + 0.87.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.87.1 + 0.87.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.87.1 + 0.87.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 1.31.1 + 1.31.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.87.1 + 0.87.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.31.1 + 1.31.2-SNAPSHOT com.google.cloud google-cloud-tasks - 1.31.1 + 1.31.2-SNAPSHOT
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index d22d8c88..6864096a 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 1.31.1 + 1.31.2-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.31.1 + 1.31.2-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index b378ce07..45fc9b5a 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.31.1 + 1.31.2-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.31.1 + 1.31.2-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index e32134df..a53f376e 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.87.1 + 0.87.2-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.31.1 + 1.31.2-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 8288a7ff..c3fc4ecd 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.87.1 + 0.87.2-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.31.1 + 1.31.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index e0a735e1..fcacc14a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.31.1 + 1.31.2-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.87.1 + 0.87.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.87.1 + 0.87.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 1.31.1 + 1.31.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.87.1 + 0.87.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.87.1 + 0.87.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.31.1 + 1.31.2-SNAPSHOT com.google.cloud google-cloud-tasks - 1.31.1 + 1.31.2-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 55c1b3b5..df2b6353 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.31.1 + 1.31.2-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.31.1 + 1.31.2-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index ed21149e..831b895f 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.87.1 + 0.87.2-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.31.1 + 1.31.2-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 9bf16f48..79f30999 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.87.1 + 0.87.2-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.31.1 + 1.31.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index bc688acf..47c9ea5e 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.87.1:0.87.1 -proto-google-cloud-tasks-v2beta2:0.87.1:0.87.1 -proto-google-cloud-tasks-v2:1.31.1:1.31.1 -grpc-google-cloud-tasks-v2beta3:0.87.1:0.87.1 -grpc-google-cloud-tasks-v2beta2:0.87.1:0.87.1 -grpc-google-cloud-tasks-v2:1.31.1:1.31.1 -google-cloud-tasks:1.31.1:1.31.1 \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.87.1:0.87.2-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.87.1:0.87.2-SNAPSHOT +proto-google-cloud-tasks-v2:1.31.1:1.31.2-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.87.1:0.87.2-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.87.1:0.87.2-SNAPSHOT +grpc-google-cloud-tasks-v2:1.31.1:1.31.2-SNAPSHOT +google-cloud-tasks:1.31.1:1.31.2-SNAPSHOT \ No newline at end of file From e369a62250f84bdda2a0b6e4fbb0ba177a2f2175 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 9 Mar 2021 03:40:03 +0100 Subject: [PATCH 030/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v1.31.1 (#376) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `1.31.0` -> `1.31.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.31.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.31.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.31.1/compatibility-slim/1.31.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.31.1/confidence-slim/1.31.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 5bd42b68..01d62e36 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 1.31.0 + 1.31.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 77d244f7..ea1c61e0 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 1.31.0 + 1.31.1 From efac3f469401c3093a77b4faf21908ad41f84a49 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 9 Mar 2021 02:46:14 +0000 Subject: [PATCH 031/401] chore: release 1.32.0 (#385) :robot: I have created a release \*beep\* \*boop\* --- ## [1.32.0](https://www.github.com/googleapis/java-tasks/compare/v1.31.1...v1.32.0) (2021-03-09) ### Features * **generator:** update protoc to v3.15.3 ([#377](https://www.github.com/googleapis/java-tasks/issues/377)) ([5c71783](https://www.github.com/googleapis/java-tasks/commit/5c71783e654d8b0a6c09182909a3113fab786b5b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 59ce287d..770e23be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.32.0](https://www.github.com/googleapis/java-tasks/compare/v1.31.1...v1.32.0) (2021-03-09) + + +### Features + +* **generator:** update protoc to v3.15.3 ([#377](https://www.github.com/googleapis/java-tasks/issues/377)) ([5c71783](https://www.github.com/googleapis/java-tasks/commit/5c71783e654d8b0a6c09182909a3113fab786b5b)) + ### [1.31.1](https://www.github.com/googleapis/java-tasks/compare/v1.31.0...v1.31.1) (2021-02-25) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 1fc14e0d..ad13d919 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 1.31.2-SNAPSHOT + 1.32.0 pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.87.2-SNAPSHOT + 0.88.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.87.2-SNAPSHOT + 0.88.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.87.2-SNAPSHOT + 0.88.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.31.2-SNAPSHOT + 1.32.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.87.2-SNAPSHOT + 0.88.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.31.2-SNAPSHOT + 1.32.0 com.google.cloud google-cloud-tasks - 1.31.2-SNAPSHOT + 1.32.0 diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 6864096a..c505fac8 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 1.31.2-SNAPSHOT + 1.32.0 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.31.2-SNAPSHOT + 1.32.0 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 45fc9b5a..0d78a59b 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.31.2-SNAPSHOT + 1.32.0 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.31.2-SNAPSHOT + 1.32.0 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index a53f376e..6050be7b 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.87.2-SNAPSHOT + 0.88.0 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.31.2-SNAPSHOT + 1.32.0 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index c3fc4ecd..9f3c30c0 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.87.2-SNAPSHOT + 0.88.0 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.31.2-SNAPSHOT + 1.32.0 diff --git a/pom.xml b/pom.xml index fcacc14a..91e08351 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.31.2-SNAPSHOT + 1.32.0 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.87.2-SNAPSHOT + 0.88.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.87.2-SNAPSHOT + 0.88.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.31.2-SNAPSHOT + 1.32.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.87.2-SNAPSHOT + 0.88.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.87.2-SNAPSHOT + 0.88.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.31.2-SNAPSHOT + 1.32.0 com.google.cloud google-cloud-tasks - 1.31.2-SNAPSHOT + 1.32.0 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index df2b6353..f215e3ad 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.31.2-SNAPSHOT + 1.32.0 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.31.2-SNAPSHOT + 1.32.0 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 831b895f..ed620625 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.87.2-SNAPSHOT + 0.88.0 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.31.2-SNAPSHOT + 1.32.0 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 79f30999..65c0be71 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.87.2-SNAPSHOT + 0.88.0 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.31.2-SNAPSHOT + 1.32.0 diff --git a/versions.txt b/versions.txt index 47c9ea5e..1f07540c 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.87.1:0.87.2-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.87.1:0.87.2-SNAPSHOT -proto-google-cloud-tasks-v2:1.31.1:1.31.2-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.87.1:0.87.2-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.87.1:0.87.2-SNAPSHOT -grpc-google-cloud-tasks-v2:1.31.1:1.31.2-SNAPSHOT -google-cloud-tasks:1.31.1:1.31.2-SNAPSHOT \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.88.0:0.88.0 +proto-google-cloud-tasks-v2beta2:0.88.0:0.88.0 +proto-google-cloud-tasks-v2:1.32.0:1.32.0 +grpc-google-cloud-tasks-v2beta3:0.88.0:0.88.0 +grpc-google-cloud-tasks-v2beta2:0.88.0:0.88.0 +grpc-google-cloud-tasks-v2:1.32.0:1.32.0 +google-cloud-tasks:1.32.0:1.32.0 \ No newline at end of file From 4a67c54a75b6b87ee1dd9943508bd8d89b192645 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 9 Mar 2021 21:44:20 +0100 Subject: [PATCH 032/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 (#388) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `0.20.0` -> `0.20.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.1/compatibility-slim/0.20.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.1/confidence-slim/0.20.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v0.20.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0201-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0200v0201-2021-03-09) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.20.0...v0.20.1)
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 91e08351..196a9429 100644 --- a/pom.xml +++ b/pom.xml @@ -106,7 +106,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.20.0 + 0.20.1 pom import From 3ffde2787a5b6df57f775c882a696fd59d64b459 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 9 Mar 2021 13:10:11 -0800 Subject: [PATCH 033/401] chore: regenerate README (#389) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-03-09 20:49:15,519 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-tasks/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-03-09 20:49:16,389 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/c4819a67-b64a-4738-80cc-3f1dafe2fc99/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 1a5b21f4..f6c28d3d 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "5c71783e654d8b0a6c09182909a3113fab786b5b" + "sha": "4a67c54a75b6b87ee1dd9943508bd8d89b192645" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8c5628b86cfa8386de7b8fc1675e6b528b552d57" + "sha": "e5fa6d93e42918dd4a000a80b92be23f5f4c6ac7" } } ] diff --git a/README.md b/README.md index c463e77c..86e62b3c 100644 --- a/README.md +++ b/README.md @@ -17,18 +17,18 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 1.31.1 + 1.32.0 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-tasks:1.31.1' +compile 'com.google.cloud:google-cloud-tasks:1.32.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.31.1" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.32.0" ``` ## Authentication From aa88f7390ca6ee1821d1c82db437b3fa430037c7 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 10 Mar 2021 16:10:44 -0800 Subject: [PATCH 034/401] build(java): update autorelease title check in response to the new multi release branch changes (#390) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/b6cdd3f5-1dc3-4321-8fc9-bc52d8024ae0/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/0b064d767537e0675fc053e53fca473c5c701fb8 --- .github/workflows/auto-release.yaml | 4 ++-- synth.metadata | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 7c8816a7..9b4fd4d8 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -16,8 +16,8 @@ jobs: return; } - // only approve PRs like "chore(master): release " - if ( !context.payload.pull_request.title.startsWith("chore(master): release") ) { + // only approve PRs like "chore: release " + if ( !context.payload.pull_request.title.startsWith("chore: release") ) { return; } diff --git a/synth.metadata b/synth.metadata index c9cf3cd8..1d75e6dc 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "b298148e0a8a6755eb1e47d3b9f4857df3c13105" + "sha": "3ffde2787a5b6df57f775c882a696fd59d64b459" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "d0bdade9a962042dc0f770cf631086f3db59b5b0" + "sha": "0b064d767537e0675fc053e53fca473c5c701fb8" } } ], From 32e974da4f99769e9c8d4383a5dffb56cdb27a44 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 11 Mar 2021 05:20:09 +0000 Subject: [PATCH 035/401] chore: release 1.32.1-SNAPSHOT (#386) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index ad13d919..1d7fe85c 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 1.32.0 + 1.32.1-SNAPSHOT pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.0 + 0.88.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.0 + 0.88.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.0 + 0.88.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.0 + 1.32.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.0 + 0.88.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.0 + 1.32.1-SNAPSHOT com.google.cloud google-cloud-tasks - 1.32.0 + 1.32.1-SNAPSHOT
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index c505fac8..74dffc7c 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 1.32.0 + 1.32.1-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.32.0 + 1.32.1-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 0d78a59b..a1ca635d 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.0 + 1.32.1-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.32.0 + 1.32.1-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 6050be7b..0d49aadc 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.0 + 0.88.1-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.32.0 + 1.32.1-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 9f3c30c0..05e45d7c 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.0 + 0.88.1-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.32.0 + 1.32.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 196a9429..f8b53f33 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.32.0 + 1.32.1-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.0 + 0.88.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.0 + 0.88.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.0 + 1.32.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.0 + 0.88.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.0 + 0.88.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.0 + 1.32.1-SNAPSHOT com.google.cloud google-cloud-tasks - 1.32.0 + 1.32.1-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index f215e3ad..ec38d570 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.0 + 1.32.1-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.32.0 + 1.32.1-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index ed620625..22a471c8 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.0 + 0.88.1-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.32.0 + 1.32.1-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 65c0be71..4c8a0607 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.0 + 0.88.1-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.32.0 + 1.32.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 1f07540c..7e650570 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.88.0:0.88.0 -proto-google-cloud-tasks-v2beta2:0.88.0:0.88.0 -proto-google-cloud-tasks-v2:1.32.0:1.32.0 -grpc-google-cloud-tasks-v2beta3:0.88.0:0.88.0 -grpc-google-cloud-tasks-v2beta2:0.88.0:0.88.0 -grpc-google-cloud-tasks-v2:1.32.0:1.32.0 -google-cloud-tasks:1.32.0:1.32.0 \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.88.0:0.88.1-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.88.0:0.88.1-SNAPSHOT +proto-google-cloud-tasks-v2:1.32.0:1.32.1-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.88.0:0.88.1-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.88.0:0.88.1-SNAPSHOT +grpc-google-cloud-tasks-v2:1.32.0:1.32.1-SNAPSHOT +google-cloud-tasks:1.32.0:1.32.1-SNAPSHOT \ No newline at end of file From ba6e4412f44920755eebbf2eb38a2e923df2a5f3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 11 Mar 2021 05:26:07 +0000 Subject: [PATCH 036/401] chore: release 1.32.1 (#391) :robot: I have created a release \*beep\* \*boop\* --- ### [1.32.1](https://www.github.com/googleapis/java-tasks/compare/v1.32.0...v1.32.1) (2021-03-11) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 ([#388](https://www.github.com/googleapis/java-tasks/issues/388)) ([4a67c54](https://www.github.com/googleapis/java-tasks/commit/4a67c54a75b6b87ee1dd9943508bd8d89b192645)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 770e23be..2cde27c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.32.1](https://www.github.com/googleapis/java-tasks/compare/v1.32.0...v1.32.1) (2021-03-11) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 ([#388](https://www.github.com/googleapis/java-tasks/issues/388)) ([4a67c54](https://www.github.com/googleapis/java-tasks/commit/4a67c54a75b6b87ee1dd9943508bd8d89b192645)) + ## [1.32.0](https://www.github.com/googleapis/java-tasks/compare/v1.31.1...v1.32.0) (2021-03-09) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 1d7fe85c..ca4cf13b 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 1.32.1-SNAPSHOT + 1.32.1 pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.1-SNAPSHOT + 0.88.1 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.1-SNAPSHOT + 0.88.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.1-SNAPSHOT + 0.88.1 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.1-SNAPSHOT + 1.32.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.1-SNAPSHOT + 0.88.1 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.1-SNAPSHOT + 1.32.1 com.google.cloud google-cloud-tasks - 1.32.1-SNAPSHOT + 1.32.1 diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 74dffc7c..b03c24e5 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 1.32.1-SNAPSHOT + 1.32.1 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.32.1-SNAPSHOT + 1.32.1 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index a1ca635d..42a0ab64 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.1-SNAPSHOT + 1.32.1 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.32.1-SNAPSHOT + 1.32.1 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 0d49aadc..c59b8730 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.1-SNAPSHOT + 0.88.1 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.32.1-SNAPSHOT + 1.32.1 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 05e45d7c..dcd178ec 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.1-SNAPSHOT + 0.88.1 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.32.1-SNAPSHOT + 1.32.1 diff --git a/pom.xml b/pom.xml index f8b53f33..e3562624 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.32.1-SNAPSHOT + 1.32.1 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.1-SNAPSHOT + 0.88.1 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.1-SNAPSHOT + 0.88.1 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.1-SNAPSHOT + 1.32.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.1-SNAPSHOT + 0.88.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.1-SNAPSHOT + 0.88.1 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.1-SNAPSHOT + 1.32.1 com.google.cloud google-cloud-tasks - 1.32.1-SNAPSHOT + 1.32.1 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index ec38d570..643a51fb 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.1-SNAPSHOT + 1.32.1 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.32.1-SNAPSHOT + 1.32.1 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 22a471c8..287a6e54 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.1-SNAPSHOT + 0.88.1 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.32.1-SNAPSHOT + 1.32.1 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 4c8a0607..47cf5370 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.1-SNAPSHOT + 0.88.1 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.32.1-SNAPSHOT + 1.32.1 diff --git a/versions.txt b/versions.txt index 7e650570..70a50456 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.88.0:0.88.1-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.88.0:0.88.1-SNAPSHOT -proto-google-cloud-tasks-v2:1.32.0:1.32.1-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.88.0:0.88.1-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.88.0:0.88.1-SNAPSHOT -grpc-google-cloud-tasks-v2:1.32.0:1.32.1-SNAPSHOT -google-cloud-tasks:1.32.0:1.32.1-SNAPSHOT \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.88.1:0.88.1 +proto-google-cloud-tasks-v2beta2:0.88.1:0.88.1 +proto-google-cloud-tasks-v2:1.32.1:1.32.1 +grpc-google-cloud-tasks-v2beta3:0.88.1:0.88.1 +grpc-google-cloud-tasks-v2beta2:0.88.1:0.88.1 +grpc-google-cloud-tasks-v2:1.32.1:1.32.1 +google-cloud-tasks:1.32.1:1.32.1 \ No newline at end of file From 02a7f9025917808381de4ee1f259fd2bf25151e9 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 15 Mar 2021 08:28:24 -0700 Subject: [PATCH 037/401] chore: update java microgenerator to 1.0.2 Adds request initialization to sample code (#394) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/2c9cca4a-366c-4c22-a332-9048b732edf6/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 362856902 Source-Link: https://github.com/googleapis/googleapis/commit/1305ca41d554eb0725237561e34129373bb8cbc1 --- .../cloud/tasks/v2/CloudTasksClient.java | 13 +++ .../cloud/tasks/v2beta2/CloudTasksClient.java | 14 +++ .../cloud/tasks/v2beta3/CloudTasksClient.java | 14 +++ .../cloud/tasks/v2/MockCloudTasksImpl.java | 70 ++++++++------- .../tasks/v2beta2/MockCloudTasksImpl.java | 90 ++++++++++--------- .../tasks/v2beta3/MockCloudTasksImpl.java | 70 ++++++++------- synth.metadata | 6 +- 7 files changed, 170 insertions(+), 107 deletions(-) diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java index da25a4de..0ca751a7 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java @@ -276,6 +276,13 @@ public final UnaryCallable listQueue * *
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
+   *   ListQueuesRequest request =
+   *       ListQueuesRequest.newBuilder()
+   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
    *   while (true) {
    *     ListQueuesResponse response = cloudTasksClient.listQueuesCallable().call(request);
    *     for (Queue element : response.getResponsesList()) {
@@ -1665,6 +1672,12 @@ public final UnaryCallable listTasksPa
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
+   *   ListTasksRequest request =
+   *       ListTasksRequest.newBuilder()
+   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
    *   while (true) {
    *     ListTasksResponse response = cloudTasksClient.listTasksCallable().call(request);
    *     for (Task element : response.getResponsesList()) {
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java
index 0cc31811..e23cf997 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java
@@ -281,6 +281,14 @@ public final UnaryCallable listQueue
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
+   *   ListQueuesRequest request =
+   *       ListQueuesRequest.newBuilder()
+   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
    *   while (true) {
    *     ListQueuesResponse response = cloudTasksClient.listQueuesCallable().call(request);
    *     for (Queue element : response.getResponsesList()) {
@@ -1676,6 +1684,12 @@ public final UnaryCallable listTasksPa
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
+   *   ListTasksRequest request =
+   *       ListTasksRequest.newBuilder()
+   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
    *   while (true) {
    *     ListTasksResponse response = cloudTasksClient.listTasksCallable().call(request);
    *     for (Task element : response.getResponsesList()) {
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java
index 00325a4f..2406492f 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java
@@ -279,6 +279,14 @@ public final UnaryCallable listQueue
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
+   *   ListQueuesRequest request =
+   *       ListQueuesRequest.newBuilder()
+   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setReadMask(FieldMask.newBuilder().build())
+   *           .build();
    *   while (true) {
    *     ListQueuesResponse response = cloudTasksClient.listQueuesCallable().call(request);
    *     for (Queue element : response.getResponsesList()) {
@@ -1674,6 +1682,12 @@ public final UnaryCallable listTasksPa
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
+   *   ListTasksRequest request =
+   *       ListTasksRequest.newBuilder()
+   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
    *   while (true) {
    *     ListTasksResponse response = cloudTasksClient.listTasksCallable().call(request);
    *     for (Task element : response.getResponsesList()) {
diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java
index 4df154c6..3e5a4ac0 100644
--- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java
+++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java
@@ -67,7 +67,7 @@ public void reset() {
   @Override
   public void listQueues(
       ListQueuesRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof ListQueuesResponse) {
       requests.add(request);
       responseObserver.onNext(((ListQueuesResponse) response));
@@ -79,7 +79,7 @@ public void listQueues(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method ListQueues, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   ListQueuesResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -88,7 +88,7 @@ public void listQueues(
   @Override
   public void getQueue(
       GetQueueRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof com.google.cloud.tasks.v2.Queue) {
       requests.add(request);
       responseObserver.onNext(((com.google.cloud.tasks.v2.Queue) response));
@@ -100,7 +100,7 @@ public void getQueue(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method GetQueue, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   com.google.cloud.tasks.v2.Queue.class.getName(),
                   Exception.class.getName())));
     }
@@ -110,7 +110,7 @@ public void getQueue(
   public void createQueue(
       CreateQueueRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof com.google.cloud.tasks.v2.Queue) {
       requests.add(request);
       responseObserver.onNext(((com.google.cloud.tasks.v2.Queue) response));
@@ -122,7 +122,7 @@ public void createQueue(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method CreateQueue, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   com.google.cloud.tasks.v2.Queue.class.getName(),
                   Exception.class.getName())));
     }
@@ -132,7 +132,7 @@ public void createQueue(
   public void updateQueue(
       UpdateQueueRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof com.google.cloud.tasks.v2.Queue) {
       requests.add(request);
       responseObserver.onNext(((com.google.cloud.tasks.v2.Queue) response));
@@ -144,7 +144,7 @@ public void updateQueue(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method UpdateQueue, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   com.google.cloud.tasks.v2.Queue.class.getName(),
                   Exception.class.getName())));
     }
@@ -152,7 +152,7 @@ public void updateQueue(
 
   @Override
   public void deleteQueue(DeleteQueueRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Empty) {
       requests.add(request);
       responseObserver.onNext(((Empty) response));
@@ -164,7 +164,7 @@ public void deleteQueue(DeleteQueueRequest request, StreamObserver respon
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method DeleteQueue, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Empty.class.getName(),
                   Exception.class.getName())));
     }
@@ -173,7 +173,7 @@ public void deleteQueue(DeleteQueueRequest request, StreamObserver respon
   @Override
   public void purgeQueue(
       PurgeQueueRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof com.google.cloud.tasks.v2.Queue) {
       requests.add(request);
       responseObserver.onNext(((com.google.cloud.tasks.v2.Queue) response));
@@ -185,7 +185,7 @@ public void purgeQueue(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method PurgeQueue, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   com.google.cloud.tasks.v2.Queue.class.getName(),
                   Exception.class.getName())));
     }
@@ -194,7 +194,7 @@ public void purgeQueue(
   @Override
   public void pauseQueue(
       PauseQueueRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof com.google.cloud.tasks.v2.Queue) {
       requests.add(request);
       responseObserver.onNext(((com.google.cloud.tasks.v2.Queue) response));
@@ -206,7 +206,7 @@ public void pauseQueue(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method PauseQueue, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   com.google.cloud.tasks.v2.Queue.class.getName(),
                   Exception.class.getName())));
     }
@@ -216,7 +216,7 @@ public void pauseQueue(
   public void resumeQueue(
       ResumeQueueRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof com.google.cloud.tasks.v2.Queue) {
       requests.add(request);
       responseObserver.onNext(((com.google.cloud.tasks.v2.Queue) response));
@@ -228,7 +228,7 @@ public void resumeQueue(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method ResumeQueue, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   com.google.cloud.tasks.v2.Queue.class.getName(),
                   Exception.class.getName())));
     }
@@ -236,7 +236,7 @@ public void resumeQueue(
 
   @Override
   public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Policy) {
       requests.add(request);
       responseObserver.onNext(((Policy) response));
@@ -248,7 +248,7 @@ public void getIamPolicy(GetIamPolicyRequest request, StreamObserver res
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method GetIamPolicy, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Policy.class.getName(),
                   Exception.class.getName())));
     }
@@ -256,7 +256,7 @@ public void getIamPolicy(GetIamPolicyRequest request, StreamObserver res
 
   @Override
   public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Policy) {
       requests.add(request);
       responseObserver.onNext(((Policy) response));
@@ -268,7 +268,7 @@ public void setIamPolicy(SetIamPolicyRequest request, StreamObserver res
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method SetIamPolicy, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Policy.class.getName(),
                   Exception.class.getName())));
     }
@@ -278,7 +278,7 @@ public void setIamPolicy(SetIamPolicyRequest request, StreamObserver res
   public void testIamPermissions(
       TestIamPermissionsRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof TestIamPermissionsResponse) {
       requests.add(request);
       responseObserver.onNext(((TestIamPermissionsResponse) response));
@@ -290,7 +290,7 @@ public void testIamPermissions(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method TestIamPermissions, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   TestIamPermissionsResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -299,7 +299,7 @@ public void testIamPermissions(
   @Override
   public void listTasks(
       ListTasksRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof ListTasksResponse) {
       requests.add(request);
       responseObserver.onNext(((ListTasksResponse) response));
@@ -311,7 +311,7 @@ public void listTasks(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method ListTasks, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   ListTasksResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -319,7 +319,7 @@ public void listTasks(
 
   @Override
   public void getTask(GetTaskRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Task) {
       requests.add(request);
       responseObserver.onNext(((Task) response));
@@ -331,13 +331,15 @@ public void getTask(GetTaskRequest request, StreamObserver responseObserve
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method GetTask, expected %s or %s",
-                  response.getClass().getName(), Task.class.getName(), Exception.class.getName())));
+                  response == null ? "null" : response.getClass().getName(),
+                  Task.class.getName(),
+                  Exception.class.getName())));
     }
   }
 
   @Override
   public void createTask(CreateTaskRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Task) {
       requests.add(request);
       responseObserver.onNext(((Task) response));
@@ -349,13 +351,15 @@ public void createTask(CreateTaskRequest request, StreamObserver responseO
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method CreateTask, expected %s or %s",
-                  response.getClass().getName(), Task.class.getName(), Exception.class.getName())));
+                  response == null ? "null" : response.getClass().getName(),
+                  Task.class.getName(),
+                  Exception.class.getName())));
     }
   }
 
   @Override
   public void deleteTask(DeleteTaskRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Empty) {
       requests.add(request);
       responseObserver.onNext(((Empty) response));
@@ -367,7 +371,7 @@ public void deleteTask(DeleteTaskRequest request, StreamObserver response
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method DeleteTask, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Empty.class.getName(),
                   Exception.class.getName())));
     }
@@ -375,7 +379,7 @@ public void deleteTask(DeleteTaskRequest request, StreamObserver response
 
   @Override
   public void runTask(RunTaskRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Task) {
       requests.add(request);
       responseObserver.onNext(((Task) response));
@@ -387,7 +391,9 @@ public void runTask(RunTaskRequest request, StreamObserver responseObserve
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method RunTask, expected %s or %s",
-                  response.getClass().getName(), Task.class.getName(), Exception.class.getName())));
+                  response == null ? "null" : response.getClass().getName(),
+                  Task.class.getName(),
+                  Exception.class.getName())));
     }
   }
 }
diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java
index cd24f793..0ed40abb 100644
--- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java
+++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java
@@ -67,7 +67,7 @@ public void reset() {
   @Override
   public void listQueues(
       ListQueuesRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof ListQueuesResponse) {
       requests.add(request);
       responseObserver.onNext(((ListQueuesResponse) response));
@@ -79,7 +79,7 @@ public void listQueues(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method ListQueues, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   ListQueuesResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -89,7 +89,7 @@ public void listQueues(
   public void getQueue(
       GetQueueRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof com.google.cloud.tasks.v2beta2.Queue) {
       requests.add(request);
       responseObserver.onNext(((com.google.cloud.tasks.v2beta2.Queue) response));
@@ -101,7 +101,7 @@ public void getQueue(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method GetQueue, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   com.google.cloud.tasks.v2beta2.Queue.class.getName(),
                   Exception.class.getName())));
     }
@@ -111,7 +111,7 @@ public void getQueue(
   public void createQueue(
       CreateQueueRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof com.google.cloud.tasks.v2beta2.Queue) {
       requests.add(request);
       responseObserver.onNext(((com.google.cloud.tasks.v2beta2.Queue) response));
@@ -123,7 +123,7 @@ public void createQueue(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method CreateQueue, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   com.google.cloud.tasks.v2beta2.Queue.class.getName(),
                   Exception.class.getName())));
     }
@@ -133,7 +133,7 @@ public void createQueue(
   public void updateQueue(
       UpdateQueueRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof com.google.cloud.tasks.v2beta2.Queue) {
       requests.add(request);
       responseObserver.onNext(((com.google.cloud.tasks.v2beta2.Queue) response));
@@ -145,7 +145,7 @@ public void updateQueue(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method UpdateQueue, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   com.google.cloud.tasks.v2beta2.Queue.class.getName(),
                   Exception.class.getName())));
     }
@@ -153,7 +153,7 @@ public void updateQueue(
 
   @Override
   public void deleteQueue(DeleteQueueRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Empty) {
       requests.add(request);
       responseObserver.onNext(((Empty) response));
@@ -165,7 +165,7 @@ public void deleteQueue(DeleteQueueRequest request, StreamObserver respon
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method DeleteQueue, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Empty.class.getName(),
                   Exception.class.getName())));
     }
@@ -175,7 +175,7 @@ public void deleteQueue(DeleteQueueRequest request, StreamObserver respon
   public void purgeQueue(
       PurgeQueueRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof com.google.cloud.tasks.v2beta2.Queue) {
       requests.add(request);
       responseObserver.onNext(((com.google.cloud.tasks.v2beta2.Queue) response));
@@ -187,7 +187,7 @@ public void purgeQueue(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method PurgeQueue, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   com.google.cloud.tasks.v2beta2.Queue.class.getName(),
                   Exception.class.getName())));
     }
@@ -197,7 +197,7 @@ public void purgeQueue(
   public void pauseQueue(
       PauseQueueRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof com.google.cloud.tasks.v2beta2.Queue) {
       requests.add(request);
       responseObserver.onNext(((com.google.cloud.tasks.v2beta2.Queue) response));
@@ -209,7 +209,7 @@ public void pauseQueue(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method PauseQueue, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   com.google.cloud.tasks.v2beta2.Queue.class.getName(),
                   Exception.class.getName())));
     }
@@ -219,7 +219,7 @@ public void pauseQueue(
   public void resumeQueue(
       ResumeQueueRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof com.google.cloud.tasks.v2beta2.Queue) {
       requests.add(request);
       responseObserver.onNext(((com.google.cloud.tasks.v2beta2.Queue) response));
@@ -231,7 +231,7 @@ public void resumeQueue(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method ResumeQueue, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   com.google.cloud.tasks.v2beta2.Queue.class.getName(),
                   Exception.class.getName())));
     }
@@ -239,7 +239,7 @@ public void resumeQueue(
 
   @Override
   public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Policy) {
       requests.add(request);
       responseObserver.onNext(((Policy) response));
@@ -251,7 +251,7 @@ public void getIamPolicy(GetIamPolicyRequest request, StreamObserver res
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method GetIamPolicy, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Policy.class.getName(),
                   Exception.class.getName())));
     }
@@ -259,7 +259,7 @@ public void getIamPolicy(GetIamPolicyRequest request, StreamObserver res
 
   @Override
   public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Policy) {
       requests.add(request);
       responseObserver.onNext(((Policy) response));
@@ -271,7 +271,7 @@ public void setIamPolicy(SetIamPolicyRequest request, StreamObserver res
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method SetIamPolicy, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Policy.class.getName(),
                   Exception.class.getName())));
     }
@@ -281,7 +281,7 @@ public void setIamPolicy(SetIamPolicyRequest request, StreamObserver res
   public void testIamPermissions(
       TestIamPermissionsRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof TestIamPermissionsResponse) {
       requests.add(request);
       responseObserver.onNext(((TestIamPermissionsResponse) response));
@@ -293,7 +293,7 @@ public void testIamPermissions(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method TestIamPermissions, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   TestIamPermissionsResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -302,7 +302,7 @@ public void testIamPermissions(
   @Override
   public void listTasks(
       ListTasksRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof ListTasksResponse) {
       requests.add(request);
       responseObserver.onNext(((ListTasksResponse) response));
@@ -314,7 +314,7 @@ public void listTasks(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method ListTasks, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   ListTasksResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -322,7 +322,7 @@ public void listTasks(
 
   @Override
   public void getTask(GetTaskRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Task) {
       requests.add(request);
       responseObserver.onNext(((Task) response));
@@ -334,13 +334,15 @@ public void getTask(GetTaskRequest request, StreamObserver responseObserve
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method GetTask, expected %s or %s",
-                  response.getClass().getName(), Task.class.getName(), Exception.class.getName())));
+                  response == null ? "null" : response.getClass().getName(),
+                  Task.class.getName(),
+                  Exception.class.getName())));
     }
   }
 
   @Override
   public void createTask(CreateTaskRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Task) {
       requests.add(request);
       responseObserver.onNext(((Task) response));
@@ -352,13 +354,15 @@ public void createTask(CreateTaskRequest request, StreamObserver responseO
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method CreateTask, expected %s or %s",
-                  response.getClass().getName(), Task.class.getName(), Exception.class.getName())));
+                  response == null ? "null" : response.getClass().getName(),
+                  Task.class.getName(),
+                  Exception.class.getName())));
     }
   }
 
   @Override
   public void deleteTask(DeleteTaskRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Empty) {
       requests.add(request);
       responseObserver.onNext(((Empty) response));
@@ -370,7 +374,7 @@ public void deleteTask(DeleteTaskRequest request, StreamObserver response
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method DeleteTask, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Empty.class.getName(),
                   Exception.class.getName())));
     }
@@ -379,7 +383,7 @@ public void deleteTask(DeleteTaskRequest request, StreamObserver response
   @Override
   public void leaseTasks(
       LeaseTasksRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof LeaseTasksResponse) {
       requests.add(request);
       responseObserver.onNext(((LeaseTasksResponse) response));
@@ -391,7 +395,7 @@ public void leaseTasks(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method LeaseTasks, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   LeaseTasksResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -400,7 +404,7 @@ public void leaseTasks(
   @Override
   public void acknowledgeTask(
       AcknowledgeTaskRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Empty) {
       requests.add(request);
       responseObserver.onNext(((Empty) response));
@@ -412,7 +416,7 @@ public void acknowledgeTask(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method AcknowledgeTask, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Empty.class.getName(),
                   Exception.class.getName())));
     }
@@ -420,7 +424,7 @@ public void acknowledgeTask(
 
   @Override
   public void renewLease(RenewLeaseRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Task) {
       requests.add(request);
       responseObserver.onNext(((Task) response));
@@ -432,13 +436,15 @@ public void renewLease(RenewLeaseRequest request, StreamObserver responseO
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method RenewLease, expected %s or %s",
-                  response.getClass().getName(), Task.class.getName(), Exception.class.getName())));
+                  response == null ? "null" : response.getClass().getName(),
+                  Task.class.getName(),
+                  Exception.class.getName())));
     }
   }
 
   @Override
   public void cancelLease(CancelLeaseRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Task) {
       requests.add(request);
       responseObserver.onNext(((Task) response));
@@ -450,13 +456,15 @@ public void cancelLease(CancelLeaseRequest request, StreamObserver respons
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method CancelLease, expected %s or %s",
-                  response.getClass().getName(), Task.class.getName(), Exception.class.getName())));
+                  response == null ? "null" : response.getClass().getName(),
+                  Task.class.getName(),
+                  Exception.class.getName())));
     }
   }
 
   @Override
   public void runTask(RunTaskRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Task) {
       requests.add(request);
       responseObserver.onNext(((Task) response));
@@ -468,7 +476,9 @@ public void runTask(RunTaskRequest request, StreamObserver responseObserve
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method RunTask, expected %s or %s",
-                  response.getClass().getName(), Task.class.getName(), Exception.class.getName())));
+                  response == null ? "null" : response.getClass().getName(),
+                  Task.class.getName(),
+                  Exception.class.getName())));
     }
   }
 }
diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java
index de6438e4..e5b306fe 100644
--- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java
+++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java
@@ -67,7 +67,7 @@ public void reset() {
   @Override
   public void listQueues(
       ListQueuesRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof ListQueuesResponse) {
       requests.add(request);
       responseObserver.onNext(((ListQueuesResponse) response));
@@ -79,7 +79,7 @@ public void listQueues(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method ListQueues, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   ListQueuesResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -89,7 +89,7 @@ public void listQueues(
   public void getQueue(
       GetQueueRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof com.google.cloud.tasks.v2beta3.Queue) {
       requests.add(request);
       responseObserver.onNext(((com.google.cloud.tasks.v2beta3.Queue) response));
@@ -101,7 +101,7 @@ public void getQueue(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method GetQueue, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   com.google.cloud.tasks.v2beta3.Queue.class.getName(),
                   Exception.class.getName())));
     }
@@ -111,7 +111,7 @@ public void getQueue(
   public void createQueue(
       CreateQueueRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof com.google.cloud.tasks.v2beta3.Queue) {
       requests.add(request);
       responseObserver.onNext(((com.google.cloud.tasks.v2beta3.Queue) response));
@@ -123,7 +123,7 @@ public void createQueue(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method CreateQueue, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   com.google.cloud.tasks.v2beta3.Queue.class.getName(),
                   Exception.class.getName())));
     }
@@ -133,7 +133,7 @@ public void createQueue(
   public void updateQueue(
       UpdateQueueRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof com.google.cloud.tasks.v2beta3.Queue) {
       requests.add(request);
       responseObserver.onNext(((com.google.cloud.tasks.v2beta3.Queue) response));
@@ -145,7 +145,7 @@ public void updateQueue(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method UpdateQueue, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   com.google.cloud.tasks.v2beta3.Queue.class.getName(),
                   Exception.class.getName())));
     }
@@ -153,7 +153,7 @@ public void updateQueue(
 
   @Override
   public void deleteQueue(DeleteQueueRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Empty) {
       requests.add(request);
       responseObserver.onNext(((Empty) response));
@@ -165,7 +165,7 @@ public void deleteQueue(DeleteQueueRequest request, StreamObserver respon
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method DeleteQueue, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Empty.class.getName(),
                   Exception.class.getName())));
     }
@@ -175,7 +175,7 @@ public void deleteQueue(DeleteQueueRequest request, StreamObserver respon
   public void purgeQueue(
       PurgeQueueRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof com.google.cloud.tasks.v2beta3.Queue) {
       requests.add(request);
       responseObserver.onNext(((com.google.cloud.tasks.v2beta3.Queue) response));
@@ -187,7 +187,7 @@ public void purgeQueue(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method PurgeQueue, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   com.google.cloud.tasks.v2beta3.Queue.class.getName(),
                   Exception.class.getName())));
     }
@@ -197,7 +197,7 @@ public void purgeQueue(
   public void pauseQueue(
       PauseQueueRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof com.google.cloud.tasks.v2beta3.Queue) {
       requests.add(request);
       responseObserver.onNext(((com.google.cloud.tasks.v2beta3.Queue) response));
@@ -209,7 +209,7 @@ public void pauseQueue(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method PauseQueue, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   com.google.cloud.tasks.v2beta3.Queue.class.getName(),
                   Exception.class.getName())));
     }
@@ -219,7 +219,7 @@ public void pauseQueue(
   public void resumeQueue(
       ResumeQueueRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof com.google.cloud.tasks.v2beta3.Queue) {
       requests.add(request);
       responseObserver.onNext(((com.google.cloud.tasks.v2beta3.Queue) response));
@@ -231,7 +231,7 @@ public void resumeQueue(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method ResumeQueue, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   com.google.cloud.tasks.v2beta3.Queue.class.getName(),
                   Exception.class.getName())));
     }
@@ -239,7 +239,7 @@ public void resumeQueue(
 
   @Override
   public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Policy) {
       requests.add(request);
       responseObserver.onNext(((Policy) response));
@@ -251,7 +251,7 @@ public void getIamPolicy(GetIamPolicyRequest request, StreamObserver res
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method GetIamPolicy, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Policy.class.getName(),
                   Exception.class.getName())));
     }
@@ -259,7 +259,7 @@ public void getIamPolicy(GetIamPolicyRequest request, StreamObserver res
 
   @Override
   public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Policy) {
       requests.add(request);
       responseObserver.onNext(((Policy) response));
@@ -271,7 +271,7 @@ public void setIamPolicy(SetIamPolicyRequest request, StreamObserver res
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method SetIamPolicy, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Policy.class.getName(),
                   Exception.class.getName())));
     }
@@ -281,7 +281,7 @@ public void setIamPolicy(SetIamPolicyRequest request, StreamObserver res
   public void testIamPermissions(
       TestIamPermissionsRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof TestIamPermissionsResponse) {
       requests.add(request);
       responseObserver.onNext(((TestIamPermissionsResponse) response));
@@ -293,7 +293,7 @@ public void testIamPermissions(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method TestIamPermissions, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   TestIamPermissionsResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -302,7 +302,7 @@ public void testIamPermissions(
   @Override
   public void listTasks(
       ListTasksRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof ListTasksResponse) {
       requests.add(request);
       responseObserver.onNext(((ListTasksResponse) response));
@@ -314,7 +314,7 @@ public void listTasks(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method ListTasks, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   ListTasksResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -322,7 +322,7 @@ public void listTasks(
 
   @Override
   public void getTask(GetTaskRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Task) {
       requests.add(request);
       responseObserver.onNext(((Task) response));
@@ -334,13 +334,15 @@ public void getTask(GetTaskRequest request, StreamObserver responseObserve
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method GetTask, expected %s or %s",
-                  response.getClass().getName(), Task.class.getName(), Exception.class.getName())));
+                  response == null ? "null" : response.getClass().getName(),
+                  Task.class.getName(),
+                  Exception.class.getName())));
     }
   }
 
   @Override
   public void createTask(CreateTaskRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Task) {
       requests.add(request);
       responseObserver.onNext(((Task) response));
@@ -352,13 +354,15 @@ public void createTask(CreateTaskRequest request, StreamObserver responseO
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method CreateTask, expected %s or %s",
-                  response.getClass().getName(), Task.class.getName(), Exception.class.getName())));
+                  response == null ? "null" : response.getClass().getName(),
+                  Task.class.getName(),
+                  Exception.class.getName())));
     }
   }
 
   @Override
   public void deleteTask(DeleteTaskRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Empty) {
       requests.add(request);
       responseObserver.onNext(((Empty) response));
@@ -370,7 +374,7 @@ public void deleteTask(DeleteTaskRequest request, StreamObserver response
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method DeleteTask, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Empty.class.getName(),
                   Exception.class.getName())));
     }
@@ -378,7 +382,7 @@ public void deleteTask(DeleteTaskRequest request, StreamObserver response
 
   @Override
   public void runTask(RunTaskRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Task) {
       requests.add(request);
       responseObserver.onNext(((Task) response));
@@ -390,7 +394,9 @@ public void runTask(RunTaskRequest request, StreamObserver responseObserve
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method RunTask, expected %s or %s",
-                  response.getClass().getName(), Task.class.getName(), Exception.class.getName())));
+                  response == null ? "null" : response.getClass().getName(),
+                  Task.class.getName(),
+                  Exception.class.getName())));
     }
   }
 }
diff --git a/synth.metadata b/synth.metadata
index 1d75e6dc..88953a00 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,15 +4,15 @@
       "git": {
         "name": ".",
         "remote": "https://github.com/googleapis/java-tasks.git",
-        "sha": "3ffde2787a5b6df57f775c882a696fd59d64b459"
+        "sha": "ba6e4412f44920755eebbf2eb38a2e923df2a5f3"
       }
     },
     {
       "git": {
         "name": "googleapis",
         "remote": "https://github.com/googleapis/googleapis.git",
-        "sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89",
-        "internalRef": "361377784"
+        "sha": "1305ca41d554eb0725237561e34129373bb8cbc1",
+        "internalRef": "362856902"
       }
     },
     {

From 5ab8529c43043d764b2de5f92ae3e948d5945d7e Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot 
Date: Mon, 15 Mar 2021 08:50:27 -0700
Subject: [PATCH 038/401] chore: regenerate README (#395)

This PR was generated using Autosynth. :rainbow:


Log from Synthtool ``` 2021-03-15 15:31:07,569 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-tasks/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-03-15 15:31:08,608 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/bfdc4ef8-b6e4-4722-b528-e3ea3f09c6cc/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index f6c28d3d..f018da3c 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "4a67c54a75b6b87ee1dd9943508bd8d89b192645" + "sha": "02a7f9025917808381de4ee1f259fd2bf25151e9" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "e5fa6d93e42918dd4a000a80b92be23f5f4c6ac7" + "sha": "2c54c473779ea731128cea61a3a6c975a08a5378" } } ] diff --git a/README.md b/README.md index 86e62b3c..6dda202f 100644 --- a/README.md +++ b/README.md @@ -17,18 +17,18 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 1.32.0 + 1.32.1 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-tasks:1.32.0' +compile 'com.google.cloud:google-cloud-tasks:1.32.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.32.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.32.1" ``` ## Authentication From cf3f2d8887abb98039570094a253dfde598568a5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Mar 2021 21:08:29 +0100 Subject: [PATCH 039/401] chore(deps): update dependency com.google.cloud:libraries-bom to v19.1.0 (#396) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.0.0` -> `19.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/compatibility-slim/19.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.1.0/confidence-slim/19.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index a2a99baf..89b2aeef 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 19.0.0 + 19.1.0 pom import From 7241bbcfc7bf327ff9116159bd413bab5e5acd2c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 19 Mar 2021 19:04:19 +0100 Subject: [PATCH 040/401] chore(deps): update dependency com.google.cloud:libraries-bom to v19.2.1 (#397) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.1.0` -> `19.2.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/compatibility-slim/19.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/confidence-slim/19.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 89b2aeef..e1ba500d 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 19.1.0 + 19.2.1 pom import From bbaee46548b32223bb8698b1c4ea9616f9be2170 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 23 Mar 2021 16:44:03 +0100 Subject: [PATCH 041/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v1.32.1 (#393) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `1.31.1` -> `1.32.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.32.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.32.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.32.1/compatibility-slim/1.31.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.32.1/confidence-slim/1.31.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-tasks ### [`v1.32.1`](https://togithub.com/googleapis/java-tasks/blob/master/CHANGELOG.md#​1321-httpswwwgithubcomgoogleapisjava-taskscomparev1320v1321-2021-03-11) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v1.32.0...v1.32.1) ### [`v1.32.0`](https://togithub.com/googleapis/java-tasks/blob/master/CHANGELOG.md#​1320-httpswwwgithubcomgoogleapisjava-taskscomparev1311v1320-2021-03-09) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v1.31.1...v1.32.0) ##### Features - **generator:** update protoc to v3.15.3 ([#​377](https://www.github.com/googleapis/java-tasks/issues/377)) ([5c71783](https://www.github.com/googleapis/java-tasks/commit/5c71783e654d8b0a6c09182909a3113fab786b5b)) ##### [1.31.1](https://www.github.com/googleapis/java-tasks/compare/v1.31.0...v1.31.1) (2021-02-25) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.0 ([#​373](https://www.github.com/googleapis/java-tasks/issues/373)) ([08ca5e1](https://www.github.com/googleapis/java-tasks/commit/08ca5e117ba7a4274ca4e6c32bc0d0700f013a8f))
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 01d62e36..84c5b107 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 1.31.1 + 1.32.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ea1c61e0..c4cc691e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 1.31.1 + 1.32.1 From c7e3cb58f4b2cef9aef3828ff097fd340c7ee93f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 30 Mar 2021 07:54:23 -0700 Subject: [PATCH 042/401] chore: remove staging bucket v2 (#398) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/e3e5eb7d-fdec-455e-aff4-589c951a65bc/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/572ef8f70edd9041f5bcfa71511aed6aecfc2098 --- .kokoro/release/publish_javadoc.sh | 5 ----- synth.metadata | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh index 4d9b7ef4..c21140d8 100755 --- a/.kokoro/release/publish_javadoc.sh +++ b/.kokoro/release/publish_javadoc.sh @@ -24,11 +24,6 @@ if [[ -z "${STAGING_BUCKET}" ]]; then exit 1 fi -if [[ -z "${STAGING_BUCKET_V2}" ]]; then - echo "Need to set STAGING_BUCKET_V2 environment variable" - exit 1 -fi - # work from the git root directory pushd $(dirname "$0")/../../ diff --git a/synth.metadata b/synth.metadata index 88953a00..9c066e9b 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "ba6e4412f44920755eebbf2eb38a2e923df2a5f3" + "sha": "bbaee46548b32223bb8698b1c4ea9616f9be2170" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "0b064d767537e0675fc053e53fca473c5c701fb8" + "sha": "572ef8f70edd9041f5bcfa71511aed6aecfc2098" } } ], From aefe7b2bb988b538c4a2dcae40abb11ce5245b9d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Apr 2021 17:42:03 +0200 Subject: [PATCH 043/401] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.22 (#400) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.cloud.samples:shared-configuration | `1.0.21` -> `1.0.22` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/compatibility-slim/1.0.21)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/confidence-slim/1.0.21)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/install-without-bom/pom.xml | 2 +- samples/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 84c5b107..54d32c00 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.21 + 1.0.22 diff --git a/samples/pom.xml b/samples/pom.xml index 9ef38493..3bff0f0b 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -18,7 +18,7 @@ com.google.cloud.samples shared-configuration - 1.0.21 + 1.0.22 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c4cc691e..1f765523 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.21 + 1.0.22 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index e1ba500d..fa9f9f0f 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.21 + 1.0.22 From a4d01dc922a12862fec4084afd9d9241a01cb194 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Apr 2021 22:36:34 +0200 Subject: [PATCH 044/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 (#401) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `0.20.1` -> `0.21.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.0/compatibility-slim/0.20.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.0/confidence-slim/0.20.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v0.21.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0210-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0201v0210-2021-04-09) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.20.1...v0.21.0) ##### Dependencies - update dependency com.google.auth:google-auth-library-bom to v0.25.0 ([#​310](https://www.github.com/googleapis/java-shared-dependencies/issues/310)) ([8f3a0f0](https://www.github.com/googleapis/java-shared-dependencies/commit/8f3a0f002b787f7b27cfe031654fa20bf342f839)) - update dependency com.google.auth:google-auth-library-bom to v0.25.2 ([#​311](https://www.github.com/googleapis/java-shared-dependencies/issues/311)) ([6c47a3e](https://www.github.com/googleapis/java-shared-dependencies/commit/6c47a3edbd9da04ba255487a66c0f3a41393217d)) - update dependency com.google.errorprone:error_prone_annotations to v2.6.0 ([#​315](https://www.github.com/googleapis/java-shared-dependencies/issues/315)) ([dc254ca](https://www.github.com/googleapis/java-shared-dependencies/commit/dc254ca7359b68fe9411f7b96130ffb416b45c6f)) - update dependency com.google.http-client:google-http-client-bom to v1.39.1 ([#​309](https://www.github.com/googleapis/java-shared-dependencies/issues/309)) ([37225e2](https://www.github.com/googleapis/java-shared-dependencies/commit/37225e2d1b32a618765391720b57ff29e7b8f7f9)) - update dependency com.google.http-client:google-http-client-bom to v1.39.2 ([#​321](https://www.github.com/googleapis/java-shared-dependencies/issues/321)) ([273c66d](https://www.github.com/googleapis/java-shared-dependencies/commit/273c66d374f7cd6040aac2f302fd1c1dc0f4a1c0)) - update dependency com.google.protobuf:protobuf-bom to v3.15.6 ([#​308](https://www.github.com/googleapis/java-shared-dependencies/issues/308)) ([b29dd05](https://www.github.com/googleapis/java-shared-dependencies/commit/b29dd0535f02b56607f64ba69e85d4d468902789)) - update dependency com.google.protobuf:protobuf-bom to v3.15.7 ([#​316](https://www.github.com/googleapis/java-shared-dependencies/issues/316)) ([9c00d77](https://www.github.com/googleapis/java-shared-dependencies/commit/9c00d7753c1f7b963deb9ad69dcfe24ba28da5a2)) - update dependency com.google.protobuf:protobuf-bom to v3.15.8 ([#​319](https://www.github.com/googleapis/java-shared-dependencies/issues/319)) ([15e5ae2](https://www.github.com/googleapis/java-shared-dependencies/commit/15e5ae2ef46eedcd790ffd8644677d36db5c63f9)) - update dependency io.grpc:grpc-bom to v1.37.0 ([#​313](https://www.github.com/googleapis/java-shared-dependencies/issues/313)) ([c599351](https://www.github.com/googleapis/java-shared-dependencies/commit/c5993511c7305e1ced42d73552a93a25dc5e1ac1)) - update gax.version to v1.63.0 ([#​318](https://www.github.com/googleapis/java-shared-dependencies/issues/318)) ([ba709da](https://www.github.com/googleapis/java-shared-dependencies/commit/ba709da6fb0e9bcfc83e663588336598737b46e4)) - update google.core.version to v1.94.4 ([#​305](https://www.github.com/googleapis/java-shared-dependencies/issues/305)) ([0d38f4c](https://www.github.com/googleapis/java-shared-dependencies/commit/0d38f4c9ffadcfd9446712b8bf0729399b0c9e91)) - update google.core.version to v1.94.5 ([#​320](https://www.github.com/googleapis/java-shared-dependencies/issues/320)) ([3439721](https://www.github.com/googleapis/java-shared-dependencies/commit/3439721da83a8b92d9c4b6ecfd158cfb1e1a0503)) - update guava to 30.1.1-android ([#​322](https://www.github.com/googleapis/java-shared-dependencies/issues/322)) ([a6b5d3b](https://www.github.com/googleapis/java-shared-dependencies/commit/a6b5d3b8ccfc352bf0d1678952ce3cd8b7a8361e)) - update iam.version to v1.0.11 ([#​304](https://www.github.com/googleapis/java-shared-dependencies/issues/304)) ([95a5264](https://www.github.com/googleapis/java-shared-dependencies/commit/95a526442b3d24c83782523d38dd3931e828d757)) ##### [0.20.1](https://www.github.com/googleapis/java-shared-dependencies/compare/0.20.0...v0.20.1) (2021-03-09) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.12.2 ([#​301](https://www.github.com/googleapis/java-shared-dependencies/issues/301)) ([7c01eba](https://www.github.com/googleapis/java-shared-dependencies/commit/7c01ebabb6fd65b7404e56651b0ba27f505bb033)) - update dependency com.google.api-client:google-api-client-bom to v1.31.3 ([#​295](https://www.github.com/googleapis/java-shared-dependencies/issues/295)) ([a0774e9](https://www.github.com/googleapis/java-shared-dependencies/commit/a0774e9d62d00614142bc4c14214a83dda66d4ad)) - update dependency com.google.api.grpc:grpc-google-iam-v1 to v1.0.10 ([#​292](https://www.github.com/googleapis/java-shared-dependencies/issues/292)) ([b629789](https://www.github.com/googleapis/java-shared-dependencies/commit/b629789e3a1cc9a7308b829c034b09b06e24fc07)) - update dependency com.google.auth:google-auth-library-bom to v0.24.1 ([#​293](https://www.github.com/googleapis/java-shared-dependencies/issues/293)) ([d85ec34](https://www.github.com/googleapis/java-shared-dependencies/commit/d85ec347ccdd14dfdab10d365d2c2f8df3035e4d)) - update dependency com.google.protobuf:protobuf-bom to v3.15.3 ([#​294](https://www.github.com/googleapis/java-shared-dependencies/issues/294)) ([58c01aa](https://www.github.com/googleapis/java-shared-dependencies/commit/58c01aa076e2c4954986185f913bac2c51a1e6fb)) - update dependency com.google.protobuf:protobuf-bom to v3.15.5 ([#​302](https://www.github.com/googleapis/java-shared-dependencies/issues/302)) ([e9d5e6e](https://www.github.com/googleapis/java-shared-dependencies/commit/e9d5e6ee6039915da186315ceada673ac37b88d3)) - update google.core.version to v1.94.2 ([#​296](https://www.github.com/googleapis/java-shared-dependencies/issues/296)) ([af83b90](https://www.github.com/googleapis/java-shared-dependencies/commit/af83b901be0c03d507189999215d35345602fad7)) - update google.core.version to v1.94.3 ([#​300](https://www.github.com/googleapis/java-shared-dependencies/issues/300)) ([3e73176](https://www.github.com/googleapis/java-shared-dependencies/commit/3e73176af0b07dfe621163b301174b5b5820dfa2))
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e3562624..1ea06067 100644 --- a/pom.xml +++ b/pom.xml @@ -106,7 +106,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.20.1 + 0.21.0 pom import From a3ab67bb31bccd1b35ea66f92fdebd141f045713 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 12 Apr 2021 07:26:09 -0700 Subject: [PATCH 045/401] build(java): skip javadoc tests during dependencies test (#403) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/8f6e266b-71d9-4625-83d9-fd23ffad7a12/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/5b0e1592dd7d70b485e157ea4b3eb1704ecbd015 --- .kokoro/dependencies.sh | 1 + synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index 0fb8c843..59d2aafc 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -33,6 +33,7 @@ export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m" retry_with_backoff 3 10 \ mvn install -B -V -ntp \ -DskipTests=true \ + -Dmaven.javadoc.skip=true \ -Dclirr.skip=true mvn -B dependency:analyze -DfailOnWarning=true diff --git a/synth.metadata b/synth.metadata index 9c066e9b..1802c0f9 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "bbaee46548b32223bb8698b1c4ea9616f9be2170" + "sha": "a4d01dc922a12862fec4084afd9d9241a01cb194" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "572ef8f70edd9041f5bcfa71511aed6aecfc2098" + "sha": "5b0e1592dd7d70b485e157ea4b3eb1704ecbd015" } } ], From 6b8a9502e0f878284339600626546234d925f06d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 12 Apr 2021 23:08:07 +0000 Subject: [PATCH 046/401] chore: release 1.32.2-SNAPSHOT (#392) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index ca4cf13b..885710bc 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 1.32.1 + 1.32.2-SNAPSHOT pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.1 + 0.88.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.1 + 0.88.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.1 + 0.88.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.1 + 1.32.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.1 + 0.88.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.1 + 1.32.2-SNAPSHOT com.google.cloud google-cloud-tasks - 1.32.1 + 1.32.2-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index b03c24e5..a7679b37 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 1.32.1 + 1.32.2-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.32.1 + 1.32.2-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 42a0ab64..89646b40 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.1 + 1.32.2-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.32.1 + 1.32.2-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index c59b8730..1c660576 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.1 + 0.88.2-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.32.1 + 1.32.2-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index dcd178ec..a135b2cd 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.1 + 0.88.2-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.32.1 + 1.32.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index 1ea06067..bd5f13f4 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.32.1 + 1.32.2-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.1 + 0.88.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.1 + 0.88.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.1 + 1.32.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.1 + 0.88.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.1 + 0.88.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.1 + 1.32.2-SNAPSHOT com.google.cloud google-cloud-tasks - 1.32.1 + 1.32.2-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 643a51fb..789f917c 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.1 + 1.32.2-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.32.1 + 1.32.2-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 287a6e54..690716b3 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.1 + 0.88.2-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.32.1 + 1.32.2-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 47cf5370..3f9de0ed 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.1 + 0.88.2-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.32.1 + 1.32.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index 70a50456..a99945c8 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.88.1:0.88.1 -proto-google-cloud-tasks-v2beta2:0.88.1:0.88.1 -proto-google-cloud-tasks-v2:1.32.1:1.32.1 -grpc-google-cloud-tasks-v2beta3:0.88.1:0.88.1 -grpc-google-cloud-tasks-v2beta2:0.88.1:0.88.1 -grpc-google-cloud-tasks-v2:1.32.1:1.32.1 -google-cloud-tasks:1.32.1:1.32.1 \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.88.1:0.88.2-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.88.1:0.88.2-SNAPSHOT +proto-google-cloud-tasks-v2:1.32.1:1.32.2-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.88.1:0.88.2-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.88.1:0.88.2-SNAPSHOT +grpc-google-cloud-tasks-v2:1.32.1:1.32.2-SNAPSHOT +google-cloud-tasks:1.32.1:1.32.2-SNAPSHOT \ No newline at end of file From 417df131da3dd1a040044c9f50b5b4e5344faa3d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 12 Apr 2021 23:34:05 +0000 Subject: [PATCH 047/401] chore: release 1.32.2 (#405) :robot: I have created a release \*beep\* \*boop\* --- ### [1.32.2](https://www.github.com/googleapis/java-tasks/compare/v1.32.1...v1.32.2) (2021-04-12) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 ([#401](https://www.github.com/googleapis/java-tasks/issues/401)) ([a4d01dc](https://www.github.com/googleapis/java-tasks/commit/a4d01dc922a12862fec4084afd9d9241a01cb194)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cde27c4..d4d16c68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.32.2](https://www.github.com/googleapis/java-tasks/compare/v1.32.1...v1.32.2) (2021-04-12) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 ([#401](https://www.github.com/googleapis/java-tasks/issues/401)) ([a4d01dc](https://www.github.com/googleapis/java-tasks/commit/a4d01dc922a12862fec4084afd9d9241a01cb194)) + ### [1.32.1](https://www.github.com/googleapis/java-tasks/compare/v1.32.0...v1.32.1) (2021-03-11) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 885710bc..2dbc722f 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 1.32.2-SNAPSHOT + 1.32.2 pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.2-SNAPSHOT + 0.88.2 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.2-SNAPSHOT + 0.88.2 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.2-SNAPSHOT + 0.88.2 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.2-SNAPSHOT + 1.32.2 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.2-SNAPSHOT + 0.88.2 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.2-SNAPSHOT + 1.32.2 com.google.cloud google-cloud-tasks - 1.32.2-SNAPSHOT + 1.32.2 diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index a7679b37..241a2e44 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 1.32.2-SNAPSHOT + 1.32.2 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.32.2-SNAPSHOT + 1.32.2 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 89646b40..de9ff3f4 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.2-SNAPSHOT + 1.32.2 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.32.2-SNAPSHOT + 1.32.2 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 1c660576..b3d76e05 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.2-SNAPSHOT + 0.88.2 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.32.2-SNAPSHOT + 1.32.2 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index a135b2cd..57ed815f 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.2-SNAPSHOT + 0.88.2 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.32.2-SNAPSHOT + 1.32.2 diff --git a/pom.xml b/pom.xml index bd5f13f4..4b4916cf 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.32.2-SNAPSHOT + 1.32.2 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.2-SNAPSHOT + 0.88.2 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.2-SNAPSHOT + 0.88.2 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.2-SNAPSHOT + 1.32.2 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.2-SNAPSHOT + 0.88.2 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.2-SNAPSHOT + 0.88.2 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.2-SNAPSHOT + 1.32.2 com.google.cloud google-cloud-tasks - 1.32.2-SNAPSHOT + 1.32.2 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 789f917c..eabc2424 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.2-SNAPSHOT + 1.32.2 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.32.2-SNAPSHOT + 1.32.2 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 690716b3..6c11820c 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.2-SNAPSHOT + 0.88.2 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.32.2-SNAPSHOT + 1.32.2 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 3f9de0ed..0e0a21ef 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.2-SNAPSHOT + 0.88.2 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.32.2-SNAPSHOT + 1.32.2 diff --git a/versions.txt b/versions.txt index a99945c8..19c31197 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.88.1:0.88.2-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.88.1:0.88.2-SNAPSHOT -proto-google-cloud-tasks-v2:1.32.1:1.32.2-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.88.1:0.88.2-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.88.1:0.88.2-SNAPSHOT -grpc-google-cloud-tasks-v2:1.32.1:1.32.2-SNAPSHOT -google-cloud-tasks:1.32.1:1.32.2-SNAPSHOT \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.88.2:0.88.2 +proto-google-cloud-tasks-v2beta2:0.88.2:0.88.2 +proto-google-cloud-tasks-v2:1.32.2:1.32.2 +grpc-google-cloud-tasks-v2beta3:0.88.2:0.88.2 +grpc-google-cloud-tasks-v2beta2:0.88.2:0.88.2 +grpc-google-cloud-tasks-v2:1.32.2:1.32.2 +google-cloud-tasks:1.32.2:1.32.2 \ No newline at end of file From dc20cdd55d290f0bcbfe946b4a145560f587a47c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 12 Apr 2021 23:58:04 +0000 Subject: [PATCH 048/401] chore: release 1.32.3-SNAPSHOT (#406) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 2dbc722f..f80309e9 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 1.32.2 + 1.32.3-SNAPSHOT pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.2 + 0.88.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.2 + 0.88.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.2 + 0.88.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.2 + 1.32.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.2 + 0.88.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.2 + 1.32.3-SNAPSHOT com.google.cloud google-cloud-tasks - 1.32.2 + 1.32.3-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 241a2e44..ac44d360 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 1.32.2 + 1.32.3-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.32.2 + 1.32.3-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index de9ff3f4..18bab8a6 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.2 + 1.32.3-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.32.2 + 1.32.3-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index b3d76e05..9ee7ba64 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.2 + 0.88.3-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.32.2 + 1.32.3-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 57ed815f..e49d54c9 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.2 + 0.88.3-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.32.2 + 1.32.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index 4b4916cf..cff33a48 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.32.2 + 1.32.3-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.2 + 0.88.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.2 + 0.88.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.2 + 1.32.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.2 + 0.88.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.2 + 0.88.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.2 + 1.32.3-SNAPSHOT com.google.cloud google-cloud-tasks - 1.32.2 + 1.32.3-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index eabc2424..af3a473e 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.2 + 1.32.3-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.32.2 + 1.32.3-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 6c11820c..b20c1349 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.2 + 0.88.3-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.32.2 + 1.32.3-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 0e0a21ef..97d66c43 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.2 + 0.88.3-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.32.2 + 1.32.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index 19c31197..dcccc8bb 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.88.2:0.88.2 -proto-google-cloud-tasks-v2beta2:0.88.2:0.88.2 -proto-google-cloud-tasks-v2:1.32.2:1.32.2 -grpc-google-cloud-tasks-v2beta3:0.88.2:0.88.2 -grpc-google-cloud-tasks-v2beta2:0.88.2:0.88.2 -grpc-google-cloud-tasks-v2:1.32.2:1.32.2 -google-cloud-tasks:1.32.2:1.32.2 \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.88.2:0.88.3-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.88.2:0.88.3-SNAPSHOT +proto-google-cloud-tasks-v2:1.32.2:1.32.3-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.88.2:0.88.3-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.88.2:0.88.3-SNAPSHOT +grpc-google-cloud-tasks-v2:1.32.2:1.32.3-SNAPSHOT +google-cloud-tasks:1.32.2:1.32.3-SNAPSHOT \ No newline at end of file From 50aea489e374dbb086d6c54df0579dc3fd186332 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 13 Apr 2021 02:50:06 +0200 Subject: [PATCH 049/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v1.32.2 (#407) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `1.32.1` -> `1.32.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.32.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.32.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.32.2/compatibility-slim/1.32.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.32.2/confidence-slim/1.32.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-tasks ### [`v1.32.2`](https://togithub.com/googleapis/java-tasks/blob/master/CHANGELOG.md#​1322-httpswwwgithubcomgoogleapisjava-taskscomparev1321v1322-2021-04-12) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v1.32.1...v1.32.2)
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 54d32c00..d9c22e04 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 1.32.1 + 1.32.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 1f765523..32e0b255 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 1.32.1 + 1.32.2 From a71be39649ca8fecadcf57d3228c269208f17cf7 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 12 Apr 2021 18:00:06 -0700 Subject: [PATCH 050/401] chore: regenerate README (#408) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-04-13 00:52:32,895 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-tasks/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-04-13 00:52:34,141 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/b3bc0ff9-8c1e-42bf-bba6-afda314809eb/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index f018da3c..a487ecb6 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "02a7f9025917808381de4ee1f259fd2bf25151e9" + "sha": "50aea489e374dbb086d6c54df0579dc3fd186332" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "2c54c473779ea731128cea61a3a6c975a08a5378" + "sha": "082e1ca0863b13ada8594fe91845380765da5b70" } } ] diff --git a/README.md b/README.md index 6dda202f..0d8ce8a1 100644 --- a/README.md +++ b/README.md @@ -17,18 +17,18 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 1.32.1 + 1.32.2 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-tasks:1.32.1' +compile 'com.google.cloud:google-cloud-tasks:1.32.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.32.1" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.32.2" ``` ## Authentication From d0afa6112ab4cc1da5b398e970a9e3d4e23e29cd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 14 Apr 2021 23:12:26 +0200 Subject: [PATCH 051/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.11.1 (#409) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.11.0` -> `0.11.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.1/compatibility-slim/0.11.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.1/confidence-slim/0.11.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v0.11.1`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​0111-httpswwwgithubcomgoogleapisjava-shared-configcomparev0110v0111-2021-04-14) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.11.0...v0.11.1)
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index f80309e9..c679a147 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.11.0 + 0.11.1 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index cff33a48..76224cd0 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.11.0 + 0.11.1 From 47b792aa840f68e506d56aa9123464628d590bfd Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 15 Apr 2021 08:32:28 -0700 Subject: [PATCH 052/401] fix: release scripts from issuing overlapping phases (#410) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/c9eb41f2-e7f0-4c0e-91f8-57b68a8e67a0/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/8285c2b4cdbc3771d031ad91e1c4ec9e55fff45d --- .kokoro/release/snapshot.sh | 2 +- .kokoro/release/stage.sh | 2 +- synth.metadata | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.kokoro/release/snapshot.sh b/.kokoro/release/snapshot.sh index 098168a7..1f55b770 100755 --- a/.kokoro/release/snapshot.sh +++ b/.kokoro/release/snapshot.sh @@ -25,7 +25,7 @@ grep SNAPSHOT versions.txt setup_environment_secrets create_settings_xml_file "settings.xml" -mvn clean install deploy -B \ +mvn clean deploy -B \ --settings ${MAVEN_SETTINGS_FILE} \ -DperformRelease=true \ -Dgpg.executable=gpg \ diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh index 16126d2e..8a103384 100755 --- a/.kokoro/release/stage.sh +++ b/.kokoro/release/stage.sh @@ -29,7 +29,7 @@ create_settings_xml_file "settings.xml" # attempt to stage 3 times with exponential backoff (starting with 10 seconds) retry_with_backoff 3 10 \ - mvn clean install deploy -B \ + mvn clean deploy -B \ --settings ${MAVEN_SETTINGS_FILE} \ -DskipTests=true \ -DperformRelease=true \ diff --git a/synth.metadata b/synth.metadata index 1802c0f9..4dee1151 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "a4d01dc922a12862fec4084afd9d9241a01cb194" + "sha": "d0afa6112ab4cc1da5b398e970a9e3d4e23e29cd" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "5b0e1592dd7d70b485e157ea4b3eb1704ecbd015" + "sha": "8285c2b4cdbc3771d031ad91e1c4ec9e55fff45d" } } ], @@ -63,6 +63,7 @@ ".github/readme/synth.py", ".github/release-please.yml", ".github/snippet-bot.yml", + ".github/sync-repo-settings.yaml", ".github/trusted-contribution.yml", ".github/workflows/approve-readme.yaml", ".github/workflows/auto-release.yaml", From 4b4dcd70ee906f8ea7e0bf8dc0b51f79d8cf7711 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Apr 2021 17:28:38 +0200 Subject: [PATCH 053/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 (#412) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `0.21.0` -> `0.21.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.1/compatibility-slim/0.21.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.1/confidence-slim/0.21.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v0.21.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0211-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0210v0211-2021-04-19) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.21.0...v0.21.1)
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 76224cd0..87946206 100644 --- a/pom.xml +++ b/pom.xml @@ -106,7 +106,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.21.0 + 0.21.1 pom import From c360ba36ca96120146c2ddc2dc9d103db7f8f952 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 23 Apr 2021 03:38:11 +0200 Subject: [PATCH 054/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.11.2 (#420) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.11.1` -> `0.11.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.2/compatibility-slim/0.11.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.2/confidence-slim/0.11.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v0.11.2`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​0112-httpswwwgithubcomgoogleapisjava-shared-configcomparev0111v0112-2021-04-22) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.11.1...v0.11.2)
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index c679a147..1cf4d3ab 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.11.1 + 0.11.2 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index 87946206..2d0da8a2 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.11.1 + 0.11.2 From d6f6d73658aa8d4cbb793852239ae93158220fe3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 26 Apr 2021 18:38:03 +0200 Subject: [PATCH 055/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1 (#421) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `0.21.1` -> `1.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.0.0/compatibility-slim/0.21.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.0.0/confidence-slim/0.21.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v1.0.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​100-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0211v100-2021-04-23) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.21.1...v1.0.0) ##### Features - promote to 1.0.0 ([#​341](https://www.github.com/googleapis/java-shared-dependencies/issues/341)) ([eddce7b](https://www.github.com/googleapis/java-shared-dependencies/commit/eddce7bda196d757c0bb93a05574cc742e3d7ff6)) ##### Dependencies - update dependency com.google.api:api-common to v1.10.3 ([#​340](https://www.github.com/googleapis/java-shared-dependencies/issues/340)) ([6a7fc33](https://www.github.com/googleapis/java-shared-dependencies/commit/6a7fc33548c199d5f310b3ee5024907882d22726)) - update dependency com.google.auth:google-auth-library-bom to v0.25.4 ([#​334](https://www.github.com/googleapis/java-shared-dependencies/issues/334)) ([e5c747d](https://www.github.com/googleapis/java-shared-dependencies/commit/e5c747d245194effc258ae706e7764153010cd53)) - update dependency com.google.auth:google-auth-library-bom to v0.25.5 ([#​338](https://www.github.com/googleapis/java-shared-dependencies/issues/338)) ([ffa1df5](https://www.github.com/googleapis/java-shared-dependencies/commit/ffa1df5497b5365f520b665a202b8caf6521fc9d)) - update dependency org.threeten:threetenbp to v1.5.1 ([#​335](https://www.github.com/googleapis/java-shared-dependencies/issues/335)) ([c8c6df4](https://www.github.com/googleapis/java-shared-dependencies/commit/c8c6df48e7f80944544939e502f4f08543af2631)) - update google.core.version to v1.94.8 ([#​342](https://www.github.com/googleapis/java-shared-dependencies/issues/342)) ([d946dd2](https://www.github.com/googleapis/java-shared-dependencies/commit/d946dd2299aac32f969a2226a1391e1e73f00e62)) ##### [0.21.1](https://www.github.com/googleapis/java-shared-dependencies/compare/0.21.0...v0.21.1) (2021-04-19) ##### Bug Fixes - release scripts from issuing overlapping phases ([#​332](https://www.github.com/googleapis/java-shared-dependencies/issues/332)) ([e289825](https://www.github.com/googleapis/java-shared-dependencies/commit/e289825a3bc45b4796db7ce4347f8d9d9251a410)) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.12.3 ([#​329](https://www.github.com/googleapis/java-shared-dependencies/issues/329)) ([a77b4fc](https://www.github.com/googleapis/java-shared-dependencies/commit/a77b4fcc2ea5caf366c76a4698bac6d4c9abc92e)) - update dependency com.google.api-client:google-api-client-bom to v1.31.4 ([#​326](https://www.github.com/googleapis/java-shared-dependencies/issues/326)) ([409d24f](https://www.github.com/googleapis/java-shared-dependencies/commit/409d24f8a0cac30e41ca45eb2711aecb335d70dd)) - update dependency com.google.auth:google-auth-library-bom to v0.25.3 ([#​328](https://www.github.com/googleapis/java-shared-dependencies/issues/328)) ([88cfc08](https://www.github.com/googleapis/java-shared-dependencies/commit/88cfc08952881200e23ed95cfa2eebad85ec7ab3)) - update google.core.version to v1.94.7 ([#​324](https://www.github.com/googleapis/java-shared-dependencies/issues/324)) ([0412c88](https://www.github.com/googleapis/java-shared-dependencies/commit/0412c88468940c1182bc0761bfe269a6688fe7b7)) - update iam.version to v1.0.12 ([#​327](https://www.github.com/googleapis/java-shared-dependencies/issues/327)) ([548d5f5](https://www.github.com/googleapis/java-shared-dependencies/commit/548d5f53c4f264f1cbb9ca72fdfe4608ab16b480))
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2d0da8a2..d3c8972f 100644 --- a/pom.xml +++ b/pom.xml @@ -106,7 +106,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.21.1 + 1.0.0 pom import From bdfb29751ce328fd925d260864cbb529e877043f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 26 Apr 2021 20:32:30 +0000 Subject: [PATCH 056/401] chore: release 1.32.3 (#411) :robot: I have created a release \*beep\* \*boop\* --- ### [1.32.3](https://www.github.com/googleapis/java-tasks/compare/v1.32.2...v1.32.3) (2021-04-26) ### Bug Fixes * release scripts from issuing overlapping phases ([#410](https://www.github.com/googleapis/java-tasks/issues/410)) ([47b792a](https://www.github.com/googleapis/java-tasks/commit/47b792aa840f68e506d56aa9123464628d590bfd)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 ([#412](https://www.github.com/googleapis/java-tasks/issues/412)) ([4b4dcd7](https://www.github.com/googleapis/java-tasks/commit/4b4dcd70ee906f8ea7e0bf8dc0b51f79d8cf7711)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v1 ([#421](https://www.github.com/googleapis/java-tasks/issues/421)) ([d6f6d73](https://www.github.com/googleapis/java-tasks/commit/d6f6d73658aa8d4cbb793852239ae93158220fe3)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 13 +++++++++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 50 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4d16c68..c13b52c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +### [1.32.3](https://www.github.com/googleapis/java-tasks/compare/v1.32.2...v1.32.3) (2021-04-26) + + +### Bug Fixes + +* release scripts from issuing overlapping phases ([#410](https://www.github.com/googleapis/java-tasks/issues/410)) ([47b792a](https://www.github.com/googleapis/java-tasks/commit/47b792aa840f68e506d56aa9123464628d590bfd)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 ([#412](https://www.github.com/googleapis/java-tasks/issues/412)) ([4b4dcd7](https://www.github.com/googleapis/java-tasks/commit/4b4dcd70ee906f8ea7e0bf8dc0b51f79d8cf7711)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1 ([#421](https://www.github.com/googleapis/java-tasks/issues/421)) ([d6f6d73](https://www.github.com/googleapis/java-tasks/commit/d6f6d73658aa8d4cbb793852239ae93158220fe3)) + ### [1.32.2](https://www.github.com/googleapis/java-tasks/compare/v1.32.1...v1.32.2) (2021-04-12) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 1cf4d3ab..8bd5bf32 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 1.32.3-SNAPSHOT + 1.32.3 pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.3-SNAPSHOT + 0.88.3 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.3-SNAPSHOT + 0.88.3 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.3-SNAPSHOT + 0.88.3 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.3-SNAPSHOT + 1.32.3 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.3-SNAPSHOT + 0.88.3 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.3-SNAPSHOT + 1.32.3 com.google.cloud google-cloud-tasks - 1.32.3-SNAPSHOT + 1.32.3
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index ac44d360..4611750d 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 1.32.3-SNAPSHOT + 1.32.3 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.32.3-SNAPSHOT + 1.32.3 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 18bab8a6..bf8d3d12 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.3-SNAPSHOT + 1.32.3 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.32.3-SNAPSHOT + 1.32.3 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 9ee7ba64..a80c5670 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.3-SNAPSHOT + 0.88.3 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.32.3-SNAPSHOT + 1.32.3 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index e49d54c9..3ebf0bcc 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.3-SNAPSHOT + 0.88.3 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.32.3-SNAPSHOT + 1.32.3 diff --git a/pom.xml b/pom.xml index d3c8972f..1b5aedef 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.32.3-SNAPSHOT + 1.32.3 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.3-SNAPSHOT + 0.88.3 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.3-SNAPSHOT + 0.88.3 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.3-SNAPSHOT + 1.32.3 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.3-SNAPSHOT + 0.88.3 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.3-SNAPSHOT + 0.88.3 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.3-SNAPSHOT + 1.32.3 com.google.cloud google-cloud-tasks - 1.32.3-SNAPSHOT + 1.32.3 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index af3a473e..b6d12597 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.3-SNAPSHOT + 1.32.3 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.32.3-SNAPSHOT + 1.32.3 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index b20c1349..82f45cfc 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.3-SNAPSHOT + 0.88.3 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.32.3-SNAPSHOT + 1.32.3 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 97d66c43..0e866cd5 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.3-SNAPSHOT + 0.88.3 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.32.3-SNAPSHOT + 1.32.3 diff --git a/versions.txt b/versions.txt index dcccc8bb..90022baa 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.88.2:0.88.3-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.88.2:0.88.3-SNAPSHOT -proto-google-cloud-tasks-v2:1.32.2:1.32.3-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.88.2:0.88.3-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.88.2:0.88.3-SNAPSHOT -grpc-google-cloud-tasks-v2:1.32.2:1.32.3-SNAPSHOT -google-cloud-tasks:1.32.2:1.32.3-SNAPSHOT \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.88.3:0.88.3 +proto-google-cloud-tasks-v2beta2:0.88.3:0.88.3 +proto-google-cloud-tasks-v2:1.32.3:1.32.3 +grpc-google-cloud-tasks-v2beta3:0.88.3:0.88.3 +grpc-google-cloud-tasks-v2beta2:0.88.3:0.88.3 +grpc-google-cloud-tasks-v2:1.32.3:1.32.3 +google-cloud-tasks:1.32.3:1.32.3 \ No newline at end of file From 2b7588a764110f6b5848b1e6bbea0648ad8defda Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 26 Apr 2021 20:38:16 +0000 Subject: [PATCH 057/401] chore: release 1.32.4-SNAPSHOT (#422) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 8bd5bf32..2e9dfd0c 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 1.32.3 + 1.32.4-SNAPSHOT pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.3 + 0.88.4-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.3 + 0.88.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.3 + 0.88.4-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.3 + 1.32.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.3 + 0.88.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.3 + 1.32.4-SNAPSHOT com.google.cloud google-cloud-tasks - 1.32.3 + 1.32.4-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 4611750d..df7bada0 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 1.32.3 + 1.32.4-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.32.3 + 1.32.4-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index bf8d3d12..47f43890 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.3 + 1.32.4-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.32.3 + 1.32.4-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index a80c5670..fca9d8cb 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.3 + 0.88.4-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.32.3 + 1.32.4-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 3ebf0bcc..0225e7b9 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.3 + 0.88.4-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.32.3 + 1.32.4-SNAPSHOT diff --git a/pom.xml b/pom.xml index 1b5aedef..56e15d14 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.32.3 + 1.32.4-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.3 + 0.88.4-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.3 + 0.88.4-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.3 + 1.32.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.3 + 0.88.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.3 + 0.88.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.3 + 1.32.4-SNAPSHOT com.google.cloud google-cloud-tasks - 1.32.3 + 1.32.4-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index b6d12597..74ed23e7 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.3 + 1.32.4-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.32.3 + 1.32.4-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 82f45cfc..1315dd1a 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.3 + 0.88.4-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.32.3 + 1.32.4-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 0e866cd5..b0b9345c 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.3 + 0.88.4-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.32.3 + 1.32.4-SNAPSHOT diff --git a/versions.txt b/versions.txt index 90022baa..9cc2eb84 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.88.3:0.88.3 -proto-google-cloud-tasks-v2beta2:0.88.3:0.88.3 -proto-google-cloud-tasks-v2:1.32.3:1.32.3 -grpc-google-cloud-tasks-v2beta3:0.88.3:0.88.3 -grpc-google-cloud-tasks-v2beta2:0.88.3:0.88.3 -grpc-google-cloud-tasks-v2:1.32.3:1.32.3 -google-cloud-tasks:1.32.3:1.32.3 \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.88.3:0.88.4-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.88.3:0.88.4-SNAPSHOT +proto-google-cloud-tasks-v2:1.32.3:1.32.4-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.88.3:0.88.4-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.88.3:0.88.4-SNAPSHOT +grpc-google-cloud-tasks-v2:1.32.3:1.32.4-SNAPSHOT +google-cloud-tasks:1.32.3:1.32.4-SNAPSHOT \ No newline at end of file From fc79b41fce565bcccb592ab68363896dbbf7e378 Mon Sep 17 00:00:00 2001 From: "google-cloud-policy-bot[bot]" <80869356+google-cloud-policy-bot[bot]@users.noreply.github.com> Date: Tue, 27 Apr 2021 18:26:31 +0000 Subject: [PATCH 058/401] chore: add SECURITY.md (#424) add a security policy --- SECURITY.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 SECURITY.md diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 00000000..8b58ae9c --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,7 @@ +# Security Policy + +To report a security issue, please use [g.co/vulnz](https://g.co/vulnz). + +The Google Security Team will respond within 5 working days of your report on g.co/vulnz. + +We use g.co/vulnz for our intake, and do coordination and disclosure here using GitHub Security Advisory to privately discuss and fix the issue. From 13f8048393ddc53617d390d14e0b6d77cb3c83c5 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 27 Apr 2021 11:34:20 -0700 Subject: [PATCH 059/401] chore: regenerate README (#425) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-04-27 18:28:42,385 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-tasks/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-04-27 18:28:43,643 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/683a1bcb-8d9d-4c88-b709-8b5953b7e0b1/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index a487ecb6..8f95d9b0 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "50aea489e374dbb086d6c54df0579dc3fd186332" + "sha": "fc79b41fce565bcccb592ab68363896dbbf7e378" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "082e1ca0863b13ada8594fe91845380765da5b70" + "sha": "6244244abd0da5ef750e3bbb63fa22ec6803b4db" } } ] diff --git a/README.md b/README.md index 0d8ce8a1..1f0239e2 100644 --- a/README.md +++ b/README.md @@ -17,18 +17,18 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 1.32.2 + 1.32.3 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-tasks:1.32.2' +compile 'com.google.cloud:google-cloud-tasks:1.32.3' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.32.2" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.32.3" ``` ## Authentication From 04a6f6f181b61e8abbf4c05c322606b6c6421d8e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 3 May 2021 16:36:48 -0700 Subject: [PATCH 060/401] build(java): switch to release-please for release tagging (#427) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/ea3e0a6f-d26a-4f9e-b0af-9e21f01beaaf/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/release-please.yml | 3 ++- synth.metadata | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/release-please.yml b/.github/release-please.yml index dce2c845..8ca7f9ca 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -1,2 +1,3 @@ +bumpMinorPreMajor: true +handleGHRelease: true releaseType: java-yoshi -bumpMinorPreMajor: true \ No newline at end of file diff --git a/synth.metadata b/synth.metadata index 4dee1151..0712a499 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "d0afa6112ab4cc1da5b398e970a9e3d4e23e29cd" + "sha": "13f8048393ddc53617d390d14e0b6d77cb3c83c5" } }, { From 07e9ad3dc1d52b051ab659b355da56b22853a725 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Tue, 4 May 2021 12:40:28 -0400 Subject: [PATCH 061/401] chore: add enumeration data type to .repo-metadata.json (#428) Adds a standard enumeration of library types in .repo-metadata.json --- .repo-metadata.json | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/.repo-metadata.json b/.repo-metadata.json index 9e66d8e3..2d6721c9 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -1,16 +1,17 @@ { - "name": "cloudtasks", - "name_pretty": "Cloud Tasks", - "product_documentation": "https://cloud.google.com/tasks/docs/", - "client_documentation": "https://googleapis.dev/java/google-cloud-tasks/latest/", - "issue_tracker": "https://issuetracker.google.com/savedsearches/5433985", - "release_level": "ga", - "language": "java", - "repo": "googleapis/java-tasks", - "repo_short": "java-tasks", - "distribution_name": "com.google.cloud:google-cloud-tasks", - "api_id": "cloudtasks.googleapis.com", - "transport": "grpc", - "requires_billing": true, - "api_description": "a fully managed service that allows you to manage the execution, dispatch and delivery of a large number of distributed tasks. You can asynchronously perform work outside of a user request. Your tasks can be executed on App Engine or any arbitrary HTTP endpoint." -} \ No newline at end of file + "name": "cloudtasks", + "name_pretty": "Cloud Tasks", + "product_documentation": "https://cloud.google.com/tasks/docs/", + "client_documentation": "https://googleapis.dev/java/google-cloud-tasks/latest/", + "issue_tracker": "https://issuetracker.google.com/savedsearches/5433985", + "release_level": "ga", + "language": "java", + "repo": "googleapis/java-tasks", + "repo_short": "java-tasks", + "distribution_name": "com.google.cloud:google-cloud-tasks", + "api_id": "cloudtasks.googleapis.com", + "transport": "grpc", + "requires_billing": true, + "api_description": "a fully managed service that allows you to manage the execution, dispatch and delivery of a large number of distributed tasks. You can asynchronously perform work outside of a user request. Your tasks can be executed on App Engine or any arbitrary HTTP endpoint.", + "library_type": "GAPIC_AUTO" +} From 0c93649084e2a8c0a0ed2f6153d58f3aa1ebd30f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 7 May 2021 09:05:36 -0700 Subject: [PATCH 062/401] chore: adding cloud-rad java xrefs (#429) Source-Author: Emily Ball Source-Date: Thu May 6 11:48:47 2021 -0700 Source-Repo: googleapis/synthtool Source-Sha: 046994f491c02806aea60118e214a9edd67f5ab7 Source-Link: https://github.com/googleapis/synthtool/commit/046994f491c02806aea60118e214a9edd67f5ab7 --- .kokoro/release/publish_javadoc11.sh | 7 +++++++ synth.metadata | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index 587fbbbc..4e4ac82c 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -49,6 +49,13 @@ pushd target/docfx-yml python3 -m docuploader create-metadata \ --name ${NAME} \ --version ${VERSION} \ + --xrefs devsite://java/gax \ + --xrefs devsite://java/google-cloud-core \ + --xrefs devsite://java/api-common \ + --xrefs devsite://java/proto-google-common-protos \ + --xrefs devsite://java/google-api-client \ + --xrefs devsite://java/google-http-client \ + --xrefs devsite://java/protobuf \ --language java # upload yml to production bucket diff --git a/synth.metadata b/synth.metadata index 0712a499..a6028ac5 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "13f8048393ddc53617d390d14e0b6d77cb3c83c5" + "sha": "07e9ad3dc1d52b051ab659b355da56b22853a725" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8285c2b4cdbc3771d031ad91e1c4ec9e55fff45d" + "sha": "046994f491c02806aea60118e214a9edd67f5ab7" } } ], From 63a2a014b0903c4dc877c0895b5bee798d3cbc90 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 11 May 2021 03:22:33 +0200 Subject: [PATCH 063/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 (#430) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `1.0.0` -> `1.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.1.0/compatibility-slim/1.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.1.0/confidence-slim/1.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v1.1.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​110-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare100v110-2021-05-10) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v1.0.0...v1.1.0) ##### Dependencies - update dependency com.google.protobuf:protobuf-bom to v3.16.0 ([#​348](https://www.github.com/googleapis/java-shared-dependencies/issues/348)) ([0aacfde](https://www.github.com/googleapis/java-shared-dependencies/commit/0aacfdeec70e30803734db8287c47e4fad5481ef)) - update gax.version to v1.64.0 ([#​345](https://www.github.com/googleapis/java-shared-dependencies/issues/345)) ([478bd35](https://www.github.com/googleapis/java-shared-dependencies/commit/478bd35296293e81c7e70157f50bfbebdc1bb54d)) - update iam.version to v1.0.13 ([#​343](https://www.github.com/googleapis/java-shared-dependencies/issues/343)) ([3637923](https://www.github.com/googleapis/java-shared-dependencies/commit/363792392b71deff5cc5731104b631122fba5e61))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 56e15d14..dd05eb2f 100644 --- a/pom.xml +++ b/pom.xml @@ -106,7 +106,7 @@ com.google.cloud google-cloud-shared-dependencies - 1.0.0 + 1.1.0 pom import From fcb965e21168c820d9e9bbfa67d1be26ec77be31 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 11 May 2021 01:38:08 +0000 Subject: [PATCH 064/401] chore: release 1.32.4 (#431) :robot: I have created a release \*beep\* \*boop\* --- ### [1.32.4](https://www.github.com/googleapis/java-tasks/compare/v1.32.3...v1.32.4) (2021-05-11) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 ([#430](https://www.github.com/googleapis/java-tasks/issues/430)) ([63a2a01](https://www.github.com/googleapis/java-tasks/commit/63a2a014b0903c4dc877c0895b5bee798d3cbc90)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c13b52c4..81cdb5dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.32.4](https://www.github.com/googleapis/java-tasks/compare/v1.32.3...v1.32.4) (2021-05-11) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 ([#430](https://www.github.com/googleapis/java-tasks/issues/430)) ([63a2a01](https://www.github.com/googleapis/java-tasks/commit/63a2a014b0903c4dc877c0895b5bee798d3cbc90)) + ### [1.32.3](https://www.github.com/googleapis/java-tasks/compare/v1.32.2...v1.32.3) (2021-04-26) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 2e9dfd0c..bbc34289 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 1.32.4-SNAPSHOT + 1.32.4 pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.4-SNAPSHOT + 0.88.4 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.4-SNAPSHOT + 0.88.4 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.4-SNAPSHOT + 0.88.4 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.4-SNAPSHOT + 1.32.4 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.4-SNAPSHOT + 0.88.4 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.4-SNAPSHOT + 1.32.4 com.google.cloud google-cloud-tasks - 1.32.4-SNAPSHOT + 1.32.4
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index df7bada0..b9a52659 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 1.32.4-SNAPSHOT + 1.32.4 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.32.4-SNAPSHOT + 1.32.4 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 47f43890..76f9d4fa 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.4-SNAPSHOT + 1.32.4 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.32.4-SNAPSHOT + 1.32.4 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index fca9d8cb..c412ef72 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.4-SNAPSHOT + 0.88.4 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.32.4-SNAPSHOT + 1.32.4 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 0225e7b9..d81f4ded 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.4-SNAPSHOT + 0.88.4 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.32.4-SNAPSHOT + 1.32.4 diff --git a/pom.xml b/pom.xml index dd05eb2f..1f003385 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.32.4-SNAPSHOT + 1.32.4 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.4-SNAPSHOT + 0.88.4 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.4-SNAPSHOT + 0.88.4 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.4-SNAPSHOT + 1.32.4 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.4-SNAPSHOT + 0.88.4 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.4-SNAPSHOT + 0.88.4 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.4-SNAPSHOT + 1.32.4 com.google.cloud google-cloud-tasks - 1.32.4-SNAPSHOT + 1.32.4 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 74ed23e7..ae8d26ab 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.4-SNAPSHOT + 1.32.4 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.32.4-SNAPSHOT + 1.32.4 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 1315dd1a..b236376a 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.4-SNAPSHOT + 0.88.4 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.32.4-SNAPSHOT + 1.32.4 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index b0b9345c..100a1b45 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.4-SNAPSHOT + 0.88.4 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.32.4-SNAPSHOT + 1.32.4 diff --git a/versions.txt b/versions.txt index 9cc2eb84..5dd143c0 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.88.3:0.88.4-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.88.3:0.88.4-SNAPSHOT -proto-google-cloud-tasks-v2:1.32.3:1.32.4-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.88.3:0.88.4-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.88.3:0.88.4-SNAPSHOT -grpc-google-cloud-tasks-v2:1.32.3:1.32.4-SNAPSHOT -google-cloud-tasks:1.32.3:1.32.4-SNAPSHOT \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.88.4:0.88.4 +proto-google-cloud-tasks-v2beta2:0.88.4:0.88.4 +proto-google-cloud-tasks-v2:1.32.4:1.32.4 +grpc-google-cloud-tasks-v2beta3:0.88.4:0.88.4 +grpc-google-cloud-tasks-v2beta2:0.88.4:0.88.4 +grpc-google-cloud-tasks-v2:1.32.4:1.32.4 +google-cloud-tasks:1.32.4:1.32.4 \ No newline at end of file From 8b477b905de7966091b50b4b8e86c886a78d5d4f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 11 May 2021 01:44:16 +0000 Subject: [PATCH 065/401] chore: release 1.32.5-SNAPSHOT (#432) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index bbc34289..d6f170c8 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 1.32.4 + 1.32.5-SNAPSHOT pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.4 + 0.88.5-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.4 + 0.88.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.4 + 0.88.5-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.4 + 1.32.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.4 + 0.88.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.4 + 1.32.5-SNAPSHOT com.google.cloud google-cloud-tasks - 1.32.4 + 1.32.5-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index b9a52659..3e606a52 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 1.32.4 + 1.32.5-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.32.4 + 1.32.5-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 76f9d4fa..64f8d553 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.4 + 1.32.5-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.32.4 + 1.32.5-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index c412ef72..3bc7fee3 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.4 + 0.88.5-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.32.4 + 1.32.5-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index d81f4ded..09450bae 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.4 + 0.88.5-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.32.4 + 1.32.5-SNAPSHOT diff --git a/pom.xml b/pom.xml index 1f003385..09ca7cd1 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.32.4 + 1.32.5-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.4 + 0.88.5-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.4 + 0.88.5-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.4 + 1.32.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.88.4 + 0.88.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.88.4 + 0.88.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.32.4 + 1.32.5-SNAPSHOT com.google.cloud google-cloud-tasks - 1.32.4 + 1.32.5-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index ae8d26ab..baf1aace 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.32.4 + 1.32.5-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.32.4 + 1.32.5-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index b236376a..dbd6df2e 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.88.4 + 0.88.5-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.32.4 + 1.32.5-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 100a1b45..a15ef34f 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.88.4 + 0.88.5-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.32.4 + 1.32.5-SNAPSHOT diff --git a/versions.txt b/versions.txt index 5dd143c0..c3cc648c 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.88.4:0.88.4 -proto-google-cloud-tasks-v2beta2:0.88.4:0.88.4 -proto-google-cloud-tasks-v2:1.32.4:1.32.4 -grpc-google-cloud-tasks-v2beta3:0.88.4:0.88.4 -grpc-google-cloud-tasks-v2beta2:0.88.4:0.88.4 -grpc-google-cloud-tasks-v2:1.32.4:1.32.4 -google-cloud-tasks:1.32.4:1.32.4 \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.88.4:0.88.5-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.88.4:0.88.5-SNAPSHOT +proto-google-cloud-tasks-v2:1.32.4:1.32.5-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.88.4:0.88.5-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.88.4:0.88.5-SNAPSHOT +grpc-google-cloud-tasks-v2:1.32.4:1.32.5-SNAPSHOT +google-cloud-tasks:1.32.4:1.32.5-SNAPSHOT \ No newline at end of file From 518d19d690faf519808e513a5eb0b09f1653fdc4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 12 May 2021 02:56:09 +0200 Subject: [PATCH 066/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v1.32.4 (#423) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `1.32.2` -> `1.32.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.32.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.32.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.32.4/compatibility-slim/1.32.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.32.4/confidence-slim/1.32.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-tasks ### [`v1.32.4`](https://togithub.com/googleapis/java-tasks/blob/master/CHANGELOG.md#​1324-httpswwwgithubcomgoogleapisjava-taskscomparev1323v1324-2021-05-11) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v1.32.3...v1.32.4) ### [`v1.32.3`](https://togithub.com/googleapis/java-tasks/blob/master/CHANGELOG.md#​1323-httpswwwgithubcomgoogleapisjava-taskscomparev1322v1323-2021-04-26) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v1.32.2...v1.32.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index d9c22e04..fa7c54cd 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 1.32.2 + 1.32.4 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 32e0b255..560f41f7 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 1.32.2 + 1.32.4 From c6b805541af683c4effe7ae49a697e1f92294514 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 12 May 2021 02:56:13 +0200 Subject: [PATCH 067/401] chore(deps): update dependency com.google.cloud:libraries-bom to v20 (#404) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.2.1` -> `20.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/compatibility-slim/19.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/confidence-slim/19.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index fa9f9f0f..18e72d32 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 19.2.1 + 20.3.0 pom import From c52c4510f859233d831096c1feebcc898349bcc7 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 11 May 2021 18:04:25 -0700 Subject: [PATCH 068/401] chore: regenerate README (#433) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-05-12 00:58:28,421 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-tasks/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-05-12 00:58:29,820 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/58b6285f-ff31-43bd-8420-ac93a98a33e7/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 8f95d9b0..ae5b2b35 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "fc79b41fce565bcccb592ab68363896dbbf7e378" + "sha": "c6b805541af683c4effe7ae49a697e1f92294514" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "6244244abd0da5ef750e3bbb63fa22ec6803b4db" + "sha": "b891fb474173f810051a7fdb0d66915e0a9bc82f" } } ] diff --git a/README.md b/README.md index 1f0239e2..e0c4feac 100644 --- a/README.md +++ b/README.md @@ -17,18 +17,18 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 1.32.3 + 1.32.4 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-tasks:1.32.3' +compile 'com.google.cloud:google-cloud-tasks:1.32.4' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.32.3" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.32.4" ``` ## Authentication From 5d8bf2f644bb5a7d6fe38d16175278a90bea70fe Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 13 May 2021 16:38:22 -0700 Subject: [PATCH 069/401] build(java): remove codecov action (#434) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/98b8f1a8-a76d-4ea4-a9e5-6a8a1ee07451/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/4f4b1b9b8d8b52f1e9e4a76165896debce5ab7f1 --- .github/workflows/ci.yaml | 6 +----- synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index def8b3a2..0195b32f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,10 +19,6 @@ jobs: - run: .kokoro/build.sh env: JOB_TYPE: test - - name: coverage - uses: codecov/codecov-action@v1 - with: - name: actions ${{matrix.java}} windows: runs-on: windows-latest steps: @@ -80,4 +76,4 @@ jobs: - run: java -version - run: .kokoro/build.sh env: - JOB_TYPE: clirr \ No newline at end of file + JOB_TYPE: clirr diff --git a/synth.metadata b/synth.metadata index a6028ac5..5603ee6d 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "07e9ad3dc1d52b051ab659b355da56b22853a725" + "sha": "c52c4510f859233d831096c1feebcc898349bcc7" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "046994f491c02806aea60118e214a9edd67f5ab7" + "sha": "4f4b1b9b8d8b52f1e9e4a76165896debce5ab7f1" } } ], From 6cabca96cd5266b3ba019398607f7abb7fabc842 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 17 May 2021 15:22:02 +0200 Subject: [PATCH 070/401] chore(deps): update dependency com.google.cloud:libraries-bom to v20.4.0 (#435) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.3.0` -> `20.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/compatibility-slim/20.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/confidence-slim/20.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 18e72d32..18240365 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.3.0 + 20.4.0 pom import From 361857d2517d3a10e7c25d291bc36b5c48b2493f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 17 May 2021 15:16:15 -0700 Subject: [PATCH 071/401] chore: add changelog to cloud-rad (#436) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/b5390bb6-f3f8-479c-b587-987d27920504/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/c86c7a60985644eab557949363a38301d40d78d2 --- .kokoro/release/publish_javadoc11.sh | 2 ++ synth.metadata | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index 4e4ac82c..f53aeff5 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -42,6 +42,8 @@ mvn clean site -B -q -P docFX # copy README to docfx-yml dir and rename index.md cp README.md target/docfx-yml/index.md +# copy CHANGELOG to docfx-yml dir and rename history.md +cp CHANGELOG.md target/docfx-yml/history.md pushd target/docfx-yml diff --git a/synth.metadata b/synth.metadata index 5603ee6d..ee1c807e 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "c52c4510f859233d831096c1feebcc898349bcc7" + "sha": "6cabca96cd5266b3ba019398607f7abb7fabc842" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "4f4b1b9b8d8b52f1e9e4a76165896debce5ab7f1" + "sha": "c86c7a60985644eab557949363a38301d40d78d2" } } ], From 2dcf421900073d42bd5c7218826bfdb1e7088ec2 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 19 May 2021 07:22:17 -0700 Subject: [PATCH 072/401] feat: add `gcf-owl-bot[bot]` to `ignoreAuthors` (#438) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/40989e2b-9466-4158-a3ad-a9a0dfe0dda9/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/7332178a11ddddc91188dc0f25bca1ccadcaa6c6 --- .github/generated-files-bot.yml | 1 + synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/generated-files-bot.yml b/.github/generated-files-bot.yml index 47c2ba13..c644a24e 100644 --- a/.github/generated-files-bot.yml +++ b/.github/generated-files-bot.yml @@ -9,3 +9,4 @@ ignoreAuthors: - 'renovate-bot' - 'yoshi-automation' - 'release-please[bot]' +- 'gcf-owl-bot[bot]' diff --git a/synth.metadata b/synth.metadata index ee1c807e..fed0ec2a 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "6cabca96cd5266b3ba019398607f7abb7fabc842" + "sha": "361857d2517d3a10e7c25d291bc36b5c48b2493f" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "c86c7a60985644eab557949363a38301d40d78d2" + "sha": "7332178a11ddddc91188dc0f25bca1ccadcaa6c6" } } ], From d38ae30439cf91434c6b39ea3416e73d170c32a6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 19 May 2021 17:06:45 +0200 Subject: [PATCH 073/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 (#437) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `1.1.0` -> `1.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.2.0/compatibility-slim/1.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.2.0/confidence-slim/1.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v1.2.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​120-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare110v120-2021-05-18) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v1.1.0...v1.2.0) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.31.5 ([#​353](https://www.github.com/googleapis/java-shared-dependencies/issues/353)) ([8d72ab0](https://www.github.com/googleapis/java-shared-dependencies/commit/8d72ab003e08c864aedc17fc190ba26f393bf0c7)) - update dependency com.google.errorprone:error_prone_annotations to v2.7.1 ([#​360](https://www.github.com/googleapis/java-shared-dependencies/issues/360)) ([8f952d0](https://www.github.com/googleapis/java-shared-dependencies/commit/8f952d05745358fc426a1a2dcb688da5d5010239)) - update dependency com.google.protobuf:protobuf-bom to v3.17.0 ([#​355](https://www.github.com/googleapis/java-shared-dependencies/issues/355)) ([09858fb](https://www.github.com/googleapis/java-shared-dependencies/commit/09858fb4f1b78a77e828501597d20df4db0ebfcf)) - update dependency io.grpc:grpc-bom to v1.37.1 ([#​359](https://www.github.com/googleapis/java-shared-dependencies/issues/359)) ([bc9869e](https://www.github.com/googleapis/java-shared-dependencies/commit/bc9869e914314f951afd69f2acae95c414398f43)) - update google.common-protos.version to v2.2.1 ([#​358](https://www.github.com/googleapis/java-shared-dependencies/issues/358)) ([a3ed764](https://www.github.com/googleapis/java-shared-dependencies/commit/a3ed764a0e5143ee323d4b69c9747b8265d349e2)) - update iam.version to v1.0.14 ([#​352](https://www.github.com/googleapis/java-shared-dependencies/issues/352)) ([bea9a01](https://www.github.com/googleapis/java-shared-dependencies/commit/bea9a01788ac1332a4bc7e06574ef5701700fe90))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 09ca7cd1..ca390641 100644 --- a/pom.xml +++ b/pom.xml @@ -106,7 +106,7 @@ com.google.cloud google-cloud-shared-dependencies - 1.1.0 + 1.2.0 pom import From 1e158f7f5bc42b76ef596f502d8bfb0d84654ae6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 19 May 2021 23:02:07 +0200 Subject: [PATCH 074/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.12.0 (#440) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.11.2` -> `0.12.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.12.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.12.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.12.0/compatibility-slim/0.11.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.12.0/confidence-slim/0.11.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index d6f170c8..c62329b4 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.11.2 + 0.12.0 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index ca390641..0a0773d3 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.11.2 + 0.12.0 From 8711c6037ab70986f9ed300782436b33eb8aab69 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 25 May 2021 17:50:59 +0200 Subject: [PATCH 075/401] chore(deps): update dependency com.google.cloud:libraries-bom to v20.5.0 (#442) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 18240365..2c8689e8 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.4.0 + 20.5.0 pom import From 752da2a807ecd414e680f096c4f03eddaa8b9063 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 25 May 2021 17:51:13 +0200 Subject: [PATCH 076/401] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.3.0 (#441) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0a0773d3..1442ea60 100644 --- a/pom.xml +++ b/pom.xml @@ -180,7 +180,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.2.0 + 3.3.0 html From 553a06a098a4419677c824a8ac68af934d7e7ef8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 25 May 2021 17:51:19 +0200 Subject: [PATCH 077/401] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.1.2 (#426) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1442ea60..37bbb417 100644 --- a/pom.xml +++ b/pom.xml @@ -153,7 +153,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.1.1 + 3.1.2 From 1b57def52a8b89f24ef70c84858c47e854a300f1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 26 May 2021 22:58:13 +0200 Subject: [PATCH 078/401] test(deps): update dependency com.google.truth:truth to v1.1.3 (#443) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.truth:truth | `1.1.2` -> `1.1.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/compatibility-slim/1.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/confidence-slim/1.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index fa7c54cd..6f1b8c1e 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -42,7 +42,7 @@ com.google.truth truth - 1.1.2 + 1.1.3 test
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 560f41f7..4afd4ac0 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.truth truth - 1.1.2 + 1.1.3 test
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 2c8689e8..d8f98876 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -53,7 +53,7 @@ com.google.truth truth - 1.1.2 + 1.1.3 test
From 5f67b252adc10509a544b780840574965e3395f7 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 27 May 2021 15:08:04 -0700 Subject: [PATCH 079/401] docs: fix grammar in documentation. (#444) PiperOrigin-RevId: 376172241 Source-Author: Google APIs Source-Date: Thu May 27 08:17:40 2021 -0700 Source-Repo: googleapis/googleapis Source-Sha: df616b587f0b4302f15387f315c286035c3b8bb1 Source-Link: https://github.com/googleapis/googleapis/commit/df616b587f0b4302f15387f315c286035c3b8bb1 --- .../java/com/google/cloud/tasks/v2beta2/Queue.java | 14 +++++++------- .../google/cloud/tasks/v2beta2/QueueOrBuilder.java | 4 ++-- .../proto/google/cloud/tasks/v2beta2/queue.proto | 2 +- .../java/com/google/cloud/tasks/v2beta3/Queue.java | 14 +++++++------- .../google/cloud/tasks/v2beta3/QueueOrBuilder.java | 4 ++-- .../proto/google/cloud/tasks/v2beta3/queue.proto | 2 +- synth.metadata | 6 +++--- 7 files changed, 23 insertions(+), 23 deletions(-) diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java index 4c8c5f2b..dd8e70bb 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java @@ -870,7 +870,7 @@ public com.google.cloud.tasks.v2beta2.RetryConfigOrBuilder getRetryConfigOrBuild * *
    * Output only. The state of the queue.
-   * `state` can only be changed by called
+   * `state` can only be changed by calling
    * [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue],
    * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or uploading
    * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
@@ -890,7 +890,7 @@ public int getStateValue() {
    *
    * 
    * Output only. The state of the queue.
-   * `state` can only be changed by called
+   * `state` can only be changed by calling
    * [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue],
    * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or uploading
    * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
@@ -2940,7 +2940,7 @@ public com.google.cloud.tasks.v2beta2.RetryConfigOrBuilder getRetryConfigOrBuild
      *
      * 
      * Output only. The state of the queue.
-     * `state` can only be changed by called
+     * `state` can only be changed by calling
      * [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue],
      * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or uploading
      * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
@@ -2960,7 +2960,7 @@ public int getStateValue() {
      *
      * 
      * Output only. The state of the queue.
-     * `state` can only be changed by called
+     * `state` can only be changed by calling
      * [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue],
      * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or uploading
      * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
@@ -2983,7 +2983,7 @@ public Builder setStateValue(int value) {
      *
      * 
      * Output only. The state of the queue.
-     * `state` can only be changed by called
+     * `state` can only be changed by calling
      * [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue],
      * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or uploading
      * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
@@ -3006,7 +3006,7 @@ public com.google.cloud.tasks.v2beta2.Queue.State getState() {
      *
      * 
      * Output only. The state of the queue.
-     * `state` can only be changed by called
+     * `state` can only be changed by calling
      * [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue],
      * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or uploading
      * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
@@ -3032,7 +3032,7 @@ public Builder setState(com.google.cloud.tasks.v2beta2.Queue.State value) {
      *
      * 
      * Output only. The state of the queue.
-     * `state` can only be changed by called
+     * `state` can only be changed by calling
      * [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue],
      * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or uploading
      * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueOrBuilder.java
index 95df0745..15bb0343 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueOrBuilder.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueOrBuilder.java
@@ -289,7 +289,7 @@ public interface QueueOrBuilder
    *
    * 
    * Output only. The state of the queue.
-   * `state` can only be changed by called
+   * `state` can only be changed by calling
    * [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue],
    * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or uploading
    * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
@@ -306,7 +306,7 @@ public interface QueueOrBuilder
    *
    * 
    * Output only. The state of the queue.
-   * `state` can only be changed by called
+   * `state` can only be changed by calling
    * [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue],
    * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or uploading
    * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/queue.proto b/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/queue.proto
index 1cc44651..f988d80c 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/queue.proto
+++ b/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/queue.proto
@@ -149,7 +149,7 @@ message Queue {
 
   // Output only. The state of the queue.
   //
-  // `state` can only be changed by called
+  // `state` can only be changed by calling
   // [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue],
   // [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or uploading
   // [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Queue.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Queue.java
index 4f3e3e1f..065d014b 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Queue.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Queue.java
@@ -995,7 +995,7 @@ public com.google.cloud.tasks.v2beta3.RetryConfigOrBuilder getRetryConfigOrBuild
    *
    * 
    * Output only. The state of the queue.
-   * `state` can only be changed by called
+   * `state` can only be changed by calling
    * [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue],
    * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading
    * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
@@ -1015,7 +1015,7 @@ public int getStateValue() {
    *
    * 
    * Output only. The state of the queue.
-   * `state` can only be changed by called
+   * `state` can only be changed by calling
    * [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue],
    * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading
    * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
@@ -3040,7 +3040,7 @@ public com.google.cloud.tasks.v2beta3.RetryConfigOrBuilder getRetryConfigOrBuild
      *
      * 
      * Output only. The state of the queue.
-     * `state` can only be changed by called
+     * `state` can only be changed by calling
      * [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue],
      * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading
      * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
@@ -3060,7 +3060,7 @@ public int getStateValue() {
      *
      * 
      * Output only. The state of the queue.
-     * `state` can only be changed by called
+     * `state` can only be changed by calling
      * [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue],
      * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading
      * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
@@ -3083,7 +3083,7 @@ public Builder setStateValue(int value) {
      *
      * 
      * Output only. The state of the queue.
-     * `state` can only be changed by called
+     * `state` can only be changed by calling
      * [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue],
      * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading
      * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
@@ -3106,7 +3106,7 @@ public com.google.cloud.tasks.v2beta3.Queue.State getState() {
      *
      * 
      * Output only. The state of the queue.
-     * `state` can only be changed by called
+     * `state` can only be changed by calling
      * [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue],
      * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading
      * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
@@ -3132,7 +3132,7 @@ public Builder setState(com.google.cloud.tasks.v2beta3.Queue.State value) {
      *
      * 
      * Output only. The state of the queue.
-     * `state` can only be changed by called
+     * `state` can only be changed by calling
      * [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue],
      * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading
      * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueOrBuilder.java
index 6ad394d6..cc0ff52c 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueOrBuilder.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueOrBuilder.java
@@ -275,7 +275,7 @@ public interface QueueOrBuilder
    *
    * 
    * Output only. The state of the queue.
-   * `state` can only be changed by called
+   * `state` can only be changed by calling
    * [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue],
    * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading
    * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
@@ -292,7 +292,7 @@ public interface QueueOrBuilder
    *
    * 
    * Output only. The state of the queue.
-   * `state` can only be changed by called
+   * `state` can only be changed by calling
    * [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue],
    * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading
    * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/queue.proto b/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/queue.proto
index 2b042a12..acf5a7f4 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/queue.proto
+++ b/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/queue.proto
@@ -154,7 +154,7 @@ message Queue {
 
   // Output only. The state of the queue.
   //
-  // `state` can only be changed by called
+  // `state` can only be changed by calling
   // [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue],
   // [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading
   // [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
diff --git a/synth.metadata b/synth.metadata
index fed0ec2a..31f6e458 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,15 +4,15 @@
       "git": {
         "name": ".",
         "remote": "https://github.com/googleapis/java-tasks.git",
-        "sha": "361857d2517d3a10e7c25d291bc36b5c48b2493f"
+        "sha": "1b57def52a8b89f24ef70c84858c47e854a300f1"
       }
     },
     {
       "git": {
         "name": "googleapis",
         "remote": "https://github.com/googleapis/googleapis.git",
-        "sha": "1305ca41d554eb0725237561e34129373bb8cbc1",
-        "internalRef": "362856902"
+        "sha": "df616b587f0b4302f15387f315c286035c3b8bb1",
+        "internalRef": "376172241"
       }
     },
     {

From aa9a43c084aa7715feb04a8f802e799fc0699146 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
 <55107282+release-please[bot]@users.noreply.github.com>
Date: Tue, 1 Jun 2021 19:00:05 +0000
Subject: [PATCH 080/401] chore: release 1.33.0 (#439)

:robot: I have created a release \*beep\* \*boop\*
---
## [1.33.0](https://www.github.com/googleapis/java-tasks/compare/v1.32.4...v1.33.0) (2021-05-27)


### Features

* add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#438](https://www.github.com/googleapis/java-tasks/issues/438)) ([2dcf421](https://www.github.com/googleapis/java-tasks/commit/2dcf421900073d42bd5c7218826bfdb1e7088ec2))


### Dependencies

* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 ([#437](https://www.github.com/googleapis/java-tasks/issues/437)) ([d38ae30](https://www.github.com/googleapis/java-tasks/commit/d38ae30439cf91434c6b39ea3416e73d170c32a6))


### Documentation

* fix grammar in documentation. ([#444](https://www.github.com/googleapis/java-tasks/issues/444)) ([5f67b25](https://www.github.com/googleapis/java-tasks/commit/5f67b252adc10509a544b780840574965e3395f7))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
---
 CHANGELOG.md                             | 17 +++++++++++++++++
 google-cloud-tasks-bom/pom.xml           | 16 ++++++++--------
 google-cloud-tasks/pom.xml               |  4 ++--
 grpc-google-cloud-tasks-v2/pom.xml       |  4 ++--
 grpc-google-cloud-tasks-v2beta2/pom.xml  |  4 ++--
 grpc-google-cloud-tasks-v2beta3/pom.xml  |  4 ++--
 pom.xml                                  | 16 ++++++++--------
 proto-google-cloud-tasks-v2/pom.xml      |  4 ++--
 proto-google-cloud-tasks-v2beta2/pom.xml |  4 ++--
 proto-google-cloud-tasks-v2beta3/pom.xml |  4 ++--
 versions.txt                             | 14 +++++++-------
 11 files changed, 54 insertions(+), 37 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 81cdb5dc..4b271d5d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,22 @@
 # Changelog
 
+## [1.33.0](https://www.github.com/googleapis/java-tasks/compare/v1.32.4...v1.33.0) (2021-05-27)
+
+
+### Features
+
+* add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#438](https://www.github.com/googleapis/java-tasks/issues/438)) ([2dcf421](https://www.github.com/googleapis/java-tasks/commit/2dcf421900073d42bd5c7218826bfdb1e7088ec2))
+
+
+### Dependencies
+
+* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 ([#437](https://www.github.com/googleapis/java-tasks/issues/437)) ([d38ae30](https://www.github.com/googleapis/java-tasks/commit/d38ae30439cf91434c6b39ea3416e73d170c32a6))
+
+
+### Documentation
+
+* fix grammar in documentation. ([#444](https://www.github.com/googleapis/java-tasks/issues/444)) ([5f67b25](https://www.github.com/googleapis/java-tasks/commit/5f67b252adc10509a544b780840574965e3395f7))
+
 ### [1.32.4](https://www.github.com/googleapis/java-tasks/compare/v1.32.3...v1.32.4) (2021-05-11)
 
 
diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml
index c62329b4..7f8be1f4 100644
--- a/google-cloud-tasks-bom/pom.xml
+++ b/google-cloud-tasks-bom/pom.xml
@@ -3,7 +3,7 @@
   4.0.0
   com.google.cloud
   google-cloud-tasks-bom
-  1.32.5-SNAPSHOT
+  1.33.0
   pom
   
     com.google.cloud
@@ -64,37 +64,37 @@
       
         com.google.api.grpc
         proto-google-cloud-tasks-v2beta3
-        0.88.5-SNAPSHOT
+        0.89.0
       
       
         com.google.api.grpc
         proto-google-cloud-tasks-v2beta2
-        0.88.5-SNAPSHOT
+        0.89.0
       
       
         com.google.api.grpc
         grpc-google-cloud-tasks-v2beta3
-        0.88.5-SNAPSHOT
+        0.89.0
       
       
         com.google.api.grpc
         proto-google-cloud-tasks-v2
-        1.32.5-SNAPSHOT
+        1.33.0
       
       
         com.google.api.grpc
         grpc-google-cloud-tasks-v2beta2
-        0.88.5-SNAPSHOT
+        0.89.0
       
       
         com.google.api.grpc
         grpc-google-cloud-tasks-v2
-        1.32.5-SNAPSHOT
+        1.33.0
       
       
         com.google.cloud
         google-cloud-tasks
-        1.32.5-SNAPSHOT
+        1.33.0
       
     
   
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml
index 3e606a52..8d94b04c 100644
--- a/google-cloud-tasks/pom.xml
+++ b/google-cloud-tasks/pom.xml
@@ -3,7 +3,7 @@
   4.0.0
   com.google.cloud
   google-cloud-tasks
-  1.32.5-SNAPSHOT
+  1.33.0
   jar
   Google Cloud Tasks
   https://github.com/googleapis/java-tasks
@@ -11,7 +11,7 @@
   
     com.google.cloud
     google-cloud-tasks-parent
-    1.32.5-SNAPSHOT
+    1.33.0
   
   
     google-cloud-tasks
diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml
index 64f8d553..ddb6bd97 100644
--- a/grpc-google-cloud-tasks-v2/pom.xml
+++ b/grpc-google-cloud-tasks-v2/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   grpc-google-cloud-tasks-v2
-  1.32.5-SNAPSHOT
+  1.33.0
   grpc-google-cloud-tasks-v2
   GRPC library for grpc-google-cloud-tasks-v2
   
     com.google.cloud
     google-cloud-tasks-parent
-    1.32.5-SNAPSHOT
+    1.33.0
   
   
     
diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml
index 3bc7fee3..8eec8c2c 100644
--- a/grpc-google-cloud-tasks-v2beta2/pom.xml
+++ b/grpc-google-cloud-tasks-v2beta2/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   grpc-google-cloud-tasks-v2beta2
-  0.88.5-SNAPSHOT
+  0.89.0
   grpc-google-cloud-tasks-v2beta2
   GRPC library for grpc-google-cloud-tasks-v2beta2
   
     com.google.cloud
     google-cloud-tasks-parent
-    1.32.5-SNAPSHOT
+    1.33.0
   
   
     
diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml
index 09450bae..743ef7fd 100644
--- a/grpc-google-cloud-tasks-v2beta3/pom.xml
+++ b/grpc-google-cloud-tasks-v2beta3/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   grpc-google-cloud-tasks-v2beta3
-  0.88.5-SNAPSHOT
+  0.89.0
   grpc-google-cloud-tasks-v2beta3
   GRPC library for grpc-google-cloud-tasks-v2beta3
   
     com.google.cloud
     google-cloud-tasks-parent
-    1.32.5-SNAPSHOT
+    1.33.0
   
   
     
diff --git a/pom.xml b/pom.xml
index 37bbb417..804a27e4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
   com.google.cloud
   google-cloud-tasks-parent
   pom
-  1.32.5-SNAPSHOT
+  1.33.0
   Google Cloud Tasks Parent
   https://github.com/googleapis/java-tasks
   
@@ -70,37 +70,37 @@
       
         com.google.api.grpc
         proto-google-cloud-tasks-v2beta3
-        0.88.5-SNAPSHOT
+        0.89.0
       
       
         com.google.api.grpc
         proto-google-cloud-tasks-v2beta2
-        0.88.5-SNAPSHOT
+        0.89.0
       
       
         com.google.api.grpc
         proto-google-cloud-tasks-v2
-        1.32.5-SNAPSHOT
+        1.33.0
       
       
         com.google.api.grpc
         grpc-google-cloud-tasks-v2beta3
-        0.88.5-SNAPSHOT
+        0.89.0
       
       
         com.google.api.grpc
         grpc-google-cloud-tasks-v2beta2
-        0.88.5-SNAPSHOT
+        0.89.0
       
       
         com.google.api.grpc
         grpc-google-cloud-tasks-v2
-        1.32.5-SNAPSHOT
+        1.33.0
       
       
         com.google.cloud
         google-cloud-tasks
-        1.32.5-SNAPSHOT
+        1.33.0
       
 
       
diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml
index baf1aace..9716b5ab 100644
--- a/proto-google-cloud-tasks-v2/pom.xml
+++ b/proto-google-cloud-tasks-v2/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   proto-google-cloud-tasks-v2
-  1.32.5-SNAPSHOT
+  1.33.0
   proto-google-cloud-tasks-v2
   PROTO library for proto-google-cloud-tasks-v2
   
     com.google.cloud
     google-cloud-tasks-parent
-    1.32.5-SNAPSHOT
+    1.33.0
   
   
     
diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml
index dbd6df2e..e865c18c 100644
--- a/proto-google-cloud-tasks-v2beta2/pom.xml
+++ b/proto-google-cloud-tasks-v2beta2/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   proto-google-cloud-tasks-v2beta2
-  0.88.5-SNAPSHOT
+  0.89.0
   proto-google-cloud-tasks-v2beta2
   PROTO library for proto-google-cloud-tasks-v2beta2
   
     com.google.cloud
     google-cloud-tasks-parent
-    1.32.5-SNAPSHOT
+    1.33.0
   
   
     
diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml
index a15ef34f..aac1b6ce 100644
--- a/proto-google-cloud-tasks-v2beta3/pom.xml
+++ b/proto-google-cloud-tasks-v2beta3/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   proto-google-cloud-tasks-v2beta3
-  0.88.5-SNAPSHOT
+  0.89.0
   proto-google-cloud-tasks-v2beta3
   PROTO library for proto-google-cloud-tasks-v2beta3
   
     com.google.cloud
     google-cloud-tasks-parent
-    1.32.5-SNAPSHOT
+    1.33.0
   
   
     
diff --git a/versions.txt b/versions.txt
index c3cc648c..558ca868 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,10 +1,10 @@
 # Format:
 # module:released-version:current-version
 
-proto-google-cloud-tasks-v2beta3:0.88.4:0.88.5-SNAPSHOT
-proto-google-cloud-tasks-v2beta2:0.88.4:0.88.5-SNAPSHOT
-proto-google-cloud-tasks-v2:1.32.4:1.32.5-SNAPSHOT
-grpc-google-cloud-tasks-v2beta3:0.88.4:0.88.5-SNAPSHOT
-grpc-google-cloud-tasks-v2beta2:0.88.4:0.88.5-SNAPSHOT
-grpc-google-cloud-tasks-v2:1.32.4:1.32.5-SNAPSHOT
-google-cloud-tasks:1.32.4:1.32.5-SNAPSHOT
\ No newline at end of file
+proto-google-cloud-tasks-v2beta3:0.89.0:0.89.0
+proto-google-cloud-tasks-v2beta2:0.89.0:0.89.0
+proto-google-cloud-tasks-v2:1.33.0:1.33.0
+grpc-google-cloud-tasks-v2beta3:0.89.0:0.89.0
+grpc-google-cloud-tasks-v2beta2:0.89.0:0.89.0
+grpc-google-cloud-tasks-v2:1.33.0:1.33.0
+google-cloud-tasks:1.33.0:1.33.0
\ No newline at end of file

From c76f9c66ff3ef0b854fc313fa137b3a3c693442c Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
 <55107282+release-please[bot]@users.noreply.github.com>
Date: Tue, 1 Jun 2021 19:06:03 +0000
Subject: [PATCH 081/401] chore: release 1.33.1-SNAPSHOT (#445)

:robot: I have created a release \*beep\* \*boop\*
---
### Updating meta-information for bleeding-edge SNAPSHOT release.
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
---
 google-cloud-tasks-bom/pom.xml           | 16 ++++++++--------
 google-cloud-tasks/pom.xml               |  4 ++--
 grpc-google-cloud-tasks-v2/pom.xml       |  4 ++--
 grpc-google-cloud-tasks-v2beta2/pom.xml  |  4 ++--
 grpc-google-cloud-tasks-v2beta3/pom.xml  |  4 ++--
 pom.xml                                  | 16 ++++++++--------
 proto-google-cloud-tasks-v2/pom.xml      |  4 ++--
 proto-google-cloud-tasks-v2beta2/pom.xml |  4 ++--
 proto-google-cloud-tasks-v2beta3/pom.xml |  4 ++--
 versions.txt                             | 14 +++++++-------
 10 files changed, 37 insertions(+), 37 deletions(-)

diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml
index 7f8be1f4..ee16812b 100644
--- a/google-cloud-tasks-bom/pom.xml
+++ b/google-cloud-tasks-bom/pom.xml
@@ -3,7 +3,7 @@
   4.0.0
   com.google.cloud
   google-cloud-tasks-bom
-  1.33.0
+  1.33.1-SNAPSHOT
   pom
   
     com.google.cloud
@@ -64,37 +64,37 @@
       
         com.google.api.grpc
         proto-google-cloud-tasks-v2beta3
-        0.89.0
+        0.89.1-SNAPSHOT
       
       
         com.google.api.grpc
         proto-google-cloud-tasks-v2beta2
-        0.89.0
+        0.89.1-SNAPSHOT
       
       
         com.google.api.grpc
         grpc-google-cloud-tasks-v2beta3
-        0.89.0
+        0.89.1-SNAPSHOT
       
       
         com.google.api.grpc
         proto-google-cloud-tasks-v2
-        1.33.0
+        1.33.1-SNAPSHOT
       
       
         com.google.api.grpc
         grpc-google-cloud-tasks-v2beta2
-        0.89.0
+        0.89.1-SNAPSHOT
       
       
         com.google.api.grpc
         grpc-google-cloud-tasks-v2
-        1.33.0
+        1.33.1-SNAPSHOT
       
       
         com.google.cloud
         google-cloud-tasks
-        1.33.0
+        1.33.1-SNAPSHOT
       
     
   
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml
index 8d94b04c..48e1314d 100644
--- a/google-cloud-tasks/pom.xml
+++ b/google-cloud-tasks/pom.xml
@@ -3,7 +3,7 @@
   4.0.0
   com.google.cloud
   google-cloud-tasks
-  1.33.0
+  1.33.1-SNAPSHOT
   jar
   Google Cloud Tasks
   https://github.com/googleapis/java-tasks
@@ -11,7 +11,7 @@
   
     com.google.cloud
     google-cloud-tasks-parent
-    1.33.0
+    1.33.1-SNAPSHOT
   
   
     google-cloud-tasks
diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml
index ddb6bd97..fadb08bc 100644
--- a/grpc-google-cloud-tasks-v2/pom.xml
+++ b/grpc-google-cloud-tasks-v2/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   grpc-google-cloud-tasks-v2
-  1.33.0
+  1.33.1-SNAPSHOT
   grpc-google-cloud-tasks-v2
   GRPC library for grpc-google-cloud-tasks-v2
   
     com.google.cloud
     google-cloud-tasks-parent
-    1.33.0
+    1.33.1-SNAPSHOT
   
   
     
diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml
index 8eec8c2c..df4d14ac 100644
--- a/grpc-google-cloud-tasks-v2beta2/pom.xml
+++ b/grpc-google-cloud-tasks-v2beta2/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   grpc-google-cloud-tasks-v2beta2
-  0.89.0
+  0.89.1-SNAPSHOT
   grpc-google-cloud-tasks-v2beta2
   GRPC library for grpc-google-cloud-tasks-v2beta2
   
     com.google.cloud
     google-cloud-tasks-parent
-    1.33.0
+    1.33.1-SNAPSHOT
   
   
     
diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml
index 743ef7fd..44870d5b 100644
--- a/grpc-google-cloud-tasks-v2beta3/pom.xml
+++ b/grpc-google-cloud-tasks-v2beta3/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   grpc-google-cloud-tasks-v2beta3
-  0.89.0
+  0.89.1-SNAPSHOT
   grpc-google-cloud-tasks-v2beta3
   GRPC library for grpc-google-cloud-tasks-v2beta3
   
     com.google.cloud
     google-cloud-tasks-parent
-    1.33.0
+    1.33.1-SNAPSHOT
   
   
     
diff --git a/pom.xml b/pom.xml
index 804a27e4..a5a2b0aa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
   com.google.cloud
   google-cloud-tasks-parent
   pom
-  1.33.0
+  1.33.1-SNAPSHOT
   Google Cloud Tasks Parent
   https://github.com/googleapis/java-tasks
   
@@ -70,37 +70,37 @@
       
         com.google.api.grpc
         proto-google-cloud-tasks-v2beta3
-        0.89.0
+        0.89.1-SNAPSHOT
       
       
         com.google.api.grpc
         proto-google-cloud-tasks-v2beta2
-        0.89.0
+        0.89.1-SNAPSHOT
       
       
         com.google.api.grpc
         proto-google-cloud-tasks-v2
-        1.33.0
+        1.33.1-SNAPSHOT
       
       
         com.google.api.grpc
         grpc-google-cloud-tasks-v2beta3
-        0.89.0
+        0.89.1-SNAPSHOT
       
       
         com.google.api.grpc
         grpc-google-cloud-tasks-v2beta2
-        0.89.0
+        0.89.1-SNAPSHOT
       
       
         com.google.api.grpc
         grpc-google-cloud-tasks-v2
-        1.33.0
+        1.33.1-SNAPSHOT
       
       
         com.google.cloud
         google-cloud-tasks
-        1.33.0
+        1.33.1-SNAPSHOT
       
 
       
diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml
index 9716b5ab..581bca68 100644
--- a/proto-google-cloud-tasks-v2/pom.xml
+++ b/proto-google-cloud-tasks-v2/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   proto-google-cloud-tasks-v2
-  1.33.0
+  1.33.1-SNAPSHOT
   proto-google-cloud-tasks-v2
   PROTO library for proto-google-cloud-tasks-v2
   
     com.google.cloud
     google-cloud-tasks-parent
-    1.33.0
+    1.33.1-SNAPSHOT
   
   
     
diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml
index e865c18c..ee46fc1b 100644
--- a/proto-google-cloud-tasks-v2beta2/pom.xml
+++ b/proto-google-cloud-tasks-v2beta2/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   proto-google-cloud-tasks-v2beta2
-  0.89.0
+  0.89.1-SNAPSHOT
   proto-google-cloud-tasks-v2beta2
   PROTO library for proto-google-cloud-tasks-v2beta2
   
     com.google.cloud
     google-cloud-tasks-parent
-    1.33.0
+    1.33.1-SNAPSHOT
   
   
     
diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml
index aac1b6ce..bd430827 100644
--- a/proto-google-cloud-tasks-v2beta3/pom.xml
+++ b/proto-google-cloud-tasks-v2beta3/pom.xml
@@ -4,13 +4,13 @@
   4.0.0
   com.google.api.grpc
   proto-google-cloud-tasks-v2beta3
-  0.89.0
+  0.89.1-SNAPSHOT
   proto-google-cloud-tasks-v2beta3
   PROTO library for proto-google-cloud-tasks-v2beta3
   
     com.google.cloud
     google-cloud-tasks-parent
-    1.33.0
+    1.33.1-SNAPSHOT
   
   
     
diff --git a/versions.txt b/versions.txt
index 558ca868..e2eb6c62 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,10 +1,10 @@
 # Format:
 # module:released-version:current-version
 
-proto-google-cloud-tasks-v2beta3:0.89.0:0.89.0
-proto-google-cloud-tasks-v2beta2:0.89.0:0.89.0
-proto-google-cloud-tasks-v2:1.33.0:1.33.0
-grpc-google-cloud-tasks-v2beta3:0.89.0:0.89.0
-grpc-google-cloud-tasks-v2beta2:0.89.0:0.89.0
-grpc-google-cloud-tasks-v2:1.33.0:1.33.0
-google-cloud-tasks:1.33.0:1.33.0
\ No newline at end of file
+proto-google-cloud-tasks-v2beta3:0.89.0:0.89.1-SNAPSHOT
+proto-google-cloud-tasks-v2beta2:0.89.0:0.89.1-SNAPSHOT
+proto-google-cloud-tasks-v2:1.33.0:1.33.1-SNAPSHOT
+grpc-google-cloud-tasks-v2beta3:0.89.0:0.89.1-SNAPSHOT
+grpc-google-cloud-tasks-v2beta2:0.89.0:0.89.1-SNAPSHOT
+grpc-google-cloud-tasks-v2:1.33.0:1.33.1-SNAPSHOT
+google-cloud-tasks:1.33.0:1.33.1-SNAPSHOT
\ No newline at end of file

From 7054ab4d54efd18e547fa6bcc7ddf638a2884320 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate 
Date: Wed, 2 Jun 2021 22:10:24 +0200
Subject: [PATCH 082/401] chore(deps): update dependency
 com.google.cloud:google-cloud-tasks to v1.33.0 (#446)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `1.32.4` -> `1.33.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.33.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.33.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.33.0/compatibility-slim/1.32.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.33.0/confidence-slim/1.32.4)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

googleapis/java-tasks ### [`v1.33.0`](https://togithub.com/googleapis/java-tasks/blob/master/CHANGELOG.md#​1330-httpswwwgithubcomgoogleapisjava-taskscomparev1324v1330-2021-05-27) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v1.32.4...v1.33.0) ##### Features - add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#​438](https://www.github.com/googleapis/java-tasks/issues/438)) ([2dcf421](https://www.github.com/googleapis/java-tasks/commit/2dcf421900073d42bd5c7218826bfdb1e7088ec2)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 ([#​437](https://www.github.com/googleapis/java-tasks/issues/437)) ([d38ae30](https://www.github.com/googleapis/java-tasks/commit/d38ae30439cf91434c6b39ea3416e73d170c32a6)) ##### Documentation - fix grammar in documentation. ([#​444](https://www.github.com/googleapis/java-tasks/issues/444)) ([5f67b25](https://www.github.com/googleapis/java-tasks/commit/5f67b252adc10509a544b780840574965e3395f7)) ##### [1.32.4](https://www.github.com/googleapis/java-tasks/compare/v1.32.3...v1.32.4) (2021-05-11) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 ([#​430](https://www.github.com/googleapis/java-tasks/issues/430)) ([63a2a01](https://www.github.com/googleapis/java-tasks/commit/63a2a014b0903c4dc877c0895b5bee798d3cbc90)) ##### [1.32.3](https://www.github.com/googleapis/java-tasks/compare/v1.32.2...v1.32.3) (2021-04-26) ##### Bug Fixes - release scripts from issuing overlapping phases ([#​410](https://www.github.com/googleapis/java-tasks/issues/410)) ([47b792a](https://www.github.com/googleapis/java-tasks/commit/47b792aa840f68e506d56aa9123464628d590bfd)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 ([#​412](https://www.github.com/googleapis/java-tasks/issues/412)) ([4b4dcd7](https://www.github.com/googleapis/java-tasks/commit/4b4dcd70ee906f8ea7e0bf8dc0b51f79d8cf7711)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v1 ([#​421](https://www.github.com/googleapis/java-tasks/issues/421)) ([d6f6d73](https://www.github.com/googleapis/java-tasks/commit/d6f6d73658aa8d4cbb793852239ae93158220fe3)) ##### [1.32.2](https://www.github.com/googleapis/java-tasks/compare/v1.32.1...v1.32.2) (2021-04-12) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 ([#​401](https://www.github.com/googleapis/java-tasks/issues/401)) ([a4d01dc](https://www.github.com/googleapis/java-tasks/commit/a4d01dc922a12862fec4084afd9d9241a01cb194)) ##### [1.32.1](https://www.github.com/googleapis/java-tasks/compare/v1.32.0...v1.32.1) (2021-03-11) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 ([#​388](https://www.github.com/googleapis/java-tasks/issues/388)) ([4a67c54](https://www.github.com/googleapis/java-tasks/commit/4a67c54a75b6b87ee1dd9943508bd8d89b192645))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 6f1b8c1e..83ec65e9 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 1.32.4 + 1.33.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4afd4ac0..7577a002 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 1.32.4 + 1.33.0 From cc5e716d17418300ef0d0a6f52f16b11dd47a185 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 2 Jun 2021 13:22:15 -0700 Subject: [PATCH 083/401] chore: regenerate README (#447) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-06-02 20:14:30,402 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-tasks/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-06-02 20:14:31,942 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/64f07a5b-5d9b-4f07-a46f-908761e12c80/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index ae5b2b35..8ee3581e 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "c6b805541af683c4effe7ae49a697e1f92294514" + "sha": "7054ab4d54efd18e547fa6bcc7ddf638a2884320" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "b891fb474173f810051a7fdb0d66915e0a9bc82f" + "sha": "c3e41da0fa256ad7f6b4bc76b9d069dedecdfef4" } } ] diff --git a/README.md b/README.md index e0c4feac..927aa145 100644 --- a/README.md +++ b/README.md @@ -17,18 +17,18 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 1.32.4 + 1.33.0 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-tasks:1.32.4' +compile 'com.google.cloud:google-cloud-tasks:1.33.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.32.4" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.33.0" ``` ## Authentication From f619284392d09e8cd4e9e9782998cddc601c6e71 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 3 Jun 2021 08:24:35 -0700 Subject: [PATCH 084/401] chore: release gapic-generator-java v1.0.10 (#448) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/7a7efea5-38b4-443d-b9d1-bba9c4646c8b/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 377081269 Source-Link: https://github.com/googleapis/googleapis/commit/a5f96d06ef57e325761bad010f460d0c5dbeccda --- .../com/google/cloud/tasks/v2/CloudTasksClientTest.java | 2 +- .../google/cloud/tasks/v2beta2/CloudTasksClientTest.java | 2 +- .../google/cloud/tasks/v2beta3/CloudTasksClientTest.java | 2 +- synth.metadata | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java index 23a326c9..aa633ce1 100644 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java +++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java @@ -56,9 +56,9 @@ @Generated("by gapic-generator-java") public class CloudTasksClientTest { + private static MockCloudTasks mockCloudTasks; private static MockServiceHelper mockServiceHelper; private CloudTasksClient client; - private static MockCloudTasks mockCloudTasks; private LocalChannelProvider channelProvider; @BeforeClass diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java index 2acf5d51..73cebd9e 100644 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java +++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java @@ -56,9 +56,9 @@ @Generated("by gapic-generator-java") public class CloudTasksClientTest { + private static MockCloudTasks mockCloudTasks; private static MockServiceHelper mockServiceHelper; private CloudTasksClient client; - private static MockCloudTasks mockCloudTasks; private LocalChannelProvider channelProvider; @BeforeClass diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java index 700533f4..71d06bff 100644 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java +++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java @@ -56,9 +56,9 @@ @Generated("by gapic-generator-java") public class CloudTasksClientTest { + private static MockCloudTasks mockCloudTasks; private static MockServiceHelper mockServiceHelper; private CloudTasksClient client; - private static MockCloudTasks mockCloudTasks; private LocalChannelProvider channelProvider; @BeforeClass diff --git a/synth.metadata b/synth.metadata index 31f6e458..a682cd82 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "1b57def52a8b89f24ef70c84858c47e854a300f1" + "sha": "cc5e716d17418300ef0d0a6f52f16b11dd47a185" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "df616b587f0b4302f15387f315c286035c3b8bb1", - "internalRef": "376172241" + "sha": "a5f96d06ef57e325761bad010f460d0c5dbeccda", + "internalRef": "377081269" } }, { From 1b322aa1023921e06a7c5bfb7be39e6e953028cd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 4 Jun 2021 17:10:24 +0200 Subject: [PATCH 085/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 (#449) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `1.2.0` -> `1.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.3.0/compatibility-slim/1.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.3.0/confidence-slim/1.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v1.3.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​130-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare120v130-2021-06-03) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v1.2.0...v1.3.0) ##### Features - add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#​365](https://www.github.com/googleapis/java-shared-dependencies/issues/365)) ([7e8309b](https://www.github.com/googleapis/java-shared-dependencies/commit/7e8309bf67ade0fe2b09f792848136cd88b4d2e4)) ##### Dependencies - update dependency com.google.auth:google-auth-library-bom to v0.26.0 ([#​368](https://www.github.com/googleapis/java-shared-dependencies/issues/368)) ([38256a8](https://www.github.com/googleapis/java-shared-dependencies/commit/38256a82cb6896c3f5e5ea6ca5d8d671c412bf84)) - update dependency com.google.cloud:google-cloud-core-bom to v1.95.0 ([#​377](https://www.github.com/googleapis/java-shared-dependencies/issues/377)) ([297ea62](https://www.github.com/googleapis/java-shared-dependencies/commit/297ea621e02f8c0679c8b07ed399d11eaacecc14)) - update dependency com.google.code.gson:gson to v2.8.7 ([#​370](https://www.github.com/googleapis/java-shared-dependencies/issues/370)) ([cdc1b8e](https://www.github.com/googleapis/java-shared-dependencies/commit/cdc1b8ea1c93f97b712081ca8dc8ea57f342b69e)) - update dependency com.google.protobuf:protobuf-bom to v3.17.1 ([#​369](https://www.github.com/googleapis/java-shared-dependencies/issues/369)) ([5a19574](https://www.github.com/googleapis/java-shared-dependencies/commit/5a19574bc626bb3c6b573ed1d177e8907188dec1)) - update dependency com.google.protobuf:protobuf-bom to v3.17.2 ([#​374](https://www.github.com/googleapis/java-shared-dependencies/issues/374)) ([83516e6](https://www.github.com/googleapis/java-shared-dependencies/commit/83516e691b99e5e5d22d27e561781a5ade5fb514)) - update dependency io.grpc:grpc-bom to v1.38.0 ([#​364](https://www.github.com/googleapis/java-shared-dependencies/issues/364)) ([00db570](https://www.github.com/googleapis/java-shared-dependencies/commit/00db5701c3b0aa609f3778c06911a9a0248ca342)) - update gax.version to v1.65.0 ([#​376](https://www.github.com/googleapis/java-shared-dependencies/issues/376)) ([b793a0d](https://www.github.com/googleapis/java-shared-dependencies/commit/b793a0d7744ff1b0f8ae5d3d13ec4776ae8d3089)) - update google.common-protos.version to v2.3.1 ([#​366](https://www.github.com/googleapis/java-shared-dependencies/issues/366)) ([7d6a7fa](https://www.github.com/googleapis/java-shared-dependencies/commit/7d6a7fa7a2cad2b3f2ecf45e42d2ed5db0b60a43)) - update google.common-protos.version to v2.3.2 ([#​375](https://www.github.com/googleapis/java-shared-dependencies/issues/375)) ([68a47ad](https://www.github.com/googleapis/java-shared-dependencies/commit/68a47ad3243f3e980db74c9c8505a1b3063c131b))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a5a2b0aa..b43dc3a4 100644 --- a/pom.xml +++ b/pom.xml @@ -106,7 +106,7 @@ com.google.cloud google-cloud-shared-dependencies - 1.2.0 + 1.3.0 pom import From 78bd608320cbc4db06c0fd36ba9f8627bb9f4d44 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 7 Jun 2021 21:00:21 +0200 Subject: [PATCH 086/401] chore(deps): update dependency com.google.cloud:libraries-bom to v20.6.0 (#452) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.5.0` -> `20.6.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/compatibility-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/confidence-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index d8f98876..f9350d24 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.5.0 + 20.6.0 pom import From 933a07b7739a11c0a00a2629fa513b77b569f62f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 7 Jun 2021 19:28:09 +0000 Subject: [PATCH 087/401] chore: release 1.33.1 (#450) :robot: I have created a release \*beep\* \*boop\* --- ### [1.33.1](https://www.github.com/googleapis/java-tasks/compare/v1.33.0...v1.33.1) (2021-06-07) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 ([#449](https://www.github.com/googleapis/java-tasks/issues/449)) ([1b322aa](https://www.github.com/googleapis/java-tasks/commit/1b322aa1023921e06a7c5bfb7be39e6e953028cd)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b271d5d..0d03a707 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.33.1](https://www.github.com/googleapis/java-tasks/compare/v1.33.0...v1.33.1) (2021-06-07) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 ([#449](https://www.github.com/googleapis/java-tasks/issues/449)) ([1b322aa](https://www.github.com/googleapis/java-tasks/commit/1b322aa1023921e06a7c5bfb7be39e6e953028cd)) + ## [1.33.0](https://www.github.com/googleapis/java-tasks/compare/v1.32.4...v1.33.0) (2021-05-27) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index ee16812b..2fe4e78a 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 1.33.1-SNAPSHOT + 1.33.1 pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.89.1-SNAPSHOT + 0.89.1 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.89.1-SNAPSHOT + 0.89.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.89.1-SNAPSHOT + 0.89.1 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.33.1-SNAPSHOT + 1.33.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.89.1-SNAPSHOT + 0.89.1 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.33.1-SNAPSHOT + 1.33.1 com.google.cloud google-cloud-tasks - 1.33.1-SNAPSHOT + 1.33.1
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 48e1314d..019263dd 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 1.33.1-SNAPSHOT + 1.33.1 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.33.1-SNAPSHOT + 1.33.1 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index fadb08bc..d8ffa99b 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.33.1-SNAPSHOT + 1.33.1 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.33.1-SNAPSHOT + 1.33.1 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index df4d14ac..32d39cc4 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.89.1-SNAPSHOT + 0.89.1 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.33.1-SNAPSHOT + 1.33.1 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 44870d5b..0956e1af 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.89.1-SNAPSHOT + 0.89.1 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.33.1-SNAPSHOT + 1.33.1 diff --git a/pom.xml b/pom.xml index b43dc3a4..0fe377a7 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.33.1-SNAPSHOT + 1.33.1 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.89.1-SNAPSHOT + 0.89.1 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.89.1-SNAPSHOT + 0.89.1 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.33.1-SNAPSHOT + 1.33.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.89.1-SNAPSHOT + 0.89.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.89.1-SNAPSHOT + 0.89.1 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.33.1-SNAPSHOT + 1.33.1 com.google.cloud google-cloud-tasks - 1.33.1-SNAPSHOT + 1.33.1 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 581bca68..b81cd024 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.33.1-SNAPSHOT + 1.33.1 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.33.1-SNAPSHOT + 1.33.1 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index ee46fc1b..7a2609c5 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.89.1-SNAPSHOT + 0.89.1 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.33.1-SNAPSHOT + 1.33.1 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index bd430827..0a61091e 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.89.1-SNAPSHOT + 0.89.1 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.33.1-SNAPSHOT + 1.33.1 diff --git a/versions.txt b/versions.txt index e2eb6c62..3b50d01f 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.89.0:0.89.1-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.89.0:0.89.1-SNAPSHOT -proto-google-cloud-tasks-v2:1.33.0:1.33.1-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.89.0:0.89.1-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.89.0:0.89.1-SNAPSHOT -grpc-google-cloud-tasks-v2:1.33.0:1.33.1-SNAPSHOT -google-cloud-tasks:1.33.0:1.33.1-SNAPSHOT \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.89.1:0.89.1 +proto-google-cloud-tasks-v2beta2:0.89.1:0.89.1 +proto-google-cloud-tasks-v2:1.33.1:1.33.1 +grpc-google-cloud-tasks-v2beta3:0.89.1:0.89.1 +grpc-google-cloud-tasks-v2beta2:0.89.1:0.89.1 +grpc-google-cloud-tasks-v2:1.33.1:1.33.1 +google-cloud-tasks:1.33.1:1.33.1 \ No newline at end of file From f6cc66482f8a6ae799975a399b8cf2bd542c1c26 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 7 Jun 2021 20:00:04 +0000 Subject: [PATCH 088/401] chore: release 1.33.2-SNAPSHOT (#453) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 2fe4e78a..08554e26 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 1.33.1 + 1.33.2-SNAPSHOT pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.89.1 + 0.89.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.89.1 + 0.89.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.89.1 + 0.89.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 1.33.1 + 1.33.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.89.1 + 0.89.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.33.1 + 1.33.2-SNAPSHOT com.google.cloud google-cloud-tasks - 1.33.1 + 1.33.2-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 019263dd..e8f5ddb5 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 1.33.1 + 1.33.2-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.33.1 + 1.33.2-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index d8ffa99b..4b63acce 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.33.1 + 1.33.2-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.33.1 + 1.33.2-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 32d39cc4..c065eb6c 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.89.1 + 0.89.2-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.33.1 + 1.33.2-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 0956e1af..51ecd113 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.89.1 + 0.89.2-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.33.1 + 1.33.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index 0fe377a7..1791415a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.33.1 + 1.33.2-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.89.1 + 0.89.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.89.1 + 0.89.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 1.33.1 + 1.33.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.89.1 + 0.89.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.89.1 + 0.89.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.33.1 + 1.33.2-SNAPSHOT com.google.cloud google-cloud-tasks - 1.33.1 + 1.33.2-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index b81cd024..24fb89e9 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.33.1 + 1.33.2-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.33.1 + 1.33.2-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 7a2609c5..626ac36e 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.89.1 + 0.89.2-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.33.1 + 1.33.2-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 0a61091e..c5f69497 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.89.1 + 0.89.2-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.33.1 + 1.33.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index 3b50d01f..e26fbb80 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.89.1:0.89.1 -proto-google-cloud-tasks-v2beta2:0.89.1:0.89.1 -proto-google-cloud-tasks-v2:1.33.1:1.33.1 -grpc-google-cloud-tasks-v2beta3:0.89.1:0.89.1 -grpc-google-cloud-tasks-v2beta2:0.89.1:0.89.1 -grpc-google-cloud-tasks-v2:1.33.1:1.33.1 -google-cloud-tasks:1.33.1:1.33.1 \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.89.1:0.89.2-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.89.1:0.89.2-SNAPSHOT +proto-google-cloud-tasks-v2:1.33.1:1.33.2-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.89.1:0.89.2-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.89.1:0.89.2-SNAPSHOT +grpc-google-cloud-tasks-v2:1.33.1:1.33.2-SNAPSHOT +google-cloud-tasks:1.33.1:1.33.2-SNAPSHOT \ No newline at end of file From 0b16ab10fb94207fc4551c36f76047b01c8d0154 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Jun 2021 19:54:51 +0200 Subject: [PATCH 089/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v1.33.1 (#454) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 83ec65e9..9764dbc4 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 1.33.0 + 1.33.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 7577a002..65d164a3 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 1.33.0 + 1.33.1 From ac5ee0110d9c71a62a905632867f9a50d1371d3b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 9 Jun 2021 11:04:02 -0700 Subject: [PATCH 090/401] chore: regenerate README (#456) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-06-09 17:57:07,359 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-tasks/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-06-09 17:57:08,803 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/64b476ed-6081-497b-80be-1c63575149a1/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 8ee3581e..01b8ec1b 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "7054ab4d54efd18e547fa6bcc7ddf638a2884320" + "sha": "0b16ab10fb94207fc4551c36f76047b01c8d0154" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "c3e41da0fa256ad7f6b4bc76b9d069dedecdfef4" + "sha": "740366bbb9a7e0f4b77fc75dc26be1d3a376c3e0" } } ] diff --git a/README.md b/README.md index 927aa145..48407177 100644 --- a/README.md +++ b/README.md @@ -17,18 +17,18 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 1.33.0 + 1.33.1 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-tasks:1.33.0' +compile 'com.google.cloud:google-cloud-tasks:1.33.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.33.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.33.1" ``` ## Authentication From 1315aeb31e4e85440b12d0eb859743b43885b28a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 10 Jun 2021 08:08:17 -0700 Subject: [PATCH 091/401] chore: release gapic-generator-java v1.0.11 (#455) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/26af94e3-e981-49fa-9061-04c5b8e57d76/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 378266372 Source-Link: https://github.com/googleapis/googleapis/commit/9e3105549a35520f215359065c11e8dce15e18af --- .../com/google/cloud/tasks/v2/CloudTasksClientTest.java | 2 +- .../google/cloud/tasks/v2beta2/CloudTasksClientTest.java | 2 +- .../google/cloud/tasks/v2beta3/CloudTasksClientTest.java | 2 +- synth.metadata | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java index aa633ce1..71dec25f 100644 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java +++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java @@ -58,8 +58,8 @@ public class CloudTasksClientTest { private static MockCloudTasks mockCloudTasks; private static MockServiceHelper mockServiceHelper; - private CloudTasksClient client; private LocalChannelProvider channelProvider; + private CloudTasksClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java index 73cebd9e..8150cb44 100644 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java +++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java @@ -58,8 +58,8 @@ public class CloudTasksClientTest { private static MockCloudTasks mockCloudTasks; private static MockServiceHelper mockServiceHelper; - private CloudTasksClient client; private LocalChannelProvider channelProvider; + private CloudTasksClient client; @BeforeClass public static void startStaticServer() { diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java index 71d06bff..b82b4910 100644 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java +++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java @@ -58,8 +58,8 @@ public class CloudTasksClientTest { private static MockCloudTasks mockCloudTasks; private static MockServiceHelper mockServiceHelper; - private CloudTasksClient client; private LocalChannelProvider channelProvider; + private CloudTasksClient client; @BeforeClass public static void startStaticServer() { diff --git a/synth.metadata b/synth.metadata index a682cd82..fa47de4d 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "cc5e716d17418300ef0d0a6f52f16b11dd47a185" + "sha": "f6cc66482f8a6ae799975a399b8cf2bd542c1c26" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "a5f96d06ef57e325761bad010f460d0c5dbeccda", - "internalRef": "377081269" + "sha": "9e3105549a35520f215359065c11e8dce15e18af", + "internalRef": "378266372" } }, { From 5f2c4c1a64d9bee0c0a89566833f140d218e22d8 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 11 Jun 2021 08:10:37 -0700 Subject: [PATCH 092/401] chore: release gapic-generator-java v1.0.12 (#457) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/b305de67-0967-4451-a9b7-a8d2ad8b5a07/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 378718217 Source-Link: https://github.com/googleapis/googleapis/commit/08c4eeb531c01ad031134dca94b18e3f7dd35902 --- .../google/cloud/tasks/v2/stub/CloudTasksStubSettings.java | 7 +++++++ .../cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java | 7 +++++++ .../cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java | 7 +++++++ synth.metadata | 6 +++--- 4 files changed, 24 insertions(+), 3 deletions(-) diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java index c39db763..5363b5fe 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java @@ -341,6 +341,11 @@ public static String getDefaultEndpoint() { return "cloudtasks.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "cloudtasks.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -565,6 +570,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java index a3a26fdc..0544a11e 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java @@ -371,6 +371,11 @@ public static String getDefaultEndpoint() { return "cloudtasks.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "cloudtasks.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -620,6 +625,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java index d7acadc5..5921b03b 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java @@ -342,6 +342,11 @@ public static String getDefaultEndpoint() { return "cloudtasks.googleapis.com:443"; } + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "cloudtasks.mtls.googleapis.com:443"; + } + /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; @@ -566,6 +571,8 @@ private static Builder createDefault() { builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); return initDefaults(builder); } diff --git a/synth.metadata b/synth.metadata index fa47de4d..0a457305 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "f6cc66482f8a6ae799975a399b8cf2bd542c1c26" + "sha": "1315aeb31e4e85440b12d0eb859743b43885b28a" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "9e3105549a35520f215359065c11e8dce15e18af", - "internalRef": "378266372" + "sha": "08c4eeb531c01ad031134dca94b18e3f7dd35902", + "internalRef": "378718217" } }, { From 2d9c1abb9e798cb2ff18999d3277ad338493af5c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 18 Jun 2021 14:42:14 -0700 Subject: [PATCH 093/401] chore: release gapic-generator-java v1.0.13 (#459) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/7ab4e2f2-c909-42c0-bf0a-c8146ab2878a/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 379784268 Source-Link: https://github.com/googleapis/googleapis/commit/551681f25e36b11829e87e580281350461f4f3f5 --- .../main/java/com/google/cloud/tasks/v2/LocationName.java | 4 ++-- .../main/java/com/google/cloud/tasks/v2/QueueName.java | 6 +++--- .../src/main/java/com/google/cloud/tasks/v2/TaskName.java | 8 ++++---- .../java/com/google/cloud/tasks/v2beta2/LocationName.java | 4 ++-- .../java/com/google/cloud/tasks/v2beta2/QueueName.java | 6 +++--- .../java/com/google/cloud/tasks/v2beta2/TaskName.java | 8 ++++---- .../java/com/google/cloud/tasks/v2beta3/LocationName.java | 4 ++-- .../java/com/google/cloud/tasks/v2beta3/QueueName.java | 6 +++--- .../java/com/google/cloud/tasks/v2beta3/TaskName.java | 8 ++++---- synth.metadata | 6 +++--- 10 files changed, 30 insertions(+), 30 deletions(-) diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java index 715ae4f1..e37fe26a 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java @@ -181,8 +181,8 @@ public Builder setLocation(String location) { } private Builder(LocationName locationName) { - project = locationName.project; - location = locationName.location; + this.project = locationName.project; + this.location = locationName.location; } public LocationName build() { diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueName.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueName.java index 3c4438b3..98cdde17 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueName.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueName.java @@ -211,9 +211,9 @@ public Builder setQueue(String queue) { } private Builder(QueueName queueName) { - project = queueName.project; - location = queueName.location; - queue = queueName.queue; + this.project = queueName.project; + this.location = queueName.location; + this.queue = queueName.queue; } public QueueName build() { diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java index 8aedbd87..e4dc35e0 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java @@ -244,10 +244,10 @@ public Builder setTask(String task) { } private Builder(TaskName taskName) { - project = taskName.project; - location = taskName.location; - queue = taskName.queue; - task = taskName.task; + this.project = taskName.project; + this.location = taskName.location; + this.queue = taskName.queue; + this.task = taskName.task; } public TaskName build() { diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LocationName.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LocationName.java index 8a0078f8..6a3d8ff2 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LocationName.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LocationName.java @@ -181,8 +181,8 @@ public Builder setLocation(String location) { } private Builder(LocationName locationName) { - project = locationName.project; - location = locationName.location; + this.project = locationName.project; + this.location = locationName.location; } public LocationName build() { diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueName.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueName.java index 5c2a87d4..4678fe50 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueName.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueName.java @@ -211,9 +211,9 @@ public Builder setQueue(String queue) { } private Builder(QueueName queueName) { - project = queueName.project; - location = queueName.location; - queue = queueName.queue; + this.project = queueName.project; + this.location = queueName.location; + this.queue = queueName.queue; } public QueueName build() { diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskName.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskName.java index 5c59e0ba..6a58cd23 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskName.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskName.java @@ -244,10 +244,10 @@ public Builder setTask(String task) { } private Builder(TaskName taskName) { - project = taskName.project; - location = taskName.location; - queue = taskName.queue; - task = taskName.task; + this.project = taskName.project; + this.location = taskName.location; + this.queue = taskName.queue; + this.task = taskName.task; } public TaskName build() { diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/LocationName.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/LocationName.java index ae50f06d..a4df0ac3 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/LocationName.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/LocationName.java @@ -181,8 +181,8 @@ public Builder setLocation(String location) { } private Builder(LocationName locationName) { - project = locationName.project; - location = locationName.location; + this.project = locationName.project; + this.location = locationName.location; } public LocationName build() { diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueName.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueName.java index 42dc8436..0e8eb965 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueName.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueName.java @@ -211,9 +211,9 @@ public Builder setQueue(String queue) { } private Builder(QueueName queueName) { - project = queueName.project; - location = queueName.location; - queue = queueName.queue; + this.project = queueName.project; + this.location = queueName.location; + this.queue = queueName.queue; } public QueueName build() { diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskName.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskName.java index 91e4b717..30b7bb44 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskName.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskName.java @@ -244,10 +244,10 @@ public Builder setTask(String task) { } private Builder(TaskName taskName) { - project = taskName.project; - location = taskName.location; - queue = taskName.queue; - task = taskName.task; + this.project = taskName.project; + this.location = taskName.location; + this.queue = taskName.queue; + this.task = taskName.task; } public TaskName build() { diff --git a/synth.metadata b/synth.metadata index 0a457305..f5f38afb 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "1315aeb31e4e85440b12d0eb859743b43885b28a" + "sha": "5f2c4c1a64d9bee0c0a89566833f140d218e22d8" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "08c4eeb531c01ad031134dca94b18e3f7dd35902", - "internalRef": "378718217" + "sha": "551681f25e36b11829e87e580281350461f4f3f5", + "internalRef": "379784268" } }, { From 895bca38d38b2c9b9d3464bc1b9644ebac75ef34 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 23 Jun 2021 21:12:28 +0200 Subject: [PATCH 094/401] chore(deps): update dependency com.google.cloud:libraries-bom to v20.7.0 (#460) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.6.0` -> `20.7.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/compatibility-slim/20.6.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/confidence-slim/20.6.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index f9350d24..5449583e 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.6.0 + 20.7.0 pom import From 8bf3bafabe8692da3190c81a73f3cff911f74798 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 1 Jul 2021 19:32:39 +0200 Subject: [PATCH 095/401] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.23 (#451) --- samples/install-without-bom/pom.xml | 2 +- samples/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 9764dbc4..4ffbdcee 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 diff --git a/samples/pom.xml b/samples/pom.xml index 3bff0f0b..172bb199 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -18,7 +18,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 65d164a3..c38ecdcf 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 5449583e..17d353fc 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 From 6640d577f546217b3c58db1997034585e2243049 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 2 Jul 2021 01:22:38 +0200 Subject: [PATCH 096/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1.4.0 (#461) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `1.3.0` -> `1.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.4.0/compatibility-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.4.0/confidence-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v1.4.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​140-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare130v140-2021-06-30) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v1.3.0...v1.4.0) ##### Features - add grpc-gcp to dependencyManagement ([#​389](https://www.github.com/googleapis/java-shared-dependencies/issues/389)) ([57fd2e6](https://www.github.com/googleapis/java-shared-dependencies/commit/57fd2e646e28e37e0b5e4e1b37425d4897a8776f)) ##### Bug Fixes - Add `shopt -s nullglob` to dependencies script ([#​392](https://www.github.com/googleapis/java-shared-dependencies/issues/392)) ([f8f29df](https://www.github.com/googleapis/java-shared-dependencies/commit/f8f29df1c9cc6eca517c99113fb9509fd611ac92)) - Add common httpclient and oauth dependencies ([#​391](https://www.github.com/googleapis/java-shared-dependencies/issues/391)) ([09660e1](https://www.github.com/googleapis/java-shared-dependencies/commit/09660e1e50c96dcd7df4e80d8ad357f8256eda6c)) - Update dependencies.sh to not break on mac ([#​384](https://www.github.com/googleapis/java-shared-dependencies/issues/384)) ([0ae2841](https://www.github.com/googleapis/java-shared-dependencies/commit/0ae2841d7ce2885d041795c58a38d2d3973c2e5a)) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.32.1 ([#​390](https://www.github.com/googleapis/java-shared-dependencies/issues/390)) ([00288c1](https://www.github.com/googleapis/java-shared-dependencies/commit/00288c18d09616582c8bec961ecc5c00ef1d4288)) - update dependency com.google.api:api-common to v1.10.4 ([#​385](https://www.github.com/googleapis/java-shared-dependencies/issues/385)) ([5f2b39b](https://www.github.com/googleapis/java-shared-dependencies/commit/5f2b39b5bdc4cec9d5ab2f050e11000ed372d057)) - update dependency com.google.api:gax-grpc to v1.65.1 ([#​382](https://www.github.com/googleapis/java-shared-dependencies/issues/382)) ([a2a1547](https://www.github.com/googleapis/java-shared-dependencies/commit/a2a15471dee21207a0b97b3bc8f6f59d6a4a2d13)) - update dependency com.google.protobuf:protobuf-bom to v3.17.3 ([#​379](https://www.github.com/googleapis/java-shared-dependencies/issues/379)) ([6f43eb5](https://www.github.com/googleapis/java-shared-dependencies/commit/6f43eb553dca98140d343bee3f1003096d79ee6c)) - update dependency io.grpc:grpc-bom to v1.38.1 ([#​386](https://www.github.com/googleapis/java-shared-dependencies/issues/386)) ([7b1d4cf](https://www.github.com/googleapis/java-shared-dependencies/commit/7b1d4cf317fbd75b91d6a63f82b5fc2f46eaf3ca)) - update dependency io.grpc:grpc-bom to v1.39.0 ([#​394](https://www.github.com/googleapis/java-shared-dependencies/issues/394)) ([ebc8af6](https://www.github.com/googleapis/java-shared-dependencies/commit/ebc8af6b3f850b58b35d9720a7a0b1545d4616bd)) - update gax.version to v1.66.0 ([#​395](https://www.github.com/googleapis/java-shared-dependencies/issues/395)) ([c73f73e](https://www.github.com/googleapis/java-shared-dependencies/commit/c73f73e84740a8117be342a66e179eaf3e29c6fd)) - update google.core.version to v1.95.1 ([#​381](https://www.github.com/googleapis/java-shared-dependencies/issues/381)) ([4496153](https://www.github.com/googleapis/java-shared-dependencies/commit/44961532f621b0ab19e9e7feebb7d588aef5d423)) - update google.core.version to v1.95.2 ([#​383](https://www.github.com/googleapis/java-shared-dependencies/issues/383)) ([7216859](https://www.github.com/googleapis/java-shared-dependencies/commit/7216859bcd67fa1ce1119831c33c50a2d5b79324)) - update google.core.version to v1.95.3 ([#​388](https://www.github.com/googleapis/java-shared-dependencies/issues/388)) ([354e4e8](https://www.github.com/googleapis/java-shared-dependencies/commit/354e4e811f4ba886406681a4261ac0455a9eb2d2)) - update google.core.version to v1.95.4 ([#​393](https://www.github.com/googleapis/java-shared-dependencies/issues/393)) ([be78ad8](https://www.github.com/googleapis/java-shared-dependencies/commit/be78ad85e31d8876eabafee7aa8242712573cb46))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1791415a..06202089 100644 --- a/pom.xml +++ b/pom.xml @@ -106,7 +106,7 @@ com.google.cloud google-cloud-shared-dependencies - 1.3.0 + 1.4.0 pom import From f673b737a5fb44b8939fc33da89677d447ca71bc Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 1 Jul 2021 23:38:26 +0000 Subject: [PATCH 097/401] chore: release 1.33.2 (#462) :robot: I have created a release \*beep\* \*boop\* --- ### [1.33.2](https://www.github.com/googleapis/java-tasks/compare/v1.33.1...v1.33.2) (2021-07-01) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v1.4.0 ([#461](https://www.github.com/googleapis/java-tasks/issues/461)) ([6640d57](https://www.github.com/googleapis/java-tasks/commit/6640d577f546217b3c58db1997034585e2243049)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d03a707..cd7543a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [1.33.2](https://www.github.com/googleapis/java-tasks/compare/v1.33.1...v1.33.2) (2021-07-01) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.4.0 ([#461](https://www.github.com/googleapis/java-tasks/issues/461)) ([6640d57](https://www.github.com/googleapis/java-tasks/commit/6640d577f546217b3c58db1997034585e2243049)) + ### [1.33.1](https://www.github.com/googleapis/java-tasks/compare/v1.33.0...v1.33.1) (2021-06-07) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 08554e26..b5be4d2c 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 1.33.2-SNAPSHOT + 1.33.2 pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.89.2-SNAPSHOT + 0.89.2 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.89.2-SNAPSHOT + 0.89.2 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.89.2-SNAPSHOT + 0.89.2 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.33.2-SNAPSHOT + 1.33.2 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.89.2-SNAPSHOT + 0.89.2 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.33.2-SNAPSHOT + 1.33.2 com.google.cloud google-cloud-tasks - 1.33.2-SNAPSHOT + 1.33.2
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index e8f5ddb5..3a4359a1 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 1.33.2-SNAPSHOT + 1.33.2 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.33.2-SNAPSHOT + 1.33.2 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 4b63acce..221f54ca 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.33.2-SNAPSHOT + 1.33.2 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.33.2-SNAPSHOT + 1.33.2 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index c065eb6c..ef83957c 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.89.2-SNAPSHOT + 0.89.2 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.33.2-SNAPSHOT + 1.33.2 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 51ecd113..90dc8f3c 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.89.2-SNAPSHOT + 0.89.2 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.33.2-SNAPSHOT + 1.33.2 diff --git a/pom.xml b/pom.xml index 06202089..5db49f38 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.33.2-SNAPSHOT + 1.33.2 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.89.2-SNAPSHOT + 0.89.2 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.89.2-SNAPSHOT + 0.89.2 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.33.2-SNAPSHOT + 1.33.2 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.89.2-SNAPSHOT + 0.89.2 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.89.2-SNAPSHOT + 0.89.2 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.33.2-SNAPSHOT + 1.33.2 com.google.cloud google-cloud-tasks - 1.33.2-SNAPSHOT + 1.33.2 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 24fb89e9..c45c08e9 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.33.2-SNAPSHOT + 1.33.2 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.33.2-SNAPSHOT + 1.33.2 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 626ac36e..fa1fd578 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.89.2-SNAPSHOT + 0.89.2 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.33.2-SNAPSHOT + 1.33.2 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index c5f69497..41d620eb 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.89.2-SNAPSHOT + 0.89.2 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.33.2-SNAPSHOT + 1.33.2 diff --git a/versions.txt b/versions.txt index e26fbb80..cd96803f 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.89.1:0.89.2-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.89.1:0.89.2-SNAPSHOT -proto-google-cloud-tasks-v2:1.33.1:1.33.2-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.89.1:0.89.2-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.89.1:0.89.2-SNAPSHOT -grpc-google-cloud-tasks-v2:1.33.1:1.33.2-SNAPSHOT -google-cloud-tasks:1.33.1:1.33.2-SNAPSHOT \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.89.2:0.89.2 +proto-google-cloud-tasks-v2beta2:0.89.2:0.89.2 +proto-google-cloud-tasks-v2:1.33.2:1.33.2 +grpc-google-cloud-tasks-v2beta3:0.89.2:0.89.2 +grpc-google-cloud-tasks-v2beta2:0.89.2:0.89.2 +grpc-google-cloud-tasks-v2:1.33.2:1.33.2 +google-cloud-tasks:1.33.2:1.33.2 \ No newline at end of file From 9e823466aaa113e6d79e07086acf112e80d4d7bc Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 1 Jul 2021 23:44:11 +0000 Subject: [PATCH 098/401] chore: release 1.33.3-SNAPSHOT (#463) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index b5be4d2c..44483a8e 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 1.33.2 + 1.33.3-SNAPSHOT pom com.google.cloud @@ -64,37 +64,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.89.2 + 0.89.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.89.2 + 0.89.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.89.2 + 0.89.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 1.33.2 + 1.33.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.89.2 + 0.89.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.33.2 + 1.33.3-SNAPSHOT com.google.cloud google-cloud-tasks - 1.33.2 + 1.33.3-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 3a4359a1..3f1aa4f4 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 1.33.2 + 1.33.3-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.33.2 + 1.33.3-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 221f54ca..550ae7cb 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.33.2 + 1.33.3-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.33.2 + 1.33.3-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index ef83957c..c23ccfa5 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.89.2 + 0.89.3-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.33.2 + 1.33.3-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 90dc8f3c..55cb80d5 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.89.2 + 0.89.3-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.33.2 + 1.33.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index 5db49f38..64c95035 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.33.2 + 1.33.3-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -70,37 +70,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.89.2 + 0.89.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.89.2 + 0.89.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 1.33.2 + 1.33.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.89.2 + 0.89.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.89.2 + 0.89.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.33.2 + 1.33.3-SNAPSHOT com.google.cloud google-cloud-tasks - 1.33.2 + 1.33.3-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index c45c08e9..0c770801 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.33.2 + 1.33.3-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.33.2 + 1.33.3-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index fa1fd578..353e8684 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.89.2 + 0.89.3-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.33.2 + 1.33.3-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 41d620eb..3771c809 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.89.2 + 0.89.3-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.33.2 + 1.33.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index cd96803f..c0beb9e0 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.89.2:0.89.2 -proto-google-cloud-tasks-v2beta2:0.89.2:0.89.2 -proto-google-cloud-tasks-v2:1.33.2:1.33.2 -grpc-google-cloud-tasks-v2beta3:0.89.2:0.89.2 -grpc-google-cloud-tasks-v2beta2:0.89.2:0.89.2 -grpc-google-cloud-tasks-v2:1.33.2:1.33.2 -google-cloud-tasks:1.33.2:1.33.2 \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.89.2:0.89.3-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.89.2:0.89.3-SNAPSHOT +proto-google-cloud-tasks-v2:1.33.2:1.33.3-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.89.2:0.89.3-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.89.2:0.89.3-SNAPSHOT +grpc-google-cloud-tasks-v2:1.33.2:1.33.3-SNAPSHOT +google-cloud-tasks:1.33.2:1.33.3-SNAPSHOT \ No newline at end of file From f046989c32cf1ff106e073fbb103f7bdfc1de1a9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 2 Jul 2021 22:20:42 +0200 Subject: [PATCH 099/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v1.33.2 (#464) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `1.33.1` -> `1.33.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.33.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.33.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.33.2/compatibility-slim/1.33.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/1.33.2/confidence-slim/1.33.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-tasks ### [`v1.33.2`](https://togithub.com/googleapis/java-tasks/blob/master/CHANGELOG.md#​1332-httpswwwgithubcomgoogleapisjava-taskscomparev1331v1332-2021-07-01) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v1.33.1...v1.33.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 4ffbdcee..5026b353 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 1.33.1 + 1.33.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c38ecdcf..4a5c7423 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 1.33.1 + 1.33.2 From 5df7dc90dad916b40325431aad9a0316c68df977 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 2 Jul 2021 13:30:20 -0700 Subject: [PATCH 100/401] chore: regenerate README (#465) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-07-02 20:22:58,283 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-tasks/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-07-02 20:22:59,590 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/b9ecb6a3-2dab-4ec2-b393-1301885be568/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 01b8ec1b..4eb036b0 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "0b16ab10fb94207fc4551c36f76047b01c8d0154" + "sha": "f046989c32cf1ff106e073fbb103f7bdfc1de1a9" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "740366bbb9a7e0f4b77fc75dc26be1d3a376c3e0" + "sha": "39652e3948f455fd0b77535a0145eeec561a3706" } } ] diff --git a/README.md b/README.md index 48407177..959a650d 100644 --- a/README.md +++ b/README.md @@ -17,18 +17,18 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 1.33.1 + 1.33.2 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-tasks:1.33.1' +compile 'com.google.cloud:google-cloud-tasks:1.33.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.33.1" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.33.2" ``` ## Authentication From 19bc4be2d0fc080132b3853126848e4e73c899fb Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 6 Jul 2021 12:44:25 -0700 Subject: [PATCH 101/401] fix: Update dependencies.sh to not break on mac (#458) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/f853e0b6-9a6b-4346-9a07-ff7c7ec6f858/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/8f76a885deaaf2fe234daeba4a8cc4d1b3de8086 --- .kokoro/dependencies.sh | 4 ++-- synth.metadata | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index 59d2aafc..a7e999d3 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -46,7 +46,7 @@ function completenessCheck() { # This is stripped from the output as it is not present in the flattened pom. # Only dependencies with 'compile' or 'runtime' scope are included from original dependency list. msg "Generating dependency list using original pom..." - mvn dependency:list -f pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e s/\\s--\\smodule.*// >.org-list.txt + mvn dependency:list -f pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e 's/ --.*//' >.org-list.txt # Output dep list generated using the flattened pom (only 'compile' and 'runtime' scopes) msg "Generating dependency list using flattened pom..." @@ -70,7 +70,7 @@ function completenessCheck() { set +e error_count=0 -for path in $(find -name ".flattened-pom.xml") +for path in **/.flattened-pom.xml do # Check flattened pom in each dir that contains it for completeness dir=$(dirname "$path") diff --git a/synth.metadata b/synth.metadata index f5f38afb..32fc5f8d 100644 --- a/synth.metadata +++ b/synth.metadata @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7332178a11ddddc91188dc0f25bca1ccadcaa6c6" + "sha": "8f76a885deaaf2fe234daeba4a8cc4d1b3de8086" } } ], @@ -118,6 +118,7 @@ "CODE_OF_CONDUCT.md", "CONTRIBUTING.md", "LICENSE", + "SECURITY.md", "codecov.yaml", "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java", "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java", From 2ac3e02608a926bc87887c574af207908a3b62e2 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Wed, 7 Jul 2021 10:54:51 -0400 Subject: [PATCH 102/401] chore: remove distributionManagement section (#468) All java client libraries inherit the distributionManagement section form shared-config. To prevent individual pom files from overriding the shared-config version of distributionManagement, it is being removed. --- pom.xml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index 64c95035..65af64a8 100644 --- a/pom.xml +++ b/pom.xml @@ -41,16 +41,7 @@ https://github.com/googleapis/java-tasks/issues GitHub Issues - - - sonatype-nexus-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - - sonatype-nexus-staging - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - + Apache-2.0 From 8f0b0d94fbaf811bfb2c631a3de898f46f871794 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 8 Jul 2021 12:32:42 -0400 Subject: [PATCH 103/401] chore: remove distributionManagement section (#469) All java client libraries inherit the distributionManagement section form shared-config. To prevent individual pom files from overriding the shared-config version of distributionManagement, it is being removed. --- google-cloud-tasks-bom/pom.xml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 44483a8e..82d194a1 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -39,17 +39,6 @@ https://github.com/googleapis/java-tasks - - - sonatype-nexus-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - - sonatype-nexus-staging - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - The Apache Software License, Version 2.0 From 724d272533a6da843377107faeef7559e5e945b2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Jul 2021 16:38:45 +0200 Subject: [PATCH 104/401] chore(deps): update dependency com.google.cloud:libraries-bom to v20.8.0 (#470) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.7.0` -> `20.8.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/compatibility-slim/20.7.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/confidence-slim/20.7.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 17d353fc..081e07f9 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.7.0 + 20.8.0 pom import From 4285ef63eab332a7582fb37892f33a766b1323b4 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 13 Jul 2021 11:38:24 -0700 Subject: [PATCH 105/401] fix: Add shopt -s nullglob to dependencies script (#467) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/1ab74244-7775-4072-b642-2aff73bcb657/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/87254ac89a9559864c0a245d6b150406439ce3d8 Source-Link: https://github.com/googleapis/synthtool/commit/1c0c698705e668ccb3d68556ae7260f16ce63a6e --- .kokoro/coerce_logs.sh | 1 - .kokoro/dependencies.sh | 1 + synth.metadata | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.kokoro/coerce_logs.sh b/.kokoro/coerce_logs.sh index 5cf7ba49..46edbf7f 100755 --- a/.kokoro/coerce_logs.sh +++ b/.kokoro/coerce_logs.sh @@ -28,7 +28,6 @@ job=$(basename ${KOKORO_JOB_NAME}) echo "coercing sponge logs..." for xml in `find . -name *-sponge_log.xml` do - echo "processing ${xml}" class=$(basename ${xml} | cut -d- -f2) dir=$(dirname ${xml})/${job}/${class} text=$(dirname ${xml})/${class}-sponge_log.txt diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index a7e999d3..9030ba8f 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -14,6 +14,7 @@ # limitations under the License. set -eo pipefail +shopt -s nullglob ## Get the directory of the build script scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) diff --git a/synth.metadata b/synth.metadata index 32fc5f8d..bff40479 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "5f2c4c1a64d9bee0c0a89566833f140d218e22d8" + "sha": "19bc4be2d0fc080132b3853126848e4e73c899fb" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8f76a885deaaf2fe234daeba4a8cc4d1b3de8086" + "sha": "87254ac89a9559864c0a245d6b150406439ce3d8" } } ], From 87cf00afc7a458aa835b1be7d79ce09bee24abd6 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 14 Jul 2021 14:08:41 -0700 Subject: [PATCH 106/401] chore: remove All rights reserved clause from java.header (#471) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/777d1649-54ee-4f7f-a75c-2a4b8e40011f/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/09c59c20a4bf0daed1665af59035ff240fe356df --- java.header | 2 +- synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java.header b/java.header index 3a9b503a..d0970ba7 100644 --- a/java.header +++ b/java.header @@ -1,5 +1,5 @@ ^/\*$ -^ \* Copyright \d\d\d\d,? Google (Inc\.|LLC)( All [rR]ights [rR]eserved\.)?$ +^ \* Copyright \d\d\d\d,? Google (Inc\.|LLC)$ ^ \*$ ^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\);$ ^ \* you may not use this file except in compliance with the License\.$ diff --git a/synth.metadata b/synth.metadata index bff40479..8efe0838 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "19bc4be2d0fc080132b3853126848e4e73c899fb" + "sha": "4285ef63eab332a7582fb37892f33a766b1323b4" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "87254ac89a9559864c0a245d6b150406439ce3d8" + "sha": "09c59c20a4bf0daed1665af59035ff240fe356df" } } ], From 82beb28b2d5cff8fe2e6547332c50b866d5eedb0 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 14 Jul 2021 14:16:22 -0700 Subject: [PATCH 107/401] chore: regenerate README (#472) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-07-14 21:10:57,406 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-tasks/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-07-14 21:10:58,754 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/fd6ce42f-a229-4745-8d7e-99b5e5370abb/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 +- README.md | 48 +++++++++++++++++++- 2 files changed, 49 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 4eb036b0..af365e86 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "f046989c32cf1ff106e073fbb103f7bdfc1de1a9" + "sha": "87cf00afc7a458aa835b1be7d79ce09bee24abd6" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "39652e3948f455fd0b77535a0145eeec561a3706" + "sha": "387851d0e88ca4a5b1771ad63d915bed1bd4a740" } } ] diff --git a/README.md b/README.md index 959a650d..eeb0b461 100644 --- a/README.md +++ b/README.md @@ -85,10 +85,50 @@ To get help, follow the instructions in the [shared Troubleshooting document][tr Cloud Tasks uses gRPC for the transport layer. -## Java Versions +## Supported Java Versions Java 7 or above is required for using this client. +Google's Java client libraries, +[Google Cloud Client Libraries][cloudlibs] +and +[Google Cloud API Libraries][apilibs], +follow the +[Oracle Java SE support roadmap][oracle] +(see the Oracle Java SE Product Releases section). + +### For new development + +In general, new feature development occurs with support for the lowest Java +LTS version covered by Oracle's Premier Support (which typically lasts 5 years +from initial General Availability). If the minimum required JVM for a given +library is changed, it is accompanied by a [semver][semver] major release. + +Java 11 and (in September 2021) Java 17 are the best choices for new +development. + +### Keeping production systems current + +Google tests its client libraries with all current LTS versions covered by +Oracle's Extended Support (which typically lasts 8 years from initial +General Availability). + +#### Legacy support + +Google's client libraries support legacy versions of Java runtimes with long +term stable libraries that don't receive feature updates on a best efforts basis +as it may not be possible to backport all patches. + +Google provides updates on a best efforts basis to apps that continue to use +Java 7, though apps might need to upgrade to current versions of the library +that supports their JVM. + +#### Where to find specific information + +The latest versions and the supported Java versions are identified on +the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` +and on [google-cloud-java][g-c-j]. + ## Versioning @@ -149,3 +189,9 @@ Java is a registered trademark of Oracle and/or its affiliates. [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=cloudtasks.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png + +[semver]: https://semver.org/ +[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained +[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries +[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html +[g-c-j]: http://github.com/googleapis/google-cloud-java From 8aa64b54446109ad1d3f12660b8ddaa0daa437ab Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 15 Jul 2021 07:30:26 -0700 Subject: [PATCH 108/401] chore: add dependencyDashboardLabels to renovate.json (#473) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/d66a4f32-cb55-4ace-901b-2931555ad2c6/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/5d3c52f5db664eee9026db76b5bcb466f3a09ca9 --- renovate.json | 5 ++++- synth.metadata | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/renovate.json b/renovate.json index f39999f8..deea732a 100644 --- a/renovate.json +++ b/renovate.json @@ -69,5 +69,8 @@ } ], "semanticCommits": true, - "masterIssue": true + "dependencyDashboard": true, + "dependencyDashboardLabels": [ + "type: process" + ] } diff --git a/synth.metadata b/synth.metadata index 8efe0838..033c2ae0 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "4285ef63eab332a7582fb37892f33a766b1323b4" + "sha": "82beb28b2d5cff8fe2e6547332c50b866d5eedb0" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "09c59c20a4bf0daed1665af59035ff240fe356df" + "sha": "5d3c52f5db664eee9026db76b5bcb466f3a09ca9" } } ], From c70c19a3154fb815234c9b8a49a6c434901d5bfe Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 27 Jul 2021 22:48:59 +0200 Subject: [PATCH 109/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.13.1 (#476) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.12.0` -> `0.13.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.13.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.13.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.13.1/compatibility-slim/0.12.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.13.1/confidence-slim/0.12.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v0.13.1`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​0131-httpswwwgithubcomgoogleapisjava-shared-configcomparev0130v0131-2021-07-27) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.13.0...v0.13.1) ### [`v0.13.0`](https://togithub.com/googleapis/java-shared-config/releases/v0.13.0) ##### Features - add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#​264](https://www.github.com/googleapis/java-shared-config/issues/264)) ([d274af8](https://www.github.com/googleapis/java-shared-config/commit/d274af836ac9b3e98be84e551b7e9e552397ecc1)) ##### Bug Fixes - Add shopt -s nullglob to dependencies script ([865ca3c](https://www.github.com/googleapis/java-shared-config/commit/865ca3cbf106a7aaae1a989320a1ad5a47b6ffaf)) - Update dependencies.sh to not break on mac ([#​276](https://www.github.com/googleapis/java-shared-config/issues/276)) ([865ca3c](https://www.github.com/googleapis/java-shared-config/commit/865ca3cbf106a7aaae1a989320a1ad5a47b6ffaf)) ##### Dependencies - update auto-value-annotation.version to v1.8.2 ([#​275](https://www.github.com/googleapis/java-shared-config/issues/275)) ([4d15246](https://www.github.com/googleapis/java-shared-config/commit/4d152461a5592940a8be762c7a8698a02dbe26cf)) - update dependency com.puppycrawl.tools:checkstyle to v8.43 ([#​266](https://www.github.com/googleapis/java-shared-config/issues/266)) ([fae7961](https://www.github.com/googleapis/java-shared-config/commit/fae7961412b33e34e8fcfec78d1451894d4e61d9)) - update dependency com.puppycrawl.tools:checkstyle to v8.44 ([#​274](https://www.github.com/googleapis/java-shared-config/issues/274)) ([d53d0e0](https://www.github.com/googleapis/java-shared-config/commit/d53d0e0935e908d16f4e7cf763577cf3fd8128d3)) ***
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 82d194a1..a43d64b6 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.12.0 + 0.13.1 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index 65af64a8..88a53da2 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.12.0 + 0.13.1 From 9c7151b467a32a3b7f4585210d9cb8910ede4794 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 27 Jul 2021 14:02:24 -0700 Subject: [PATCH 110/401] chore: regenerate README (#477) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-07-27 20:53:54,713 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-tasks/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-07-27 20:53:56,147 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/e5698863-ffa2-4b14-a26e-d934ad65b97f/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 16 ++++++++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index af365e86..df62c0fc 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "87cf00afc7a458aa835b1be7d79ce09bee24abd6" + "sha": "c70c19a3154fb815234c9b8a49a6c434901d5bfe" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "387851d0e88ca4a5b1771ad63d915bed1bd4a740" + "sha": "3d32990b6f4b57be77455e3ca89e6e21cd0c06b3" } } ] diff --git a/README.md b/README.md index eeb0b461..9b3e481b 100644 --- a/README.md +++ b/README.md @@ -8,11 +8,13 @@ Java idiomatic client for [Cloud Tasks][product-docs]. - [Product Documentation][product-docs] - [Client Library Documentation][javadocs] + ## Quickstart If you are using Maven, add this to your pom.xml file: + ```xml com.google.cloud @@ -22,11 +24,13 @@ If you are using Maven, add this to your pom.xml file: ``` If you are using Gradle without BOM, add this to your dependencies + ```Groovy compile 'com.google.cloud:google-cloud-tasks:1.33.2' ``` If you are using SBT, add this to your dependencies + ```Scala libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.33.2" ``` @@ -35,6 +39,10 @@ libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.33.2" See the [Authentication][authentication] section in the base directory's README. +## Authorization + +The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired Cloud Tasks APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Cloud Tasks API calls. + ## Getting Started ### Prerequisites @@ -64,8 +72,7 @@ use this Cloud Tasks Client Library. ## Samples -Samples are in the [`samples/`](https://github.com/googleapis/java-tasks/tree/master/samples) directory. The samples' `README.md` -has instructions for running the samples. +Samples are in the [`samples/`](https://github.com/googleapis/java-tasks/tree/master/samples) directory. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | @@ -135,6 +142,7 @@ and on [google-cloud-java][g-c-j]. This library follows [Semantic Versioning](http://semver.org/). + ## Contributing @@ -146,6 +154,7 @@ Please note that this project is released with a Contributor Code of Conduct. By this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more information. + ## License Apache 2.0 - See [LICENSE][license] for more information. @@ -178,6 +187,9 @@ Java is a registered trademark of Oracle and/or its affiliates. [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-tasks.svg [maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-tasks&core=gav [authentication]: https://github.com/googleapis/google-cloud-java#authentication +[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes +[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles +[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy [developer-console]: https://console.developers.google.com/ [create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects [cloud-sdk]: https://cloud.google.com/sdk/ From 00f3512c1c600ce24e3c293e6772cd88787ff06d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Jul 2021 01:08:38 +0200 Subject: [PATCH 111/401] chore(deps): update dependency com.google.cloud:libraries-bom to v20.9.0 (#474) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.8.0` -> `20.9.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/compatibility-slim/20.8.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/confidence-slim/20.8.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 081e07f9..59e7efd0 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.8.0 + 20.9.0 pom import From d3f2e859ca49dc2f3e4937f9b6c15adf85167ccb Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 29 Jul 2021 15:44:43 -0400 Subject: [PATCH 112/401] build: configure branch java7 as a release branch (#479) enable releases --- .github/release-please.yml | 5 ++ .github/sync-repo-settings.yaml | 82 +++++++++++++++------------------ 2 files changed, 43 insertions(+), 44 deletions(-) diff --git a/.github/release-please.yml b/.github/release-please.yml index 8ca7f9ca..7bf58076 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -1,3 +1,8 @@ bumpMinorPreMajor: true handleGHRelease: true releaseType: java-yoshi +branches: + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-yoshi + branch: java7 diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 6bddd18e..d3ce755a 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -1,49 +1,43 @@ - -# Whether or not rebase-merging is enabled on this repository. -# Defaults to `true` rebaseMergeAllowed: false - -# Whether or not squash-merging is enabled on this repository. -# Defaults to `true` squashMergeAllowed: true - -# Whether or not PRs are merged with a merge commit on this repository. -# Defaults to `false` mergeCommitAllowed: false - -# Rules for master branch protection branchProtectionRules: -# Identifies the protection rule pattern. Name of the branch to be protected. -# Defaults to `master` -- pattern: master - # Can admins overwrite branch protection. - # Defaults to `true` - isAdminEnforced: true - # Number of approving reviews required to update matching branches. - # Defaults to `1` - requiredApprovingReviewCount: 1 - # Are reviews from code owners required to update matching branches. - # Defaults to `false` - requiresCodeOwnerReviews: true - # Require up to date branches - requiresStrictStatusChecks: false - # List of required status check contexts that must pass for commits to be accepted to matching branches. - requiredStatusCheckContexts: - - "dependencies (8)" - - "dependencies (11)" - - "linkage-monitor" - - "lint" - - "clirr" - - "units (7)" - - "units (8)" - - "units (11)" - - "Kokoro - Test: Integration" - - "cla/google" -# List of explicit permissions to add (additive only) + - pattern: master + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (8) + - dependencies (11) + - linkage-monitor + - lint + - clirr + - units (7) + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google + - pattern: java7 + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (8) + - dependencies (11) + - linkage-monitor + - lint + - clirr + - units (7) + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google permissionRules: -- team: yoshi-admins - permission: admin -- team: yoshi-java-admins - permission: admin -- team: yoshi-java - permission: push \ No newline at end of file + - team: yoshi-admins + permission: admin + - team: yoshi-java-admins + permission: admin + - team: yoshi-java + permission: push From a198eb1b773bb0ad306288642df9ea42798b2dbe Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 4 Aug 2021 23:57:13 +0200 Subject: [PATCH 113/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1 (#482) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.13.1` -> `1.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.0/compatibility-slim/0.13.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.0/confidence-slim/0.13.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.0.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​100-httpswwwgithubcomgoogleapisjava-shared-configcomparev0131v100-2021-07-29) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.13.1...v1.0.0) ##### ⚠ BREAKING CHANGES - update shared-config to java 1.8 ([#​277](https://togithub.com/googleapis/java-shared-config/issues/277)) ##### Features - update shared-config to java 1.8 ([#​277](https://www.github.com/googleapis/java-shared-config/issues/277)) ([9c297a2](https://www.github.com/googleapis/java-shared-config/commit/9c297a27bc236092aab3ae292c7bed206293bc51)) ##### [0.13.1](https://www.github.com/googleapis/java-shared-config/compare/v0.13.0...v0.13.1) (2021-07-27) ##### Bug Fixes - revert update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.2.0 ([#​280](https://www.github.com/googleapis/java-shared-config/issues/280)) ([bdbbb9c](https://www.github.com/googleapis/java-shared-config/commit/bdbbb9c13571d0ef06009ebf03bc25c6e6fcbc17))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index a43d64b6..c2798c00 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 0.13.1 + 1.0.0 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index 88a53da2..0f09b547 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.13.1 + 1.0.0 From d80b971d94991e7573d10c7cf676f719418101dd Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 5 Aug 2021 09:32:37 -0700 Subject: [PATCH 114/401] chore: remove java 7 units check (#478) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/0f8c01a6-6689-48f2-9222-3a86af6230a0/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/1a2878d6909dd10ca4e3c1b5943d6622e996054e --- .github/workflows/ci.yaml | 2 +- synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0195b32f..65ae6ecd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [7, 8, 11] + java: [8, 11] steps: - uses: actions/checkout@v2 - uses: actions/setup-java@v1 diff --git a/synth.metadata b/synth.metadata index 033c2ae0..1bf463b1 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "82beb28b2d5cff8fe2e6547332c50b866d5eedb0" + "sha": "00f3512c1c600ce24e3c293e6772cd88787ff06d" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "5d3c52f5db664eee9026db76b5bcb466f3a09ca9" + "sha": "1a2878d6909dd10ca4e3c1b5943d6622e996054e" } } ], From 0ab4700506318f863d30c92a8576631b3da43069 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 5 Aug 2021 15:24:19 -0400 Subject: [PATCH 115/401] chore: remove java7 units check from required checks in master (#487) --- .github/sync-repo-settings.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index d3ce755a..7dd5c376 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -13,7 +13,6 @@ branchProtectionRules: - linkage-monitor - lint - clirr - - units (7) - units (8) - units (11) - 'Kokoro - Test: Integration' From c4f23810f38f24826dfc51ce0a0e4d4e20e55f07 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 6 Aug 2021 11:10:20 -0700 Subject: [PATCH 116/401] feat!: release gapic-generator-java v2.0.0 (#484) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/5976b7b3-c22d-4a71-a592-a8358d89311c/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 388535346 Source-Link: https://github.com/googleapis/googleapis/commit/d9eaf41de44d953458b18712a3f240bb4c564e48 PiperOrigin-RevId: 388499329 Source-Link: https://github.com/googleapis/googleapis/commit/bb0a090d9204110042ab5dee2ce9e06e8071ce54 --- .../cloud/tasks/v2/CloudTasksClient.java | 19 +- .../cloud/tasks/v2/CloudTasksSettings.java | 3 +- .../tasks/v2/stub/CloudTasksStubSettings.java | 3 +- .../tasks/v2/stub/GrpcCloudTasksStub.java | 186 ++++++-------- .../cloud/tasks/v2beta2/CloudTasksClient.java | 19 +- .../tasks/v2beta2/CloudTasksSettings.java | 3 +- .../v2beta2/stub/CloudTasksStubSettings.java | 3 +- .../v2beta2/stub/GrpcCloudTasksStub.java | 230 +++++++----------- .../cloud/tasks/v2beta3/CloudTasksClient.java | 19 +- .../tasks/v2beta3/CloudTasksSettings.java | 3 +- .../v2beta3/stub/CloudTasksStubSettings.java | 3 +- .../v2beta3/stub/GrpcCloudTasksStub.java | 186 ++++++-------- synth.metadata | 6 +- 13 files changed, 244 insertions(+), 439 deletions(-) diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java index 0ca751a7..01650898 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java @@ -16,7 +16,6 @@ package com.google.cloud.tasks.v2; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -2277,14 +2276,7 @@ public static ApiFuture createAsync( ApiFuture futurePage = ListQueuesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListQueuesPagedResponse apply(ListQueuesPage input) { - return new ListQueuesPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); + futurePage, input -> new ListQueuesPagedResponse(input), MoreExecutors.directExecutor()); } private ListQueuesPagedResponse(ListQueuesPage page) { @@ -2353,14 +2345,7 @@ public static ApiFuture createAsync( ApiFuture futurePage = ListTasksPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListTasksPagedResponse apply(ListTasksPage input) { - return new ListTasksPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); + futurePage, input -> new ListTasksPagedResponse(input), MoreExecutors.directExecutor()); } private ListTasksPagedResponse(ListTasksPage page) { diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java index 91acf435..0b9c4aee 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java @@ -242,14 +242,13 @@ public CloudTasksStubSettings.Builder getStubSettingsBuilder() { return ((CloudTasksStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java index 5363b5fe..032bd6fa 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java @@ -660,14 +660,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java index 090400e3..f7d05c8b 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java @@ -24,7 +24,6 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.tasks.v2.CreateQueueRequest; import com.google.cloud.tasks.v2.CreateTaskRequest; @@ -54,7 +53,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -265,130 +263,100 @@ protected GrpcCloudTasksStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(listQueuesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListQueuesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getQueueTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getQueueMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetQueueRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings createQueueTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createQueueMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateQueueRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings updateQueueTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateQueueMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateQueueRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("queue.name", String.valueOf(request.getQueue().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("queue.name", String.valueOf(request.getQueue().getName())); + return params.build(); }) .build(); GrpcCallSettings deleteQueueTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteQueueMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteQueueRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings purgeQueueTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(purgeQueueMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(PurgeQueueRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings pauseQueueTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(pauseQueueMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(PauseQueueRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings resumeQueueTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(resumeQueueMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ResumeQueueRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getIamPolicyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetIamPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); }) .build(); GrpcCallSettings setIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(setIamPolicyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetIamPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); }) .build(); GrpcCallSettings @@ -396,78 +364,60 @@ public Map extract(SetIamPolicyRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(testIamPermissionsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(TestIamPermissionsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); }) .build(); GrpcCallSettings listTasksTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listTasksMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListTasksRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getTaskTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getTaskMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetTaskRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings createTaskTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createTaskMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateTaskRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings deleteTaskTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteTaskMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteTaskRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings runTaskTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(runTaskMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(RunTaskRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); @@ -629,7 +579,13 @@ public UnaryCallable runTaskCallable() { @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java index e23cf997..68293abb 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java @@ -16,7 +16,6 @@ package com.google.cloud.tasks.v2beta2; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -2941,14 +2940,7 @@ public static ApiFuture createAsync( ApiFuture futurePage = ListQueuesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListQueuesPagedResponse apply(ListQueuesPage input) { - return new ListQueuesPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); + futurePage, input -> new ListQueuesPagedResponse(input), MoreExecutors.directExecutor()); } private ListQueuesPagedResponse(ListQueuesPage page) { @@ -3017,14 +3009,7 @@ public static ApiFuture createAsync( ApiFuture futurePage = ListTasksPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListTasksPagedResponse apply(ListTasksPage input) { - return new ListTasksPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); + futurePage, input -> new ListTasksPagedResponse(input), MoreExecutors.directExecutor()); } private ListTasksPagedResponse(ListTasksPage page) { diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java index 63e71a74..eb5e1430 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java @@ -263,14 +263,13 @@ public CloudTasksStubSettings.Builder getStubSettingsBuilder() { return ((CloudTasksStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java index 0544a11e..d2c1df7a 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java @@ -735,14 +735,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java index 2b9a7d6e..d0bb8f15 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java @@ -25,7 +25,6 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest; import com.google.cloud.tasks.v2beta2.CancelLeaseRequest; @@ -60,7 +59,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -311,130 +309,100 @@ protected GrpcCloudTasksStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(listQueuesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListQueuesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getQueueTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getQueueMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetQueueRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings createQueueTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createQueueMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateQueueRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings updateQueueTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateQueueMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateQueueRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("queue.name", String.valueOf(request.getQueue().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("queue.name", String.valueOf(request.getQueue().getName())); + return params.build(); }) .build(); GrpcCallSettings deleteQueueTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteQueueMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteQueueRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings purgeQueueTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(purgeQueueMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(PurgeQueueRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings pauseQueueTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(pauseQueueMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(PauseQueueRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings resumeQueueTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(resumeQueueMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ResumeQueueRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getIamPolicyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetIamPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); }) .build(); GrpcCallSettings setIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(setIamPolicyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetIamPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); }) .build(); GrpcCallSettings @@ -442,130 +410,100 @@ public Map extract(SetIamPolicyRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(testIamPermissionsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(TestIamPermissionsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); }) .build(); GrpcCallSettings listTasksTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listTasksMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListTasksRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getTaskTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getTaskMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetTaskRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings createTaskTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createTaskMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateTaskRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings deleteTaskTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteTaskMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteTaskRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings leaseTasksTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(leaseTasksMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(LeaseTasksRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings acknowledgeTaskTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(acknowledgeTaskMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(AcknowledgeTaskRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings renewLeaseTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(renewLeaseMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(RenewLeaseRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings cancelLeaseTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(cancelLeaseMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CancelLeaseRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings runTaskTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(runTaskMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(RunTaskRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); @@ -759,7 +697,13 @@ public UnaryCallable runTaskCallable() { @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java index 2406492f..26450bf3 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java @@ -16,7 +16,6 @@ package com.google.cloud.tasks.v2beta3; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -2291,14 +2290,7 @@ public static ApiFuture createAsync( ApiFuture futurePage = ListQueuesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListQueuesPagedResponse apply(ListQueuesPage input) { - return new ListQueuesPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); + futurePage, input -> new ListQueuesPagedResponse(input), MoreExecutors.directExecutor()); } private ListQueuesPagedResponse(ListQueuesPage page) { @@ -2367,14 +2359,7 @@ public static ApiFuture createAsync( ApiFuture futurePage = ListTasksPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListTasksPagedResponse apply(ListTasksPage input) { - return new ListTasksPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); + futurePage, input -> new ListTasksPagedResponse(input), MoreExecutors.directExecutor()); } private ListTasksPagedResponse(ListTasksPage page) { diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java index f4b31eac..18df7d20 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java @@ -243,14 +243,13 @@ public CloudTasksStubSettings.Builder getStubSettingsBuilder() { return ((CloudTasksStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java index 5921b03b..d1431931 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java @@ -661,14 +661,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java index bbdff01f..fac9d556 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java @@ -25,7 +25,6 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.tasks.v2beta3.CreateQueueRequest; import com.google.cloud.tasks.v2beta3.CreateTaskRequest; @@ -55,7 +54,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -267,130 +265,100 @@ protected GrpcCloudTasksStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(listQueuesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListQueuesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getQueueTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getQueueMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetQueueRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings createQueueTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createQueueMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateQueueRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings updateQueueTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateQueueMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateQueueRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("queue.name", String.valueOf(request.getQueue().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("queue.name", String.valueOf(request.getQueue().getName())); + return params.build(); }) .build(); GrpcCallSettings deleteQueueTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteQueueMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteQueueRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings purgeQueueTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(purgeQueueMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(PurgeQueueRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings pauseQueueTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(pauseQueueMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(PauseQueueRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings resumeQueueTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(resumeQueueMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ResumeQueueRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getIamPolicyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetIamPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); }) .build(); GrpcCallSettings setIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(setIamPolicyMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SetIamPolicyRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); }) .build(); GrpcCallSettings @@ -398,78 +366,60 @@ public Map extract(SetIamPolicyRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(testIamPermissionsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(TestIamPermissionsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); }) .build(); GrpcCallSettings listTasksTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listTasksMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListTasksRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getTaskTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getTaskMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetTaskRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings createTaskTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createTaskMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateTaskRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings deleteTaskTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteTaskMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteTaskRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings runTaskTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(runTaskMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(RunTaskRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); @@ -631,7 +581,13 @@ public UnaryCallable runTaskCallable() { @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override diff --git a/synth.metadata b/synth.metadata index 1bf463b1..89ccee5a 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "00f3512c1c600ce24e3c293e6772cd88787ff06d" + "sha": "d3f2e859ca49dc2f3e4937f9b6c15adf85167ccb" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "551681f25e36b11829e87e580281350461f4f3f5", - "internalRef": "379784268" + "sha": "d9eaf41de44d953458b18712a3f240bb4c564e48", + "internalRef": "388535346" } }, { From 7b44baec9f5e7b3d85a57fb2b79ac8e5089b05c4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 6 Aug 2021 20:56:43 +0200 Subject: [PATCH 117/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2 (#485) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `1.4.0` -> `2.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.0/compatibility-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.0/confidence-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes

googleapis/java-shared-dependencies ### [`v2.0.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​200-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare140v200-2021-08-03) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v1.4.0...v2.0.0) ##### ⚠ BREAKING CHANGES - promote to 2.0.0 ([#​428](https://togithub.com/googleapis/java-shared-dependencies/issues/428)) ##### Features - promote to 2.0.0 ([#​428](https://www.github.com/googleapis/java-shared-dependencies/issues/428)) ([4db31f2](https://www.github.com/googleapis/java-shared-dependencies/commit/4db31f29f1668d4743e8af8996b0c4b30e6831b3)) ##### Documentation - we don't use this as a parent pom ([#​407](https://www.github.com/googleapis/java-shared-dependencies/issues/407)) ([4c86aaf](https://www.github.com/googleapis/java-shared-dependencies/commit/4c86aafc05097b6702056f5cb37736127b6df306)) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.12.4 ([#​398](https://www.github.com/googleapis/java-shared-dependencies/issues/398)) ([f0d49b5](https://www.github.com/googleapis/java-shared-dependencies/commit/f0d49b54ba334f9351c66c9924e3d0d2ed7c0016)) - update dependency com.google.api:api-common to v1.10.6 ([#​411](https://www.github.com/googleapis/java-shared-dependencies/issues/411)) ([79801b5](https://www.github.com/googleapis/java-shared-dependencies/commit/79801b5fee08a8c97e275ed3674ab6c83b204a90)) - update dependency com.google.api:api-common to v2 ([#​414](https://www.github.com/googleapis/java-shared-dependencies/issues/414)) ([17f6e68](https://www.github.com/googleapis/java-shared-dependencies/commit/17f6e68a2792843dd41d3877c095e97c052c5ac0)) - update dependency com.google.auth:google-auth-library-bom to v0.27.0 ([#​400](https://www.github.com/googleapis/java-shared-dependencies/issues/400)) ([0d5a95b](https://www.github.com/googleapis/java-shared-dependencies/commit/0d5a95b84076684f84b0fdbb93a706113f44457d)) - update dependency com.google.auth:google-auth-library-bom to v1 ([#​413](https://www.github.com/googleapis/java-shared-dependencies/issues/413)) ([94897d3](https://www.github.com/googleapis/java-shared-dependencies/commit/94897d30bb1cac0059e272b058f6221fb7e4733f)) - update dependency com.google.cloud:grpc-gcp to v1.1.0 ([#​403](https://www.github.com/googleapis/java-shared-dependencies/issues/403)) ([3cc59f1](https://www.github.com/googleapis/java-shared-dependencies/commit/3cc59f15ebb31a7f97c9f3d78057022afabe75e9)) - update dependency com.google.errorprone:error_prone_annotations to v2.8.0 ([#​406](https://www.github.com/googleapis/java-shared-dependencies/issues/406)) ([2905787](https://www.github.com/googleapis/java-shared-dependencies/commit/29057879adeda8bc40a903ef3b5feafc83c3d972)) - update dependency com.google.errorprone:error_prone_annotations to v2.8.1 ([#​426](https://www.github.com/googleapis/java-shared-dependencies/issues/426)) ([853b68b](https://www.github.com/googleapis/java-shared-dependencies/commit/853b68b16c88c3abb745ee1f71ba4bb317cbc680)) - update gax.version to v1.67.0 ([#​405](https://www.github.com/googleapis/java-shared-dependencies/issues/405)) ([632dcd0](https://www.github.com/googleapis/java-shared-dependencies/commit/632dcd0a9f10b034a2a2ec92c7c3413490dd2a03)) - update gax.version to v2 (major) ([#​418](https://www.github.com/googleapis/java-shared-dependencies/issues/418)) ([670a9e0](https://www.github.com/googleapis/java-shared-dependencies/commit/670a9e0a9588a7e592eb5dd8c0cb9ab08e07293e)) - update google.core.version to v1.96.1 ([#​417](https://www.github.com/googleapis/java-shared-dependencies/issues/417)) ([49db9cb](https://www.github.com/googleapis/java-shared-dependencies/commit/49db9cb473c8d3d794ad57a41cfc223239482174)) - update google.core.version to v2 (major) ([#​427](https://www.github.com/googleapis/java-shared-dependencies/issues/427)) ([8cc7a92](https://www.github.com/googleapis/java-shared-dependencies/commit/8cc7a922cc3ba10a157e3649d7a783bbbcbee010)) - update guava to 30.1.1-jre ([#​423](https://www.github.com/googleapis/java-shared-dependencies/issues/423)) ([94aca59](https://www.github.com/googleapis/java-shared-dependencies/commit/94aca597804d7b45aae22811b277c44281e62d64))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0f09b547..ed813d2c 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 1.4.0 + 2.0.0 pom import From f4ea682db595b26388aeaaa3ede9f167941940d8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 10 Aug 2021 19:02:13 +0000 Subject: [PATCH 118/401] chore: release 2.0.0 (#466) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit :robot: I have created a release \*beep\* \*boop\* --- ## [2.0.0](https://www.github.com/googleapis/java-tasks/compare/v1.33.2...v2.0.0) (2021-08-06) ### ⚠ BREAKING CHANGES * release gapic-generator-java v2.0.0 (#484) ### Features * release gapic-generator-java v2.0.0 ([#484](https://www.github.com/googleapis/java-tasks/issues/484)) ([c4f2381](https://www.github.com/googleapis/java-tasks/commit/c4f23810f38f24826dfc51ce0a0e4d4e20e55f07)) ### Bug Fixes * Add shopt -s nullglob to dependencies script ([#467](https://www.github.com/googleapis/java-tasks/issues/467)) ([4285ef6](https://www.github.com/googleapis/java-tasks/commit/4285ef63eab332a7582fb37892f33a766b1323b4)) * Update dependencies.sh to not break on mac ([#458](https://www.github.com/googleapis/java-tasks/issues/458)) ([19bc4be](https://www.github.com/googleapis/java-tasks/commit/19bc4be2d0fc080132b3853126848e4e73c899fb)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2 ([#485](https://www.github.com/googleapis/java-tasks/issues/485)) ([7b44bae](https://www.github.com/googleapis/java-tasks/commit/7b44baec9f5e7b3d85a57fb2b79ac8e5089b05c4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 22 ++++++++++++++++++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 59 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd7543a8..9fdaa2d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## [2.0.0](https://www.github.com/googleapis/java-tasks/compare/v1.33.2...v2.0.0) (2021-08-06) + + +### ⚠ BREAKING CHANGES + +* release gapic-generator-java v2.0.0 (#484) + +### Features + +* release gapic-generator-java v2.0.0 ([#484](https://www.github.com/googleapis/java-tasks/issues/484)) ([c4f2381](https://www.github.com/googleapis/java-tasks/commit/c4f23810f38f24826dfc51ce0a0e4d4e20e55f07)) + + +### Bug Fixes + +* Add shopt -s nullglob to dependencies script ([#467](https://www.github.com/googleapis/java-tasks/issues/467)) ([4285ef6](https://www.github.com/googleapis/java-tasks/commit/4285ef63eab332a7582fb37892f33a766b1323b4)) +* Update dependencies.sh to not break on mac ([#458](https://www.github.com/googleapis/java-tasks/issues/458)) ([19bc4be](https://www.github.com/googleapis/java-tasks/commit/19bc4be2d0fc080132b3853126848e4e73c899fb)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2 ([#485](https://www.github.com/googleapis/java-tasks/issues/485)) ([7b44bae](https://www.github.com/googleapis/java-tasks/commit/7b44baec9f5e7b3d85a57fb2b79ac8e5089b05c4)) + ### [1.33.2](https://www.github.com/googleapis/java-tasks/compare/v1.33.1...v1.33.2) (2021-07-01) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index c2798c00..1ca826f1 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 1.33.3-SNAPSHOT + 2.0.0 pom com.google.cloud @@ -53,37 +53,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.89.3-SNAPSHOT + 0.90.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.89.3-SNAPSHOT + 0.90.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.89.3-SNAPSHOT + 0.90.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.33.3-SNAPSHOT + 2.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.89.3-SNAPSHOT + 0.90.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.33.3-SNAPSHOT + 2.0.0 com.google.cloud google-cloud-tasks - 1.33.3-SNAPSHOT + 2.0.0
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 3f1aa4f4..fd834096 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 1.33.3-SNAPSHOT + 2.0.0 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 1.33.3-SNAPSHOT + 2.0.0 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 550ae7cb..323b24da 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.33.3-SNAPSHOT + 2.0.0 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.33.3-SNAPSHOT + 2.0.0 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index c23ccfa5..782d7565 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.89.3-SNAPSHOT + 0.90.0 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.33.3-SNAPSHOT + 2.0.0 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 55cb80d5..7b8ac098 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.89.3-SNAPSHOT + 0.90.0 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.33.3-SNAPSHOT + 2.0.0 diff --git a/pom.xml b/pom.xml index ed813d2c..90c8556a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 1.33.3-SNAPSHOT + 2.0.0 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.89.3-SNAPSHOT + 0.90.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.89.3-SNAPSHOT + 0.90.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.33.3-SNAPSHOT + 2.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.89.3-SNAPSHOT + 0.90.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.89.3-SNAPSHOT + 0.90.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 1.33.3-SNAPSHOT + 2.0.0 com.google.cloud google-cloud-tasks - 1.33.3-SNAPSHOT + 2.0.0 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 0c770801..16ca0709 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 1.33.3-SNAPSHOT + 2.0.0 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 1.33.3-SNAPSHOT + 2.0.0 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 353e8684..b67c81c7 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.89.3-SNAPSHOT + 0.90.0 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 1.33.3-SNAPSHOT + 2.0.0 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 3771c809..e26234e8 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.89.3-SNAPSHOT + 0.90.0 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 1.33.3-SNAPSHOT + 2.0.0 diff --git a/versions.txt b/versions.txt index c0beb9e0..98cced7c 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.89.2:0.89.3-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.89.2:0.89.3-SNAPSHOT -proto-google-cloud-tasks-v2:1.33.2:1.33.3-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.89.2:0.89.3-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.89.2:0.89.3-SNAPSHOT -grpc-google-cloud-tasks-v2:1.33.2:1.33.3-SNAPSHOT -google-cloud-tasks:1.33.2:1.33.3-SNAPSHOT \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.90.0:0.90.0 +proto-google-cloud-tasks-v2beta2:0.90.0:0.90.0 +proto-google-cloud-tasks-v2:2.0.0:2.0.0 +grpc-google-cloud-tasks-v2beta3:0.90.0:0.90.0 +grpc-google-cloud-tasks-v2beta2:0.90.0:0.90.0 +grpc-google-cloud-tasks-v2:2.0.0:2.0.0 +google-cloud-tasks:2.0.0:2.0.0 \ No newline at end of file From 92b4531c9dc33c19528320944fb535329d8ca530 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 10 Aug 2021 19:10:15 +0000 Subject: [PATCH 119/401] chore: release 2.0.1-SNAPSHOT (#489) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 1ca826f1..d161dd51 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.0.0 + 2.0.1-SNAPSHOT pom com.google.cloud @@ -53,37 +53,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.0 + 0.90.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.0 + 0.90.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.0 + 0.90.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.0 + 2.0.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.0 + 0.90.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.0 + 2.0.1-SNAPSHOT com.google.cloud google-cloud-tasks - 2.0.0 + 2.0.1-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index fd834096..a295918c 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.0.0 + 2.0.1-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.0.0 + 2.0.1-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 323b24da..4086e2a7 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.0 + 2.0.1-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.0 + 2.0.1-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 782d7565..2ca710a2 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.0 + 0.90.1-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.0 + 2.0.1-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 7b8ac098..588e5dc0 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.0 + 0.90.1-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.0 + 2.0.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 90c8556a..167e0eaa 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.0.0 + 2.0.1-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.0 + 0.90.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.0 + 0.90.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.0 + 2.0.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.0 + 0.90.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.0 + 0.90.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.0 + 2.0.1-SNAPSHOT com.google.cloud google-cloud-tasks - 2.0.0 + 2.0.1-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 16ca0709..057385b2 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.0 + 2.0.1-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.0 + 2.0.1-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index b67c81c7..d4f58dc0 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.0 + 0.90.1-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.0 + 2.0.1-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index e26234e8..e7826adf 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.0 + 0.90.1-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.0 + 2.0.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 98cced7c..b31789d2 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.90.0:0.90.0 -proto-google-cloud-tasks-v2beta2:0.90.0:0.90.0 -proto-google-cloud-tasks-v2:2.0.0:2.0.0 -grpc-google-cloud-tasks-v2beta3:0.90.0:0.90.0 -grpc-google-cloud-tasks-v2beta2:0.90.0:0.90.0 -grpc-google-cloud-tasks-v2:2.0.0:2.0.0 -google-cloud-tasks:2.0.0:2.0.0 \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.90.0:0.90.1-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.90.0:0.90.1-SNAPSHOT +proto-google-cloud-tasks-v2:2.0.0:2.0.1-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.90.0:0.90.1-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.90.0:0.90.1-SNAPSHOT +grpc-google-cloud-tasks-v2:2.0.0:2.0.1-SNAPSHOT +google-cloud-tasks:2.0.0:2.0.1-SNAPSHOT \ No newline at end of file From ff0640b7bae7ee46ebfd6f20226413875b08362b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 12 Aug 2021 19:38:18 +0200 Subject: [PATCH 120/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.0.1 (#491) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.0.0` -> `2.0.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.1/compatibility-slim/2.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.0.1/confidence-slim/2.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.0.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​201-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare200v201-2021-08-11) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.0.0...v2.0.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 167e0eaa..a2101489 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.0.0 + 2.0.1 pom import From ef805c56d6384b71470fbd2724b45a850931d4f1 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 12 Aug 2021 17:48:28 +0000 Subject: [PATCH 121/401] chore: release 2.0.1 (#492) :robot: I have created a release \*beep\* \*boop\* --- ### [2.0.1](https://www.github.com/googleapis/java-tasks/compare/v2.0.0...v2.0.1) (2021-08-12) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.0.1 ([#491](https://www.github.com/googleapis/java-tasks/issues/491)) ([ff0640b](https://www.github.com/googleapis/java-tasks/commit/ff0640b7bae7ee46ebfd6f20226413875b08362b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fdaa2d3..59c9391d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [2.0.1](https://www.github.com/googleapis/java-tasks/compare/v2.0.0...v2.0.1) (2021-08-12) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.0.1 ([#491](https://www.github.com/googleapis/java-tasks/issues/491)) ([ff0640b](https://www.github.com/googleapis/java-tasks/commit/ff0640b7bae7ee46ebfd6f20226413875b08362b)) + ## [2.0.0](https://www.github.com/googleapis/java-tasks/compare/v1.33.2...v2.0.0) (2021-08-06) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index d161dd51..3b6ad37a 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.0.1-SNAPSHOT + 2.0.1 pom com.google.cloud @@ -53,37 +53,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.1-SNAPSHOT + 0.90.1 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.1-SNAPSHOT + 0.90.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.1-SNAPSHOT + 0.90.1 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.1-SNAPSHOT + 2.0.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.1-SNAPSHOT + 0.90.1 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.1-SNAPSHOT + 2.0.1 com.google.cloud google-cloud-tasks - 2.0.1-SNAPSHOT + 2.0.1
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index a295918c..f843b369 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.0.1-SNAPSHOT + 2.0.1 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.0.1-SNAPSHOT + 2.0.1 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 4086e2a7..6b9bc543 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.1-SNAPSHOT + 2.0.1 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.1-SNAPSHOT + 2.0.1 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 2ca710a2..6ea9df09 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.1-SNAPSHOT + 0.90.1 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.1-SNAPSHOT + 2.0.1 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 588e5dc0..af17ca99 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.1-SNAPSHOT + 0.90.1 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.1-SNAPSHOT + 2.0.1 diff --git a/pom.xml b/pom.xml index a2101489..dc1935ef 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.0.1-SNAPSHOT + 2.0.1 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.1-SNAPSHOT + 0.90.1 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.1-SNAPSHOT + 0.90.1 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.1-SNAPSHOT + 2.0.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.1-SNAPSHOT + 0.90.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.1-SNAPSHOT + 0.90.1 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.1-SNAPSHOT + 2.0.1 com.google.cloud google-cloud-tasks - 2.0.1-SNAPSHOT + 2.0.1 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 057385b2..9269280e 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.1-SNAPSHOT + 2.0.1 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.1-SNAPSHOT + 2.0.1 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index d4f58dc0..ca4e85db 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.1-SNAPSHOT + 0.90.1 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.1-SNAPSHOT + 2.0.1 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index e7826adf..82980dee 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.1-SNAPSHOT + 0.90.1 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.1-SNAPSHOT + 2.0.1 diff --git a/versions.txt b/versions.txt index b31789d2..7e72f4d0 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.90.0:0.90.1-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.90.0:0.90.1-SNAPSHOT -proto-google-cloud-tasks-v2:2.0.0:2.0.1-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.90.0:0.90.1-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.90.0:0.90.1-SNAPSHOT -grpc-google-cloud-tasks-v2:2.0.0:2.0.1-SNAPSHOT -google-cloud-tasks:2.0.0:2.0.1-SNAPSHOT \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.90.1:0.90.1 +proto-google-cloud-tasks-v2beta2:0.90.1:0.90.1 +proto-google-cloud-tasks-v2:2.0.1:2.0.1 +grpc-google-cloud-tasks-v2beta3:0.90.1:0.90.1 +grpc-google-cloud-tasks-v2beta2:0.90.1:0.90.1 +grpc-google-cloud-tasks-v2:2.0.1:2.0.1 +google-cloud-tasks:2.0.1:2.0.1 \ No newline at end of file From dd350e2526ae288cc758c3812c479ef97a1e124d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 12 Aug 2021 10:50:27 -0700 Subject: [PATCH 122/401] chore: regenerate README (#493) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-08-12 17:41:03,379 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-tasks/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-08-12 17:41:04,962 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/90db89b5-7bb6-4c2e-b466-a1b2794a2acd/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index df62c0fc..79e8cd5b 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "c70c19a3154fb815234c9b8a49a6c434901d5bfe" + "sha": "ff0640b7bae7ee46ebfd6f20226413875b08362b" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "3d32990b6f4b57be77455e3ca89e6e21cd0c06b3" + "sha": "ff01716e16d2c6e87eaf87197b753ac9fcbbed5d" } } ] diff --git a/README.md b/README.md index 9b3e481b..3433e42d 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 1.33.2 + 2.0.0 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-tasks:1.33.2' +compile 'com.google.cloud:google-cloud-tasks:2.0.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "1.33.2" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.0.0" ``` ## Authentication From 378560b4f0735a24e10069608247d380f2536de5 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 12 Aug 2021 17:56:20 +0000 Subject: [PATCH 123/401] chore: release 2.0.2-SNAPSHOT (#494) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 3b6ad37a..bf61eeb3 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.0.1 + 2.0.2-SNAPSHOT pom com.google.cloud @@ -53,37 +53,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.1 + 0.90.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.1 + 0.90.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.1 + 0.90.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.1 + 2.0.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.1 + 0.90.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.1 + 2.0.2-SNAPSHOT com.google.cloud google-cloud-tasks - 2.0.1 + 2.0.2-SNAPSHOT
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index f843b369..fa08dd17 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.0.1 + 2.0.2-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.0.1 + 2.0.2-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 6b9bc543..e99a5060 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.1 + 2.0.2-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.1 + 2.0.2-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 6ea9df09..c0e64df9 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.1 + 0.90.2-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.1 + 2.0.2-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index af17ca99..8d204bf7 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.1 + 0.90.2-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.1 + 2.0.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index dc1935ef..1d69794e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.0.1 + 2.0.2-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.1 + 0.90.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.1 + 0.90.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.1 + 2.0.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.1 + 0.90.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.1 + 0.90.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.1 + 2.0.2-SNAPSHOT com.google.cloud google-cloud-tasks - 2.0.1 + 2.0.2-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 9269280e..65f3ccde 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.1 + 2.0.2-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.1 + 2.0.2-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index ca4e85db..dedcee93 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.1 + 0.90.2-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.1 + 2.0.2-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 82980dee..5ddc53f2 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.1 + 0.90.2-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.1 + 2.0.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index 7e72f4d0..29b93cc6 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.90.1:0.90.1 -proto-google-cloud-tasks-v2beta2:0.90.1:0.90.1 -proto-google-cloud-tasks-v2:2.0.1:2.0.1 -grpc-google-cloud-tasks-v2beta3:0.90.1:0.90.1 -grpc-google-cloud-tasks-v2beta2:0.90.1:0.90.1 -grpc-google-cloud-tasks-v2:2.0.1:2.0.1 -google-cloud-tasks:2.0.1:2.0.1 \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.90.1:0.90.2-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.90.1:0.90.2-SNAPSHOT +proto-google-cloud-tasks-v2:2.0.1:2.0.2-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.90.1:0.90.2-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.90.1:0.90.2-SNAPSHOT +grpc-google-cloud-tasks-v2:2.0.1:2.0.2-SNAPSHOT +google-cloud-tasks:2.0.1:2.0.2-SNAPSHOT \ No newline at end of file From eb80d5f97cafea347a0aab966b086b0217d82bcc Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 16 Aug 2021 15:14:26 -0700 Subject: [PATCH 124/401] build(java): use ENABLE_FLAKYBOT env variable (#495) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/958b48d1-f891-4f90-b4a3-febd19f4261d/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/ff01716e16d2c6e87eaf87197b753ac9fcbbed5d --- .kokoro/nightly/integration.cfg | 2 +- .kokoro/nightly/samples.cfg | 2 +- synth.metadata | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg index 0048c8ec..e51c7b4c 100644 --- a/.kokoro/nightly/integration.cfg +++ b/.kokoro/nightly/integration.cfg @@ -22,7 +22,7 @@ env_vars: { } env_vars: { - key: "ENABLE_BUILD_COP" + key: "ENABLE_FLAKYBOT" value: "true" } diff --git a/.kokoro/nightly/samples.cfg b/.kokoro/nightly/samples.cfg index f2542931..9761fd86 100644 --- a/.kokoro/nightly/samples.cfg +++ b/.kokoro/nightly/samples.cfg @@ -33,6 +33,6 @@ env_vars: { } env_vars: { - key: "ENABLE_BUILD_COP" + key: "ENABLE_FLAKYBOT" value: "true" } diff --git a/synth.metadata b/synth.metadata index 89ccee5a..5f6d35f8 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "d3f2e859ca49dc2f3e4937f9b6c15adf85167ccb" + "sha": "378560b4f0735a24e10069608247d380f2536de5" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "1a2878d6909dd10ca4e3c1b5943d6622e996054e" + "sha": "ff01716e16d2c6e87eaf87197b753ac9fcbbed5d" } } ], From 5508ec7f29d4124533159ddc827de31732863764 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 16 Aug 2021 15:28:21 -0700 Subject: [PATCH 125/401] chore: regenerate README (#497) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-08-16 22:19:48,556 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-tasks/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-08-16 22:19:50,266 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/61705992-9440-4964-ac76-9529e85d2556/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 79e8cd5b..5f4241a8 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "ff0640b7bae7ee46ebfd6f20226413875b08362b" + "sha": "eb80d5f97cafea347a0aab966b086b0217d82bcc" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "ff01716e16d2c6e87eaf87197b753ac9fcbbed5d" + "sha": "a01e1a0bf70754f51450958b966bd673945d1e6e" } } ] diff --git a/README.md b/README.md index 3433e42d..6426561a 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.0.0 + 2.0.1 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-tasks:2.0.0' +compile 'com.google.cloud:google-cloud-tasks:2.0.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.0.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.0.1" ``` ## Authentication From 8ec547a7949e85a59a8a7cabbf02f176f5eb8f09 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 17 Aug 2021 16:56:28 +0200 Subject: [PATCH 126/401] chore(deps): update dependency com.google.cloud:libraries-bom to v21 (#496) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.9.0` -> `21.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/compatibility-slim/20.9.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/confidence-slim/20.9.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 59e7efd0..83961f19 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.9.0 + 21.0.0 pom import From d02ac5e564b360a825f5a5a90124c8460ab979a5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 Aug 2021 02:20:52 +0200 Subject: [PATCH 127/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.0.1 (#498) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.0.0` -> `1.0.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.1/compatibility-slim/1.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.1/confidence-slim/1.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.0.1`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​101-httpswwwgithubcomgoogleapisjava-shared-configcomparev100v101-2021-08-18) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.0.0...v1.0.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index bf61eeb3..2b62a60a 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.0.0 + 1.0.1 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index 1d69794e..c0b29e82 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.0.0 + 1.0.1 From 3122431e6d75796da40ada589a5d662d2ad96513 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 Aug 2021 19:21:22 +0200 Subject: [PATCH 128/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2 (#490) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 5026b353..28cc2931 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 1.33.2 + 2.0.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 4a5c7423..c8a29861 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 1.33.2 + 2.0.1 From bf68fa2079b9c81c4fb50f27f4e277445d382f99 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 19 Aug 2021 12:04:14 -0700 Subject: [PATCH 129/401] chore: release gapic-generator-java v2.0.1 (#488) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/4984e2f7-ab0f-43a2-8ef8-7c5968342605/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 389657692 Source-Link: https://github.com/googleapis/googleapis/commit/a739464cacb3aa6d375683aefe16b79c21da1bb0 --- .../cloud/tasks/v2/CloudTasksClient.java | 24 +++++++++---------- .../cloud/tasks/v2beta2/CloudTasksClient.java | 24 +++++++++---------- .../cloud/tasks/v2beta3/CloudTasksClient.java | 24 +++++++++---------- synth.metadata | 4 ++-- 4 files changed, 38 insertions(+), 38 deletions(-) diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java index 01650898..0091714c 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java @@ -1118,7 +1118,7 @@ public final UnaryCallable resumeQueueCallable() { * *
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
    * }
    * }
@@ -1151,7 +1151,7 @@ public final Policy getIamPolicy(ResourceName resource) { * *
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String resource = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
    * }
    * }
@@ -1183,7 +1183,7 @@ public final Policy getIamPolicy(String resource) { * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() - * .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * Policy response = cloudTasksClient.getIamPolicy(request); @@ -1219,7 +1219,7 @@ public final Policy getIamPolicy(QueueName queueName) { * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() - * .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * ApiFuture future = cloudTasksClient.getIamPolicyCallable().futureCall(request); @@ -1251,7 +1251,7 @@ public final UnaryCallable getIamPolicyCallable() { * *
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy policy = Policy.newBuilder().build();
    *   Policy response = cloudTasksClient.setIamPolicy(resource, policy);
    * }
@@ -1292,7 +1292,7 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String resource = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy policy = Policy.newBuilder().build();
    *   Policy response = cloudTasksClient.setIamPolicy(resource, policy);
    * }
@@ -1332,7 +1332,7 @@ public final Policy setIamPolicy(String resource, Policy policy) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setPolicy(Policy.newBuilder().build())
    *           .build();
    *   Policy response = cloudTasksClient.setIamPolicy(request);
@@ -1371,7 +1371,7 @@ public final Policy setIamPolicy(QueueName queue, Policy policy) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setPolicy(Policy.newBuilder().build())
    *           .build();
    *   ApiFuture future = cloudTasksClient.setIamPolicyCallable().futureCall(request);
@@ -1398,7 +1398,7 @@ public final UnaryCallable setIamPolicyCallable() {
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   List permissions = new ArrayList<>();
    *   TestIamPermissionsResponse response =
    *       cloudTasksClient.testIamPermissions(resource, permissions);
@@ -1436,7 +1436,7 @@ public final TestIamPermissionsResponse testIamPermissions(
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String resource = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   List permissions = new ArrayList<>();
    *   TestIamPermissionsResponse response =
    *       cloudTasksClient.testIamPermissions(resource, permissions);
@@ -1476,7 +1476,7 @@ public final TestIamPermissionsResponse testIamPermissions(
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .addAllPermissions(new ArrayList())
    *           .build();
    *   TestIamPermissionsResponse response = cloudTasksClient.testIamPermissions(request);
@@ -1511,7 +1511,7 @@ public final TestIamPermissionsResponse testIamPermissions(
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .addAllPermissions(new ArrayList())
    *           .build();
    *   ApiFuture future =
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java
index 68293abb..6f5a5f07 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java
@@ -1130,7 +1130,7 @@ public final UnaryCallable resumeQueueCallable() {
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
    * }
    * }
@@ -1163,7 +1163,7 @@ public final Policy getIamPolicy(ResourceName resource) { * *
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String resource = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
    * }
    * }
@@ -1195,7 +1195,7 @@ public final Policy getIamPolicy(String resource) { * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() - * .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * Policy response = cloudTasksClient.getIamPolicy(request); @@ -1231,7 +1231,7 @@ public final Policy getIamPolicy(QueueName queueName) { * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() - * .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * ApiFuture future = cloudTasksClient.getIamPolicyCallable().futureCall(request); @@ -1263,7 +1263,7 @@ public final UnaryCallable getIamPolicyCallable() { * *
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy policy = Policy.newBuilder().build();
    *   Policy response = cloudTasksClient.setIamPolicy(resource, policy);
    * }
@@ -1304,7 +1304,7 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String resource = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy policy = Policy.newBuilder().build();
    *   Policy response = cloudTasksClient.setIamPolicy(resource, policy);
    * }
@@ -1344,7 +1344,7 @@ public final Policy setIamPolicy(String resource, Policy policy) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setPolicy(Policy.newBuilder().build())
    *           .build();
    *   Policy response = cloudTasksClient.setIamPolicy(request);
@@ -1383,7 +1383,7 @@ public final Policy setIamPolicy(QueueName queue, Policy policy) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setPolicy(Policy.newBuilder().build())
    *           .build();
    *   ApiFuture future = cloudTasksClient.setIamPolicyCallable().futureCall(request);
@@ -1410,7 +1410,7 @@ public final UnaryCallable setIamPolicyCallable() {
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   List permissions = new ArrayList<>();
    *   TestIamPermissionsResponse response =
    *       cloudTasksClient.testIamPermissions(resource, permissions);
@@ -1448,7 +1448,7 @@ public final TestIamPermissionsResponse testIamPermissions(
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String resource = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   List permissions = new ArrayList<>();
    *   TestIamPermissionsResponse response =
    *       cloudTasksClient.testIamPermissions(resource, permissions);
@@ -1488,7 +1488,7 @@ public final TestIamPermissionsResponse testIamPermissions(
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .addAllPermissions(new ArrayList())
    *           .build();
    *   TestIamPermissionsResponse response = cloudTasksClient.testIamPermissions(request);
@@ -1523,7 +1523,7 @@ public final TestIamPermissionsResponse testIamPermissions(
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .addAllPermissions(new ArrayList())
    *           .build();
    *   ApiFuture future =
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java
index 26450bf3..2ddff1e7 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java
@@ -1128,7 +1128,7 @@ public final UnaryCallable resumeQueueCallable() {
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
    * }
    * }
@@ -1161,7 +1161,7 @@ public final Policy getIamPolicy(ResourceName resource) { * *
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String resource = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
    * }
    * }
@@ -1193,7 +1193,7 @@ public final Policy getIamPolicy(String resource) { * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() - * .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * Policy response = cloudTasksClient.getIamPolicy(request); @@ -1229,7 +1229,7 @@ public final Policy getIamPolicy(QueueName queueName) { * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() - * .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * ApiFuture future = cloudTasksClient.getIamPolicyCallable().futureCall(request); @@ -1261,7 +1261,7 @@ public final UnaryCallable getIamPolicyCallable() { * *
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy policy = Policy.newBuilder().build();
    *   Policy response = cloudTasksClient.setIamPolicy(resource, policy);
    * }
@@ -1302,7 +1302,7 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String resource = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy policy = Policy.newBuilder().build();
    *   Policy response = cloudTasksClient.setIamPolicy(resource, policy);
    * }
@@ -1342,7 +1342,7 @@ public final Policy setIamPolicy(String resource, Policy policy) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setPolicy(Policy.newBuilder().build())
    *           .build();
    *   Policy response = cloudTasksClient.setIamPolicy(request);
@@ -1381,7 +1381,7 @@ public final Policy setIamPolicy(QueueName queue, Policy policy) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setPolicy(Policy.newBuilder().build())
    *           .build();
    *   ApiFuture future = cloudTasksClient.setIamPolicyCallable().futureCall(request);
@@ -1408,7 +1408,7 @@ public final UnaryCallable setIamPolicyCallable() {
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   List permissions = new ArrayList<>();
    *   TestIamPermissionsResponse response =
    *       cloudTasksClient.testIamPermissions(resource, permissions);
@@ -1446,7 +1446,7 @@ public final TestIamPermissionsResponse testIamPermissions(
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String resource = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   List permissions = new ArrayList<>();
    *   TestIamPermissionsResponse response =
    *       cloudTasksClient.testIamPermissions(resource, permissions);
@@ -1486,7 +1486,7 @@ public final TestIamPermissionsResponse testIamPermissions(
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .addAllPermissions(new ArrayList())
    *           .build();
    *   TestIamPermissionsResponse response = cloudTasksClient.testIamPermissions(request);
@@ -1521,7 +1521,7 @@ public final TestIamPermissionsResponse testIamPermissions(
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .addAllPermissions(new ArrayList())
    *           .build();
    *   ApiFuture future =
diff --git a/synth.metadata b/synth.metadata
index 5f6d35f8..476b7335 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -11,8 +11,8 @@
       "git": {
         "name": "googleapis",
         "remote": "https://github.com/googleapis/googleapis.git",
-        "sha": "d9eaf41de44d953458b18712a3f240bb4c564e48",
-        "internalRef": "388535346"
+        "sha": "a739464cacb3aa6d375683aefe16b79c21da1bb0",
+        "internalRef": "389657692"
       }
     },
     {

From 0c77e5ffe795da9057eb095167b386e88ae310b4 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate 
Date: Mon, 23 Aug 2021 22:50:42 +0200
Subject: [PATCH 130/401] deps: update dependency
 com.google.cloud:google-cloud-shared-dependencies to v2.1.0 (#500)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.0.1` -> `2.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.1.0/compatibility-slim/2.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.1.0/confidence-slim/2.0.1)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

googleapis/java-shared-dependencies ### [`v2.1.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​210-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare201v210-2021-08-23) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.0.1...v2.1.0) ##### Dependencies - update dependency com.google.auth:google-auth-library-bom to v1.1.0 ([#​439](https://www.togithub.com/googleapis/java-shared-dependencies/issues/439)) ([ca52bd9](https://www.github.com/googleapis/java-shared-dependencies/commit/ca52bd9c099c96bf7b5a57aa85d39b58a610c875)) - update dependency com.google.cloud:google-cloud-core-bom to v2.1.0 ([#​444](https://www.togithub.com/googleapis/java-shared-dependencies/issues/444)) ([ff914c6](https://www.github.com/googleapis/java-shared-dependencies/commit/ff914c6de9e3e7fa6ba75591d3d5077c5421827d)) - update dependency com.google.code.gson:gson to v2.8.8 ([#​442](https://www.togithub.com/googleapis/java-shared-dependencies/issues/442)) ([79a093f](https://www.github.com/googleapis/java-shared-dependencies/commit/79a093f9ccea4d47cf8b678570a1c9699029a8b2)) - update dependency com.google.errorprone:error_prone_annotations to v2.9.0 ([#​441](https://www.togithub.com/googleapis/java-shared-dependencies/issues/441)) ([e644a4b](https://www.github.com/googleapis/java-shared-dependencies/commit/e644a4b504ab8aa5771f9be36861d1730ea9bcc9)) - update dependency io.grpc:grpc-bom to v1.40.0 ([#​438](https://www.togithub.com/googleapis/java-shared-dependencies/issues/438)) ([c3f8fb4](https://www.github.com/googleapis/java-shared-dependencies/commit/c3f8fb4408f5dc6c7f7dc0e14f0c24fa755433a5)) - update gax.version to v2.3.0 ([#​437](https://www.togithub.com/googleapis/java-shared-dependencies/issues/437)) ([e59aaad](https://www.github.com/googleapis/java-shared-dependencies/commit/e59aaadd76e40ab5ea31c3e812686a4ba0471a49)) ##### [2.0.1](https://www.github.com/googleapis/java-shared-dependencies/compare/2.0.0...v2.0.1) (2021-08-11) ##### Dependencies - update dependency com.google.api:api-common to v2.0.1 ([#​431](https://www.togithub.com/googleapis/java-shared-dependencies/issues/431)) ([b1a52c8](https://www.github.com/googleapis/java-shared-dependencies/commit/b1a52c83e19be7be80086f2010e928171b046f62)) - update gax.version to v2.1.0 ([#​432](https://www.togithub.com/googleapis/java-shared-dependencies/issues/432)) ([7f53006](https://www.github.com/googleapis/java-shared-dependencies/commit/7f53006d021e839f52325a87d7c4715eff88818d)) - update google.core.version to v2.0.4 ([#​430](https://www.togithub.com/googleapis/java-shared-dependencies/issues/430)) ([d0465ad](https://www.github.com/googleapis/java-shared-dependencies/commit/d0465ad3a79993d4e854078ea992e53ab9add07f)) - update google.core.version to v2.0.5 ([#​434](https://www.togithub.com/googleapis/java-shared-dependencies/issues/434)) ([af00753](https://www.github.com/googleapis/java-shared-dependencies/commit/af0075390034cba5cefede8260ab03f728d525a8))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c0b29e82..200945e8 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.0.1 + 2.1.0 pom import From 46bdcf0e6dd870f8a1f5d83908680f45c13f5014 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 23 Aug 2021 21:24:28 +0000 Subject: [PATCH 131/401] chore: release 2.0.2 (#501) :robot: I have created a release \*beep\* \*boop\* --- ### [2.0.2](https://www.github.com/googleapis/java-tasks/compare/v2.0.1...v2.0.2) (2021-08-23) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.1.0 ([#500](https://www.github.com/googleapis/java-tasks/issues/500)) ([0c77e5f](https://www.github.com/googleapis/java-tasks/commit/0c77e5ffe795da9057eb095167b386e88ae310b4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 59c9391d..739533ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [2.0.2](https://www.github.com/googleapis/java-tasks/compare/v2.0.1...v2.0.2) (2021-08-23) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.1.0 ([#500](https://www.github.com/googleapis/java-tasks/issues/500)) ([0c77e5f](https://www.github.com/googleapis/java-tasks/commit/0c77e5ffe795da9057eb095167b386e88ae310b4)) + ### [2.0.1](https://www.github.com/googleapis/java-tasks/compare/v2.0.0...v2.0.1) (2021-08-12) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 2b62a60a..a8ace379 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.0.2-SNAPSHOT + 2.0.2 pom com.google.cloud @@ -53,37 +53,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.2-SNAPSHOT + 0.90.2 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.2-SNAPSHOT + 0.90.2 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.2-SNAPSHOT + 0.90.2 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.2-SNAPSHOT + 2.0.2 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.2-SNAPSHOT + 0.90.2 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.2-SNAPSHOT + 2.0.2 com.google.cloud google-cloud-tasks - 2.0.2-SNAPSHOT + 2.0.2 diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index fa08dd17..5f7d164e 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.0.2-SNAPSHOT + 2.0.2 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.0.2-SNAPSHOT + 2.0.2 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index e99a5060..bf74c95e 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.2-SNAPSHOT + 2.0.2 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.2-SNAPSHOT + 2.0.2 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index c0e64df9..de368c59 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.2-SNAPSHOT + 0.90.2 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.2-SNAPSHOT + 2.0.2 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 8d204bf7..2eb886c0 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.2-SNAPSHOT + 0.90.2 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.2-SNAPSHOT + 2.0.2 diff --git a/pom.xml b/pom.xml index 200945e8..70336b91 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.0.2-SNAPSHOT + 2.0.2 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.2-SNAPSHOT + 0.90.2 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.2-SNAPSHOT + 0.90.2 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.2-SNAPSHOT + 2.0.2 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.2-SNAPSHOT + 0.90.2 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.2-SNAPSHOT + 0.90.2 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.2-SNAPSHOT + 2.0.2 com.google.cloud google-cloud-tasks - 2.0.2-SNAPSHOT + 2.0.2 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 65f3ccde..2173377b 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.2-SNAPSHOT + 2.0.2 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.2-SNAPSHOT + 2.0.2 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index dedcee93..36286d66 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.2-SNAPSHOT + 0.90.2 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.2-SNAPSHOT + 2.0.2 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 5ddc53f2..0d3bb100 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.2-SNAPSHOT + 0.90.2 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.2-SNAPSHOT + 2.0.2 diff --git a/versions.txt b/versions.txt index 29b93cc6..05f7d310 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.90.1:0.90.2-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.90.1:0.90.2-SNAPSHOT -proto-google-cloud-tasks-v2:2.0.1:2.0.2-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.90.1:0.90.2-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.90.1:0.90.2-SNAPSHOT -grpc-google-cloud-tasks-v2:2.0.1:2.0.2-SNAPSHOT -google-cloud-tasks:2.0.1:2.0.2-SNAPSHOT \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.90.2:0.90.2 +proto-google-cloud-tasks-v2beta2:0.90.2:0.90.2 +proto-google-cloud-tasks-v2:2.0.2:2.0.2 +grpc-google-cloud-tasks-v2beta3:0.90.2:0.90.2 +grpc-google-cloud-tasks-v2beta2:0.90.2:0.90.2 +grpc-google-cloud-tasks-v2:2.0.2:2.0.2 +google-cloud-tasks:2.0.2:2.0.2 \ No newline at end of file From 7fb6442ff8512cec9997521a1d683de0c558c3bc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 24 Aug 2021 19:45:48 +0200 Subject: [PATCH 132/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.0.2 (#503) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 28cc2931..6c533716 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.0.1 + 2.0.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c8a29861..f8ec79de 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.0.1 + 2.0.2 From e3d8d21f4b9402c6296b067850a4a5f28dc3818c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 24 Aug 2021 10:54:23 -0700 Subject: [PATCH 133/401] chore: regenerate README (#505) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-08-24 17:48:08,743 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-tasks/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-08-24 17:48:09,807 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/33825224-1339-4e35-a7f5-2b0c55ed1f97/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 5f4241a8..fe3204c2 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "eb80d5f97cafea347a0aab966b086b0217d82bcc" + "sha": "7fb6442ff8512cec9997521a1d683de0c558c3bc" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "a01e1a0bf70754f51450958b966bd673945d1e6e" + "sha": "8032ab5a32471d85ece8fc261df16cc40fbfa4fb" } } ] diff --git a/README.md b/README.md index 6426561a..b43c4268 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.0.1 + 2.0.2 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-tasks:2.0.1' +compile 'com.google.cloud:google-cloud-tasks:2.0.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.0.1" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.0.2" ``` ## Authentication From 8de4c0066c9008b1c5a12481d3617f75beff0d44 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Tue, 24 Aug 2021 14:33:03 -0400 Subject: [PATCH 134/401] ci: removing linkage-monitor from the required checks (#504) Linkage Monitor is no longer needed, because the Libraries BOM synchronizes with Google Cloud BOM and the shared dependencies BOM https://github.com/GoogleCloudPlatform/cloud-opensource-java/issues/2137 --- .github/sync-repo-settings.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 7dd5c376..efe88147 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -10,7 +10,6 @@ branchProtectionRules: requiredStatusCheckContexts: - dependencies (8) - dependencies (11) - - linkage-monitor - lint - clirr - units (8) @@ -25,7 +24,6 @@ branchProtectionRules: requiredStatusCheckContexts: - dependencies (8) - dependencies (11) - - linkage-monitor - lint - clirr - units (7) From c4e4bb6027e63ada293abb37705a4c9d5d10a186 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 27 Aug 2021 17:01:20 +0200 Subject: [PATCH 135/401] chore(deps): update dependency com.google.cloud:libraries-bom to v22 (#507) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `21.0.0` -> `22.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/compatibility-slim/21.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/confidence-slim/21.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 83961f19..a5962228 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 21.0.0 + 22.0.0 pom import From 71af21219d5db0fd500df2a167b71d4179a7068a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 1 Sep 2021 00:10:26 +0200 Subject: [PATCH 136/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 (#508) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.1.0` -> `2.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.2.0/compatibility-slim/2.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.2.0/confidence-slim/2.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.2.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​220-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare210v220-2021-08-31) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.1.0...v2.2.0) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.12.5 ([#​456](https://www.togithub.com/googleapis/java-shared-dependencies/issues/456)) ([05b58e8](https://www.github.com/googleapis/java-shared-dependencies/commit/05b58e84ff6617bdcbb1ea644aa6e061bdea0319)) - update dependency com.google.api:api-common to v2.0.2 ([#​450](https://www.togithub.com/googleapis/java-shared-dependencies/issues/450)) ([51caebe](https://www.github.com/googleapis/java-shared-dependencies/commit/51caebe89bfade98866f63952bf82bc663a0179a)) - update dependency com.google.http-client:google-http-client-bom to v1.40.0 ([#​455](https://www.togithub.com/googleapis/java-shared-dependencies/issues/455)) ([82a5e42](https://www.github.com/googleapis/java-shared-dependencies/commit/82a5e42b06570a2c7c9d53b03161b110a44487a1)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.32.1 ([#​447](https://www.togithub.com/googleapis/java-shared-dependencies/issues/447)) ([9d2b895](https://www.github.com/googleapis/java-shared-dependencies/commit/9d2b8958f62daa6a3015a8ac052762fb3d79b35b)) - update dependency io.grpc:grpc-bom to v1.40.1 ([#​451](https://www.togithub.com/googleapis/java-shared-dependencies/issues/451)) ([df668ea](https://www.github.com/googleapis/java-shared-dependencies/commit/df668ead8830a40acf9d5605d47f93c465b779c0)) - update gax.version to v2.4.0 ([#​458](https://www.togithub.com/googleapis/java-shared-dependencies/issues/458)) ([a797d9e](https://www.github.com/googleapis/java-shared-dependencies/commit/a797d9eb8a4bcb3025a9511eae61271278a4a5c9)) - update google.common-protos.version to v2.5.0 ([#​457](https://www.togithub.com/googleapis/java-shared-dependencies/issues/457)) ([38c7bb9](https://www.github.com/googleapis/java-shared-dependencies/commit/38c7bb925414d90ff3065650d06589f79bcab9b6)) - update google.core.version to v2.1.1 ([#​449](https://www.togithub.com/googleapis/java-shared-dependencies/issues/449)) ([b28723a](https://www.github.com/googleapis/java-shared-dependencies/commit/b28723ace0c27ebc73f23a2d094e0fe9ba8a9075)) - update google.core.version to v2.1.2 ([#​459](https://www.togithub.com/googleapis/java-shared-dependencies/issues/459)) ([df4d5b7](https://www.github.com/googleapis/java-shared-dependencies/commit/df4d5b7717386f5e0e2cca87bd9afc56b2c7aee8)) - update iam.version to v1.1.0 ([#​448](https://www.togithub.com/googleapis/java-shared-dependencies/issues/448)) ([3967928](https://www.github.com/googleapis/java-shared-dependencies/commit/39679287f3ef8c1cbca5dfc8aca3f69cfee3d4a6))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 70336b91..36c6234a 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.1.0 + 2.2.0 pom import From 491503de7982ad980035e997b1fa1ce7040cc0d2 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 31 Aug 2021 15:22:47 -0700 Subject: [PATCH 137/401] chore: regenerate README (#509) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-08-31 22:15:20,744 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-tasks/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-08-31 22:15:21,946 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/5ff8b88f-d8fa-41a5-bdd2-63d5a78a8dcf/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index fe3204c2..7cc28a1e 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "7fb6442ff8512cec9997521a1d683de0c558c3bc" + "sha": "71af21219d5db0fd500df2a167b71d4179a7068a" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8032ab5a32471d85ece8fc261df16cc40fbfa4fb" + "sha": "9a238a0623879c3de129a376c6085d4a862f6eb9" } } ] diff --git a/README.md b/README.md index b43c4268..81b1c8f5 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ If you are using Maven, add this to your pom.xml file: If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.cloud:google-cloud-tasks:2.0.2' +implementation 'com.google.cloud:google-cloud-tasks:2.0.2' ``` If you are using SBT, add this to your dependencies From 763c06a480666d1e0fdef16f3b94d85427b8c682 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 31 Aug 2021 16:56:28 -0700 Subject: [PATCH 138/401] chore: enable release-trigger bot (#506) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/0ceba58c-0130-48cd-b39f-2943de71b108/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/63cff634aabb85854caa511c5837ea6b45f42b4b --- .github/release-trigger.yml | 1 + synth.metadata | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .github/release-trigger.yml diff --git a/.github/release-trigger.yml b/.github/release-trigger.yml new file mode 100644 index 00000000..d4ca9418 --- /dev/null +++ b/.github/release-trigger.yml @@ -0,0 +1 @@ +enabled: true diff --git a/synth.metadata b/synth.metadata index 476b7335..66a4c451 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "378560b4f0735a24e10069608247d380f2536de5" + "sha": "8de4c0066c9008b1c5a12481d3617f75beff0d44" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "ff01716e16d2c6e87eaf87197b753ac9fcbbed5d" + "sha": "63cff634aabb85854caa511c5837ea6b45f42b4b" } } ], @@ -62,6 +62,7 @@ ".github/generated-files-bot.yml", ".github/readme/synth.py", ".github/release-please.yml", + ".github/release-trigger.yml", ".github/snippet-bot.yml", ".github/sync-repo-settings.yaml", ".github/trusted-contribution.yml", From 14bbd43eb57050e51e479a3b0f737c97eb0085c0 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 31 Aug 2021 17:40:24 -0700 Subject: [PATCH 139/401] chore: update gapic-generator-java version to 2.1.0 (#499) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/93e35f18-d7eb-43c5-9c14-7d89d6214a02/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 391407209 Source-Link: https://github.com/googleapis/googleapis/commit/e1738ee972b49fd0c4d4718b035444495142b781 --- .../google/cloud/tasks/v2/stub/CloudTasksStubSettings.java | 4 +++- .../cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java | 4 +++- .../cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java | 4 +++- synth.metadata | 4 ++-- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java index 032bd6fa..394f0559 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java @@ -353,7 +353,9 @@ public static List getDefaultServiceScopes() { /** Returns a builder for the default credentials for this service. */ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); } /** Returns a builder for the default ChannelProvider for this service. */ diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java index d2c1df7a..e46b7c1c 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java @@ -383,7 +383,9 @@ public static List getDefaultServiceScopes() { /** Returns a builder for the default credentials for this service. */ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); } /** Returns a builder for the default ChannelProvider for this service. */ diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java index d1431931..3d660e42 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java @@ -354,7 +354,9 @@ public static List getDefaultServiceScopes() { /** Returns a builder for the default credentials for this service. */ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); } /** Returns a builder for the default ChannelProvider for this service. */ diff --git a/synth.metadata b/synth.metadata index 66a4c451..58b12527 100644 --- a/synth.metadata +++ b/synth.metadata @@ -11,8 +11,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "a739464cacb3aa6d375683aefe16b79c21da1bb0", - "internalRef": "389657692" + "sha": "e1738ee972b49fd0c4d4718b035444495142b781", + "internalRef": "391407209" } }, { From 6784e3c1270c2201bd735bd331d7cdb41cef067a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 1 Sep 2021 10:15:34 -0700 Subject: [PATCH 140/401] chore: re-generated to pick up changes from synthtool (#510) * ci: removing linkage-monitor from the required checks Source-Author: Tomo Suzuki Source-Date: Wed Aug 25 13:18:10 2021 -0400 Source-Repo: googleapis/synthtool Source-Sha: e2aa5bcc3356d9e3b8b53de3b5c86226447d3a22 Source-Link: https://github.com/googleapis/synthtool/commit/e2aa5bcc3356d9e3b8b53de3b5c86226447d3a22 * build(java): update renovate config to mark conformance tests as a test commit type Source-Author: kolea2 <45548808+kolea2@users.noreply.github.com> Source-Date: Tue Aug 31 14:35:19 2021 -0400 Source-Repo: googleapis/synthtool Source-Sha: 9a238a0623879c3de129a376c6085d4a862f6eb9 Source-Link: https://github.com/googleapis/synthtool/commit/9a238a0623879c3de129a376c6085d4a862f6eb9 --- .github/workflows/ci.yaml | 13 ------------- renovate.json | 3 ++- synth.metadata | 4 ++-- 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 65ae6ecd..d510359d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -42,19 +42,6 @@ jobs: java-version: ${{matrix.java}} - run: java -version - run: .kokoro/dependencies.sh - linkage-monitor: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 - with: - java-version: 8 - - run: java -version - - name: Install artifacts to local Maven repository - run: .kokoro/build.sh - shell: bash - - name: Validate any conflicts with regard to com.google.cloud:libraries-bom (latest release) - uses: GoogleCloudPlatform/cloud-opensource-java/linkage-monitor@v1-linkagemonitor lint: runs-on: ubuntu-latest steps: diff --git a/renovate.json b/renovate.json index deea732a..4d63a3cb 100644 --- a/renovate.json +++ b/renovate.json @@ -50,7 +50,8 @@ "^junit:junit", "^com.google.truth:truth", "^org.mockito:mockito-core", - "^org.objenesis:objenesis" + "^org.objenesis:objenesis", + "^com.google.cloud:google-cloud-conformance-tests" ], "semanticCommitType": "test", "semanticCommitScope": "deps" diff --git a/synth.metadata b/synth.metadata index 58b12527..43c06f38 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "8de4c0066c9008b1c5a12481d3617f75beff0d44" + "sha": "14bbd43eb57050e51e479a3b0f737c97eb0085c0" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "63cff634aabb85854caa511c5837ea6b45f42b4b" + "sha": "9a238a0623879c3de129a376c6085d4a862f6eb9" } } ], From 6294373441840717b290d2684066b8a7a8f7f6d9 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 1 Sep 2021 10:15:46 -0700 Subject: [PATCH 141/401] chore: release 2.0.3-SNAPSHOT (#502) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index a8ace379..f568b675 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.0.2 + 2.0.3-SNAPSHOT pom com.google.cloud @@ -53,37 +53,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.2 + 0.90.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.2 + 0.90.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.2 + 0.90.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.2 + 2.0.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.2 + 0.90.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.2 + 2.0.3-SNAPSHOT com.google.cloud google-cloud-tasks - 2.0.2 + 2.0.3-SNAPSHOT
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 5f7d164e..fbb25132 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.0.2 + 2.0.3-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.0.2 + 2.0.3-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index bf74c95e..04ad5e53 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.2 + 2.0.3-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.2 + 2.0.3-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index de368c59..6e4a950d 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.2 + 0.90.3-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.2 + 2.0.3-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 2eb886c0..b52c1fea 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.2 + 0.90.3-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.2 + 2.0.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index 36c6234a..1283f493 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.0.2 + 2.0.3-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.2 + 0.90.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.2 + 0.90.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.2 + 2.0.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.2 + 0.90.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.2 + 0.90.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.2 + 2.0.3-SNAPSHOT com.google.cloud google-cloud-tasks - 2.0.2 + 2.0.3-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 2173377b..e1517833 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.2 + 2.0.3-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.2 + 2.0.3-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 36286d66..f22f7a67 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.2 + 0.90.3-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.2 + 2.0.3-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 0d3bb100..f1c82e80 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.2 + 0.90.3-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.2 + 2.0.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index 05f7d310..a1d934aa 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.90.2:0.90.2 -proto-google-cloud-tasks-v2beta2:0.90.2:0.90.2 -proto-google-cloud-tasks-v2:2.0.2:2.0.2 -grpc-google-cloud-tasks-v2beta3:0.90.2:0.90.2 -grpc-google-cloud-tasks-v2beta2:0.90.2:0.90.2 -grpc-google-cloud-tasks-v2:2.0.2:2.0.2 -google-cloud-tasks:2.0.2:2.0.2 \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.90.2:0.90.3-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.90.2:0.90.3-SNAPSHOT +proto-google-cloud-tasks-v2:2.0.2:2.0.3-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.90.2:0.90.3-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.90.2:0.90.3-SNAPSHOT +grpc-google-cloud-tasks-v2:2.0.2:2.0.3-SNAPSHOT +google-cloud-tasks:2.0.2:2.0.3-SNAPSHOT \ No newline at end of file From ef1fdb4297e699e8abe2879b279c6fe2a6778bcb Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 1 Sep 2021 19:08:27 +0000 Subject: [PATCH 142/401] chore: release 2.0.3 (#511) :robot: I have created a release \*beep\* \*boop\* --- ### [2.0.3](https://www.github.com/googleapis/java-tasks/compare/v2.0.2...v2.0.3) (2021-09-01) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 ([#508](https://www.github.com/googleapis/java-tasks/issues/508)) ([71af212](https://www.github.com/googleapis/java-tasks/commit/71af21219d5db0fd500df2a167b71d4179a7068a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 739533ff..31ee9982 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [2.0.3](https://www.github.com/googleapis/java-tasks/compare/v2.0.2...v2.0.3) (2021-09-01) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 ([#508](https://www.github.com/googleapis/java-tasks/issues/508)) ([71af212](https://www.github.com/googleapis/java-tasks/commit/71af21219d5db0fd500df2a167b71d4179a7068a)) + ### [2.0.2](https://www.github.com/googleapis/java-tasks/compare/v2.0.1...v2.0.2) (2021-08-23) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index f568b675..8b1d68a9 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.0.3-SNAPSHOT + 2.0.3 pom com.google.cloud @@ -53,37 +53,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.3-SNAPSHOT + 0.90.3 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.3-SNAPSHOT + 0.90.3 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.3-SNAPSHOT + 0.90.3 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.3-SNAPSHOT + 2.0.3 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.3-SNAPSHOT + 0.90.3 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.3-SNAPSHOT + 2.0.3 com.google.cloud google-cloud-tasks - 2.0.3-SNAPSHOT + 2.0.3 diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index fbb25132..360cd541 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.0.3-SNAPSHOT + 2.0.3 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.0.3-SNAPSHOT + 2.0.3 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 04ad5e53..1e49557d 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.3-SNAPSHOT + 2.0.3 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.3-SNAPSHOT + 2.0.3 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 6e4a950d..84511560 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.3-SNAPSHOT + 0.90.3 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.3-SNAPSHOT + 2.0.3 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index b52c1fea..0bb6a129 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.3-SNAPSHOT + 0.90.3 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.3-SNAPSHOT + 2.0.3 diff --git a/pom.xml b/pom.xml index 1283f493..4218972f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.0.3-SNAPSHOT + 2.0.3 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.3-SNAPSHOT + 0.90.3 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.3-SNAPSHOT + 0.90.3 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.3-SNAPSHOT + 2.0.3 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.3-SNAPSHOT + 0.90.3 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.3-SNAPSHOT + 0.90.3 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.3-SNAPSHOT + 2.0.3 com.google.cloud google-cloud-tasks - 2.0.3-SNAPSHOT + 2.0.3 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index e1517833..3968d288 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.3-SNAPSHOT + 2.0.3 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.3-SNAPSHOT + 2.0.3 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index f22f7a67..124d712e 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.3-SNAPSHOT + 0.90.3 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.3-SNAPSHOT + 2.0.3 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index f1c82e80..10e027db 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.3-SNAPSHOT + 0.90.3 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.3-SNAPSHOT + 2.0.3 diff --git a/versions.txt b/versions.txt index a1d934aa..445dec74 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.90.2:0.90.3-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.90.2:0.90.3-SNAPSHOT -proto-google-cloud-tasks-v2:2.0.2:2.0.3-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.90.2:0.90.3-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.90.2:0.90.3-SNAPSHOT -grpc-google-cloud-tasks-v2:2.0.2:2.0.3-SNAPSHOT -google-cloud-tasks:2.0.2:2.0.3-SNAPSHOT \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.90.3:0.90.3 +proto-google-cloud-tasks-v2beta2:0.90.3:0.90.3 +proto-google-cloud-tasks-v2:2.0.3:2.0.3 +grpc-google-cloud-tasks-v2beta3:0.90.3:0.90.3 +grpc-google-cloud-tasks-v2beta2:0.90.3:0.90.3 +grpc-google-cloud-tasks-v2:2.0.3:2.0.3 +google-cloud-tasks:2.0.3:2.0.3 \ No newline at end of file From 92797a8ff7f51115ad333eb6e25b7d0caeb4e3cc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 2 Sep 2021 17:58:31 +0200 Subject: [PATCH 143/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.0.3 (#513) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.0.2` -> `2.0.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.0.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.0.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.0.3/compatibility-slim/2.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.0.3/confidence-slim/2.0.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-tasks ### [`v2.0.3`](https://togithub.com/googleapis/java-tasks/blob/master/CHANGELOG.md#​203-httpswwwgithubcomgoogleapisjava-taskscomparev202v203-2021-09-01) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v2.0.2...v2.0.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 6c533716..f6f45fc7 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.0.2 + 2.0.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index f8ec79de..88962d4a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.0.2 + 2.0.3 From 3573ebbb0fa9688cb7a7a5a8da54dc897e99d2be Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 3 Sep 2021 08:46:24 -0700 Subject: [PATCH 144/401] chore(java): install maven 3.8.1 at runtime (#515) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/f6319ed8-72c8-4f72-b602-367f59eb02a6/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/ad7fd76e17bf9494a3e47ff9cf445f61564432e0 --- .github/workflows/ci.yaml | 14 +++++++++++++- synth.metadata | 4 ++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d510359d..e23d923e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,6 +12,9 @@ jobs: java: [8, 11] steps: - uses: actions/checkout@v2 + - uses: stCarolas/setup-maven@v4 + with: + maven-version: 3.8.1 - uses: actions/setup-java@v1 with: java-version: ${{matrix.java}} @@ -37,6 +40,9 @@ jobs: java: [8, 11] steps: - uses: actions/checkout@v2 + - uses: stCarolas/setup-maven@v4 + with: + maven-version: 3.8.1 - uses: actions/setup-java@v1 with: java-version: ${{matrix.java}} @@ -46,6 +52,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: stCarolas/setup-maven@v4 + with: + maven-version: 3.8.1 - uses: actions/setup-java@v1 with: java-version: 8 @@ -57,10 +66,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - uses: stCarolas/setup-maven@v4 + with: + maven-version: 3.8.1 - uses: actions/setup-java@v1 with: java-version: 8 - run: java -version - run: .kokoro/build.sh env: - JOB_TYPE: clirr + JOB_TYPE: clirr \ No newline at end of file diff --git a/synth.metadata b/synth.metadata index 43c06f38..36fc3f94 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "14bbd43eb57050e51e479a3b0f737c97eb0085c0" + "sha": "92797a8ff7f51115ad333eb6e25b7d0caeb4e3cc" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "9a238a0623879c3de129a376c6085d4a862f6eb9" + "sha": "ad7fd76e17bf9494a3e47ff9cf445f61564432e0" } } ], From e89b9d4d2e707e56697e1e1dea6a544ed822c5c7 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 3 Sep 2021 14:38:14 -0700 Subject: [PATCH 145/401] chore: regenerate README (#514) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-09-02 16:00:40,592 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-tasks/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-09-02 16:00:42,917 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/0703be45-9657-411a-9777-3ded3b0399f5/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 7cc28a1e..1f9d243e 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "71af21219d5db0fd500df2a167b71d4179a7068a" + "sha": "92797a8ff7f51115ad333eb6e25b7d0caeb4e3cc" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "9a238a0623879c3de129a376c6085d4a862f6eb9" + "sha": "5c0fa62eea9c33ebe61e582424b659eb264e1ba4" } } ] diff --git a/README.md b/README.md index 81b1c8f5..5a39bed4 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.0.2 + 2.0.3 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.0.2' +implementation 'com.google.cloud:google-cloud-tasks:2.0.3' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.0.2" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.0.3" ``` ## Authentication From a351f79c56660697c4470ae1487583c7d07fe91c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 3 Sep 2021 21:40:14 +0000 Subject: [PATCH 146/401] chore: release 2.0.4-SNAPSHOT (#512) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 8b1d68a9..cb464a3e 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.0.3 + 2.0.4-SNAPSHOT pom com.google.cloud @@ -53,37 +53,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.3 + 0.90.4-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.3 + 0.90.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.3 + 0.90.4-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.3 + 2.0.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.3 + 0.90.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.3 + 2.0.4-SNAPSHOT com.google.cloud google-cloud-tasks - 2.0.3 + 2.0.4-SNAPSHOT
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 360cd541..4645320d 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.0.3 + 2.0.4-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.0.3 + 2.0.4-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 1e49557d..8512ff25 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.3 + 2.0.4-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.3 + 2.0.4-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 84511560..d7bfc2cc 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.3 + 0.90.4-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.3 + 2.0.4-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 0bb6a129..2848c3d3 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.3 + 0.90.4-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.3 + 2.0.4-SNAPSHOT diff --git a/pom.xml b/pom.xml index 4218972f..f8560772 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.0.3 + 2.0.4-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.3 + 0.90.4-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.3 + 0.90.4-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.3 + 2.0.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.3 + 0.90.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.3 + 0.90.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.3 + 2.0.4-SNAPSHOT com.google.cloud google-cloud-tasks - 2.0.3 + 2.0.4-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 3968d288..6d49f144 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.3 + 2.0.4-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.3 + 2.0.4-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 124d712e..00f7956a 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.3 + 0.90.4-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.3 + 2.0.4-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 10e027db..22850ba2 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.3 + 0.90.4-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.3 + 2.0.4-SNAPSHOT diff --git a/versions.txt b/versions.txt index 445dec74..ab08ca62 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.90.3:0.90.3 -proto-google-cloud-tasks-v2beta2:0.90.3:0.90.3 -proto-google-cloud-tasks-v2:2.0.3:2.0.3 -grpc-google-cloud-tasks-v2beta3:0.90.3:0.90.3 -grpc-google-cloud-tasks-v2beta2:0.90.3:0.90.3 -grpc-google-cloud-tasks-v2:2.0.3:2.0.3 -google-cloud-tasks:2.0.3:2.0.3 \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.90.3:0.90.4-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.90.3:0.90.4-SNAPSHOT +proto-google-cloud-tasks-v2:2.0.3:2.0.4-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.90.3:0.90.4-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.90.3:0.90.4-SNAPSHOT +grpc-google-cloud-tasks-v2:2.0.3:2.0.4-SNAPSHOT +google-cloud-tasks:2.0.3:2.0.4-SNAPSHOT \ No newline at end of file From eb37c84b36ce7b10caa81321e3a8871064f71d20 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Sun, 5 Sep 2021 14:04:26 -0400 Subject: [PATCH 147/401] chore: migrate to owlbot (#516) --- .github/.OwlBot.lock.yaml | 3 + .github/.OwlBot.yaml | 36 ++++++++ google-cloud-tasks-bom/pom.xml | 37 ++++---- google-cloud-tasks/pom.xml | 4 +- owlbot.py | 63 +++++++++++++ pom.xml | 12 +-- .../example/task/CreateHttpTaskWithToken.java | 2 +- .../java/com/example/task/ListQueues.java | 3 +- .../java/com/example/task/DeleteQueueIT.java | 2 +- .../java/com/example/task/ListQueuesIT.java | 3 +- synth.py | 90 ------------------- versions.txt | 8 +- 12 files changed, 136 insertions(+), 127 deletions(-) create mode 100644 .github/.OwlBot.lock.yaml create mode 100644 .github/.OwlBot.yaml create mode 100644 owlbot.py delete mode 100644 synth.py diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml new file mode 100644 index 00000000..fc89d49d --- /dev/null +++ b/.github/.OwlBot.lock.yaml @@ -0,0 +1,3 @@ +docker: + digest: sha256:4837f2a7fdff2985b4f7432f8a6d6a87beacebf3ac071746532c0ce2e3f24b9b + image: gcr.io/repo-automation-bots/owlbot-java:latest diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml new file mode 100644 index 00000000..a6b9bb01 --- /dev/null +++ b/.github/.OwlBot.yaml @@ -0,0 +1,36 @@ +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +docker: + image: "gcr.io/repo-automation-bots/owlbot-java:latest" + +deep-remove-regex: +- "/grpc-google-.*/src" +- "/proto-google-.*/src" +- "/google-.*/src" + +deep-preserve-regex: +- "/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksSmokeTest.java" +- "/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ProjectName.java" +- "/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ProjectName.java" +- "/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ProjectName.java" + +deep-copy-regex: +- source: "/google/cloud/tasks/(v.*)/.*-java/proto-google-.*/src" + dest: "/owl-bot-staging/$1/proto-google-cloud-tasks-$1/src" +- source: "/google/cloud/tasks/(v.*)/.*-java/grpc-google-.*/src" + dest: "/owl-bot-staging/$1/grpc-google-cloud-tasks-$1/src" +- source: "/google/cloud/tasks/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/$1/google-cloud-tasks/src" diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index cb464a3e..c36bc7a4 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -1,4 +1,4 @@ - + 4.0.0 com.google.cloud @@ -49,27 +49,16 @@ - - com.google.api.grpc - proto-google-cloud-tasks-v2beta3 - 0.90.4-SNAPSHOT - - - com.google.api.grpc - proto-google-cloud-tasks-v2beta2 - 0.90.4-SNAPSHOT + com.google.cloud + google-cloud-tasks + 2.0.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 0.90.4-SNAPSHOT - - com.google.api.grpc - proto-google-cloud-tasks-v2 - 2.0.4-SNAPSHOT - com.google.api.grpc grpc-google-cloud-tasks-v2beta2 @@ -81,9 +70,19 @@ 2.0.4-SNAPSHOT - com.google.cloud - google-cloud-tasks - 2.0.4-SNAPSHOT + com.google.api.grpc + proto-google-cloud-tasks-v2beta3 + 0.90.4-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-tasks-v2beta2 + 0.90.4-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-tasks-v2 + 2.0.4-SNAPSHOT @@ -99,4 +98,4 @@ - \ No newline at end of file + diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 4645320d..d0c937d3 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -1,4 +1,4 @@ - + 4.0.0 com.google.cloud @@ -133,4 +133,4 @@ - \ No newline at end of file + diff --git a/owlbot.py b/owlbot.py new file mode 100644 index 00000000..4e0144e4 --- /dev/null +++ b/owlbot.py @@ -0,0 +1,63 @@ +# Copyright 2021 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. + +import synthtool as s +from synthtool.languages import java + + +GET_IAM_POLICY = """ + public final Policy getIamPolicy(QueueName queueName) { + return getIamPolicy((ResourceName) queueName); + } +""" +GET_IAM_POLICY_PREVIOUS = r'(\s+public final Policy getIamPolicy\(GetIamPolicyRequest request\) {\n\s+return .*\n\s+})' + +SET_IAM_POLICY = """ + public final Policy setIamPolicy(QueueName queue, Policy policy) { + return setIamPolicy((ResourceName) queue, policy); + } +""" +SET_IAM_POLICY_PREVIOUS = r'(\s+public final Policy setIamPolicy\(SetIamPolicyRequest request\) {\n\s+return .*\n\s+})' + +TEST_IAM_POLICY = """ + public final TestIamPermissionsResponse testIamPermissions( + QueueName queue, List permissions) { + return testIamPermissions((ResourceName) queue, permissions); + } +""" +TEST_IAM_POLICY_PREVIOUS = r'(\spublic final TestIamPermissionsResponse testIamPermissions\(TestIamPermissionsRequest request\) {\n\s+return .*\n\s+})' + +for library in s.get_staging_dirs(): + # put any special-case replacements here + version = library.parts[len(library.parts) - 1] + service = 'tasks' + s.replace( + f'owl-bot-staging/{version}/google-cloud-{service}/src/main/java/com/google/cloud/tasks/{version}/CloudTasksClient.java', + GET_IAM_POLICY_PREVIOUS, + "\g<1>\n\n" + GET_IAM_POLICY + ) + s.replace( + f'owl-bot-staging/{version}/google-cloud-{service}/src/main/java/com/google/cloud/tasks/{version}/CloudTasksClient.java', + SET_IAM_POLICY_PREVIOUS, + "\g<1>\n\n" + SET_IAM_POLICY + ) + s.replace( + f'owl-bot-staging/{version}/google-cloud-{service}/src/main/java/com/google/cloud/tasks/{version}/CloudTasksClient.java', + TEST_IAM_POLICY_PREVIOUS, + "\g<1>\n\n" + TEST_IAM_POLICY + ) + s.move(library) + +s.remove_staging_dirs() +java.common_templates(excludes=[".kokoro/build.sh"]) diff --git a/pom.xml b/pom.xml index f8560772..401bf3fa 100644 --- a/pom.xml +++ b/pom.xml @@ -129,14 +129,14 @@ - proto-google-cloud-tasks-v2beta3 - proto-google-cloud-tasks-v2beta2 - proto-google-cloud-tasks-v2 + google-cloud-tasks grpc-google-cloud-tasks-v2beta3 grpc-google-cloud-tasks-v2beta2 grpc-google-cloud-tasks-v2 - google-cloud-tasks - google-cloud-tasks-bom + proto-google-cloud-tasks-v2beta3 + proto-google-cloud-tasks-v2beta2 + proto-google-cloud-tasks-v2 + google-cloud-tasks-bom @@ -208,4 +208,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/src/main/java/com/example/task/CreateHttpTaskWithToken.java b/samples/snippets/src/main/java/com/example/task/CreateHttpTaskWithToken.java index a341f680..91cd8c22 100644 --- a/samples/snippets/src/main/java/com/example/task/CreateHttpTaskWithToken.java +++ b/samples/snippets/src/main/java/com/example/task/CreateHttpTaskWithToken.java @@ -34,7 +34,7 @@ public static void main(String[] args) throws IOException { String projectId = "my-project-id"; String locationId = "us-central1"; String queueId = "my-queue"; - String serviceAccountEmail = + String serviceAccountEmail = "java-docs-samples-testing@java-docs-samples-testing.iam.gserviceaccount.com"; createTask(projectId, locationId, queueId, serviceAccountEmail); } diff --git a/samples/snippets/src/main/java/com/example/task/ListQueues.java b/samples/snippets/src/main/java/com/example/task/ListQueues.java index 85fd8c14..2405eeca 100644 --- a/samples/snippets/src/main/java/com/example/task/ListQueues.java +++ b/samples/snippets/src/main/java/com/example/task/ListQueues.java @@ -30,8 +30,7 @@ public static void main(String[] args) throws IOException { } // List queues using the Cloud Tasks client. - public static void listQueues(String projectId, String locationId) - throws IOException { + public static void listQueues(String projectId, String locationId) throws IOException { // Instantiates a client. try (CloudTasksClient client = CloudTasksClient.create()) { diff --git a/samples/snippets/src/test/java/com/example/task/DeleteQueueIT.java b/samples/snippets/src/test/java/com/example/task/DeleteQueueIT.java index 90c3f74b..3bf3ad63 100644 --- a/samples/snippets/src/test/java/com/example/task/DeleteQueueIT.java +++ b/samples/snippets/src/test/java/com/example/task/DeleteQueueIT.java @@ -61,7 +61,7 @@ public void setUp() { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); System.setOut(out); - + try (CloudTasksClient client = CloudTasksClient.create()) { String parent = LocationName.of(PROJECT_ID, LOCATION_ID).toString(); String queuePath = QueueName.of(PROJECT_ID, LOCATION_ID, QUEUE_ID).toString(); diff --git a/samples/snippets/src/test/java/com/example/task/ListQueuesIT.java b/samples/snippets/src/test/java/com/example/task/ListQueuesIT.java index 11e68b8e..287a83ec 100644 --- a/samples/snippets/src/test/java/com/example/task/ListQueuesIT.java +++ b/samples/snippets/src/test/java/com/example/task/ListQueuesIT.java @@ -17,7 +17,6 @@ import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertNotNull; -import com.google.api.gax.rpc.NotFoundException; import com.google.cloud.tasks.v2.CloudTasksClient; import com.google.cloud.tasks.v2.LocationName; import com.google.cloud.tasks.v2.Queue; @@ -61,7 +60,7 @@ public void setUp() { bout = new ByteArrayOutputStream(); out = new PrintStream(bout); System.setOut(out); - + try (CloudTasksClient client = CloudTasksClient.create()) { String parent = LocationName.of(PROJECT_ID, LOCATION_ID).toString(); String queuePath = QueueName.of(PROJECT_ID, LOCATION_ID, QUEUE_ID).toString(); diff --git a/synth.py b/synth.py deleted file mode 100644 index c46edd15..00000000 --- a/synth.py +++ /dev/null @@ -1,90 +0,0 @@ -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""This script is used to synthesize generated parts of this library.""" - -import synthtool as s -import synthtool.gcp as gcp -import synthtool.languages.java as java - -AUTOSYNTH_MULTIPLE_COMMITS = True - -gapic = gcp.GAPICBazel() - -service = 'tasks' -versions = ['v2beta2', 'v2beta3', 'v2'] -config_pattern = '/google/cloud/tasks/artman_cloudtasks_{version}.yaml' - -GET_IAM_POLICY = """ - public final Policy getIamPolicy(QueueName queueName) { - return getIamPolicy((ResourceName) queueName); - } -""" -GET_IAM_POLICY_PREVIOUS = r'(\s+public final Policy getIamPolicy\(GetIamPolicyRequest request\) {\n\s+return .*\n\s+})' - -SET_IAM_POLICY = """ - public final Policy setIamPolicy(QueueName queue, Policy policy) { - return setIamPolicy((ResourceName) queue, policy); - } -""" -SET_IAM_POLICY_PREVIOUS = r'(\s+public final Policy setIamPolicy\(SetIamPolicyRequest request\) {\n\s+return .*\n\s+})' - -TEST_IAM_POLICY = """ - public final TestIamPermissionsResponse testIamPermissions( - QueueName queue, List permissions) { - return testIamPermissions((ResourceName) queue, permissions); - } -""" -TEST_IAM_POLICY_PREVIOUS = r'(\spublic final TestIamPermissionsResponse testIamPermissions\(TestIamPermissionsRequest request\) {\n\s+return .*\n\s+})' - -for version in versions: - library = gapic.java_library( - service=service, - version=version, - bazel_target=f'//google/cloud/{service}/{version}:google-cloud-{service}-{version}-java', - ) - - library = library / f"google-cloud-{service}-{version}-java" - - package_name = f'com.google.cloud.{service}.{version}' - java.fix_proto_headers(library / f'proto-google-cloud-{service}-{version}-java') - java.fix_grpc_headers(library / f'grpc-google-cloud-{service}-{version}-java', package_name) - - s.replace( - library / f'gapic-google-cloud-{service}-{version}-java/src/**/CloudTasksClient.java', - GET_IAM_POLICY_PREVIOUS, - "\g<1>\n\n" + GET_IAM_POLICY - ) - s.replace( - library / f'gapic-google-cloud-{service}-{version}-java/src/**/CloudTasksClient.java', - SET_IAM_POLICY_PREVIOUS, - "\g<1>\n\n" + SET_IAM_POLICY - ) - s.replace( - library / f'gapic-google-cloud-{service}-{version}-java/src/**/CloudTasksClient.java', - TEST_IAM_POLICY_PREVIOUS, - "\g<1>\n\n" + TEST_IAM_POLICY - ) - - s.copy(library / f'gapic-google-cloud-{service}-{version}-java/src', f'google-cloud-{service}/src') - s.copy(library / f'grpc-google-cloud-{service}-{version}-java/src', f'grpc-google-cloud-{service}-{version}/src') - s.copy(library / f'proto-google-cloud-{service}-{version}-java/src', f'proto-google-cloud-{service}-{version}/src') - - java.format_code(f'google-cloud-{service}/src') - java.format_code(f'grpc-google-cloud-{service}-{version}/src') - java.format_code(f'proto-google-cloud-{service}-{version}/src') - -java.common_templates(excludes=[ - '.kokoro/build.sh', -]) diff --git a/versions.txt b/versions.txt index ab08ca62..fe69ebd6 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -proto-google-cloud-tasks-v2beta3:0.90.3:0.90.4-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.90.3:0.90.4-SNAPSHOT -proto-google-cloud-tasks-v2:2.0.3:2.0.4-SNAPSHOT +google-cloud-tasks:2.0.3:2.0.4-SNAPSHOT grpc-google-cloud-tasks-v2beta3:0.90.3:0.90.4-SNAPSHOT grpc-google-cloud-tasks-v2beta2:0.90.3:0.90.4-SNAPSHOT grpc-google-cloud-tasks-v2:2.0.3:2.0.4-SNAPSHOT -google-cloud-tasks:2.0.3:2.0.4-SNAPSHOT \ No newline at end of file +proto-google-cloud-tasks-v2beta3:0.90.3:0.90.4-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.90.3:0.90.4-SNAPSHOT +proto-google-cloud-tasks-v2:2.0.3:2.0.4-SNAPSHOT From 7af405a76fea0ec74ac15f1dbd8cc35a69859a93 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 8 Sep 2021 16:28:41 +0000 Subject: [PATCH 148/401] chore(java): update windows build (#1205) (#517) --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/ci.yaml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index fc89d49d..a173685b 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: - digest: sha256:4837f2a7fdff2985b4f7432f8a6d6a87beacebf3ac071746532c0ce2e3f24b9b image: gcr.io/repo-automation-bots/owlbot-java:latest + digest: sha256:a9e9c43309df91d0051ccfcea4860a95bbe9a85eeb3c1822fa1a617a06b649de diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e23d923e..3becb5c0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -26,6 +26,9 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v2 + - uses: stCarolas/setup-maven@v4 + with: + maven-version: 3.8.1 - uses: actions/setup-java@v1 with: java-version: 8 @@ -75,4 +78,4 @@ jobs: - run: java -version - run: .kokoro/build.sh env: - JOB_TYPE: clirr \ No newline at end of file + JOB_TYPE: clirr From 5d2adb5b0974419db7578effdb40d6c65304bb3e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 8 Sep 2021 20:58:24 +0000 Subject: [PATCH 149/401] chore: add gcf-owl-bot to list of trusted contributors (#1208) (#521) --- .github/.OwlBot.lock.yaml | 2 +- .github/trusted-contribution.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index a173685b..46b63e03 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/repo-automation-bots/owlbot-java:latest - digest: sha256:a9e9c43309df91d0051ccfcea4860a95bbe9a85eeb3c1822fa1a617a06b649de + digest: sha256:78ad73bf327217e14460c3a3adbba3e1d9a4b5f35fe85103421ba784fd27529f diff --git a/.github/trusted-contribution.yml b/.github/trusted-contribution.yml index f247d5c7..a0ba1f7d 100644 --- a/.github/trusted-contribution.yml +++ b/.github/trusted-contribution.yml @@ -1,2 +1,3 @@ trustedContributors: -- renovate-bot \ No newline at end of file +- renovate-bot +- gcf-owl-bot[bot] From 81ccaa5839cff8055fdf02d035d8a0f4aeb1063b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 8 Sep 2021 23:14:17 +0200 Subject: [PATCH 150/401] chore(deps): update dependency com.google.cloud:libraries-bom to v23 (#519) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `22.0.0` -> `23.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/compatibility-slim/22.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/confidence-slim/22.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index a5962228..5f197257 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 22.0.0 + 23.0.0 pom import From 4d42d8fac872f4fbf962cbfafd1a9c2e5b235c86 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 9 Sep 2021 09:22:17 -0700 Subject: [PATCH 151/401] chore: remove readme autosynth config (#523) --- .github/readme/synth.metadata/synth.metadata | 18 ------- .github/readme/synth.py | 19 ------- .kokoro/continuous/readme.cfg | 55 -------------------- 3 files changed, 92 deletions(-) delete mode 100644 .github/readme/synth.metadata/synth.metadata delete mode 100644 .github/readme/synth.py delete mode 100644 .kokoro/continuous/readme.cfg diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata deleted file mode 100644 index 1f9d243e..00000000 --- a/.github/readme/synth.metadata/synth.metadata +++ /dev/null @@ -1,18 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "92797a8ff7f51115ad333eb6e25b7d0caeb4e3cc" - } - }, - { - "git": { - "name": "synthtool", - "remote": "https://github.com/googleapis/synthtool.git", - "sha": "5c0fa62eea9c33ebe61e582424b659eb264e1ba4" - } - } - ] -} \ No newline at end of file diff --git a/.github/readme/synth.py b/.github/readme/synth.py deleted file mode 100644 index 7b48cc28..00000000 --- a/.github/readme/synth.py +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""This script is used to synthesize generated the README for this library.""" - -from synthtool.languages import java - -java.custom_templates(["java_library/README.md"]) diff --git a/.kokoro/continuous/readme.cfg b/.kokoro/continuous/readme.cfg deleted file mode 100644 index 75ccf8a3..00000000 --- a/.kokoro/continuous/readme.cfg +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/python-multi" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-tasks/.kokoro/readme.sh" -} - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - regex: "**/*sponge_log.log" - } -} - -# The github token is stored here. -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "yoshi-automation-github-key" - # TODO(theacodes): remove this after secrets have globally propagated - backend_type: FASTCONFIGPUSH - } - } -} - -# Common env vars for all repositories and builds. -env_vars: { - key: "GITHUB_USER" - value: "yoshi-automation" -} -env_vars: { - key: "GITHUB_EMAIL" - value: "yoshi-automation@google.com" -} From eecbfeaa26378fa121df552e594a2bf81a4ff90b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 10 Sep 2021 16:30:09 +0000 Subject: [PATCH 152/401] chore(java): update shared-config and shared-dependencies version in pom template (#1182) (#522) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/release/common.sh | 2 +- .kokoro/release/drop.sh | 2 +- .kokoro/release/promote.sh | 2 +- .kokoro/release/publish_javadoc.sh | 2 +- .kokoro/release/publish_javadoc11.sh | 2 +- .kokoro/release/stage.sh | 2 +- .kokoro/trampoline.sh | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 46b63e03..b6721276 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/repo-automation-bots/owlbot-java:latest - digest: sha256:78ad73bf327217e14460c3a3adbba3e1d9a4b5f35fe85103421ba784fd27529f + digest: sha256:8c50e7bab0ae5ad41ee29420b558542637104500f6256b8fe74282b0cf6144db diff --git a/.kokoro/release/common.sh b/.kokoro/release/common.sh index 6e3f6599..7f78ee41 100755 --- a/.kokoro/release/common.sh +++ b/.kokoro/release/common.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2018 Google Inc. +# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.kokoro/release/drop.sh b/.kokoro/release/drop.sh index 5c4551ef..742ec1a8 100755 --- a/.kokoro/release/drop.sh +++ b/.kokoro/release/drop.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2018 Google Inc. +# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.kokoro/release/promote.sh b/.kokoro/release/promote.sh index 1fa95fa5..3cac3d8a 100755 --- a/.kokoro/release/promote.sh +++ b/.kokoro/release/promote.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2018 Google Inc. +# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh index c21140d8..a0b05aaf 100755 --- a/.kokoro/release/publish_javadoc.sh +++ b/.kokoro/release/publish_javadoc.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2019 Google Inc. +# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index f53aeff5..5f48ae0d 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2021 Google Inc. +# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh index 8a103384..77dc4e8f 100755 --- a/.kokoro/release/stage.sh +++ b/.kokoro/release/stage.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2018 Google Inc. +# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/.kokoro/trampoline.sh b/.kokoro/trampoline.sh index 9da0f839..8b69b793 100644 --- a/.kokoro/trampoline.sh +++ b/.kokoro/trampoline.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2018 Google Inc. +# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. From 9ed7ddf0672558ad53fc728d335662ea7ff48e5e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Sep 2021 03:58:24 +0200 Subject: [PATCH 153/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.0.2 (#525) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.0.1` -> `1.0.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.2/compatibility-slim/1.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.2/confidence-slim/1.0.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.0.2`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​102-httpswwwgithubcomgoogleapisjava-shared-configcomparev101v102-2021-09-13) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.0.1...v1.0.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index c36bc7a4..daa190a2 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.0.1 + 1.0.2 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index 401bf3fa..7906a93f 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.0.1 + 1.0.2 From 726e44dea45842e7de25155b21555c9a029c8ab8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Sep 2021 04:24:35 +0200 Subject: [PATCH 154/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.1 (#524) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.2.0` -> `2.2.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.2.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.2.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.2.1/compatibility-slim/2.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.2.1/confidence-slim/2.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.2.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​221-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare220v221-2021-09-13) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.2.0...v2.2.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7906a93f..0d2e5b09 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.2.0 + 2.2.1 pom import From b68a6d15b0785a0ebfd7813bd69ff7e29a0f8036 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 14 Sep 2021 02:38:19 +0000 Subject: [PATCH 155/401] chore: release 2.0.4 (#526) :robot: I have created a release \*beep\* \*boop\* --- ### [2.0.4](https://www.github.com/googleapis/java-tasks/compare/v2.0.3...v2.0.4) (2021-09-14) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.1 ([#524](https://www.github.com/googleapis/java-tasks/issues/524)) ([726e44d](https://www.github.com/googleapis/java-tasks/commit/726e44dea45842e7de25155b21555c9a029c8ab8)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 31ee9982..b368ecf5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [2.0.4](https://www.github.com/googleapis/java-tasks/compare/v2.0.3...v2.0.4) (2021-09-14) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.1 ([#524](https://www.github.com/googleapis/java-tasks/issues/524)) ([726e44d](https://www.github.com/googleapis/java-tasks/commit/726e44dea45842e7de25155b21555c9a029c8ab8)) + ### [2.0.3](https://www.github.com/googleapis/java-tasks/compare/v2.0.2...v2.0.3) (2021-09-01) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index daa190a2..a864b20f 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.0.4-SNAPSHOT + 2.0.4 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.0.4-SNAPSHOT + 2.0.4 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.4-SNAPSHOT + 0.90.4 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.4-SNAPSHOT + 0.90.4 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.4-SNAPSHOT + 2.0.4 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.4-SNAPSHOT + 0.90.4 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.4-SNAPSHOT + 0.90.4 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.4-SNAPSHOT + 2.0.4
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index d0c937d3..43df518e 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.0.4-SNAPSHOT + 2.0.4 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.0.4-SNAPSHOT + 2.0.4 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 8512ff25..2d14bc1d 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.4-SNAPSHOT + 2.0.4 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.4-SNAPSHOT + 2.0.4 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index d7bfc2cc..fcc67d23 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.4-SNAPSHOT + 0.90.4 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.4-SNAPSHOT + 2.0.4 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 2848c3d3..140a5412 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.4-SNAPSHOT + 0.90.4 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.4-SNAPSHOT + 2.0.4 diff --git a/pom.xml b/pom.xml index 0d2e5b09..13e08b1b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.0.4-SNAPSHOT + 2.0.4 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.4-SNAPSHOT + 0.90.4 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.4-SNAPSHOT + 0.90.4 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.4-SNAPSHOT + 2.0.4 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.4-SNAPSHOT + 0.90.4 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.4-SNAPSHOT + 0.90.4 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.4-SNAPSHOT + 2.0.4 com.google.cloud google-cloud-tasks - 2.0.4-SNAPSHOT + 2.0.4 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 6d49f144..4b206d05 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.4-SNAPSHOT + 2.0.4 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.4-SNAPSHOT + 2.0.4 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 00f7956a..d98ed40b 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.4-SNAPSHOT + 0.90.4 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.4-SNAPSHOT + 2.0.4 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 22850ba2..f1834e9d 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.4-SNAPSHOT + 0.90.4 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.4-SNAPSHOT + 2.0.4 diff --git a/versions.txt b/versions.txt index fe69ebd6..88a22fa3 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.0.3:2.0.4-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.90.3:0.90.4-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.90.3:0.90.4-SNAPSHOT -grpc-google-cloud-tasks-v2:2.0.3:2.0.4-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.90.3:0.90.4-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.90.3:0.90.4-SNAPSHOT -proto-google-cloud-tasks-v2:2.0.3:2.0.4-SNAPSHOT +google-cloud-tasks:2.0.4:2.0.4 +grpc-google-cloud-tasks-v2beta3:0.90.4:0.90.4 +grpc-google-cloud-tasks-v2beta2:0.90.4:0.90.4 +grpc-google-cloud-tasks-v2:2.0.4:2.0.4 +proto-google-cloud-tasks-v2beta3:0.90.4:0.90.4 +proto-google-cloud-tasks-v2beta2:0.90.4:0.90.4 +proto-google-cloud-tasks-v2:2.0.4:2.0.4 From 721f2b09e710140af8c6841e31101b6a2891a607 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 14 Sep 2021 02:46:24 +0000 Subject: [PATCH 156/401] chore: release 2.0.5-SNAPSHOT (#527) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++-- .../clirr-ignored-differences.xml | 83 ------------------- google-cloud-tasks/pom.xml | 4 +- .../clirr-ignored-differences.xml | 10 --- grpc-google-cloud-tasks-v2/pom.xml | 4 +- .../clirr-ignored-differences.xml | 10 --- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../clirr-ignored-differences.xml | 10 --- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 +- pom.xml | 16 ++-- .../clirr-ignored-differences.xml | 2 +- proto-google-cloud-tasks-v2/pom.xml | 4 +- .../clirr-ignored-differences.xml | 2 +- proto-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../clirr-ignored-differences.xml | 2 +- proto-google-cloud-tasks-v2beta3/pom.xml | 4 +- versions.txt | 14 ++-- 17 files changed, 40 insertions(+), 153 deletions(-) delete mode 100644 google-cloud-tasks/clirr-ignored-differences.xml delete mode 100644 grpc-google-cloud-tasks-v2/clirr-ignored-differences.xml delete mode 100644 grpc-google-cloud-tasks-v2beta2/clirr-ignored-differences.xml delete mode 100644 grpc-google-cloud-tasks-v2beta3/clirr-ignored-differences.xml diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index a864b20f..8d2d1d0e 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.0.4 + 2.0.5-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.0.4 + 2.0.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.4 + 0.90.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.4 + 0.90.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.4 + 2.0.5-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.4 + 0.90.5-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.4 + 0.90.5-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.4 + 2.0.5-SNAPSHOT diff --git a/google-cloud-tasks/clirr-ignored-differences.xml b/google-cloud-tasks/clirr-ignored-differences.xml deleted file mode 100644 index 399de6f4..00000000 --- a/google-cloud-tasks/clirr-ignored-differences.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - 7002 - com/google/cloud/tasks/v2beta2/CloudTasksClient* - * - - - 7002 - com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub* - * - - - 7002 - com/google/cloud/tasks/v2beta2/stub/CloudTasksStub* - * - - - 8001 - com/google/cloud/tasks/v2beta2/CloudTasksClient$* - - - 7006 - com/google/cloud/tasks/v2beta2/CloudTasksClient - com.google.cloud.tasks.v2beta2.CloudTasksClient$ListQueuesPagedResponse listQueues(com.google.cloud.tasks.v2beta2.ListQueuesRequest) - com.google.cloud.tasks.v2beta2.ListQueuesResponse - - - 7006 - com/google/cloud/tasks/v2beta2/CloudTasksClient - com.google.cloud.tasks.v2beta2.CloudTasksClient$ListTasksPagedResponse listTasks(com.google.cloud.tasks.v2beta2.ListTasksRequest) - com.google.cloud.tasks.v2beta2.ListTasksResponse - - - 7006 - com/google/cloud/tasks/v2beta2/CloudTasksSettings - com.google.api.gax.rpc.PagedCallSettings listQueuesSettings() - com.google.api.gax.rpc.UnaryCallSettings - - - 7006 - com/google/cloud/tasks/v2beta2/CloudTasksSettings - com.google.api.gax.rpc.PagedCallSettings listTasksSettings() - com.google.api.gax.rpc.UnaryCallSettings - - - 7006 - com/google/cloud/tasks/v2beta2/CloudTasksSettings$Builder - com.google.api.gax.rpc.PagedCallSettings$Builder listQueuesSettings() - com.google.api.gax.rpc.UnaryCallSettings$Builder - - - 7006 - com/google/cloud/tasks/v2beta2/CloudTasksSettings$Builder - com.google.api.gax.rpc.PagedCallSettings$Builder listTasksSettings() - com.google.api.gax.rpc.UnaryCallSettings$Builder - - - 7006 - com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings - com.google.api.gax.rpc.PagedCallSettings listQueuesSettings() - com.google.api.gax.rpc.UnaryCallSettings - - - 7006 - com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings - com.google.api.gax.rpc.PagedCallSettings listTasksSettings() - com.google.api.gax.rpc.UnaryCallSettings - - - 7006 - com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings$Builder - com.google.api.gax.rpc.PagedCallSettings$Builder listQueuesSettings() - com.google.api.gax.rpc.UnaryCallSettings$Builder - - - 7006 - com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings$Builder - com.google.api.gax.rpc.PagedCallSettings$Builder listTasksSettings() - com.google.api.gax.rpc.UnaryCallSettings$Builder - - diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 43df518e..b99f86dd 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.0.4 + 2.0.5-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.0.4 + 2.0.5-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/clirr-ignored-differences.xml b/grpc-google-cloud-tasks-v2/clirr-ignored-differences.xml deleted file mode 100644 index cb6877e5..00000000 --- a/grpc-google-cloud-tasks-v2/clirr-ignored-differences.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - 6001 - com/google/cloud/tasks/v2/*Grpc - METHOD_* - - diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 2d14bc1d..c3512d52 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.4 + 2.0.5-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.4 + 2.0.5-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/clirr-ignored-differences.xml b/grpc-google-cloud-tasks-v2beta2/clirr-ignored-differences.xml deleted file mode 100644 index 3b75055a..00000000 --- a/grpc-google-cloud-tasks-v2beta2/clirr-ignored-differences.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - 6001 - com/google/cloud/tasks/v2beta2/*Grpc - METHOD_* - - diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index fcc67d23..c6cdf89f 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.4 + 0.90.5-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.4 + 2.0.5-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/clirr-ignored-differences.xml b/grpc-google-cloud-tasks-v2beta3/clirr-ignored-differences.xml deleted file mode 100644 index a4437bbb..00000000 --- a/grpc-google-cloud-tasks-v2beta3/clirr-ignored-differences.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - 6001 - com/google/cloud/tasks/v2beta3/*Grpc - METHOD_* - - diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 140a5412..dedb32b6 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.4 + 0.90.5-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.4 + 2.0.5-SNAPSHOT diff --git a/pom.xml b/pom.xml index 13e08b1b..ac44aeeb 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.0.4 + 2.0.5-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.4 + 0.90.5-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.4 + 0.90.5-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.4 + 2.0.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.4 + 0.90.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.4 + 0.90.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.4 + 2.0.5-SNAPSHOT com.google.cloud google-cloud-tasks - 2.0.4 + 2.0.5-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/clirr-ignored-differences.xml b/proto-google-cloud-tasks-v2/clirr-ignored-differences.xml index 152b47f1..11dfe1e1 100644 --- a/proto-google-cloud-tasks-v2/clirr-ignored-differences.xml +++ b/proto-google-cloud-tasks-v2/clirr-ignored-differences.xml @@ -16,4 +16,4 @@ com/google/cloud/tasks/v2/*OrBuilder boolean has*(*) - \ No newline at end of file + diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 4b206d05..ff0e92ae 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.4 + 2.0.5-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.4 + 2.0.5-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/clirr-ignored-differences.xml b/proto-google-cloud-tasks-v2beta2/clirr-ignored-differences.xml index 25b8a3ae..8c734a78 100644 --- a/proto-google-cloud-tasks-v2beta2/clirr-ignored-differences.xml +++ b/proto-google-cloud-tasks-v2beta2/clirr-ignored-differences.xml @@ -16,4 +16,4 @@ com/google/cloud/tasks/v2beta2/*OrBuilder boolean has*(*) - \ No newline at end of file + diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index d98ed40b..2681126b 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.4 + 0.90.5-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.4 + 2.0.5-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/clirr-ignored-differences.xml b/proto-google-cloud-tasks-v2beta3/clirr-ignored-differences.xml index 2a5fe4ff..37ff3a74 100644 --- a/proto-google-cloud-tasks-v2beta3/clirr-ignored-differences.xml +++ b/proto-google-cloud-tasks-v2beta3/clirr-ignored-differences.xml @@ -16,4 +16,4 @@ com/google/cloud/tasks/v2beta3/*OrBuilder boolean has*(*) - \ No newline at end of file + diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index f1834e9d..38817a10 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.4 + 0.90.5-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.4 + 2.0.5-SNAPSHOT diff --git a/versions.txt b/versions.txt index 88a22fa3..98f2b3a4 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.0.4:2.0.4 -grpc-google-cloud-tasks-v2beta3:0.90.4:0.90.4 -grpc-google-cloud-tasks-v2beta2:0.90.4:0.90.4 -grpc-google-cloud-tasks-v2:2.0.4:2.0.4 -proto-google-cloud-tasks-v2beta3:0.90.4:0.90.4 -proto-google-cloud-tasks-v2beta2:0.90.4:0.90.4 -proto-google-cloud-tasks-v2:2.0.4:2.0.4 +google-cloud-tasks:2.0.4:2.0.5-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.90.4:0.90.5-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.90.4:0.90.5-SNAPSHOT +grpc-google-cloud-tasks-v2:2.0.4:2.0.5-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.90.4:0.90.5-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.90.4:0.90.5-SNAPSHOT +proto-google-cloud-tasks-v2:2.0.4:2.0.5-SNAPSHOT From 653c7761b03b7149487ab36be7aa06a030c35491 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Sep 2021 17:28:00 +0200 Subject: [PATCH 157/401] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.3.1 (#518) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ac44aeeb..ad047f69 100644 --- a/pom.xml +++ b/pom.xml @@ -171,7 +171,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.3.0 + 3.3.1 html From 73d09dfe161dd7ac9fa54036b48ec0767f38c1b4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Sep 2021 17:28:16 +0200 Subject: [PATCH 158/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.0.4 (#528) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.0.4 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5a39bed4..62cf34e9 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.0.3 + 2.0.4 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.0.3' +implementation 'com.google.cloud:google-cloud-tasks:2.0.4' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.0.3" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.0.4" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index f6f45fc7..0234ebd5 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.0.3 + 2.0.4 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 88962d4a..1fd575fa 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.0.3 + 2.0.4 From 9c5066b8f4a87ed1caa5b49354f7e6d2ed9ee959 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Sep 2021 17:48:38 +0200 Subject: [PATCH 159/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.0.3 (#530) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.0.2` -> `1.0.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.3/compatibility-slim/1.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.0.3/confidence-slim/1.0.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.0.3`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​103-httpswwwgithubcomgoogleapisjava-shared-configcomparev102v103-2021-09-21) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.0.2...v1.0.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 8d2d1d0e..a114b41e 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.0.2 + 1.0.3 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index ad047f69..3bba796b 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.0.2 + 1.0.3 From 5cc9ef5aa2277c2b3c3c5839e15d6467f1858443 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Sep 2021 22:30:26 +0200 Subject: [PATCH 160/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.3.0 (#531) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.2.1` -> `2.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.3.0/compatibility-slim/2.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.3.0/confidence-slim/2.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.3.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​230-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare221v230-2021-09-22) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.2.1...v2.3.0) ##### Dependencies - keep protobuf at 3.17.3 (not the latest 3.18.0) ([#​476](https://www.togithub.com/googleapis/java-shared-dependencies/issues/476)) ([e207c81](https://www.github.com/googleapis/java-shared-dependencies/commit/e207c818f220967e3618d7a9d36f2cf26c07892e)) - update gax.version to v2.5.0 ([#​479](https://www.togithub.com/googleapis/java-shared-dependencies/issues/479)) ([e22e62a](https://www.github.com/googleapis/java-shared-dependencies/commit/e22e62a3b248023ae94da2a02ec50006377a5157)) - update google.core.version to v2.1.4 ([#​473](https://www.togithub.com/googleapis/java-shared-dependencies/issues/473)) ([116f278](https://www.github.com/googleapis/java-shared-dependencies/commit/116f2783dfc18f215905ceaff9f85f331f83472b)) - update google.core.version to v2.1.6 ([#​478](https://www.togithub.com/googleapis/java-shared-dependencies/issues/478)) ([9e09728](https://www.github.com/googleapis/java-shared-dependencies/commit/9e0972834764b25e5e194e0e805efc5453120df3)) - update iam.version to v1.1.1 ([#​470](https://www.togithub.com/googleapis/java-shared-dependencies/issues/470)) ([3b6e960](https://www.github.com/googleapis/java-shared-dependencies/commit/3b6e96050af8d976a30165481d764d8226143a39)) - update iam.version to v1.1.2 ([#​472](https://www.togithub.com/googleapis/java-shared-dependencies/issues/472)) ([85329cc](https://www.github.com/googleapis/java-shared-dependencies/commit/85329cc6c13d16fe2eeeb076959ee16a752c1f9e)) ##### [2.2.1](https://www.github.com/googleapis/java-shared-dependencies/compare/2.2.0...v2.2.1) (2021-09-13) ##### Dependencies - update gax.version to v2.4.1 ([#​464](https://www.togithub.com/googleapis/java-shared-dependencies/issues/464)) ([bc7c6d7](https://www.github.com/googleapis/java-shared-dependencies/commit/bc7c6d7ca161ebfa31895c375d65bca29d4c7336)) - update google.core.version to v2.1.3 ([#​465](https://www.togithub.com/googleapis/java-shared-dependencies/issues/465)) ([848f608](https://www.github.com/googleapis/java-shared-dependencies/commit/848f608ae850bd2dd80ec56034eb0c9a18f0415b))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 3bba796b..576fe514 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.2.1 + 2.3.0 pom import From d2d752733c3fa53206aa7564c389e1d3aaa54d19 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 22 Sep 2021 20:40:17 +0000 Subject: [PATCH 161/401] chore: release 2.0.5 (#532) :robot: I have created a release \*beep\* \*boop\* --- ### [2.0.5](https://www.github.com/googleapis/java-tasks/compare/v2.0.4...v2.0.5) (2021-09-22) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.3.0 ([#531](https://www.github.com/googleapis/java-tasks/issues/531)) ([5cc9ef5](https://www.github.com/googleapis/java-tasks/commit/5cc9ef5aa2277c2b3c3c5839e15d6467f1858443)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b368ecf5..8198f3e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [2.0.5](https://www.github.com/googleapis/java-tasks/compare/v2.0.4...v2.0.5) (2021-09-22) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.3.0 ([#531](https://www.github.com/googleapis/java-tasks/issues/531)) ([5cc9ef5](https://www.github.com/googleapis/java-tasks/commit/5cc9ef5aa2277c2b3c3c5839e15d6467f1858443)) + ### [2.0.4](https://www.github.com/googleapis/java-tasks/compare/v2.0.3...v2.0.4) (2021-09-14) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index a114b41e..790242e7 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.0.5-SNAPSHOT + 2.0.5 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.0.5-SNAPSHOT + 2.0.5 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.5-SNAPSHOT + 0.90.5 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.5-SNAPSHOT + 0.90.5 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.5-SNAPSHOT + 2.0.5 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.5-SNAPSHOT + 0.90.5 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.5-SNAPSHOT + 0.90.5 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.5-SNAPSHOT + 2.0.5
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index b99f86dd..cf43a9ee 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.0.5-SNAPSHOT + 2.0.5 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.0.5-SNAPSHOT + 2.0.5 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index c3512d52..6f0cb3d4 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.5-SNAPSHOT + 2.0.5 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.5-SNAPSHOT + 2.0.5 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index c6cdf89f..fd510733 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.5-SNAPSHOT + 0.90.5 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.5-SNAPSHOT + 2.0.5 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index dedb32b6..3eacfe1e 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.5-SNAPSHOT + 0.90.5 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.5-SNAPSHOT + 2.0.5 diff --git a/pom.xml b/pom.xml index 576fe514..c59b07d7 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.0.5-SNAPSHOT + 2.0.5 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.5-SNAPSHOT + 0.90.5 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.5-SNAPSHOT + 0.90.5 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.5-SNAPSHOT + 2.0.5 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.5-SNAPSHOT + 0.90.5 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.5-SNAPSHOT + 0.90.5 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.5-SNAPSHOT + 2.0.5 com.google.cloud google-cloud-tasks - 2.0.5-SNAPSHOT + 2.0.5 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index ff0e92ae..fa636f3d 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.5-SNAPSHOT + 2.0.5 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.5-SNAPSHOT + 2.0.5 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 2681126b..83a0be58 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.5-SNAPSHOT + 0.90.5 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.5-SNAPSHOT + 2.0.5 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 38817a10..4d17fe2b 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.5-SNAPSHOT + 0.90.5 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.5-SNAPSHOT + 2.0.5 diff --git a/versions.txt b/versions.txt index 98f2b3a4..dde105d9 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.0.4:2.0.5-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.90.4:0.90.5-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.90.4:0.90.5-SNAPSHOT -grpc-google-cloud-tasks-v2:2.0.4:2.0.5-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.90.4:0.90.5-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.90.4:0.90.5-SNAPSHOT -proto-google-cloud-tasks-v2:2.0.4:2.0.5-SNAPSHOT +google-cloud-tasks:2.0.5:2.0.5 +grpc-google-cloud-tasks-v2beta3:0.90.5:0.90.5 +grpc-google-cloud-tasks-v2beta2:0.90.5:0.90.5 +grpc-google-cloud-tasks-v2:2.0.5:2.0.5 +proto-google-cloud-tasks-v2beta3:0.90.5:0.90.5 +proto-google-cloud-tasks-v2beta2:0.90.5:0.90.5 +proto-google-cloud-tasks-v2:2.0.5:2.0.5 From 5fc5c2acbd5e2b9b05fbfbeebbee3530bc1bde4f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 22 Sep 2021 20:46:28 +0000 Subject: [PATCH 162/401] chore: release 2.0.6-SNAPSHOT (#533) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 790242e7..8d25441a 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.0.5 + 2.0.6-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.0.5 + 2.0.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.5 + 0.90.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.5 + 0.90.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.5 + 2.0.6-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.5 + 0.90.6-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.5 + 0.90.6-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.5 + 2.0.6-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index cf43a9ee..790e9161 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.0.5 + 2.0.6-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.0.5 + 2.0.6-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 6f0cb3d4..46883133 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.5 + 2.0.6-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.5 + 2.0.6-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index fd510733..6080659e 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.5 + 0.90.6-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.5 + 2.0.6-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 3eacfe1e..56362803 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.5 + 0.90.6-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.5 + 2.0.6-SNAPSHOT diff --git a/pom.xml b/pom.xml index c59b07d7..e3187615 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.0.5 + 2.0.6-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.5 + 0.90.6-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.5 + 0.90.6-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.5 + 2.0.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.5 + 0.90.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.5 + 0.90.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.5 + 2.0.6-SNAPSHOT com.google.cloud google-cloud-tasks - 2.0.5 + 2.0.6-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index fa636f3d..09b52b2f 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.5 + 2.0.6-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.5 + 2.0.6-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 83a0be58..a5b0a26e 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.5 + 0.90.6-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.5 + 2.0.6-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 4d17fe2b..967bb42c 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.5 + 0.90.6-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.5 + 2.0.6-SNAPSHOT diff --git a/versions.txt b/versions.txt index dde105d9..7409b460 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.0.5:2.0.5 -grpc-google-cloud-tasks-v2beta3:0.90.5:0.90.5 -grpc-google-cloud-tasks-v2beta2:0.90.5:0.90.5 -grpc-google-cloud-tasks-v2:2.0.5:2.0.5 -proto-google-cloud-tasks-v2beta3:0.90.5:0.90.5 -proto-google-cloud-tasks-v2beta2:0.90.5:0.90.5 -proto-google-cloud-tasks-v2:2.0.5:2.0.5 +google-cloud-tasks:2.0.5:2.0.6-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.90.5:0.90.6-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.90.5:0.90.6-SNAPSHOT +grpc-google-cloud-tasks-v2:2.0.5:2.0.6-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.90.5:0.90.6-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.90.5:0.90.6-SNAPSHOT +proto-google-cloud-tasks-v2:2.0.5:2.0.6-SNAPSHOT From f731541ba0b0e1b58ef093ad75def39148688c6c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 23 Sep 2021 02:04:44 +0200 Subject: [PATCH 163/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.0.5 (#534) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.0.5 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 62cf34e9..1172051f 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.0.4 + 2.0.5 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.0.4' +implementation 'com.google.cloud:google-cloud-tasks:2.0.5' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.0.4" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.0.5" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 0234ebd5..f4ae6c6a 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.0.4 + 2.0.5 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 1fd575fa..b595045c 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.0.4 + 2.0.5 From 6ed84d523ef206e76fd00b1976c13093840b4220 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 24 Sep 2021 15:43:03 +0000 Subject: [PATCH 164/401] chore(java): remove dependencyDashboardLabel config from renovate.json (#1220) (#535) --- .github/.OwlBot.lock.yaml | 2 +- renovate.json | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index b6721276..9fb406b3 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/repo-automation-bots/owlbot-java:latest - digest: sha256:8c50e7bab0ae5ad41ee29420b558542637104500f6256b8fe74282b0cf6144db + digest: sha256:52b5557b7155a80e6f1684c2376d5eef0df6d8d5c785551e1ff8cc000603b62a diff --git a/renovate.json b/renovate.json index 4d63a3cb..ca553e0f 100644 --- a/renovate.json +++ b/renovate.json @@ -70,8 +70,5 @@ } ], "semanticCommits": true, - "dependencyDashboard": true, - "dependencyDashboardLabels": [ - "type: process" - ] + "dependencyDashboard": true } From 808760b7158590bb3a5ff24cb92cf15fe8d9da86 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 28 Sep 2021 22:00:21 +0000 Subject: [PATCH 165/401] build: add jdk 17 to java units and dependency builds (#1216) (#537) --- .github/.OwlBot.lock.yaml | 2 +- .github/blunderbuss.yml | 2 +- .github/workflows/ci.yaml | 21 +++++++++++++-------- .kokoro/dependencies.sh | 23 ++++++++++++++++++++++- README.md | 20 ++++++++++---------- 5 files changed, 47 insertions(+), 21 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 9fb406b3..284c8b69 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/repo-automation-bots/owlbot-java:latest - digest: sha256:52b5557b7155a80e6f1684c2376d5eef0df6d8d5c785551e1ff8cc000603b62a + digest: sha256:13b7387edb404234610d30473ac48210ae7fe42a136335ee2b2f8a07c4c7f6a5 diff --git a/.github/blunderbuss.yml b/.github/blunderbuss.yml index 1a23ea42..2176b054 100644 --- a/.github/blunderbuss.yml +++ b/.github/blunderbuss.yml @@ -1,5 +1,5 @@ # Configuration for the Blunderbuss GitHub app. For more info see -# https://github.com/googleapis/repo-automation-bots/tree/master/packages/blunderbuss +# https://github.com/googleapis/repo-automation-bots/tree/main/packages/blunderbuss assign_prs_by: - labels: - samples diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3becb5c0..2425d723 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,7 +1,7 @@ on: push: branches: - - master + - main pull_request: name: ci jobs: @@ -9,14 +9,15 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [8, 11] + java: [8, 11, 17] steps: - uses: actions/checkout@v2 - uses: stCarolas/setup-maven@v4 with: maven-version: 3.8.1 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v2 with: + distribution: zulu java-version: ${{matrix.java}} - run: java -version - run: .kokoro/build.sh @@ -29,8 +30,9 @@ jobs: - uses: stCarolas/setup-maven@v4 with: maven-version: 3.8.1 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v2 with: + distribution: zulu java-version: 8 - run: java -version - run: .kokoro/build.bat @@ -40,14 +42,15 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [8, 11] + java: [8, 11, 17] steps: - uses: actions/checkout@v2 - uses: stCarolas/setup-maven@v4 with: maven-version: 3.8.1 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v2 with: + distribution: zulu java-version: ${{matrix.java}} - run: java -version - run: .kokoro/dependencies.sh @@ -58,8 +61,9 @@ jobs: - uses: stCarolas/setup-maven@v4 with: maven-version: 3.8.1 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v2 with: + distribution: zulu java-version: 8 - run: java -version - run: .kokoro/build.sh @@ -72,8 +76,9 @@ jobs: - uses: stCarolas/setup-maven@v4 with: maven-version: 3.8.1 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v2 with: + distribution: zulu java-version: 8 - run: java -version - run: .kokoro/build.sh diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index 9030ba8f..9a5105d7 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -28,7 +28,28 @@ source ${scriptDir}/common.sh java -version echo $JOB_TYPE -export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m" +function determineMavenOpts() { + local javaVersion=$( + # filter down to the version line, then pull out the version between quotes, + # then trim the version number down to its minimal number (removing any + # update or suffix number). + java -version 2>&1 | grep "version" \ + | sed -E 's/^.*"(.*?)".*$/\1/g' \ + | sed -E 's/^(1\.[0-9]\.0).*$/\1/g' + ) + + case $javaVersion in + "17") + # MaxPermSize is no longer supported as of jdk 17 + echo -n "-Xmx1024m" + ;; + *) + echo -n "-Xmx1024m -XX:MaxPermSize=128m" + ;; + esac +} + +export MAVEN_OPTS=$(determineMavenOpts) # this should run maven enforcer retry_with_backoff 3 10 \ diff --git a/README.md b/README.md index 1172051f..1947a41f 100644 --- a/README.md +++ b/README.md @@ -72,15 +72,15 @@ use this Cloud Tasks Client Library. ## Samples -Samples are in the [`samples/`](https://github.com/googleapis/java-tasks/tree/master/samples) directory. +Samples are in the [`samples/`](https://github.com/googleapis/java-tasks/tree/main/samples) directory. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | -| Create Http Task | [source code](https://github.com/googleapis/java-tasks/blob/master/samples/snippets/src/main/java/com/example/task/CreateHttpTask.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/CreateHttpTask.java) | -| Create Http Task With Token | [source code](https://github.com/googleapis/java-tasks/blob/master/samples/snippets/src/main/java/com/example/task/CreateHttpTaskWithToken.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/CreateHttpTaskWithToken.java) | -| Create Queue | [source code](https://github.com/googleapis/java-tasks/blob/master/samples/snippets/src/main/java/com/example/task/CreateQueue.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/CreateQueue.java) | -| Delete Queue | [source code](https://github.com/googleapis/java-tasks/blob/master/samples/snippets/src/main/java/com/example/task/DeleteQueue.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/DeleteQueue.java) | -| List Queues | [source code](https://github.com/googleapis/java-tasks/blob/master/samples/snippets/src/main/java/com/example/task/ListQueues.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/ListQueues.java) | +| Create Http Task | [source code](https://github.com/googleapis/java-tasks/blob/main/samples/snippets/src/main/java/com/example/task/CreateHttpTask.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/CreateHttpTask.java) | +| Create Http Task With Token | [source code](https://github.com/googleapis/java-tasks/blob/main/samples/snippets/src/main/java/com/example/task/CreateHttpTaskWithToken.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/CreateHttpTaskWithToken.java) | +| Create Queue | [source code](https://github.com/googleapis/java-tasks/blob/main/samples/snippets/src/main/java/com/example/task/CreateQueue.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/CreateQueue.java) | +| Delete Queue | [source code](https://github.com/googleapis/java-tasks/blob/main/samples/snippets/src/main/java/com/example/task/DeleteQueue.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/DeleteQueue.java) | +| List Queues | [source code](https://github.com/googleapis/java-tasks/blob/main/samples/snippets/src/main/java/com/example/task/ListQueues.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/ListQueues.java) | @@ -193,10 +193,10 @@ Java is a registered trademark of Oracle and/or its affiliates. [developer-console]: https://console.developers.google.com/ [create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects [cloud-sdk]: https://cloud.google.com/sdk/ -[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/master/troubleshooting/readme.md#troubleshooting -[contributing]: https://github.com/googleapis/java-tasks/blob/master/CONTRIBUTING.md -[code-of-conduct]: https://github.com/googleapis/java-tasks/blob/master/CODE_OF_CONDUCT.md#contributor-code-of-conduct -[license]: https://github.com/googleapis/java-tasks/blob/master/LICENSE +[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting +[contributing]: https://github.com/googleapis/java-tasks/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/java-tasks/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/java-tasks/blob/main/LICENSE [enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing [enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=cloudtasks.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM From 3ad7747ecf98eb796ae423633765409c1b7f6563 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Wed, 29 Sep 2021 10:30:25 -0400 Subject: [PATCH 166/401] chore: change branch master to main in github configurations (#539) --- .github/sync-repo-settings.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index efe88147..ee535a6e 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -2,7 +2,7 @@ rebaseMergeAllowed: false squashMergeAllowed: true mergeCommitAllowed: false branchProtectionRules: - - pattern: master + - pattern: main isAdminEnforced: true requiredApprovingReviewCount: 1 requiresCodeOwnerReviews: true From c94d7e29286db0118e23f395175f9de6e0b717fe Mon Sep 17 00:00:00 2001 From: Jeffrey Rennie Date: Thu, 30 Sep 2021 11:30:15 -0700 Subject: [PATCH 167/401] chore: relocate owl bot post processor (#529) * chore: relocate owl bot post processor * chore: relocate owl bot post processor --- .github/.OwlBot.lock.yaml | 4 ++-- .github/.OwlBot.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 284c8b69..f66be60f 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: - image: gcr.io/repo-automation-bots/owlbot-java:latest - digest: sha256:13b7387edb404234610d30473ac48210ae7fe42a136335ee2b2f8a07c4c7f6a5 + image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest + digest: sha256:e56a9ac49143216f08cd6d5f7f8769b456ce35b576ae14dbbf8d9891bbb859c3 \ No newline at end of file diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml index a6b9bb01..a8cf5ed4 100644 --- a/.github/.OwlBot.yaml +++ b/.github/.OwlBot.yaml @@ -13,7 +13,7 @@ # limitations under the License. docker: - image: "gcr.io/repo-automation-bots/owlbot-java:latest" + image: "gcr.io/cloud-devrel-public-resources/owlbot-java:latest" deep-remove-regex: - "/grpc-google-.*/src" From 424b477344db0128c5313ce4aedc1655efa23cb2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Oct 2021 16:20:22 +0200 Subject: [PATCH 168/401] chore(deps): update dependency com.google.cloud:libraries-bom to v23.1.0 (#540) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `23.0.0` -> `23.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/compatibility-slim/23.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/confidence-slim/23.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 5f197257..34120205 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 23.0.0 + 23.1.0 pom import From bb9c34ebb20c67c0c8c127e45f952c44c11348e0 Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Thu, 7 Oct 2021 10:44:47 -0700 Subject: [PATCH 169/401] chore: update repo-metadata.json client_documentation link (#541) --- .repo-metadata.json | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.repo-metadata.json b/.repo-metadata.json index 2d6721c9..b99232c9 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -2,7 +2,7 @@ "name": "cloudtasks", "name_pretty": "Cloud Tasks", "product_documentation": "https://cloud.google.com/tasks/docs/", - "client_documentation": "https://googleapis.dev/java/google-cloud-tasks/latest/", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-tasks/latest/history", "issue_tracker": "https://issuetracker.google.com/savedsearches/5433985", "release_level": "ga", "language": "java", diff --git a/README.md b/README.md index 1947a41f..c67f8957 100644 --- a/README.md +++ b/README.md @@ -172,7 +172,7 @@ Java 11 | [![Kokoro CI][kokoro-badge-image-5]][kokoro-badge-link-5] Java is a registered trademark of Oracle and/or its affiliates. [product-docs]: https://cloud.google.com/tasks/docs/ -[javadocs]: https://googleapis.dev/java/google-cloud-tasks/latest/ +[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-tasks/latest/history [kokoro-badge-image-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-tasks/java7.svg [kokoro-badge-link-1]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-tasks/java7.html [kokoro-badge-image-2]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-tasks/java8.svg From 26662729e380a5f4d0e12a679fa68d56d19f983e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 13 Oct 2021 17:34:24 +0200 Subject: [PATCH 170/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.1.0 (#542) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.0.3` -> `1.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.1.0/compatibility-slim/1.0.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.1.0/confidence-slim/1.0.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.1.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​110-httpswwwgithubcomgoogleapisjava-shared-configcomparev103v110-2021-10-12) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.0.3...v1.1.0) ##### Features - introduce Maven configuration for GraalVM testing ([#​314](https://www.togithub.com/googleapis/java-shared-config/issues/314)) ([28fbeb8](https://www.github.com/googleapis/java-shared-config/commit/28fbeb86c4466a58a05d6933584564dbf3352e79)) ##### Bug Fixes - update doclet version ([#​332](https://www.togithub.com/googleapis/java-shared-config/issues/332)) ([3fd0350](https://www.github.com/googleapis/java-shared-config/commit/3fd035030e4f0954dd1f62f7b8ea62583685880c)) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v9.0.1 ([#​327](https://www.togithub.com/googleapis/java-shared-config/issues/327)) ([b6c9b65](https://www.github.com/googleapis/java-shared-config/commit/b6c9b657550db2dee6b36edbb9a6084baee125e2)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.6 ([#​330](https://www.togithub.com/googleapis/java-shared-config/issues/330)) ([271ed7d](https://www.github.com/googleapis/java-shared-config/commit/271ed7dba35623e22fc8a7f7d477e6043e772014)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.6 ([#​331](https://www.togithub.com/googleapis/java-shared-config/issues/331)) ([4f9ba15](https://www.github.com/googleapis/java-shared-config/commit/4f9ba1551df0a2d4fc8c9acca8a951afbe8cb78a)) - update dependency org.junit.vintage:junit-vintage-engine to v5.8.1 ([#​329](https://www.togithub.com/googleapis/java-shared-config/issues/329)) ([4a8789e](https://www.github.com/googleapis/java-shared-config/commit/4a8789ee814ba8a3480beecc76c16fd1cb4e5f12)) ##### [1.0.3](https://www.github.com/googleapis/java-shared-config/compare/v1.0.2...v1.0.3) (2021-09-21) ##### Bug Fixes - update java-docfx-doclet version ([#​315](https://www.togithub.com/googleapis/java-shared-config/issues/315)) ([07af07c](https://www.github.com/googleapis/java-shared-config/commit/07af07c188447ea5728ecd2700121ff477d1c58a)) ##### [1.0.2](https://www.github.com/googleapis/java-shared-config/compare/v1.0.1...v1.0.2) (2021-09-13) ##### Bug Fixes - specify animal-sniffer-maven-plugin version ([#​308](https://www.togithub.com/googleapis/java-shared-config/issues/308)) ([378bf43](https://www.github.com/googleapis/java-shared-config/commit/378bf431383306c1cdd0a4f922956c87edf321b5)) - update java docfx doclet version ([#​312](https://www.togithub.com/googleapis/java-shared-config/issues/312)) ([dd7f6e0](https://www.github.com/googleapis/java-shared-config/commit/dd7f6e0c1a7cc73831b74b4475457611a8c097d3)) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v9 ([#​303](https://www.togithub.com/googleapis/java-shared-config/issues/303)) ([71faea3](https://www.github.com/googleapis/java-shared-config/commit/71faea38d4132407598550e2bb4c77f9d4a4d83d)) ##### [1.0.1](https://www.github.com/googleapis/java-shared-config/compare/v1.0.0...v1.0.1) (2021-08-18) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v8.45.1 ([#​292](https://www.togithub.com/googleapis/java-shared-config/issues/292)) ([66bf6e6](https://www.github.com/googleapis/java-shared-config/commit/66bf6e6fb95997b9eb4b34268b8d20c2fbe9ed5a))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 8d25441a..e7a72045 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.0.3 + 1.1.0 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index e3187615..a80c083f 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.0.3 + 1.1.0 From 3228b7192cd4b2f2bf1a26f45e1e1484d54f0425 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 18 Oct 2021 17:00:44 +0000 Subject: [PATCH 171/401] build(java): Introduce Native Image testing build script changes (#544) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/presubmit/graalvm-native.cfg | 33 ++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .kokoro/presubmit/graalvm-native.cfg diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index f66be60f..dc53bbb5 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:e56a9ac49143216f08cd6d5f7f8769b456ce35b576ae14dbbf8d9891bbb859c3 \ No newline at end of file + digest: sha256:d4b2141d65566523dfd523f63c6e6899ab1281463bce182a9f600e74b0511875 diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg new file mode 100644 index 00000000..4c7225ec --- /dev/null +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -0,0 +1,33 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/graalvm" +} + +env_vars: { + key: "JOB_TYPE" + value: "graalvm" +} + +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +} From 512ea1f093962ee51df8239ac5648eabfe9f46be Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 20 Oct 2021 16:55:13 +0200 Subject: [PATCH 172/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 (#545) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a80c083f..01fdaebd 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.3.0 + 2.4.0 pom import From a1498531493d3c87ac184edc3f61c5e99aede842 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 20 Oct 2021 11:38:57 -0400 Subject: [PATCH 173/401] chore(ruby): Re-enable bigquery-storage-v1 generation, which also required updating protobuf from 3.15.3 to 3.18.1 for codegen (#543) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(ruby): Re-enable bigquery-storage-v1 generation, which also required updating protobuf from 3.15.3 to 3.18.1 for codegen PiperOrigin-RevId: 403132955 Source-Link: https://github.com/googleapis/googleapis/commit/d2977af9e9f1fc0c9dc8368352daa032471f3c63 Source-Link: https://github.com/googleapis/googleapis-gen/commit/99bb13c813c0e9c2682d03a8b3c3bcb382a909c9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTliYjEzYzgxM2MwZTljMjY4MmQwM2E4YjNjM2JjYjM4MmE5MDljOSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../cloud/tasks/v2/AppEngineHttpRequest.java | 4 ++-- .../google/cloud/tasks/v2/AppEngineRouting.java | 16 ++++++++-------- .../cloud/tasks/v2/CreateQueueRequest.java | 4 ++-- .../google/cloud/tasks/v2/CreateTaskRequest.java | 4 ++-- .../cloud/tasks/v2/DeleteQueueRequest.java | 4 ++-- .../google/cloud/tasks/v2/DeleteTaskRequest.java | 4 ++-- .../google/cloud/tasks/v2/GetQueueRequest.java | 4 ++-- .../google/cloud/tasks/v2/GetTaskRequest.java | 4 ++-- .../com/google/cloud/tasks/v2/HttpRequest.java | 4 ++-- .../google/cloud/tasks/v2/ListQueuesRequest.java | 12 ++++++------ .../cloud/tasks/v2/ListQueuesResponse.java | 4 ++-- .../google/cloud/tasks/v2/ListTasksRequest.java | 8 ++++---- .../google/cloud/tasks/v2/ListTasksResponse.java | 4 ++-- .../com/google/cloud/tasks/v2/OAuthToken.java | 8 ++++---- .../com/google/cloud/tasks/v2/OidcToken.java | 8 ++++---- .../google/cloud/tasks/v2/PauseQueueRequest.java | 4 ++-- .../google/cloud/tasks/v2/PurgeQueueRequest.java | 4 ++-- .../java/com/google/cloud/tasks/v2/Queue.java | 4 ++-- .../cloud/tasks/v2/ResumeQueueRequest.java | 4 ++-- .../google/cloud/tasks/v2/RunTaskRequest.java | 4 ++-- .../java/com/google/cloud/tasks/v2/Task.java | 4 ++-- .../tasks/v2beta2/AcknowledgeTaskRequest.java | 4 ++-- .../tasks/v2beta2/AppEngineHttpRequest.java | 4 ++-- .../cloud/tasks/v2beta2/AppEngineRouting.java | 16 ++++++++-------- .../cloud/tasks/v2beta2/CancelLeaseRequest.java | 4 ++-- .../cloud/tasks/v2beta2/CreateQueueRequest.java | 4 ++-- .../cloud/tasks/v2beta2/CreateTaskRequest.java | 4 ++-- .../cloud/tasks/v2beta2/DeleteQueueRequest.java | 4 ++-- .../cloud/tasks/v2beta2/DeleteTaskRequest.java | 4 ++-- .../cloud/tasks/v2beta2/GetQueueRequest.java | 4 ++-- .../cloud/tasks/v2beta2/GetTaskRequest.java | 4 ++-- .../cloud/tasks/v2beta2/LeaseTasksRequest.java | 8 ++++---- .../cloud/tasks/v2beta2/ListQueuesRequest.java | 12 ++++++------ .../cloud/tasks/v2beta2/ListQueuesResponse.java | 4 ++-- .../cloud/tasks/v2beta2/ListTasksRequest.java | 8 ++++---- .../cloud/tasks/v2beta2/ListTasksResponse.java | 4 ++-- .../cloud/tasks/v2beta2/PauseQueueRequest.java | 4 ++-- .../google/cloud/tasks/v2beta2/PullMessage.java | 4 ++-- .../cloud/tasks/v2beta2/PurgeQueueRequest.java | 4 ++-- .../com/google/cloud/tasks/v2beta2/Queue.java | 4 ++-- .../cloud/tasks/v2beta2/RenewLeaseRequest.java | 4 ++-- .../cloud/tasks/v2beta2/ResumeQueueRequest.java | 4 ++-- .../cloud/tasks/v2beta2/RunTaskRequest.java | 4 ++-- .../com/google/cloud/tasks/v2beta2/Task.java | 4 ++-- .../tasks/v2beta3/AppEngineHttpRequest.java | 4 ++-- .../cloud/tasks/v2beta3/AppEngineRouting.java | 16 ++++++++-------- .../cloud/tasks/v2beta3/CreateQueueRequest.java | 4 ++-- .../cloud/tasks/v2beta3/CreateTaskRequest.java | 4 ++-- .../cloud/tasks/v2beta3/DeleteQueueRequest.java | 4 ++-- .../cloud/tasks/v2beta3/DeleteTaskRequest.java | 4 ++-- .../cloud/tasks/v2beta3/GetQueueRequest.java | 4 ++-- .../cloud/tasks/v2beta3/GetTaskRequest.java | 4 ++-- .../google/cloud/tasks/v2beta3/HttpRequest.java | 4 ++-- .../cloud/tasks/v2beta3/ListQueuesRequest.java | 12 ++++++------ .../cloud/tasks/v2beta3/ListQueuesResponse.java | 4 ++-- .../cloud/tasks/v2beta3/ListTasksRequest.java | 8 ++++---- .../cloud/tasks/v2beta3/ListTasksResponse.java | 4 ++-- .../google/cloud/tasks/v2beta3/OAuthToken.java | 8 ++++---- .../google/cloud/tasks/v2beta3/OidcToken.java | 8 ++++---- .../cloud/tasks/v2beta3/PauseQueueRequest.java | 4 ++-- .../google/cloud/tasks/v2beta3/PullMessage.java | 4 ++-- .../cloud/tasks/v2beta3/PurgeQueueRequest.java | 4 ++-- .../com/google/cloud/tasks/v2beta3/Queue.java | 4 ++-- .../cloud/tasks/v2beta3/ResumeQueueRequest.java | 4 ++-- .../cloud/tasks/v2beta3/RunTaskRequest.java | 4 ++-- .../com/google/cloud/tasks/v2beta3/Task.java | 4 ++-- 66 files changed, 178 insertions(+), 178 deletions(-) diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequest.java index 0875292d..99d17c72 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequest.java @@ -652,7 +652,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (appEngineRouting_ != null) { output.writeMessage(2, getAppEngineRouting()); } - if (!getRelativeUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativeUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, relativeUri_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -675,7 +675,7 @@ public int getSerializedSize() { if (appEngineRouting_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAppEngineRouting()); } - if (!getRelativeUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativeUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, relativeUri_); } for (java.util.Map.Entry entry : diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRouting.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRouting.java index cfeb99fc..c4ffc462 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRouting.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRouting.java @@ -449,16 +449,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getServiceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); } - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); } - if (!getInstanceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instance_); } - if (!getHostBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, host_); } unknownFields.writeTo(output); @@ -470,16 +470,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getServiceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); } - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); } - if (!getInstanceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instance_); } - if (!getHostBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, host_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequest.java index a2b3782d..ce30444e 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequest.java @@ -250,7 +250,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (queue_ != null) { @@ -265,7 +265,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (queue_ != null) { diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequest.java index cfe69cc2..0abd34c0 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequest.java @@ -385,7 +385,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (task_ != null) { @@ -403,7 +403,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (task_ != null) { diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequest.java index 2edd40e3..d5a28ebb 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequest.java index c245dc12..242069ab 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequest.java @@ -181,7 +181,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -193,7 +193,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequest.java index 59b0ea27..d636ef96 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequest.java index 05607c03..7e92ae6a 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequest.java @@ -242,7 +242,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { @@ -257,7 +257,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequest.java index 50f07635..9041daba 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequest.java @@ -698,7 +698,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getUrlBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } if (httpMethod_ != com.google.cloud.tasks.v2.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) { @@ -724,7 +724,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getUrlBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (httpMethod_ != com.google.cloud.tasks.v2.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) { diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequest.java index ba109018..5efd9eae 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequest.java @@ -350,16 +350,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); } if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); } unknownFields.writeTo(output); @@ -371,16 +371,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponse.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponse.java index cc94b644..f240193f 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponse.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponse.java @@ -271,7 +271,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < queues_.size(); i++) { output.writeMessage(1, queues_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -286,7 +286,7 @@ public int getSerializedSize() { for (int i = 0; i < queues_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, queues_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequest.java index 12d11978..76c3e8d1 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequest.java @@ -339,7 +339,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { @@ -348,7 +348,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); } unknownFields.writeTo(output); @@ -360,7 +360,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { @@ -369,7 +369,7 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponse.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponse.java index 5e55fd85..d66126d1 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponse.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponse.java @@ -268,7 +268,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < tasks_.size(); i++) { output.writeMessage(1, tasks_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -283,7 +283,7 @@ public int getSerializedSize() { for (int i = 0; i < tasks_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tasks_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthToken.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthToken.java index 4aadc790..5bde4982 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthToken.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthToken.java @@ -246,10 +246,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getServiceAccountEmailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountEmail_); } - if (!getScopeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scope_); } unknownFields.writeTo(output); @@ -261,10 +261,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getServiceAccountEmailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccountEmail_); } - if (!getScopeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scope_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcToken.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcToken.java index d879f239..581134d6 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcToken.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcToken.java @@ -246,10 +246,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getServiceAccountEmailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountEmail_); } - if (!getAudienceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audience_); } unknownFields.writeTo(output); @@ -261,10 +261,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getServiceAccountEmailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccountEmail_); } - if (!getAudienceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, audience_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequest.java index 14d991b0..f4b265df 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequest.java index 64db070e..7ae6da0e 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Queue.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Queue.java index 377f0a7e..f11f7587 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Queue.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Queue.java @@ -926,7 +926,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (appEngineRoutingOverride_ != null) { @@ -956,7 +956,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (appEngineRoutingOverride_ != null) { diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequest.java index 8d8c9e3e..6e55124e 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequest.java index 9c34de17..ce22f90c 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequest.java @@ -243,7 +243,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { @@ -258,7 +258,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Task.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Task.java index 84773dea..0e377eef 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Task.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Task.java @@ -1067,7 +1067,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (messageTypeCase_ == 2) { @@ -1109,7 +1109,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (messageTypeCase_ == 2) { diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequest.java index e927cf6c..db3194e6 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequest.java @@ -259,7 +259,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (scheduleTime_ != null) { @@ -274,7 +274,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (scheduleTime_ != null) { diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequest.java index f6a476c9..8cc08797 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequest.java @@ -652,7 +652,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (appEngineRouting_ != null) { output.writeMessage(2, getAppEngineRouting()); } - if (!getRelativeUrlBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativeUrl_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, relativeUrl_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -676,7 +676,7 @@ public int getSerializedSize() { if (appEngineRouting_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAppEngineRouting()); } - if (!getRelativeUrlBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativeUrl_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, relativeUrl_); } for (java.util.Map.Entry entry : diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRouting.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRouting.java index 54794640..595fb836 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRouting.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRouting.java @@ -516,16 +516,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getServiceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); } - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); } - if (!getInstanceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instance_); } - if (!getHostBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, host_); } unknownFields.writeTo(output); @@ -537,16 +537,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getServiceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); } - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); } - if (!getInstanceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instance_); } - if (!getHostBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, host_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequest.java index 6d70f129..0411d42a 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequest.java @@ -321,7 +321,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (scheduleTime_ != null) { @@ -339,7 +339,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (scheduleTime_ != null) { diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequest.java index 35d107cc..057f118e 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequest.java @@ -254,7 +254,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (queue_ != null) { @@ -269,7 +269,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (queue_ != null) { diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequest.java index 4ce39bbc..f371212d 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequest.java @@ -390,7 +390,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (task_ != null) { @@ -408,7 +408,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (task_ != null) { diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequest.java index d3da943e..e4e419f6 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequest.java index 4a8b6051..8b2deaca 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequest.java @@ -181,7 +181,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -193,7 +193,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequest.java index 975868dc..3af91444 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequest.java @@ -253,7 +253,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (readMask_ != null) { @@ -268,7 +268,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (readMask_ != null) { diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequest.java index f120e0d1..7636e7f7 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequest.java @@ -242,7 +242,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { @@ -257,7 +257,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequest.java index 42d4dceb..457e67b8 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequest.java @@ -476,7 +476,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (maxTasks_ != 0) { @@ -488,7 +488,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(4, responseView_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); } unknownFields.writeTo(output); @@ -500,7 +500,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (maxTasks_ != 0) { @@ -512,7 +512,7 @@ public int getSerializedSize() { if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, responseView_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequest.java index 60de7b4c..f53f2217 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequest.java @@ -423,16 +423,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); } if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); } if (readMask_ != null) { @@ -447,16 +447,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } if (readMask_ != null) { diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponse.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponse.java index ed647110..65eb3c54 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponse.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponse.java @@ -272,7 +272,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < queues_.size(); i++) { output.writeMessage(1, queues_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -287,7 +287,7 @@ public int getSerializedSize() { for (int i = 0; i < queues_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, queues_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequest.java index 6371d0eb..e228cead 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequest.java @@ -339,7 +339,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { @@ -348,7 +348,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(4, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pageToken_); } unknownFields.writeTo(output); @@ -360,7 +360,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { @@ -369,7 +369,7 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponse.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponse.java index f8cdb661..ed2d92de 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponse.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponse.java @@ -270,7 +270,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < tasks_.size(); i++) { output.writeMessage(1, tasks_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -285,7 +285,7 @@ public int getSerializedSize() { for (int i = 0; i < tasks_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tasks_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequest.java index 7f126c94..0daf179c 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessage.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessage.java index 84bd4e76..0fa0fd39 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessage.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessage.java @@ -232,7 +232,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!payload_.isEmpty()) { output.writeBytes(1, payload_); } - if (!getTagBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); } unknownFields.writeTo(output); @@ -247,7 +247,7 @@ public int getSerializedSize() { if (!payload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, payload_); } - if (!getTagBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequest.java index 796a3728..bcb85fe1 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java index dd8e70bb..94d1032b 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java @@ -1190,7 +1190,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (targetTypeCase_ == 3) { @@ -1229,7 +1229,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (targetTypeCase_ == 3) { diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequest.java index a24139ae..5b949669 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequest.java @@ -393,7 +393,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (scheduleTime_ != null) { @@ -414,7 +414,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (scheduleTime_ != null) { diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequest.java index 515c03d9..207ad64e 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequest.java index e735633e..e662f5ce 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequest.java @@ -243,7 +243,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { @@ -258,7 +258,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Task.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Task.java index bc7dd3ac..944202ca 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Task.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Task.java @@ -848,7 +848,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (payloadTypeCase_ == 3) { @@ -878,7 +878,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (payloadTypeCase_ == 3) { diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequest.java index 5e8ef02f..7f93f9e6 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequest.java @@ -648,7 +648,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (appEngineRouting_ != null) { output.writeMessage(2, getAppEngineRouting()); } - if (!getRelativeUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativeUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, relativeUri_); } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( @@ -672,7 +672,7 @@ public int getSerializedSize() { if (appEngineRouting_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAppEngineRouting()); } - if (!getRelativeUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativeUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, relativeUri_); } for (java.util.Map.Entry entry : diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRouting.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRouting.java index 01b3171f..a2c0c0f3 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRouting.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRouting.java @@ -444,16 +444,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getServiceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); } - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); } - if (!getInstanceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instance_); } - if (!getHostBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, host_); } unknownFields.writeTo(output); @@ -465,16 +465,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getServiceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); } - if (!getVersionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); } - if (!getInstanceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instance_); } - if (!getHostBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, host_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequest.java index 4df04cc1..4a490ac2 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequest.java @@ -254,7 +254,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (queue_ != null) { @@ -269,7 +269,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (queue_ != null) { diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequest.java index 523a281f..4c193004 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequest.java @@ -390,7 +390,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (task_ != null) { @@ -408,7 +408,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (task_ != null) { diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequest.java index 85b24042..de7f137b 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequest.java index 68f9d5db..5fdfdfbe 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequest.java @@ -181,7 +181,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -193,7 +193,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequest.java index a73f9251..eb3f4f44 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequest.java @@ -253,7 +253,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (readMask_ != null) { @@ -268,7 +268,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (readMask_ != null) { diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequest.java index 62120361..75dd85fa 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequest.java @@ -242,7 +242,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (responseView_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { @@ -257,7 +257,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (responseView_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequest.java index 5bffa964..3d662e6f 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequest.java @@ -700,7 +700,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getUrlBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); } if (httpMethod_ @@ -727,7 +727,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getUrlBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(url_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); } if (httpMethod_ diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequest.java index cf04dc95..97d56953 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequest.java @@ -423,16 +423,16 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); } if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); } if (readMask_ != null) { @@ -447,16 +447,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } if (readMask_ != null) { diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponse.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponse.java index d64dd0e7..db804aaf 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponse.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponse.java @@ -272,7 +272,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < queues_.size(); i++) { output.writeMessage(1, queues_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -287,7 +287,7 @@ public int getSerializedSize() { for (int i = 0; i < queues_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, queues_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequest.java index fcf75a37..42967755 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequest.java @@ -339,7 +339,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (responseView_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { @@ -348,7 +348,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); } unknownFields.writeTo(output); @@ -360,7 +360,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (responseView_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { @@ -369,7 +369,7 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponse.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponse.java index 5a82ea2b..1447647f 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponse.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponse.java @@ -270,7 +270,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < tasks_.size(); i++) { output.writeMessage(1, tasks_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -285,7 +285,7 @@ public int getSerializedSize() { for (int i = 0; i < tasks_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tasks_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthToken.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthToken.java index 96c17552..9a608bee 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthToken.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthToken.java @@ -246,10 +246,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getServiceAccountEmailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountEmail_); } - if (!getScopeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scope_); } unknownFields.writeTo(output); @@ -261,10 +261,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getServiceAccountEmailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccountEmail_); } - if (!getScopeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scope_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcToken.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcToken.java index 3494c81a..cf7675d7 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcToken.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcToken.java @@ -246,10 +246,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getServiceAccountEmailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountEmail_); } - if (!getAudienceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audience_); } unknownFields.writeTo(output); @@ -261,10 +261,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getServiceAccountEmailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccountEmail_); } - if (!getAudienceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, audience_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequest.java index dc4c6194..0bf51a1d 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessage.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessage.java index a2738785..39588c74 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessage.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessage.java @@ -219,7 +219,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!payload_.isEmpty()) { output.writeBytes(1, payload_); } - if (!getTagBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); } unknownFields.writeTo(output); @@ -234,7 +234,7 @@ public int getSerializedSize() { if (!payload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, payload_); } - if (!getTagBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequest.java index f4d8fed8..d63e386f 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Queue.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Queue.java index 065d014b..53a25cde 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Queue.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Queue.java @@ -1419,7 +1419,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (queueTypeCase_ == 3) { @@ -1461,7 +1461,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (queueTypeCase_ == 3) { diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequest.java index 28a1e100..db27820f 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequest.java @@ -180,7 +180,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -192,7 +192,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequest.java index 1b8dd6cd..34a26f3b 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequest.java @@ -243,7 +243,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (responseView_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { @@ -258,7 +258,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (responseView_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Task.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Task.java index c8d25571..c8ab276b 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Task.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Task.java @@ -1167,7 +1167,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (payloadTypeCase_ == 3) { @@ -1212,7 +1212,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (payloadTypeCase_ == 3) { From 51bbeb1778e3c553ce68f8372876c06adde76482 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 20 Oct 2021 15:40:24 +0000 Subject: [PATCH 174/401] chore: release 2.0.6 (#546) :robot: I have created a release \*beep\* \*boop\* --- ### [2.0.6](https://www.github.com/googleapis/java-tasks/compare/v2.0.5...v2.0.6) (2021-10-20) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 ([#545](https://www.github.com/googleapis/java-tasks/issues/545)) ([512ea1f](https://www.github.com/googleapis/java-tasks/commit/512ea1f093962ee51df8239ac5648eabfe9f46be)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8198f3e3..3da27e29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [2.0.6](https://www.github.com/googleapis/java-tasks/compare/v2.0.5...v2.0.6) (2021-10-20) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 ([#545](https://www.github.com/googleapis/java-tasks/issues/545)) ([512ea1f](https://www.github.com/googleapis/java-tasks/commit/512ea1f093962ee51df8239ac5648eabfe9f46be)) + ### [2.0.5](https://www.github.com/googleapis/java-tasks/compare/v2.0.4...v2.0.5) (2021-09-22) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index e7a72045..568183d2 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.0.6-SNAPSHOT + 2.0.6 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.0.6-SNAPSHOT + 2.0.6 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.6-SNAPSHOT + 0.90.6 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.6-SNAPSHOT + 0.90.6 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.6-SNAPSHOT + 2.0.6 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.6-SNAPSHOT + 0.90.6 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.6-SNAPSHOT + 0.90.6 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.6-SNAPSHOT + 2.0.6
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 790e9161..99fa8735 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.0.6-SNAPSHOT + 2.0.6 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.0.6-SNAPSHOT + 2.0.6 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 46883133..078ffbeb 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.6-SNAPSHOT + 2.0.6 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.6-SNAPSHOT + 2.0.6 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 6080659e..1789b23f 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.6-SNAPSHOT + 0.90.6 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.6-SNAPSHOT + 2.0.6 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 56362803..1855e19a 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.6-SNAPSHOT + 0.90.6 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.6-SNAPSHOT + 2.0.6 diff --git a/pom.xml b/pom.xml index 01fdaebd..7fd93641 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.0.6-SNAPSHOT + 2.0.6 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.6-SNAPSHOT + 0.90.6 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.6-SNAPSHOT + 0.90.6 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.6-SNAPSHOT + 2.0.6 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.6-SNAPSHOT + 0.90.6 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.6-SNAPSHOT + 0.90.6 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.6-SNAPSHOT + 2.0.6 com.google.cloud google-cloud-tasks - 2.0.6-SNAPSHOT + 2.0.6 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 09b52b2f..9ff36c69 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.6-SNAPSHOT + 2.0.6 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.6-SNAPSHOT + 2.0.6 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index a5b0a26e..779a4c80 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.6-SNAPSHOT + 0.90.6 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.6-SNAPSHOT + 2.0.6 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 967bb42c..a26da8a2 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.6-SNAPSHOT + 0.90.6 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.6-SNAPSHOT + 2.0.6 diff --git a/versions.txt b/versions.txt index 7409b460..b381a275 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.0.5:2.0.6-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.90.5:0.90.6-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.90.5:0.90.6-SNAPSHOT -grpc-google-cloud-tasks-v2:2.0.5:2.0.6-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.90.5:0.90.6-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.90.5:0.90.6-SNAPSHOT -proto-google-cloud-tasks-v2:2.0.5:2.0.6-SNAPSHOT +google-cloud-tasks:2.0.6:2.0.6 +grpc-google-cloud-tasks-v2beta3:0.90.6:0.90.6 +grpc-google-cloud-tasks-v2beta2:0.90.6:0.90.6 +grpc-google-cloud-tasks-v2:2.0.6:2.0.6 +proto-google-cloud-tasks-v2beta3:0.90.6:0.90.6 +proto-google-cloud-tasks-v2beta2:0.90.6:0.90.6 +proto-google-cloud-tasks-v2:2.0.6:2.0.6 From df4b6f7fc74b4ba8c5dc22314c8b28037dd6be74 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 20 Oct 2021 15:52:41 +0000 Subject: [PATCH 175/401] chore: release 2.0.7-SNAPSHOT (#547) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 568183d2..85b46eaa 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.0.6 + 2.0.7-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.0.6 + 2.0.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.6 + 0.90.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.6 + 0.90.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.6 + 2.0.7-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.6 + 0.90.7-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.6 + 0.90.7-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.6 + 2.0.7-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 99fa8735..ae3cad02 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.0.6 + 2.0.7-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.0.6 + 2.0.7-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 078ffbeb..14bf3333 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.6 + 2.0.7-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.6 + 2.0.7-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 1789b23f..a7856830 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.6 + 0.90.7-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.6 + 2.0.7-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 1855e19a..875fe5fb 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.6 + 0.90.7-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.6 + 2.0.7-SNAPSHOT diff --git a/pom.xml b/pom.xml index 7fd93641..f5e26ac1 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.0.6 + 2.0.7-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.6 + 0.90.7-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.6 + 0.90.7-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.6 + 2.0.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.6 + 0.90.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.6 + 0.90.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.6 + 2.0.7-SNAPSHOT com.google.cloud google-cloud-tasks - 2.0.6 + 2.0.7-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 9ff36c69..a3d62042 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.6 + 2.0.7-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.6 + 2.0.7-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 779a4c80..fa3a2fac 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.6 + 0.90.7-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.6 + 2.0.7-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index a26da8a2..01d9ba2a 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.6 + 0.90.7-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.6 + 2.0.7-SNAPSHOT diff --git a/versions.txt b/versions.txt index b381a275..7b0aca9d 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.0.6:2.0.6 -grpc-google-cloud-tasks-v2beta3:0.90.6:0.90.6 -grpc-google-cloud-tasks-v2beta2:0.90.6:0.90.6 -grpc-google-cloud-tasks-v2:2.0.6:2.0.6 -proto-google-cloud-tasks-v2beta3:0.90.6:0.90.6 -proto-google-cloud-tasks-v2beta2:0.90.6:0.90.6 -proto-google-cloud-tasks-v2:2.0.6:2.0.6 +google-cloud-tasks:2.0.6:2.0.7-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.90.6:0.90.7-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.90.6:0.90.7-SNAPSHOT +grpc-google-cloud-tasks-v2:2.0.6:2.0.7-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.90.6:0.90.7-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.90.6:0.90.7-SNAPSHOT +proto-google-cloud-tasks-v2:2.0.6:2.0.7-SNAPSHOT From 8d336057be2d879e08e65f48f00d5cdb0efc8a80 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 Oct 2021 19:06:51 +0200 Subject: [PATCH 176/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.0.6 (#548) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.0.5` -> `2.0.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.0.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.0.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.0.6/compatibility-slim/2.0.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.0.6/confidence-slim/2.0.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-tasks ### [`v2.0.6`](https://togithub.com/googleapis/java-tasks/blob/master/CHANGELOG.md#​206-httpswwwgithubcomgoogleapisjava-taskscomparev205v206-2021-10-20) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v2.0.5...v2.0.6)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c67f8957..1c3718ef 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.0.5 + 2.0.6 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.0.5' +implementation 'com.google.cloud:google-cloud-tasks:2.0.6' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.0.5" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.0.6" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index f4ae6c6a..cfa88313 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.0.5 + 2.0.6 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index b595045c..9a37e072 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.0.5 + 2.0.6 From 85ed3f40ad4a883aab1df4b25e15ffa8e42f19d6 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 25 Oct 2021 16:12:16 +0000 Subject: [PATCH 177/401] fix(java): java 17 dependency arguments (#1266) (#550) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/dependencies.sh | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index dc53bbb5..0df65ebe 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:d4b2141d65566523dfd523f63c6e6899ab1281463bce182a9f600e74b0511875 + digest: sha256:a3ac08d167454718ff057b97a1950d3cb5e16fc39fb3f355d90276285a6cac75 diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index 9a5105d7..d7476cfe 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -38,15 +38,13 @@ function determineMavenOpts() { | sed -E 's/^(1\.[0-9]\.0).*$/\1/g' ) - case $javaVersion in - "17") + if [[ $javaVersion == 17* ]] + then # MaxPermSize is no longer supported as of jdk 17 echo -n "-Xmx1024m" - ;; - *) + else echo -n "-Xmx1024m -XX:MaxPermSize=128m" - ;; - esac + fi } export MAVEN_OPTS=$(determineMavenOpts) From 089b53770f9f19e0597f1ab031d8167dde1e72c7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 25 Oct 2021 23:02:36 +0200 Subject: [PATCH 178/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.0 (#549) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.1.0` -> `1.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.0/compatibility-slim/1.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.0/confidence-slim/1.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​120-httpswwwgithubcomgoogleapisjava-shared-configcomparev110v120-2021-10-21) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.1.0...v1.2.0) ##### Features - Introduce Native Image testing build script changes ([#​1240](https://www.togithub.com/googleapis/java-shared-config/issues/1240)) ([#​334](https://www.togithub.com/googleapis/java-shared-config/issues/334)) ([4643cf1](https://www.github.com/googleapis/java-shared-config/commit/4643cf15be0b37fa8fa905d544d438cda7ef2ecd)) ##### Bug Fixes - **java:** downgrade native maven plugin version ([#​335](https://www.togithub.com/googleapis/java-shared-config/issues/335)) ([5834284](https://www.github.com/googleapis/java-shared-config/commit/5834284176fb34713d10082ce04f3b6abba85ad8))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 85b46eaa..748e1da4 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.1.0 + 1.2.0 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index f5e26ac1..18eec929 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.1.0 + 1.2.0 From 16a7042b258ceaf3bf5b74374d35ff7f176b31d5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Oct 2021 18:18:50 +0200 Subject: [PATCH 179/401] chore(deps): update dependency com.google.cloud:libraries-bom to v24 (#552) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `23.1.0` -> `24.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/compatibility-slim/23.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/confidence-slim/23.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 34120205..aa812841 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 23.1.0 + 24.0.0 pom import From 9fe2ec66bd2c65650de39d7b8cb9134999267613 Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Wed, 27 Oct 2021 14:42:00 -0700 Subject: [PATCH 180/401] feat: next release from main branch is 2.1.0 (#553) --- .github/release-please.yml | 4 ++++ .github/sync-repo-settings.yaml | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/.github/release-please.yml b/.github/release-please.yml index 7bf58076..118a4019 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -6,3 +6,7 @@ branches: handleGHRelease: true releaseType: java-yoshi branch: java7 + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-backport + branch: 2.0.x diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index ee535a6e..d2533fcc 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -31,6 +31,20 @@ branchProtectionRules: - units (11) - 'Kokoro - Test: Integration' - cla/google + - pattern: 2.0.x + isAdminEnforced: true + requiredApprovingReviewCount: 1 + requiresCodeOwnerReviews: true + requiresStrictStatusChecks: false + requiredStatusCheckContexts: + - dependencies (8) + - dependencies (11) + - lint + - clirr + - units (8) + - units (11) + - 'Kokoro - Test: Integration' + - cla/google permissionRules: - team: yoshi-admins permission: admin From ce7db0ee1a139bb15f64bd1da79b44d7fa07c6e1 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 4 Nov 2021 21:04:16 +0000 Subject: [PATCH 181/401] chore(java): remove pin on Apache Maven 3.8.1 from github actions (#1268) (#557) --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/ci.yaml | 17 +---------------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 0df65ebe..5a79fcd5 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:a3ac08d167454718ff057b97a1950d3cb5e16fc39fb3f355d90276285a6cac75 + digest: sha256:ed012741acaae5d03e011244585a1f0625a596d31568967d77772aa5a0a51d5e diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2425d723..d95a11a2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,9 +12,6 @@ jobs: java: [8, 11, 17] steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -27,9 +24,6 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -45,9 +39,6 @@ jobs: java: [8, 11, 17] steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -58,9 +49,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -73,9 +61,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -83,4 +68,4 @@ jobs: - run: java -version - run: .kokoro/build.sh env: - JOB_TYPE: clirr + JOB_TYPE: clirr \ No newline at end of file From b025f62eb279b5df809dc6ceeebd23ec011e22d7 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Sat, 6 Nov 2021 00:44:14 +0000 Subject: [PATCH 182/401] Update ci.yaml (#1275) (#558) --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/ci.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 5a79fcd5..994dd04b 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:ed012741acaae5d03e011244585a1f0625a596d31568967d77772aa5a0a51d5e + digest: sha256:fecf6bd85f19eb046d913982ea36f6d434f9a49ab0545d25e31186aa64367c0c diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d95a11a2..93b337c6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,6 +8,7 @@ jobs: units: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: java: [8, 11, 17] steps: @@ -68,4 +69,4 @@ jobs: - run: java -version - run: .kokoro/build.sh env: - JOB_TYPE: clirr \ No newline at end of file + JOB_TYPE: clirr From 75b2ce8946b959cbd162c8ca307eb9be16482384 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 8 Nov 2021 21:46:24 +0000 Subject: [PATCH 183/401] chore: cleanup cloud RAD generation (#1269) (#559) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/release/publish_javadoc11.sh | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 994dd04b..325daaa4 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:fecf6bd85f19eb046d913982ea36f6d434f9a49ab0545d25e31186aa64367c0c + digest: sha256:204b7af96e6d481f19b0ff377aa379d46bc56dd06e1cc7c523f361dd9cbfeeaa diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index 5f48ae0d..9ac50f85 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -36,13 +36,9 @@ mvn clean install -B -q -DskipTests=true export NAME=google-cloud-tasks export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) -# V3 generates docfx yml from javadoc -# generate yml -mvn clean site -B -q -P docFX - -# copy README to docfx-yml dir and rename index.md -cp README.md target/docfx-yml/index.md -# copy CHANGELOG to docfx-yml dir and rename history.md +# cloud RAD generation +mvn clean javadoc:aggregate -B -q -P docFX +# include CHANGELOG cp CHANGELOG.md target/docfx-yml/history.md pushd target/docfx-yml From bd74e6be66b3253d574b87887da0b5913fbb5d07 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 9 Nov 2021 14:48:35 +0000 Subject: [PATCH 184/401] chore: update jre to 11 for linter (#1278) (#561) --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/ci.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 325daaa4..886d0949 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:204b7af96e6d481f19b0ff377aa379d46bc56dd06e1cc7c523f361dd9cbfeeaa + digest: sha256:14ecf64ec36f67c7bf04e3dc0f68eafcc01df3955121c38862b695e2ae7515d8 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 93b337c6..05de1f60 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -53,7 +53,7 @@ jobs: - uses: actions/setup-java@v2 with: distribution: zulu - java-version: 8 + java-version: 11 - run: java -version - run: .kokoro/build.sh env: From 7dea791a1feea25bb2b55712799378d23103a949 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 10 Nov 2021 21:04:03 +0100 Subject: [PATCH 185/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.1 (#560) --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 748e1da4..5c778ac2 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.0 + 1.2.1 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index 18eec929..7d06b7db 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.0 + 1.2.1 From fdfecef01d9fffaaee4bb03461e48d4841f29e7e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 10 Nov 2021 20:54:11 +0000 Subject: [PATCH 186/401] chore: update Java and Python dependencies (#562) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 408420890 Source-Link: https://github.com/googleapis/googleapis/commit/2921f9fb3bfbd16f6b2da0104373e2b47a80a65e Source-Link: https://github.com/googleapis/googleapis-gen/commit/6598ca8cbbf5226733a099c4506518a5af6ff74c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjU5OGNhOGNiYmY1MjI2NzMzYTA5OWM0NTA2NTE4YTVhZjZmZjc0YyJ9 --- .../cloud/tasks/v2/CloudTasksClient.java | 28 +++++++-------- .../cloud/tasks/v2beta2/CloudTasksClient.java | 34 +++++++++---------- .../cloud/tasks/v2beta3/CloudTasksClient.java | 28 +++++++-------- .../cloud/tasks/v2/CloudTasksClientTest.java | 12 +++---- .../tasks/v2beta2/CloudTasksClientTest.java | 12 +++---- .../tasks/v2beta3/CloudTasksClientTest.java | 12 +++---- .../google/cloud/tasks/v2/CloudTasksGrpc.java | 1 + .../cloud/tasks/v2beta2/CloudTasksGrpc.java | 1 + .../cloud/tasks/v2beta3/CloudTasksGrpc.java | 1 + 9 files changed, 66 insertions(+), 63 deletions(-) diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java index 0091714c..7c9d661a 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java @@ -190,7 +190,7 @@ public final ListQueuesPagedResponse listQueues(LocationName parent) { * *
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -218,7 +218,7 @@ public final ListQueuesPagedResponse listQueues(String parent) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setFilter("filter-1274492040")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -248,7 +248,7 @@ public final ListQueuesPagedResponse listQueues(ListQueuesRequest request) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setFilter("filter-1274492040")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -277,7 +277,7 @@ public final UnaryCallable listQueue
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setFilter("filter-1274492040")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -445,7 +445,7 @@ public final Queue createQueue(LocationName parent, Queue queue) {
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Queue queue = Queue.newBuilder().build();
    *   Queue response = cloudTasksClient.createQueue(parent, queue);
    * }
@@ -483,7 +483,7 @@ public final Queue createQueue(String parent, Queue queue) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setQueue(Queue.newBuilder().build())
    *           .build();
    *   Queue response = cloudTasksClient.createQueue(request);
@@ -514,7 +514,7 @@ public final Queue createQueue(CreateQueueRequest request) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setQueue(Queue.newBuilder().build())
    *           .build();
    *   ApiFuture future = cloudTasksClient.createQueueCallable().futureCall(request);
@@ -1573,7 +1573,7 @@ public final ListTasksPagedResponse listTasks(QueueName parent) {
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String parent = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
+   *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -1606,7 +1606,7 @@ public final ListTasksPagedResponse listTasks(String parent) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
-   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
+   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -1640,7 +1640,7 @@ public final ListTasksPagedResponse listTasks(ListTasksRequest request) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
-   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
+   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -1673,7 +1673,7 @@ public final UnaryCallable listTasksPa
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
-   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
+   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -1857,7 +1857,7 @@ public final Task createTask(QueueName parent, Task task) {
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String parent = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
+   *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Task task = Task.newBuilder().build();
    *   Task response = cloudTasksClient.createTask(parent, task);
    * }
@@ -1913,7 +1913,7 @@ public final Task createTask(String parent, Task task) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
-   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
+   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setTask(Task.newBuilder().build())
    *           .build();
    *   Task response = cloudTasksClient.createTask(request);
@@ -1943,7 +1943,7 @@ public final Task createTask(CreateTaskRequest request) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
-   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
+   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setTask(Task.newBuilder().build())
    *           .build();
    *   ApiFuture future = cloudTasksClient.createTaskCallable().futureCall(request);
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java
index 6f5a5f07..d6620298 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java
@@ -193,7 +193,7 @@ public final ListQueuesPagedResponse listQueues(LocationName parent) {
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -221,7 +221,7 @@ public final ListQueuesPagedResponse listQueues(String parent) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setFilter("filter-1274492040")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -252,7 +252,7 @@ public final ListQueuesPagedResponse listQueues(ListQueuesRequest request) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setFilter("filter-1274492040")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -282,7 +282,7 @@ public final UnaryCallable listQueue
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setFilter("filter-1274492040")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -453,7 +453,7 @@ public final Queue createQueue(LocationName parent, Queue queue) {
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Queue queue = Queue.newBuilder().build();
    *   Queue response = cloudTasksClient.createQueue(parent, queue);
    * }
@@ -491,7 +491,7 @@ public final Queue createQueue(String parent, Queue queue) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setQueue(Queue.newBuilder().build())
    *           .build();
    *   Queue response = cloudTasksClient.createQueue(request);
@@ -522,7 +522,7 @@ public final Queue createQueue(CreateQueueRequest request) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setQueue(Queue.newBuilder().build())
    *           .build();
    *   ApiFuture future = cloudTasksClient.createQueueCallable().futureCall(request);
@@ -1585,7 +1585,7 @@ public final ListTasksPagedResponse listTasks(QueueName parent) {
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String parent = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
+   *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -1618,7 +1618,7 @@ public final ListTasksPagedResponse listTasks(String parent) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
-   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
+   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -1652,7 +1652,7 @@ public final ListTasksPagedResponse listTasks(ListTasksRequest request) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
-   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
+   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -1685,7 +1685,7 @@ public final UnaryCallable listTasksPa
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
-   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
+   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -1873,7 +1873,7 @@ public final Task createTask(QueueName parent, Task task) {
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String parent = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
+   *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Task task = Task.newBuilder().build();
    *   Task response = cloudTasksClient.createTask(parent, task);
    * }
@@ -1931,7 +1931,7 @@ public final Task createTask(String parent, Task task) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
-   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
+   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setTask(Task.newBuilder().build())
    *           .build();
    *   Task response = cloudTasksClient.createTask(request);
@@ -1963,7 +1963,7 @@ public final Task createTask(CreateTaskRequest request) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
-   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
+   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setTask(Task.newBuilder().build())
    *           .build();
    *   ApiFuture future = cloudTasksClient.createTaskCallable().futureCall(request);
@@ -2164,7 +2164,7 @@ public final LeaseTasksResponse leaseTasks(QueueName parent, Duration leaseDurat
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String parent = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
+   *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Duration leaseDuration = Duration.newBuilder().build();
    *   LeaseTasksResponse response = cloudTasksClient.leaseTasks(parent, leaseDuration);
    * }
@@ -2223,7 +2223,7 @@ public final LeaseTasksResponse leaseTasks(String parent, Duration leaseDuration
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   LeaseTasksRequest request =
    *       LeaseTasksRequest.newBuilder()
-   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
+   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setMaxTasks(-233969421)
    *           .setLeaseDuration(Duration.newBuilder().build())
    *           .setFilter("filter-1274492040")
@@ -2267,7 +2267,7 @@ public final LeaseTasksResponse leaseTasks(LeaseTasksRequest request) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   LeaseTasksRequest request =
    *       LeaseTasksRequest.newBuilder()
-   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
+   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setMaxTasks(-233969421)
    *           .setLeaseDuration(Duration.newBuilder().build())
    *           .setFilter("filter-1274492040")
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java
index 2ddff1e7..1773728d 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java
@@ -191,7 +191,7 @@ public final ListQueuesPagedResponse listQueues(LocationName parent) {
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -219,7 +219,7 @@ public final ListQueuesPagedResponse listQueues(String parent) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setFilter("filter-1274492040")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -250,7 +250,7 @@ public final ListQueuesPagedResponse listQueues(ListQueuesRequest request) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setFilter("filter-1274492040")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -280,7 +280,7 @@ public final UnaryCallable listQueue
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setFilter("filter-1274492040")
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
@@ -451,7 +451,7 @@ public final Queue createQueue(LocationName parent, Queue queue) {
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Queue queue = Queue.newBuilder().build();
    *   Queue response = cloudTasksClient.createQueue(parent, queue);
    * }
@@ -489,7 +489,7 @@ public final Queue createQueue(String parent, Queue queue) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setQueue(Queue.newBuilder().build())
    *           .build();
    *   Queue response = cloudTasksClient.createQueue(request);
@@ -520,7 +520,7 @@ public final Queue createQueue(CreateQueueRequest request) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
    *           .setQueue(Queue.newBuilder().build())
    *           .build();
    *   ApiFuture future = cloudTasksClient.createQueueCallable().futureCall(request);
@@ -1583,7 +1583,7 @@ public final ListTasksPagedResponse listTasks(QueueName parent) {
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String parent = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
+   *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -1616,7 +1616,7 @@ public final ListTasksPagedResponse listTasks(String parent) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
-   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
+   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -1650,7 +1650,7 @@ public final ListTasksPagedResponse listTasks(ListTasksRequest request) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
-   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
+   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -1683,7 +1683,7 @@ public final UnaryCallable listTasksPa
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
-   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
+   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -1867,7 +1867,7 @@ public final Task createTask(QueueName parent, Task task) {
    *
    * 
{@code
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
-   *   String parent = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
+   *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Task task = Task.newBuilder().build();
    *   Task response = cloudTasksClient.createTask(parent, task);
    * }
@@ -1923,7 +1923,7 @@ public final Task createTask(String parent, Task task) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
-   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
+   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setTask(Task.newBuilder().build())
    *           .build();
    *   Task response = cloudTasksClient.createTask(request);
@@ -1953,7 +1953,7 @@ public final Task createTask(CreateTaskRequest request) {
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
-   *           .setParent(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
+   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setTask(Task.newBuilder().build())
    *           .build();
    *   ApiFuture future = cloudTasksClient.createTaskCallable().futureCall(request);
diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java
index 71dec25f..d87ada6a 100644
--- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java
+++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java
@@ -740,7 +740,7 @@ public void getIamPolicyTest() throws Exception {
             .build();
     mockCloudTasks.addResponse(expectedResponse);
 
-    ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+    ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
 
     Policy actualResponse = client.getIamPolicy(resource);
     Assert.assertEquals(expectedResponse, actualResponse);
@@ -762,7 +762,7 @@ public void getIamPolicyExceptionTest() throws Exception {
     mockCloudTasks.addException(exception);
 
     try {
-      ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+      ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       client.getIamPolicy(resource);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
@@ -820,7 +820,7 @@ public void setIamPolicyTest() throws Exception {
             .build();
     mockCloudTasks.addResponse(expectedResponse);
 
-    ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+    ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
     Policy policy = Policy.newBuilder().build();
 
     Policy actualResponse = client.setIamPolicy(resource, policy);
@@ -844,7 +844,7 @@ public void setIamPolicyExceptionTest() throws Exception {
     mockCloudTasks.addException(exception);
 
     try {
-      ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+      ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Policy policy = Policy.newBuilder().build();
       client.setIamPolicy(resource, policy);
       Assert.fail("No exception raised");
@@ -902,7 +902,7 @@ public void testIamPermissionsTest() throws Exception {
         TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
     mockCloudTasks.addResponse(expectedResponse);
 
-    ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+    ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
     List permissions = new ArrayList<>();
 
     TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions);
@@ -926,7 +926,7 @@ public void testIamPermissionsExceptionTest() throws Exception {
     mockCloudTasks.addException(exception);
 
     try {
-      ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+      ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       List permissions = new ArrayList<>();
       client.testIamPermissions(resource, permissions);
       Assert.fail("No exception raised");
diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java
index 8150cb44..6b0734be 100644
--- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java
+++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java
@@ -751,7 +751,7 @@ public void getIamPolicyTest() throws Exception {
             .build();
     mockCloudTasks.addResponse(expectedResponse);
 
-    ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+    ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
 
     Policy actualResponse = client.getIamPolicy(resource);
     Assert.assertEquals(expectedResponse, actualResponse);
@@ -773,7 +773,7 @@ public void getIamPolicyExceptionTest() throws Exception {
     mockCloudTasks.addException(exception);
 
     try {
-      ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+      ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       client.getIamPolicy(resource);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
@@ -831,7 +831,7 @@ public void setIamPolicyTest() throws Exception {
             .build();
     mockCloudTasks.addResponse(expectedResponse);
 
-    ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+    ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
     Policy policy = Policy.newBuilder().build();
 
     Policy actualResponse = client.setIamPolicy(resource, policy);
@@ -855,7 +855,7 @@ public void setIamPolicyExceptionTest() throws Exception {
     mockCloudTasks.addException(exception);
 
     try {
-      ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+      ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Policy policy = Policy.newBuilder().build();
       client.setIamPolicy(resource, policy);
       Assert.fail("No exception raised");
@@ -913,7 +913,7 @@ public void testIamPermissionsTest() throws Exception {
         TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
     mockCloudTasks.addResponse(expectedResponse);
 
-    ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+    ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
     List permissions = new ArrayList<>();
 
     TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions);
@@ -937,7 +937,7 @@ public void testIamPermissionsExceptionTest() throws Exception {
     mockCloudTasks.addException(exception);
 
     try {
-      ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+      ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       List permissions = new ArrayList<>();
       client.testIamPermissions(resource, permissions);
       Assert.fail("No exception raised");
diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java
index b82b4910..c3f05b65 100644
--- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java
+++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java
@@ -762,7 +762,7 @@ public void getIamPolicyTest() throws Exception {
             .build();
     mockCloudTasks.addResponse(expectedResponse);
 
-    ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+    ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
 
     Policy actualResponse = client.getIamPolicy(resource);
     Assert.assertEquals(expectedResponse, actualResponse);
@@ -784,7 +784,7 @@ public void getIamPolicyExceptionTest() throws Exception {
     mockCloudTasks.addException(exception);
 
     try {
-      ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+      ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       client.getIamPolicy(resource);
       Assert.fail("No exception raised");
     } catch (InvalidArgumentException e) {
@@ -842,7 +842,7 @@ public void setIamPolicyTest() throws Exception {
             .build();
     mockCloudTasks.addResponse(expectedResponse);
 
-    ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+    ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
     Policy policy = Policy.newBuilder().build();
 
     Policy actualResponse = client.setIamPolicy(resource, policy);
@@ -866,7 +866,7 @@ public void setIamPolicyExceptionTest() throws Exception {
     mockCloudTasks.addException(exception);
 
     try {
-      ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+      ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Policy policy = Policy.newBuilder().build();
       client.setIamPolicy(resource, policy);
       Assert.fail("No exception raised");
@@ -924,7 +924,7 @@ public void testIamPermissionsTest() throws Exception {
         TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build();
     mockCloudTasks.addResponse(expectedResponse);
 
-    ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+    ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
     List permissions = new ArrayList<>();
 
     TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions);
@@ -948,7 +948,7 @@ public void testIamPermissionsExceptionTest() throws Exception {
     mockCloudTasks.addException(exception);
 
     try {
-      ResourceName resource = LocationName.of("[PROJECT]", "[LOCATION]");
+      ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       List permissions = new ArrayList<>();
       client.testIamPermissions(resource, permissions);
       Assert.fail("No exception raised");
diff --git a/grpc-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksGrpc.java b/grpc-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksGrpc.java
index ee78fba8..7ce92264 100644
--- a/grpc-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksGrpc.java
+++ b/grpc-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksGrpc.java
@@ -28,6 +28,7 @@
 @javax.annotation.Generated(
     value = "by gRPC proto compiler",
     comments = "Source: google/cloud/tasks/v2/cloudtasks.proto")
+@io.grpc.stub.annotations.GrpcGenerated
 public final class CloudTasksGrpc {
 
   private CloudTasksGrpc() {}
diff --git a/grpc-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksGrpc.java b/grpc-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksGrpc.java
index e6ec9acc..4471b15a 100644
--- a/grpc-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksGrpc.java
+++ b/grpc-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksGrpc.java
@@ -28,6 +28,7 @@
 @javax.annotation.Generated(
     value = "by gRPC proto compiler",
     comments = "Source: google/cloud/tasks/v2beta2/cloudtasks.proto")
+@io.grpc.stub.annotations.GrpcGenerated
 public final class CloudTasksGrpc {
 
   private CloudTasksGrpc() {}
diff --git a/grpc-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksGrpc.java b/grpc-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksGrpc.java
index 077b7c75..f661a208 100644
--- a/grpc-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksGrpc.java
+++ b/grpc-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksGrpc.java
@@ -28,6 +28,7 @@
 @javax.annotation.Generated(
     value = "by gRPC proto compiler",
     comments = "Source: google/cloud/tasks/v2beta3/cloudtasks.proto")
+@io.grpc.stub.annotations.GrpcGenerated
 public final class CloudTasksGrpc {
 
   private CloudTasksGrpc() {}

From 80637ce9cd1610bdf78005076ab99b2b701cac5f Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Thu, 11 Nov 2021 21:20:12 +0000
Subject: [PATCH 187/401] chore: update minimum java version to java 8 (#1281)
 (#563)

---
 .github/.OwlBot.lock.yaml | 2 +-
 README.md                 | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index 886d0949..5d788be0 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -1,3 +1,3 @@
 docker:
   image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
-  digest: sha256:14ecf64ec36f67c7bf04e3dc0f68eafcc01df3955121c38862b695e2ae7515d8
+  digest: sha256:a744afda1956beb7bd6dc8d0b740a7839bbe402e34e2f4ef24589074db53ceb0
diff --git a/README.md b/README.md
index 1c3718ef..a3f537cd 100644
--- a/README.md
+++ b/README.md
@@ -94,7 +94,7 @@ Cloud Tasks uses gRPC for the transport layer.
 
 ## Supported Java Versions
 
-Java 7 or above is required for using this client.
+Java 8 or above is required for using this client.
 
 Google's Java client libraries,
 [Google Cloud Client Libraries][cloudlibs]
@@ -163,7 +163,6 @@ Apache 2.0 - See [LICENSE][license] for more information.
 
 Java Version | Status
 ------------ | ------
-Java 7 | [![Kokoro CI][kokoro-badge-image-1]][kokoro-badge-link-1]
 Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2]
 Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3]
 Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4]

From 6c6c9c10cc73f487f8704b2f1f2e310b3602c65a Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate 
Date: Fri, 12 Nov 2021 22:42:54 +0100
Subject: [PATCH 188/401] deps: update dependency
 com.google.cloud:google-cloud-shared-dependencies to v2.5.0 (#564)

---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 7d06b7db..5975fa78 100644
--- a/pom.xml
+++ b/pom.xml
@@ -97,7 +97,7 @@
       
         com.google.cloud
         google-cloud-shared-dependencies
-        2.4.0
+        2.5.0
         pom
         import
       

From c04d074728d1f69051d407184c569907fc625f96 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate 
Date: Wed, 17 Nov 2021 23:37:31 +0100
Subject: [PATCH 189/401] build(deps): update dependency
 com.google.cloud:google-cloud-shared-config to v1.2.2 (#565)

---
 google-cloud-tasks-bom/pom.xml | 2 +-
 pom.xml                        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml
index 5c778ac2..d10c5372 100644
--- a/google-cloud-tasks-bom/pom.xml
+++ b/google-cloud-tasks-bom/pom.xml
@@ -8,7 +8,7 @@
   
     com.google.cloud
     google-cloud-shared-config
-    1.2.1
+    1.2.2
   
 
   Google Cloud tasks BOM
diff --git a/pom.xml b/pom.xml
index 5975fa78..1b183034 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
   
     com.google.cloud
     google-cloud-shared-config
-    1.2.1
+    1.2.2
   
 
   

From 22496d59c0d8460ae83dc996d009c5b9154a9eed Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Thu, 18 Nov 2021 17:51:03 -1000
Subject: [PATCH 190/401] docs: fix docstring formatting (#566)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

* docs: fix docstring formatting

Committer: @parthea
PiperOrigin-RevId: 410919520

Source-Link: https://github.com/googleapis/googleapis/commit/b5274f7d4e1c8a071979265213186bc6cf7df085

Source-Link: https://github.com/googleapis/googleapis-gen/commit/a179eefb3b32897d75c53d8349f23910c7753050
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTE3OWVlZmIzYjMyODk3ZDc1YzUzZDgzNDlmMjM5MTBjNzc1MzA1MCJ9

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot 
---
 .../google/cloud/tasks/v2/HttpRequest.java    | 44 +++++++++----------
 .../cloud/tasks/v2/HttpRequestOrBuilder.java  | 20 ++++-----
 .../proto/google/cloud/tasks/v2/target.proto  |  4 +-
 .../cloud/tasks/v2beta3/HttpRequest.java      | 44 +++++++++----------
 .../tasks/v2beta3/HttpRequestOrBuilder.java   | 20 ++++-----
 .../google/cloud/tasks/v2beta3/target.proto   |  4 +-
 6 files changed, 68 insertions(+), 68 deletions(-)

diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequest.java
index 9041daba..7d310c8e 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequest.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequest.java
@@ -390,8 +390,8 @@ public int getHeadersCount() {
    *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
    * * Content-Length: This will be computed by Cloud Tasks.
    * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * X-Google-*: Google use only.
-   * * X-AppEngine-*: Google use only.
+   * * `X-Google-*`: Google use only.
+   * * `X-AppEngine-*`: Google use only.
    * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
    * `Content-Type` to a media type when the
    *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -432,8 +432,8 @@ public java.util.Map getHeaders() {
    *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
    * * Content-Length: This will be computed by Cloud Tasks.
    * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * X-Google-*: Google use only.
-   * * X-AppEngine-*: Google use only.
+   * * `X-Google-*`: Google use only.
+   * * `X-AppEngine-*`: Google use only.
    * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
    * `Content-Type` to a media type when the
    *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -465,8 +465,8 @@ public java.util.Map getHeadersMap() {
    *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
    * * Content-Length: This will be computed by Cloud Tasks.
    * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * X-Google-*: Google use only.
-   * * X-AppEngine-*: Google use only.
+   * * `X-Google-*`: Google use only.
+   * * `X-AppEngine-*`: Google use only.
    * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
    * `Content-Type` to a media type when the
    *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -502,8 +502,8 @@ public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.Stri
    *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
    * * Content-Length: This will be computed by Cloud Tasks.
    * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * X-Google-*: Google use only.
-   * * X-AppEngine-*: Google use only.
+   * * `X-Google-*`: Google use only.
+   * * `X-AppEngine-*`: Google use only.
    * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
    * `Content-Type` to a media type when the
    *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -1446,8 +1446,8 @@ public int getHeadersCount() {
      *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
      * * Content-Length: This will be computed by Cloud Tasks.
      * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * X-Google-*: Google use only.
-     * * X-AppEngine-*: Google use only.
+     * * `X-Google-*`: Google use only.
+     * * `X-AppEngine-*`: Google use only.
      * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
      * `Content-Type` to a media type when the
      *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -1488,8 +1488,8 @@ public java.util.Map getHeaders() {
      *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
      * * Content-Length: This will be computed by Cloud Tasks.
      * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * X-Google-*: Google use only.
-     * * X-AppEngine-*: Google use only.
+     * * `X-Google-*`: Google use only.
+     * * `X-AppEngine-*`: Google use only.
      * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
      * `Content-Type` to a media type when the
      *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -1521,8 +1521,8 @@ public java.util.Map getHeadersMap() {
      *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
      * * Content-Length: This will be computed by Cloud Tasks.
      * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * X-Google-*: Google use only.
-     * * X-AppEngine-*: Google use only.
+     * * `X-Google-*`: Google use only.
+     * * `X-AppEngine-*`: Google use only.
      * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
      * `Content-Type` to a media type when the
      *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -1559,8 +1559,8 @@ public java.lang.String getHeadersOrDefault(
      *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
      * * Content-Length: This will be computed by Cloud Tasks.
      * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * X-Google-*: Google use only.
-     * * X-AppEngine-*: Google use only.
+     * * `X-Google-*`: Google use only.
+     * * `X-AppEngine-*`: Google use only.
      * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
      * `Content-Type` to a media type when the
      *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -1604,8 +1604,8 @@ public Builder clearHeaders() {
      *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
      * * Content-Length: This will be computed by Cloud Tasks.
      * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * X-Google-*: Google use only.
-     * * X-AppEngine-*: Google use only.
+     * * `X-Google-*`: Google use only.
+     * * `X-AppEngine-*`: Google use only.
      * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
      * `Content-Type` to a media type when the
      *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -1645,8 +1645,8 @@ public java.util.Map getMutableHeaders() {
      *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
      * * Content-Length: This will be computed by Cloud Tasks.
      * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * X-Google-*: Google use only.
-     * * X-AppEngine-*: Google use only.
+     * * `X-Google-*`: Google use only.
+     * * `X-AppEngine-*`: Google use only.
      * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
      * `Content-Type` to a media type when the
      *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -1684,8 +1684,8 @@ public Builder putHeaders(java.lang.String key, java.lang.String value) {
      *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
      * * Content-Length: This will be computed by Cloud Tasks.
      * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * X-Google-*: Google use only.
-     * * X-AppEngine-*: Google use only.
+     * * `X-Google-*`: Google use only.
+     * * `X-AppEngine-*`: Google use only.
      * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
      * `Content-Type` to a media type when the
      *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequestOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequestOrBuilder.java
index c5cc159a..81d54642 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequestOrBuilder.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequestOrBuilder.java
@@ -100,8 +100,8 @@ public interface HttpRequestOrBuilder
    *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
    * * Content-Length: This will be computed by Cloud Tasks.
    * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * X-Google-*: Google use only.
-   * * X-AppEngine-*: Google use only.
+   * * `X-Google-*`: Google use only.
+   * * `X-AppEngine-*`: Google use only.
    * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
    * `Content-Type` to a media type when the
    *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -130,8 +130,8 @@ public interface HttpRequestOrBuilder
    *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
    * * Content-Length: This will be computed by Cloud Tasks.
    * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * X-Google-*: Google use only.
-   * * X-AppEngine-*: Google use only.
+   * * `X-Google-*`: Google use only.
+   * * `X-AppEngine-*`: Google use only.
    * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
    * `Content-Type` to a media type when the
    *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -163,8 +163,8 @@ public interface HttpRequestOrBuilder
    *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
    * * Content-Length: This will be computed by Cloud Tasks.
    * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * X-Google-*: Google use only.
-   * * X-AppEngine-*: Google use only.
+   * * `X-Google-*`: Google use only.
+   * * `X-AppEngine-*`: Google use only.
    * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
    * `Content-Type` to a media type when the
    *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -193,8 +193,8 @@ public interface HttpRequestOrBuilder
    *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
    * * Content-Length: This will be computed by Cloud Tasks.
    * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * X-Google-*: Google use only.
-   * * X-AppEngine-*: Google use only.
+   * * `X-Google-*`: Google use only.
+   * * `X-AppEngine-*`: Google use only.
    * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
    * `Content-Type` to a media type when the
    *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -223,8 +223,8 @@ public interface HttpRequestOrBuilder
    *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
    * * Content-Length: This will be computed by Cloud Tasks.
    * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * X-Google-*: Google use only.
-   * * X-AppEngine-*: Google use only.
+   * * `X-Google-*`: Google use only.
+   * * `X-AppEngine-*`: Google use only.
    * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
    * `Content-Type` to a media type when the
    *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
diff --git a/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/target.proto b/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/target.proto
index 558ca4af..fca9cf81 100644
--- a/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/target.proto
+++ b/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/target.proto
@@ -83,8 +83,8 @@ message HttpRequest {
   //   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
   // * Content-Length: This will be computed by Cloud Tasks.
   // * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-  // * X-Google-*: Google use only.
-  // * X-AppEngine-*: Google use only.
+  // * `X-Google-*`: Google use only.
+  // * `X-AppEngine-*`: Google use only.
   //
   // `Content-Type` won't be set by Cloud Tasks. You can explicitly set
   // `Content-Type` to a media type when the
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequest.java
index 3d662e6f..448a6485 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequest.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequest.java
@@ -392,8 +392,8 @@ public int getHeadersCount() {
    *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
    * * Content-Length: This will be computed by Cloud Tasks.
    * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * X-Google-*: Google use only.
-   * * X-AppEngine-*: Google use only.
+   * * `X-Google-*`: Google use only.
+   * * `X-AppEngine-*`: Google use only.
    * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
    * `Content-Type` to a media type when the
    *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -434,8 +434,8 @@ public java.util.Map getHeaders() {
    *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
    * * Content-Length: This will be computed by Cloud Tasks.
    * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * X-Google-*: Google use only.
-   * * X-AppEngine-*: Google use only.
+   * * `X-Google-*`: Google use only.
+   * * `X-AppEngine-*`: Google use only.
    * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
    * `Content-Type` to a media type when the
    *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -467,8 +467,8 @@ public java.util.Map getHeadersMap() {
    *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
    * * Content-Length: This will be computed by Cloud Tasks.
    * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * X-Google-*: Google use only.
-   * * X-AppEngine-*: Google use only.
+   * * `X-Google-*`: Google use only.
+   * * `X-AppEngine-*`: Google use only.
    * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
    * `Content-Type` to a media type when the
    *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -504,8 +504,8 @@ public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.Stri
    *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
    * * Content-Length: This will be computed by Cloud Tasks.
    * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * X-Google-*: Google use only.
-   * * X-AppEngine-*: Google use only.
+   * * `X-Google-*`: Google use only.
+   * * `X-AppEngine-*`: Google use only.
    * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
    * `Content-Type` to a media type when the
    *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -1452,8 +1452,8 @@ public int getHeadersCount() {
      *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
      * * Content-Length: This will be computed by Cloud Tasks.
      * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * X-Google-*: Google use only.
-     * * X-AppEngine-*: Google use only.
+     * * `X-Google-*`: Google use only.
+     * * `X-AppEngine-*`: Google use only.
      * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
      * `Content-Type` to a media type when the
      *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -1494,8 +1494,8 @@ public java.util.Map getHeaders() {
      *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
      * * Content-Length: This will be computed by Cloud Tasks.
      * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * X-Google-*: Google use only.
-     * * X-AppEngine-*: Google use only.
+     * * `X-Google-*`: Google use only.
+     * * `X-AppEngine-*`: Google use only.
      * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
      * `Content-Type` to a media type when the
      *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -1527,8 +1527,8 @@ public java.util.Map getHeadersMap() {
      *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
      * * Content-Length: This will be computed by Cloud Tasks.
      * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * X-Google-*: Google use only.
-     * * X-AppEngine-*: Google use only.
+     * * `X-Google-*`: Google use only.
+     * * `X-AppEngine-*`: Google use only.
      * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
      * `Content-Type` to a media type when the
      *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -1565,8 +1565,8 @@ public java.lang.String getHeadersOrDefault(
      *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
      * * Content-Length: This will be computed by Cloud Tasks.
      * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * X-Google-*: Google use only.
-     * * X-AppEngine-*: Google use only.
+     * * `X-Google-*`: Google use only.
+     * * `X-AppEngine-*`: Google use only.
      * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
      * `Content-Type` to a media type when the
      *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -1610,8 +1610,8 @@ public Builder clearHeaders() {
      *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
      * * Content-Length: This will be computed by Cloud Tasks.
      * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * X-Google-*: Google use only.
-     * * X-AppEngine-*: Google use only.
+     * * `X-Google-*`: Google use only.
+     * * `X-AppEngine-*`: Google use only.
      * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
      * `Content-Type` to a media type when the
      *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -1651,8 +1651,8 @@ public java.util.Map getMutableHeaders() {
      *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
      * * Content-Length: This will be computed by Cloud Tasks.
      * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * X-Google-*: Google use only.
-     * * X-AppEngine-*: Google use only.
+     * * `X-Google-*`: Google use only.
+     * * `X-AppEngine-*`: Google use only.
      * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
      * `Content-Type` to a media type when the
      *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -1690,8 +1690,8 @@ public Builder putHeaders(java.lang.String key, java.lang.String value) {
      *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
      * * Content-Length: This will be computed by Cloud Tasks.
      * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * X-Google-*: Google use only.
-     * * X-AppEngine-*: Google use only.
+     * * `X-Google-*`: Google use only.
+     * * `X-AppEngine-*`: Google use only.
      * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
      * `Content-Type` to a media type when the
      *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequestOrBuilder.java
index 52d283e8..2f2f31c0 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequestOrBuilder.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequestOrBuilder.java
@@ -100,8 +100,8 @@ public interface HttpRequestOrBuilder
    *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
    * * Content-Length: This will be computed by Cloud Tasks.
    * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * X-Google-*: Google use only.
-   * * X-AppEngine-*: Google use only.
+   * * `X-Google-*`: Google use only.
+   * * `X-AppEngine-*`: Google use only.
    * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
    * `Content-Type` to a media type when the
    *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -130,8 +130,8 @@ public interface HttpRequestOrBuilder
    *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
    * * Content-Length: This will be computed by Cloud Tasks.
    * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * X-Google-*: Google use only.
-   * * X-AppEngine-*: Google use only.
+   * * `X-Google-*`: Google use only.
+   * * `X-AppEngine-*`: Google use only.
    * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
    * `Content-Type` to a media type when the
    *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -163,8 +163,8 @@ public interface HttpRequestOrBuilder
    *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
    * * Content-Length: This will be computed by Cloud Tasks.
    * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * X-Google-*: Google use only.
-   * * X-AppEngine-*: Google use only.
+   * * `X-Google-*`: Google use only.
+   * * `X-AppEngine-*`: Google use only.
    * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
    * `Content-Type` to a media type when the
    *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -193,8 +193,8 @@ public interface HttpRequestOrBuilder
    *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
    * * Content-Length: This will be computed by Cloud Tasks.
    * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * X-Google-*: Google use only.
-   * * X-AppEngine-*: Google use only.
+   * * `X-Google-*`: Google use only.
+   * * `X-AppEngine-*`: Google use only.
    * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
    * `Content-Type` to a media type when the
    *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
@@ -223,8 +223,8 @@ public interface HttpRequestOrBuilder
    *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
    * * Content-Length: This will be computed by Cloud Tasks.
    * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * X-Google-*: Google use only.
-   * * X-AppEngine-*: Google use only.
+   * * `X-Google-*`: Google use only.
+   * * `X-AppEngine-*`: Google use only.
    * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
    * `Content-Type` to a media type when the
    *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/target.proto b/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/target.proto
index 5ef1ee08..691cf97f 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/target.proto
+++ b/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/target.proto
@@ -105,8 +105,8 @@ message HttpRequest {
   //   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
   // * Content-Length: This will be computed by Cloud Tasks.
   // * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-  // * X-Google-*: Google use only.
-  // * X-AppEngine-*: Google use only.
+  // * `X-Google-*`: Google use only.
+  // * `X-AppEngine-*`: Google use only.
   //
   // `Content-Type` won't be set by Cloud Tasks. You can explicitly set
   // `Content-Type` to a media type when the

From 9e92957dd447a35ec6fccaacfe0a7c11664c11de Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Mon, 22 Nov 2021 18:32:19 +0000
Subject: [PATCH 191/401] chore: remove enable-samples profile (#1284) (#567)

---
 .github/.OwlBot.lock.yaml |  2 +-
 CONTRIBUTING.md           | 61 +++++----------------------------------
 2 files changed, 8 insertions(+), 55 deletions(-)

diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index 5d788be0..88d9b926 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -1,3 +1,3 @@
 docker:
   image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
-  digest: sha256:a744afda1956beb7bd6dc8d0b740a7839bbe402e34e2f4ef24589074db53ceb0
+  digest: sha256:5b8c790f57cca57e6b37ba25f79291265c218cea3e6ba9714b001910ab3f1419
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index f2dbdee0..b65dd279 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -53,12 +53,12 @@ mvn -Penable-integration-tests clean verify
 
 ## Code Samples
 
-Code Samples must be bundled in separate Maven modules, and guarded by a
-Maven profile with the name `enable-samples`.
+All code samples must be in compliance with the [java sample formatting guide][3].
+Code Samples must be bundled in separate Maven modules.
 
 The samples must be separate from the primary project for a few reasons:
-1. Primary projects have a minimum Java version of Java 7 whereas samples have
-   a minimum Java version of Java 8. Due to this we need the ability to
+1. Primary projects have a minimum Java version of Java 8 whereas samples can have
+   Java version of Java 11. Due to this we need the ability to
    selectively exclude samples from a build run.
 2. Many code samples depend on external GCP services and need
    credentials to access the service.
@@ -68,39 +68,16 @@ The samples must be separate from the primary project for a few reasons:
 ### Building
 
 ```bash
-mvn -Penable-samples clean verify
+mvn clean verify
 ```
 
 Some samples require access to GCP services and require a service account:
 
 ```bash
 export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service/account.json
-mvn -Penable-samples clean verify
+mvn clean verify
 ```
 
-### Profile Config
-
-1. To add samples in a profile to your Maven project, add the following to your
-`pom.xml`
-
-    ```xml
-    
-      [...]
-      
-        
-          enable-samples
-          
-            sample
-          
-        
-      
-      [...]
-    
-    ```
-
-2. [Activate](#profile-activation) the profile.
-3. Define your samples in a normal Maven project in the `samples/` directory.
-
 ### Code Formatting
 
 Code in this repo is formatted with
@@ -110,30 +87,6 @@ To run formatting on your project, you can run:
 mvn com.coveo:fmt-maven-plugin:format
 ```
 
-### Profile Activation
-
-To include code samples when building and testing the project, enable the 
-`enable-samples` Maven profile.
-
-#### Command line
-
-To activate the Maven profile on the command line add `-Penable-samples` to your
-Maven command.
-
-#### Maven `settings.xml`
-
-To activate the Maven profile in your `~/.m2/settings.xml` add an entry of
-`enable-samples` following the instructions in [Active Profiles][2].
-
-This method has the benefit of applying to all projects you build (and is
-respected by IntelliJ IDEA) and is recommended if you are going to be
-contributing samples to several projects.
-
-#### IntelliJ IDEA
-
-To activate the Maven Profile inside IntelliJ IDEA, follow the instructions in
-[Activate Maven profiles][3] to activate `enable-samples`.
-
 [1]: https://cloud.google.com/docs/authentication/getting-started#creating_a_service_account
 [2]: https://maven.apache.org/settings.html#Active_Profiles
-[3]: https://www.jetbrains.com/help/idea/work-with-maven-profiles.html#activate_maven_profiles
+[3]: https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md
\ No newline at end of file

From ea06790596e0d2e379ee77d7816a7e02282072e7 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate 
Date: Fri, 3 Dec 2021 17:08:28 +0100
Subject: [PATCH 192/401] deps: update dependency
 com.google.cloud:google-cloud-shared-dependencies to v2.5.1 (#571)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.5.0` -> `2.5.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.1/compatibility-slim/2.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.1/confidence-slim/2.5.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

googleapis/java-shared-dependencies ### [`v2.5.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​251-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare250v251-2021-12-03) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.5.0...v2.5.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1b183034..0fade45d 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.5.0 + 2.5.1 pom import From 5dfc173f81c288552ad3a197e5e4b13c3ac87a39 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 6 Dec 2021 10:22:15 -0800 Subject: [PATCH 193/401] chore: release 2.1.0 (#551) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 23 +++++++++++++++++++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 60 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3da27e29..9c2ed485 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,28 @@ # Changelog +## [2.1.0](https://www.github.com/googleapis/java-tasks/compare/v2.0.6...v2.1.0) (2021-12-03) + + +### Features + +* next release from main branch is 2.1.0 ([#553](https://www.github.com/googleapis/java-tasks/issues/553)) ([9fe2ec6](https://www.github.com/googleapis/java-tasks/commit/9fe2ec66bd2c65650de39d7b8cb9134999267613)) + + +### Bug Fixes + +* **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-tasks/issues/1266)) ([#550](https://www.github.com/googleapis/java-tasks/issues/550)) ([85ed3f4](https://www.github.com/googleapis/java-tasks/commit/85ed3f40ad4a883aab1df4b25e15ffa8e42f19d6)) + + +### Documentation + +* fix docstring formatting ([#566](https://www.github.com/googleapis/java-tasks/issues/566)) ([22496d5](https://www.github.com/googleapis/java-tasks/commit/22496d59c0d8460ae83dc996d009c5b9154a9eed)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#564](https://www.github.com/googleapis/java-tasks/issues/564)) ([6c6c9c1](https://www.github.com/googleapis/java-tasks/commit/6c6c9c10cc73f487f8704b2f1f2e310b3602c65a)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#571](https://www.github.com/googleapis/java-tasks/issues/571)) ([ea06790](https://www.github.com/googleapis/java-tasks/commit/ea06790596e0d2e379ee77d7816a7e02282072e7)) + ### [2.0.6](https://www.github.com/googleapis/java-tasks/compare/v2.0.5...v2.0.6) (2021-10-20) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index d10c5372..fd92d993 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.0.7-SNAPSHOT + 2.1.0 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.0.7-SNAPSHOT + 2.1.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.7-SNAPSHOT + 0.91.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.7-SNAPSHOT + 0.91.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.7-SNAPSHOT + 2.1.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.7-SNAPSHOT + 0.91.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.7-SNAPSHOT + 0.91.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.7-SNAPSHOT + 2.1.0 diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index ae3cad02..cdc46b91 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.0.7-SNAPSHOT + 2.1.0 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.0.7-SNAPSHOT + 2.1.0 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 14bf3333..f20190c1 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.7-SNAPSHOT + 2.1.0 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.7-SNAPSHOT + 2.1.0 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index a7856830..fcbf3842 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.7-SNAPSHOT + 0.91.0 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.7-SNAPSHOT + 2.1.0 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 875fe5fb..fc41ba3b 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.7-SNAPSHOT + 0.91.0 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.7-SNAPSHOT + 2.1.0 diff --git a/pom.xml b/pom.xml index 0fade45d..f9999f5d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.0.7-SNAPSHOT + 2.1.0 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.7-SNAPSHOT + 0.91.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.7-SNAPSHOT + 0.91.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.7-SNAPSHOT + 2.1.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.90.7-SNAPSHOT + 0.91.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.90.7-SNAPSHOT + 0.91.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.0.7-SNAPSHOT + 2.1.0 com.google.cloud google-cloud-tasks - 2.0.7-SNAPSHOT + 2.1.0 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index a3d62042..9f228f58 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.0.7-SNAPSHOT + 2.1.0 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.0.7-SNAPSHOT + 2.1.0 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index fa3a2fac..7c673c8f 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.90.7-SNAPSHOT + 0.91.0 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.0.7-SNAPSHOT + 2.1.0 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 01d9ba2a..47c3611e 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.90.7-SNAPSHOT + 0.91.0 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.0.7-SNAPSHOT + 2.1.0 diff --git a/versions.txt b/versions.txt index 7b0aca9d..190f6b97 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.0.6:2.0.7-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.90.6:0.90.7-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.90.6:0.90.7-SNAPSHOT -grpc-google-cloud-tasks-v2:2.0.6:2.0.7-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.90.6:0.90.7-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.90.6:0.90.7-SNAPSHOT -proto-google-cloud-tasks-v2:2.0.6:2.0.7-SNAPSHOT +google-cloud-tasks:2.1.0:2.1.0 +grpc-google-cloud-tasks-v2beta3:0.91.0:0.91.0 +grpc-google-cloud-tasks-v2beta2:0.91.0:0.91.0 +grpc-google-cloud-tasks-v2:2.1.0:2.1.0 +proto-google-cloud-tasks-v2beta3:0.91.0:0.91.0 +proto-google-cloud-tasks-v2beta2:0.91.0:0.91.0 +proto-google-cloud-tasks-v2:2.1.0:2.1.0 From b32ead84a1735ff9928948e55449411e2efbed9f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 6 Dec 2021 18:32:20 +0000 Subject: [PATCH 194/401] chore: release 2.1.1-SNAPSHOT (#572) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index fd92d993..01198013 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.0 + 2.1.1-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.0 + 2.1.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.0 + 0.91.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.0 + 0.91.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.0 + 2.1.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.0 + 0.91.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.0 + 0.91.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.0 + 2.1.1-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index cdc46b91..7e89a0b1 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.0 + 2.1.1-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.0 + 2.1.1-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index f20190c1..7c46538f 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.0 + 2.1.1-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.0 + 2.1.1-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index fcbf3842..efcd42c0 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.0 + 0.91.1-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.0 + 2.1.1-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index fc41ba3b..5df01b77 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.0 + 0.91.1-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.0 + 2.1.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index f9999f5d..14cd94c2 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.0 + 2.1.1-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.0 + 0.91.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.0 + 0.91.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.0 + 2.1.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.0 + 0.91.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.0 + 0.91.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.0 + 2.1.1-SNAPSHOT com.google.cloud google-cloud-tasks - 2.1.0 + 2.1.1-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 9f228f58..3e675a27 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.0 + 2.1.1-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.0 + 2.1.1-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 7c673c8f..951b6df8 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.0 + 0.91.1-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.0 + 2.1.1-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 47c3611e..45a23cda 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.0 + 0.91.1-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.0 + 2.1.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 190f6b97..f12c10bc 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.0:2.1.0 -grpc-google-cloud-tasks-v2beta3:0.91.0:0.91.0 -grpc-google-cloud-tasks-v2beta2:0.91.0:0.91.0 -grpc-google-cloud-tasks-v2:2.1.0:2.1.0 -proto-google-cloud-tasks-v2beta3:0.91.0:0.91.0 -proto-google-cloud-tasks-v2beta2:0.91.0:0.91.0 -proto-google-cloud-tasks-v2:2.1.0:2.1.0 +google-cloud-tasks:2.1.0:2.1.1-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.91.0:0.91.1-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.91.0:0.91.1-SNAPSHOT +grpc-google-cloud-tasks-v2:2.1.0:2.1.1-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.91.0:0.91.1-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.91.0:0.91.1-SNAPSHOT +proto-google-cloud-tasks-v2:2.1.0:2.1.1-SNAPSHOT From 16e53da92777285577639e22fca05daae314e1dd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Dec 2021 23:32:15 +0100 Subject: [PATCH 195/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.1.0 (#573) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.0.6` -> `2.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.0/compatibility-slim/2.0.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.0/confidence-slim/2.0.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-tasks ### [`v2.1.0`](https://togithub.com/googleapis/java-tasks/blob/master/CHANGELOG.md#​210-httpswwwgithubcomgoogleapisjava-taskscomparev206v210-2021-12-03) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v2.0.6...v2.1.0) ##### Features - next release from main branch is 2.1.0 ([#​553](https://www.togithub.com/googleapis/java-tasks/issues/553)) ([9fe2ec6](https://www.github.com/googleapis/java-tasks/commit/9fe2ec66bd2c65650de39d7b8cb9134999267613)) ##### Bug Fixes - **java:** java 17 dependency arguments ([#​1266](https://www.togithub.com/googleapis/java-tasks/issues/1266)) ([#​550](https://www.togithub.com/googleapis/java-tasks/issues/550)) ([85ed3f4](https://www.github.com/googleapis/java-tasks/commit/85ed3f40ad4a883aab1df4b25e15ffa8e42f19d6)) ##### Documentation - fix docstring formatting ([#​566](https://www.togithub.com/googleapis/java-tasks/issues/566)) ([22496d5](https://www.github.com/googleapis/java-tasks/commit/22496d59c0d8460ae83dc996d009c5b9154a9eed)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#​564](https://www.togithub.com/googleapis/java-tasks/issues/564)) ([6c6c9c1](https://www.github.com/googleapis/java-tasks/commit/6c6c9c10cc73f487f8704b2f1f2e310b3602c65a)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#​571](https://www.togithub.com/googleapis/java-tasks/issues/571)) ([ea06790](https://www.github.com/googleapis/java-tasks/commit/ea06790596e0d2e379ee77d7816a7e02282072e7)) ##### [2.0.6](https://www.github.com/googleapis/java-tasks/compare/v2.0.5...v2.0.6) (2021-10-20) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 ([#​545](https://www.togithub.com/googleapis/java-tasks/issues/545)) ([512ea1f](https://www.github.com/googleapis/java-tasks/commit/512ea1f093962ee51df8239ac5648eabfe9f46be)) ##### [2.0.5](https://www.github.com/googleapis/java-tasks/compare/v2.0.4...v2.0.5) (2021-09-22) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.3.0 ([#​531](https://www.togithub.com/googleapis/java-tasks/issues/531)) ([5cc9ef5](https://www.github.com/googleapis/java-tasks/commit/5cc9ef5aa2277c2b3c3c5839e15d6467f1858443)) ##### [2.0.4](https://www.github.com/googleapis/java-tasks/compare/v2.0.3...v2.0.4) (2021-09-14) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.1 ([#​524](https://www.togithub.com/googleapis/java-tasks/issues/524)) ([726e44d](https://www.github.com/googleapis/java-tasks/commit/726e44dea45842e7de25155b21555c9a029c8ab8)) ##### [2.0.3](https://www.github.com/googleapis/java-tasks/compare/v2.0.2...v2.0.3) (2021-09-01) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 ([#​508](https://www.togithub.com/googleapis/java-tasks/issues/508)) ([71af212](https://www.github.com/googleapis/java-tasks/commit/71af21219d5db0fd500df2a167b71d4179a7068a)) ##### [2.0.2](https://www.github.com/googleapis/java-tasks/compare/v2.0.1...v2.0.2) (2021-08-23) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.1.0 ([#​500](https://www.togithub.com/googleapis/java-tasks/issues/500)) ([0c77e5f](https://www.github.com/googleapis/java-tasks/commit/0c77e5ffe795da9057eb095167b386e88ae310b4)) ##### [2.0.1](https://www.github.com/googleapis/java-tasks/compare/v2.0.0...v2.0.1) (2021-08-12) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.0.1 ([#​491](https://www.togithub.com/googleapis/java-tasks/issues/491)) ([ff0640b](https://www.github.com/googleapis/java-tasks/commit/ff0640b7bae7ee46ebfd6f20226413875b08362b))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a3f537cd..d709b9e2 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.0.6 + 2.1.0 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.0.6' +implementation 'com.google.cloud:google-cloud-tasks:2.1.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.0.6" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.0" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index cfa88313..c93466a4 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.0.6 + 2.1.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 9a37e072..27b316f5 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.0.6 + 2.1.0 From a0569de62b7e767fc335a586c580ff6bdc79f761 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 7 Dec 2021 00:22:18 +0100 Subject: [PATCH 196/401] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.2.0 (#570) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | `1.0.23` -> `1.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/compatibility-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/confidence-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.2.0`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) ### [`v1.0.24`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/install-without-bom/pom.xml | 2 +- samples/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index c93466a4..4803da3a 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 diff --git a/samples/pom.xml b/samples/pom.xml index 172bb199..70c02dae 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -18,7 +18,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 27b316f5..58173230 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index aa812841..b5ec3146 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 From 94784b72837da2a553561ae30e2fe66301a6a839 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Tue, 7 Dec 2021 12:26:30 -0500 Subject: [PATCH 197/401] chore: make owlbot check required (#574) --- .github/sync-repo-settings.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index d2533fcc..60f0901b 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -16,6 +16,7 @@ branchProtectionRules: - units (11) - 'Kokoro - Test: Integration' - cla/google + - OwlBot Post Processor - pattern: java7 isAdminEnforced: true requiredApprovingReviewCount: 1 @@ -45,6 +46,7 @@ branchProtectionRules: - units (11) - 'Kokoro - Test: Integration' - cla/google + - OwlBot Post Processor permissionRules: - team: yoshi-admins permission: admin From e7a92bf42acdbac8ded1a02733483010825348c1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 28 Dec 2021 21:52:16 +0100 Subject: [PATCH 198/401] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.1 (#575) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.0.0` -> `24.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/compatibility-slim/24.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/confidence-slim/24.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index b5ec3146..7881f3f7 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.0.0 + 24.1.1 pom import From 56c991f0a25075df88558a6f47f8cc6b17956ede Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 6 Jan 2022 20:00:26 +0100 Subject: [PATCH 199/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.4 (#576) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.2` -> `1.2.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.4/compatibility-slim/1.2.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.4/confidence-slim/1.2.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.4`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​124-httpswwwgithubcomgoogleapisjava-shared-configcomparev123v124-2022-01-06) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.3...v1.2.4) ### [`v1.2.3`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​123-httpswwwgithubcomgoogleapisjava-shared-configcomparev122v123-2022-01-04) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.2...v1.2.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 01198013..5c2076a2 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.2 + 1.2.4 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index 14cd94c2..68115d70 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.2 + 1.2.4 From 3fb7a279fa91958c821641c31424e3751aaad715 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Jan 2022 16:06:26 +0100 Subject: [PATCH 200/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 (#578) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.5.1` -> `2.6.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.6.0/compatibility-slim/2.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.6.0/confidence-slim/2.5.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.6.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​260-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare251v260-2022-01-07) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.5.1...v2.6.0) ##### Bug Fixes - **java:** add -ntp flag to native image testing command ([#​1299](https://www.togithub.com/googleapis/java-shared-dependencies/issues/1299)) ([#​546](https://www.togithub.com/googleapis/java-shared-dependencies/issues/546)) ([d8bb8d9](https://www.github.com/googleapis/java-shared-dependencies/commit/d8bb8d9d8e3b8c582f768cd3164e8580ec334511)) - **java:** run Maven in plain console-friendly mode ([#​1301](https://www.togithub.com/googleapis/java-shared-dependencies/issues/1301)) ([#​557](https://www.togithub.com/googleapis/java-shared-dependencies/issues/557)) ([6b57d08](https://www.github.com/googleapis/java-shared-dependencies/commit/6b57d08816ec6c1dfb637cae022624e896930ad8)) ##### Dependencies - gRPC upgrade to 1.43.2 ([#​567](https://www.togithub.com/googleapis/java-shared-dependencies/issues/567)) ([c946655](https://www.github.com/googleapis/java-shared-dependencies/commit/c94665571f26d24fbbb3f89ef5a3db99663bfdba)) - update dependency com.google.api-client:google-api-client-bom to v1.33.0 ([#​563](https://www.togithub.com/googleapis/java-shared-dependencies/issues/563)) ([0aedddb](https://www.github.com/googleapis/java-shared-dependencies/commit/0aedddb9a535753767d56f5910f355c7a1c8509c)) - update dependency com.google.api:api-common to v2.1.2 ([2f154a3](https://www.github.com/googleapis/java-shared-dependencies/commit/2f154a3ff759211438c72859e98b314c7ff8405f)) - update dependency com.google.http-client:google-http-client-bom to v1.41.0 ([#​562](https://www.togithub.com/googleapis/java-shared-dependencies/issues/562)) ([6da0735](https://www.github.com/googleapis/java-shared-dependencies/commit/6da0735d4db9df998d11c549488a024b800bed65)) - update dependency io.grpc:grpc-bom to v1.43.1 ([#​553](https://www.togithub.com/googleapis/java-shared-dependencies/issues/553)) ([b787c8f](https://www.github.com/googleapis/java-shared-dependencies/commit/b787c8f2032b7ffc9797158c3ff214b7813f34b7)) - update dependency org.apache.httpcomponents:httpcore to v4.4.15 ([#​550](https://www.togithub.com/googleapis/java-shared-dependencies/issues/550)) ([e2d3dba](https://www.github.com/googleapis/java-shared-dependencies/commit/e2d3dbad6dd54c117abb5ab1b6137cfee4e5a32b)) - update dependency org.checkerframework:checker-qual to v3.20.0 ([#​549](https://www.togithub.com/googleapis/java-shared-dependencies/issues/549)) ([586df59](https://www.github.com/googleapis/java-shared-dependencies/commit/586df5949d4ddca11d0705d696882c32d8436c31)) - update gax.version to v2.8.0 ([#​564](https://www.togithub.com/googleapis/java-shared-dependencies/issues/564)) ([9ad5d4f](https://www.github.com/googleapis/java-shared-dependencies/commit/9ad5d4f5385753a0c5739ef400f5d346e3342b84)) - update gax.version to v2.8.1 ([2f154a3](https://www.github.com/googleapis/java-shared-dependencies/commit/2f154a3ff759211438c72859e98b314c7ff8405f)) - update google.common-protos.version to v2.7.1 ([#​561](https://www.togithub.com/googleapis/java-shared-dependencies/issues/561)) ([9aa860d](https://www.github.com/googleapis/java-shared-dependencies/commit/9aa860d92f745f1d4382eb16439bf17ac6ca8ae9)) - update google.core.version to v2.3.5 ([#​565](https://www.togithub.com/googleapis/java-shared-dependencies/issues/565)) ([2f154a3](https://www.github.com/googleapis/java-shared-dependencies/commit/2f154a3ff759211438c72859e98b314c7ff8405f)) - update iam.version to v1.2.0 ([#​547](https://www.togithub.com/googleapis/java-shared-dependencies/issues/547)) ([3232c82](https://www.github.com/googleapis/java-shared-dependencies/commit/3232c828b628cb604a200b3e569e56e758e5e11d)) - upgrading protobuf to 3.19.2 ([#​560](https://www.togithub.com/googleapis/java-shared-dependencies/issues/560)) ([7ef3325](https://www.github.com/googleapis/java-shared-dependencies/commit/7ef33250f5473348d3546210b7a534360f476101)) ##### [2.5.1](https://www.github.com/googleapis/java-shared-dependencies/compare/2.5.0...v2.5.1) (2021-12-03) ##### Dependencies - update dependency com.google.api:api-common to v2.1.1 ([#​533](https://www.togithub.com/googleapis/java-shared-dependencies/issues/533)) ([4e23adb](https://www.github.com/googleapis/java-shared-dependencies/commit/4e23adb666dfaa18ae8bf869aca030153de16d62)) - update gax.version to v2.7.1 ([#​544](https://www.togithub.com/googleapis/java-shared-dependencies/issues/544)) ([5a0c480](https://www.github.com/googleapis/java-shared-dependencies/commit/5a0c480671fa834e600edc6ac6fe77967d1b79b3)) - update google.common-protos.version to v2.7.0 ([#​542](https://www.togithub.com/googleapis/java-shared-dependencies/issues/542)) ([af97eb5](https://www.github.com/googleapis/java-shared-dependencies/commit/af97eb5d9cff397080fdb3d4a6dbf7c2692e0358)) - update google.core.version to v2.3.3 ([#​534](https://www.togithub.com/googleapis/java-shared-dependencies/issues/534)) ([885acef](https://www.github.com/googleapis/java-shared-dependencies/commit/885acefe4ff5313eb53dc43b4825ca597b97dcfd))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 68115d70..227ab2cf 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.5.1 + 2.6.0 pom import From 422cab914367682a5fbd9a6f54483599ab4afee9 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 7 Jan 2022 15:16:16 +0000 Subject: [PATCH 201/401] chore: release 2.1.1 (#579) :robot: I have created a release \*beep\* \*boop\* --- ### [2.1.1](https://www.github.com/googleapis/java-tasks/compare/v2.1.0...v2.1.1) (2022-01-07) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 ([#578](https://www.github.com/googleapis/java-tasks/issues/578)) ([3fb7a27](https://www.github.com/googleapis/java-tasks/commit/3fb7a279fa91958c821641c31424e3751aaad715)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c2ed485..e8d4cb5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [2.1.1](https://www.github.com/googleapis/java-tasks/compare/v2.1.0...v2.1.1) (2022-01-07) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 ([#578](https://www.github.com/googleapis/java-tasks/issues/578)) ([3fb7a27](https://www.github.com/googleapis/java-tasks/commit/3fb7a279fa91958c821641c31424e3751aaad715)) + ## [2.1.0](https://www.github.com/googleapis/java-tasks/compare/v2.0.6...v2.1.0) (2021-12-03) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 5c2076a2..b52cc27a 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.1-SNAPSHOT + 2.1.1 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.1-SNAPSHOT + 2.1.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.1-SNAPSHOT + 0.91.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.1-SNAPSHOT + 0.91.1 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.1-SNAPSHOT + 2.1.1 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.1-SNAPSHOT + 0.91.1 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.1-SNAPSHOT + 0.91.1 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.1-SNAPSHOT + 2.1.1
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 7e89a0b1..01436814 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.1-SNAPSHOT + 2.1.1 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.1-SNAPSHOT + 2.1.1 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 7c46538f..9090615e 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.1-SNAPSHOT + 2.1.1 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.1-SNAPSHOT + 2.1.1 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index efcd42c0..9643f0a1 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.1-SNAPSHOT + 0.91.1 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.1-SNAPSHOT + 2.1.1 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 5df01b77..fad7ec0a 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.1-SNAPSHOT + 0.91.1 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.1-SNAPSHOT + 2.1.1 diff --git a/pom.xml b/pom.xml index 227ab2cf..a4993f23 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.1-SNAPSHOT + 2.1.1 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.1-SNAPSHOT + 0.91.1 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.1-SNAPSHOT + 0.91.1 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.1-SNAPSHOT + 2.1.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.1-SNAPSHOT + 0.91.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.1-SNAPSHOT + 0.91.1 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.1-SNAPSHOT + 2.1.1 com.google.cloud google-cloud-tasks - 2.1.1-SNAPSHOT + 2.1.1 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 3e675a27..5fd00f1b 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.1-SNAPSHOT + 2.1.1 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.1-SNAPSHOT + 2.1.1 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 951b6df8..8d485559 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.1-SNAPSHOT + 0.91.1 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.1-SNAPSHOT + 2.1.1 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 45a23cda..57356f7e 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.1-SNAPSHOT + 0.91.1 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.1-SNAPSHOT + 2.1.1 diff --git a/versions.txt b/versions.txt index f12c10bc..89cc4e86 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.0:2.1.1-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.91.0:0.91.1-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.91.0:0.91.1-SNAPSHOT -grpc-google-cloud-tasks-v2:2.1.0:2.1.1-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.91.0:0.91.1-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.91.0:0.91.1-SNAPSHOT -proto-google-cloud-tasks-v2:2.1.0:2.1.1-SNAPSHOT +google-cloud-tasks:2.1.1:2.1.1 +grpc-google-cloud-tasks-v2beta3:0.91.1:0.91.1 +grpc-google-cloud-tasks-v2beta2:0.91.1:0.91.1 +grpc-google-cloud-tasks-v2:2.1.1:2.1.1 +proto-google-cloud-tasks-v2beta3:0.91.1:0.91.1 +proto-google-cloud-tasks-v2beta2:0.91.1:0.91.1 +proto-google-cloud-tasks-v2:2.1.1:2.1.1 From 4ab726d23bd4fbf8e7d274542b16d05ced3283b0 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 7 Jan 2022 15:26:24 +0000 Subject: [PATCH 202/401] chore: release 2.1.2-SNAPSHOT (#580) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index b52cc27a..9909fa2b 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.1 + 2.1.2-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.1 + 2.1.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.1 + 0.91.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.1 + 0.91.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.1 + 2.1.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.1 + 0.91.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.1 + 0.91.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.1 + 2.1.2-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 01436814..a9b8e4af 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.1 + 2.1.2-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.1 + 2.1.2-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 9090615e..90988b0f 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.1 + 2.1.2-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.1 + 2.1.2-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 9643f0a1..e44e7aed 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.1 + 0.91.2-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.1 + 2.1.2-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index fad7ec0a..04f306d5 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.1 + 0.91.2-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.1 + 2.1.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index a4993f23..447c761f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.1 + 2.1.2-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.1 + 0.91.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.1 + 0.91.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.1 + 2.1.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.1 + 0.91.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.1 + 0.91.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.1 + 2.1.2-SNAPSHOT com.google.cloud google-cloud-tasks - 2.1.1 + 2.1.2-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 5fd00f1b..bb2d391f 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.1 + 2.1.2-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.1 + 2.1.2-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 8d485559..cf96d256 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.1 + 0.91.2-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.1 + 2.1.2-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 57356f7e..5075aca8 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.1 + 0.91.2-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.1 + 2.1.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index 89cc4e86..546bff02 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.1:2.1.1 -grpc-google-cloud-tasks-v2beta3:0.91.1:0.91.1 -grpc-google-cloud-tasks-v2beta2:0.91.1:0.91.1 -grpc-google-cloud-tasks-v2:2.1.1:2.1.1 -proto-google-cloud-tasks-v2beta3:0.91.1:0.91.1 -proto-google-cloud-tasks-v2beta2:0.91.1:0.91.1 -proto-google-cloud-tasks-v2:2.1.1:2.1.1 +google-cloud-tasks:2.1.1:2.1.2-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.91.1:0.91.2-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.91.1:0.91.2-SNAPSHOT +grpc-google-cloud-tasks-v2:2.1.1:2.1.2-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.91.1:0.91.2-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.91.1:0.91.2-SNAPSHOT +proto-google-cloud-tasks-v2:2.1.1:2.1.2-SNAPSHOT From 314fbe52d25e992828949169228183180a47a3a0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Jan 2022 18:18:23 +0100 Subject: [PATCH 203/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.1.1 (#581) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.1.0` -> `2.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.1/compatibility-slim/2.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.1/confidence-slim/2.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-tasks ### [`v2.1.1`](https://togithub.com/googleapis/java-tasks/blob/HEAD/CHANGELOG.md#​211-httpswwwgithubcomgoogleapisjava-taskscomparev210v211-2022-01-07) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v2.1.0...v2.1.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d709b9e2..4a2d2870 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.1.0 + 2.1.1 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.1.0' +implementation 'com.google.cloud:google-cloud-tasks:2.1.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.1" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 4803da3a..1f8984ac 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.1.0 + 2.1.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 58173230..d7c4f8d8 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.1.0 + 2.1.1 From d7038cb3e67c0c29d3f54b7215848d72b9de2ec5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Jan 2022 18:26:27 +0100 Subject: [PATCH 204/401] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.2 (#577) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.1` -> `24.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/compatibility-slim/24.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/confidence-slim/24.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 7881f3f7..996992a5 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.1 + 24.1.2 pom import From bbd45ad8d3c4ed7c0923c6b0218a700b4c853dca Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Mon, 10 Jan 2022 20:08:27 -0500 Subject: [PATCH 205/401] chore: change name to api_shortname in .repo-metadata.json (#583) --- .repo-metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.repo-metadata.json b/.repo-metadata.json index b99232c9..b8797790 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -1,5 +1,5 @@ { - "name": "cloudtasks", + "api_shortname": "cloudtasks", "name_pretty": "Cloud Tasks", "product_documentation": "https://cloud.google.com/tasks/docs/", "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-tasks/latest/history", From eed777890ade47770841ac018833e2a829dbf0db Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 11 Jan 2022 19:02:21 +0000 Subject: [PATCH 206/401] chore(java): update variable name to api_shortname in README template (#1323) (#584) --- .github/.OwlBot.lock.yaml | 2 +- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 88d9b926..dddb13b8 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:5b8c790f57cca57e6b37ba25f79291265c218cea3e6ba9714b001910ab3f1419 + digest: sha256:7f737996c88586c499f7b0c25294c760f9f5eec092289a0e08d2d3f42a069ebb diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 5e7632b8..f3b68fdf 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -21,7 +21,7 @@ If you are still having issues, please include as much information as possible: General, Core, and Other are also allowed as types 2. OS type and version: 3. Java version: -4. cloudtasks version(s): +4. version(s): #### Steps to reproduce From a2be1f37fe6740f6c790e83118cf5d9c6ade988d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 12 Jan 2022 18:16:29 +0100 Subject: [PATCH 207/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.5 (#585) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.4` -> `1.2.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.5/compatibility-slim/1.2.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.5/confidence-slim/1.2.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.5`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​125-httpsgithubcomgoogleapisjava-shared-configcomparev124v125-2022-01-11) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.4...v1.2.5)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 9909fa2b..2b6d6927 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.4 + 1.2.5 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index 447c761f..a533654f 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.4 + 1.2.5 From ad2f4d568ef387517bc58892cbeccba55fd47918 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 12 Jan 2022 18:17:28 +0100 Subject: [PATCH 208/401] chore(deps): update dependency com.google.cloud:libraries-bom to v24.2.0 (#586) --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 996992a5..ca57a7ca 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.2 + 24.2.0 pom import From eb61cfe4812d97b8b67a4c473e52d12b230dee79 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 13 Jan 2022 17:44:12 -0500 Subject: [PATCH 209/401] chore: update release-level in .repo-metadata.json (#588) --- .repo-metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.repo-metadata.json b/.repo-metadata.json index b8797790..f0fa6387 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -4,7 +4,7 @@ "product_documentation": "https://cloud.google.com/tasks/docs/", "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-tasks/latest/history", "issue_tracker": "https://issuetracker.google.com/savedsearches/5433985", - "release_level": "ga", + "release_level": "stable", "language": "java", "repo": "googleapis/java-tasks", "repo_short": "java-tasks", From cf58e53ee63ccd419eda8aa7f80a8d2efb0702e6 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 17 Jan 2022 21:28:17 +0000 Subject: [PATCH 210/401] chore(java): update release_type choices to stable and preview (#1331) (#589) --- .github/.OwlBot.lock.yaml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index dddb13b8..dcdda8c6 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:7f737996c88586c499f7b0c25294c760f9f5eec092289a0e08d2d3f42a069ebb + digest: sha256:9669c169d0582f13d6b2d319a43a78fc49f296a883aa48519bd0e5c7d34087c4 diff --git a/README.md b/README.md index 4a2d2870..40ebfb80 100644 --- a/README.md +++ b/README.md @@ -182,7 +182,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-4]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-tasks/java8-win.html [kokoro-badge-image-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-tasks/java11.svg [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-tasks/java11.html -[stability-image]: https://img.shields.io/badge/stability-ga-green +[stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-tasks.svg [maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-tasks&core=gav [authentication]: https://github.com/googleapis/google-cloud-java#authentication From b50dd28bfa1eae1b14f895687f8d01130484dbb1 Mon Sep 17 00:00:00 2001 From: Dina Graves Portman Date: Wed, 19 Jan 2022 20:21:03 -0500 Subject: [PATCH 211/401] chore: add codeowners (#590) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: add codeowners * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .github/CODEOWNERS | 4 +++- .repo-metadata.json | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 30fdb7b9..5f9903d5 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -4,7 +4,9 @@ # For syntax help see: # https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax -* @googleapis/yoshi-java +# The @googleapis/aap-dpes is the default owner for changes in this repo +* @googleapis/yoshi-java @googleapis/aap-dpes +**/*.java @googleapis/aap-dpes # The java-samples-reviewers team is the default owner for samples changes samples/**/*.java @googleapis/java-samples-reviewers diff --git a/.repo-metadata.json b/.repo-metadata.json index f0fa6387..287f9035 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -13,5 +13,6 @@ "transport": "grpc", "requires_billing": true, "api_description": "a fully managed service that allows you to manage the execution, dispatch and delivery of a large number of distributed tasks. You can asynchronously perform work outside of a user request. Your tasks can be executed on App Engine or any arbitrary HTTP endpoint.", - "library_type": "GAPIC_AUTO" + "library_type": "GAPIC_AUTO", + "codeowner_team": "@googleapis/aap-dpes" } From a91bbaa5350034eb5ed0ff31254663bfac09b3cb Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 20 Jan 2022 20:36:51 +0100 Subject: [PATCH 212/401] build(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.3.0 (#582) --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 1f8984ac..7e4a5298 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -53,7 +53,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.2.0 + 3.3.0 add-snippets-source diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index d7c4f8d8..e6f2d384 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -52,7 +52,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.2.0 + 3.3.0 add-snippets-source From 40df3b03879b40401705a10579c6ce7c68585b8c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 21 Jan 2022 21:30:23 +0100 Subject: [PATCH 213/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.6 (#591) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.5` -> `1.2.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.6/compatibility-slim/1.2.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.6/confidence-slim/1.2.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.6`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​126-httpsgithubcomgoogleapisjava-shared-configcomparev125v126-2022-01-19) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.5...v1.2.6)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 2b6d6927..a658d403 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.5 + 1.2.6 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index a533654f..4402476a 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.5 + 1.2.6 From 2642324fe92c62cc1310782795d655b1d3156b18 Mon Sep 17 00:00:00 2001 From: Averi Kitsch Date: Thu, 27 Jan 2022 12:05:55 -0800 Subject: [PATCH 214/401] chore: remove dep dashboard (#592) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: remove dep dashboard * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot From 8f0bc358362fa7f59cc429e1db4a8d8ebb960c1f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 1 Feb 2022 04:44:22 +0100 Subject: [PATCH 215/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 (#595) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.6.0` -> `2.7.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.7.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.7.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.7.0/compatibility-slim/2.6.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.7.0/confidence-slim/2.6.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.7.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​270-httpsgithubcomgoogleapisjava-shared-dependenciescomparev260v270-2022-01-28) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.6.0...v2.7.0) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.13.1 ([#​555](https://togithub.com/googleapis/java-shared-dependencies/issues/555)) ([67b5663](https://togithub.com/googleapis/java-shared-dependencies/commit/67b56635509215fd132b2ffbcaed995a6de93879)) - update dependency com.google.api-client:google-api-client-bom to v1.33.1 ([#​580](https://togithub.com/googleapis/java-shared-dependencies/issues/580)) ([895dba2](https://togithub.com/googleapis/java-shared-dependencies/commit/895dba2afef6c295b0e21a4ccd27feee1b6af8e2)) - update dependency com.google.api:api-common to v2.1.3 ([#​587](https://togithub.com/googleapis/java-shared-dependencies/issues/587)) ([5dbbce8](https://togithub.com/googleapis/java-shared-dependencies/commit/5dbbce80baa045818757912e6db4f222c12b75f6)) - update dependency com.google.auth:google-auth-library-bom to v1.4.0 ([#​578](https://togithub.com/googleapis/java-shared-dependencies/issues/578)) ([c274c62](https://togithub.com/googleapis/java-shared-dependencies/commit/c274c62905192bcc48c82104bf50cbeaa1894c2b)) - update dependency com.google.errorprone:error_prone_annotations to v2.11.0 ([#​582](https://togithub.com/googleapis/java-shared-dependencies/issues/582)) ([314da38](https://togithub.com/googleapis/java-shared-dependencies/commit/314da38c9f12cf425b5d1be8297e9f2a78d13948)) - update dependency com.google.http-client:google-http-client-bom to v1.41.2 ([#​579](https://togithub.com/googleapis/java-shared-dependencies/issues/579)) ([c8df06d](https://togithub.com/googleapis/java-shared-dependencies/commit/c8df06ddb3f4a975e928bbdd9dfae293e81efa39)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.0 ([#​576](https://togithub.com/googleapis/java-shared-dependencies/issues/576)) ([3315988](https://togithub.com/googleapis/java-shared-dependencies/commit/3315988059ca0223f078b0f760960674bfa8c04a)) - update dependency com.google.protobuf:protobuf-bom to v3.19.3 ([#​571](https://togithub.com/googleapis/java-shared-dependencies/issues/571)) ([c1931e1](https://togithub.com/googleapis/java-shared-dependencies/commit/c1931e1c4611ca3d1e2afac1c9e983cf1ec4a7de)) - update dependency io.grpc:grpc-bom to v1.44.0 ([#​586](https://togithub.com/googleapis/java-shared-dependencies/issues/586)) ([52c47b7](https://togithub.com/googleapis/java-shared-dependencies/commit/52c47b7425af438ba1a82dac87f9002353a6a87a)) - update dependency org.checkerframework:checker-qual to v3.21.1 ([#​554](https://togithub.com/googleapis/java-shared-dependencies/issues/554)) ([81bbb91](https://togithub.com/googleapis/java-shared-dependencies/commit/81bbb91774ab67161371bfd0dfd143de89dee4c9)) - update gax.version to v2.11.0 ([#​581](https://togithub.com/googleapis/java-shared-dependencies/issues/581)) ([1899612](https://togithub.com/googleapis/java-shared-dependencies/commit/189961226f84cdd4e283780d2c7d4a4dffc3e00c)) - update gax.version to v2.9.0 ([#​573](https://togithub.com/googleapis/java-shared-dependencies/issues/573)) ([ee5e38e](https://togithub.com/googleapis/java-shared-dependencies/commit/ee5e38efea574eeb2b5803192da98ba1ce1c8e6e)) - update google.common-protos.version to v2.7.2 ([#​588](https://togithub.com/googleapis/java-shared-dependencies/issues/588)) ([caac0e6](https://togithub.com/googleapis/java-shared-dependencies/commit/caac0e68e336b801becb6322b5b81fce1824ad8a)) - update google.core.version to v2.4.0 ([#​589](https://togithub.com/googleapis/java-shared-dependencies/issues/589)) ([6a292e3](https://togithub.com/googleapis/java-shared-dependencies/commit/6a292e3530a06d6b228f3154ed4e979ef68d7aeb)) - update iam.version to v1.2.1 ([#​569](https://togithub.com/googleapis/java-shared-dependencies/issues/569)) ([62dd270](https://togithub.com/googleapis/java-shared-dependencies/commit/62dd2705b257c4bb539bfe619234f38d0e13b138)) - update opencensus.version to v0.30.0 ([#​552](https://togithub.com/googleapis/java-shared-dependencies/issues/552)) ([ebae62e](https://togithub.com/googleapis/java-shared-dependencies/commit/ebae62eca75234db4fd571f42b8ed0f6ce1bd1f7)) - update opencensus.version to v0.31.0 ([#​585](https://togithub.com/googleapis/java-shared-dependencies/issues/585)) ([021b066](https://togithub.com/googleapis/java-shared-dependencies/commit/021b066a833af1629c89fcca593d16b9786ee0bf))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 4402476a..dd90a6b1 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.6.0 + 2.7.0 pom import From 52e8950d1cd694b47776c7cfd3ec17aa769f0729 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 1 Feb 2022 12:18:13 -0500 Subject: [PATCH 216/401] deps(java): update actions/github-script action to v5 (#1339) (#593) Source-Link: https://github.com/googleapis/synthtool/commit/466412a75d636d69bcf8a42d9a5f956e73ac421d Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:7062473f423f339256346ddbee3d81fb1de6b784fabc2a4d959d7df2c720e375 Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 15 ++++++++++++++- .github/workflows/approve-readme.yaml | 2 +- .github/workflows/auto-release.yaml | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index dcdda8c6..be3b9bde 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,16 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:9669c169d0582f13d6b2d319a43a78fc49f296a883aa48519bd0e5c7d34087c4 + digest: sha256:7062473f423f339256346ddbee3d81fb1de6b784fabc2a4d959d7df2c720e375 diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml index 7513acae..c5132427 100644 --- a/.github/workflows/approve-readme.yaml +++ b/.github/workflows/approve-readme.yaml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' steps: - - uses: actions/github-script@v3 + - uses: actions/github-script@v5 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} script: | diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 9b4fd4d8..59c7cadd 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest if: contains(github.head_ref, 'release-please') steps: - - uses: actions/github-script@v3 + - uses: actions/github-script@v5 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} debug: true From c392f5e4e7ac5781c23a784755f2126225aa61a5 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 19:52:58 +0000 Subject: [PATCH 217/401] chore: add kokoro config to run nightly integration test on java11.0.14 (#1347) (#597) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/nightly/java11-integration.cfg | 37 ++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .kokoro/nightly/java11-integration.cfg diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index be3b9bde..8807efca 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:7062473f423f339256346ddbee3d81fb1de6b784fabc2a4d959d7df2c720e375 + digest: sha256:7c853edc4136ae8f19f9d46d4569d38de2e446db2eea057f32e412bdba255846 diff --git a/.kokoro/nightly/java11-integration.cfg b/.kokoro/nightly/java11-integration.cfg new file mode 100644 index 00000000..58049cc3 --- /dev/null +++ b/.kokoro/nightly/java11-integration.cfg @@ -0,0 +1,37 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-public-resources/java11014" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "ENABLE_FLAKYBOT" + value: "true" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +} From 8b88a6ec2a5e8485487253e283d286a04b1f5ef4 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 21:14:41 +0000 Subject: [PATCH 218/401] chore(main): release 2.1.2 (#596) :robot: I have created a release *beep* *boop* --- ### [2.1.2](https://github.com/googleapis/java-tasks/compare/v2.1.1...v2.1.2) (2022-02-03) ### Dependencies * **java:** update actions/github-script action to v5 ([#1339](https://github.com/googleapis/java-tasks/issues/1339)) ([#593](https://github.com/googleapis/java-tasks/issues/593)) ([52e8950](https://github.com/googleapis/java-tasks/commit/52e8950d1cd694b47776c7cfd3ec17aa769f0729)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 ([#595](https://github.com/googleapis/java-tasks/issues/595)) ([8f0bc35](https://github.com/googleapis/java-tasks/commit/8f0bc358362fa7f59cc429e1db4a8d8ebb960c1f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 8 ++++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 45 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8d4cb5a..4a798e84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### [2.1.2](https://github.com/googleapis/java-tasks/compare/v2.1.1...v2.1.2) (2022-02-03) + + +### Dependencies + +* **java:** update actions/github-script action to v5 ([#1339](https://github.com/googleapis/java-tasks/issues/1339)) ([#593](https://github.com/googleapis/java-tasks/issues/593)) ([52e8950](https://github.com/googleapis/java-tasks/commit/52e8950d1cd694b47776c7cfd3ec17aa769f0729)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 ([#595](https://github.com/googleapis/java-tasks/issues/595)) ([8f0bc35](https://github.com/googleapis/java-tasks/commit/8f0bc358362fa7f59cc429e1db4a8d8ebb960c1f)) + ### [2.1.1](https://www.github.com/googleapis/java-tasks/compare/v2.1.0...v2.1.1) (2022-01-07) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index a658d403..b976d01b 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.2-SNAPSHOT + 2.1.2 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.2-SNAPSHOT + 2.1.2 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.2-SNAPSHOT + 0.91.2 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.2-SNAPSHOT + 0.91.2 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.2-SNAPSHOT + 2.1.2 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.2-SNAPSHOT + 0.91.2 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.2-SNAPSHOT + 0.91.2 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.2-SNAPSHOT + 2.1.2
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index a9b8e4af..7eab43c9 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.2-SNAPSHOT + 2.1.2 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.2-SNAPSHOT + 2.1.2 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 90988b0f..cff93cb7 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.2-SNAPSHOT + 2.1.2 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.2-SNAPSHOT + 2.1.2 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index e44e7aed..00c10ab0 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.2-SNAPSHOT + 0.91.2 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.2-SNAPSHOT + 2.1.2 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 04f306d5..90b3b679 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.2-SNAPSHOT + 0.91.2 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.2-SNAPSHOT + 2.1.2 diff --git a/pom.xml b/pom.xml index dd90a6b1..1b71c66c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.2-SNAPSHOT + 2.1.2 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.2-SNAPSHOT + 0.91.2 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.2-SNAPSHOT + 0.91.2 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.2-SNAPSHOT + 2.1.2 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.2-SNAPSHOT + 0.91.2 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.2-SNAPSHOT + 0.91.2 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.2-SNAPSHOT + 2.1.2 com.google.cloud google-cloud-tasks - 2.1.2-SNAPSHOT + 2.1.2 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index bb2d391f..99e60888 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.2-SNAPSHOT + 2.1.2 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.2-SNAPSHOT + 2.1.2 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index cf96d256..587ddcd4 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.2-SNAPSHOT + 0.91.2 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.2-SNAPSHOT + 2.1.2 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 5075aca8..c1a9e269 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.2-SNAPSHOT + 0.91.2 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.2-SNAPSHOT + 2.1.2 diff --git a/versions.txt b/versions.txt index 546bff02..98964ecd 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.1:2.1.2-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.91.1:0.91.2-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.91.1:0.91.2-SNAPSHOT -grpc-google-cloud-tasks-v2:2.1.1:2.1.2-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.91.1:0.91.2-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.91.1:0.91.2-SNAPSHOT -proto-google-cloud-tasks-v2:2.1.1:2.1.2-SNAPSHOT +google-cloud-tasks:2.1.2:2.1.2 +grpc-google-cloud-tasks-v2beta3:0.91.2:0.91.2 +grpc-google-cloud-tasks-v2beta2:0.91.2:0.91.2 +grpc-google-cloud-tasks-v2:2.1.2:2.1.2 +proto-google-cloud-tasks-v2beta3:0.91.2:0.91.2 +proto-google-cloud-tasks-v2beta2:0.91.2:0.91.2 +proto-google-cloud-tasks-v2:2.1.2:2.1.2 From 704b1351acaa6c05602297d35b0a48e2b4c1aa7e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 4 Feb 2022 01:32:45 +0000 Subject: [PATCH 219/401] chore(main): release 2.1.3-SNAPSHOT (#598) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index b976d01b..7a1a8894 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.2 + 2.1.3-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.2 + 2.1.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.2 + 0.91.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.2 + 0.91.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.2 + 2.1.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.2 + 0.91.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.2 + 0.91.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.2 + 2.1.3-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 7eab43c9..85ebbe99 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.2 + 2.1.3-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.2 + 2.1.3-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index cff93cb7..fd2ac1f5 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.2 + 2.1.3-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.2 + 2.1.3-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 00c10ab0..5f840c8e 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.2 + 0.91.3-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.2 + 2.1.3-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 90b3b679..e26e8ea7 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.2 + 0.91.3-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.2 + 2.1.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index 1b71c66c..6e696c99 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.2 + 2.1.3-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.2 + 0.91.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.2 + 0.91.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.2 + 2.1.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.2 + 0.91.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.2 + 0.91.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.2 + 2.1.3-SNAPSHOT com.google.cloud google-cloud-tasks - 2.1.2 + 2.1.3-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 99e60888..815915b1 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.2 + 2.1.3-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.2 + 2.1.3-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 587ddcd4..b8285827 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.2 + 0.91.3-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.2 + 2.1.3-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index c1a9e269..ebefc66b 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.2 + 0.91.3-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.2 + 2.1.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index 98964ecd..a93c997b 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.2:2.1.2 -grpc-google-cloud-tasks-v2beta3:0.91.2:0.91.2 -grpc-google-cloud-tasks-v2beta2:0.91.2:0.91.2 -grpc-google-cloud-tasks-v2:2.1.2:2.1.2 -proto-google-cloud-tasks-v2beta3:0.91.2:0.91.2 -proto-google-cloud-tasks-v2beta2:0.91.2:0.91.2 -proto-google-cloud-tasks-v2:2.1.2:2.1.2 +google-cloud-tasks:2.1.2:2.1.3-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.91.2:0.91.3-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.91.2:0.91.3-SNAPSHOT +grpc-google-cloud-tasks-v2:2.1.2:2.1.3-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.91.2:0.91.3-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.91.2:0.91.3-SNAPSHOT +proto-google-cloud-tasks-v2:2.1.2:2.1.3-SNAPSHOT From 7517531a5ba6453a49fa98da4a17831c5f55c040 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 7 Feb 2022 22:10:51 +0000 Subject: [PATCH 220/401] chore: enable auto release in java (#1349) (#601) * chore: fix auto-release * chore: remove codecov.yml * chore: update license headers for yaml files Source-Link: https://github.com/googleapis/synthtool/commit/5b777277a01a93e7f10c9279521e807b934e78d4 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:ebc2104854c5b81c6fd72ca79400a2e20e0d510c5e0654fd1a19e5c9be160ca6 --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/approve-readme.yaml | 15 +++++++++++++++ .github/workflows/auto-release.yaml | 19 +++++++++++++++++-- .github/workflows/ci.yaml | 15 +++++++++++++++ .github/workflows/samples.yaml | 15 +++++++++++++++ .kokoro/build.bat | 15 +++++++++++++++ README.md | 6 +++--- 7 files changed, 81 insertions(+), 6 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 8807efca..a8ddd81a 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:7c853edc4136ae8f19f9d46d4569d38de2e446db2eea057f32e412bdba255846 + digest: sha256:ebc2104854c5b81c6fd72ca79400a2e20e0d510c5e0654fd1a19e5c9be160ca6 diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml index c5132427..1bb18232 100644 --- a/.github/workflows/approve-readme.yaml +++ b/.github/workflows/approve-readme.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: pull_request: name: auto-merge-readme diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 59c7cadd..2ba3082b 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: pull_request: name: auto-release @@ -16,8 +31,8 @@ jobs: return; } - // only approve PRs like "chore: release " - if ( !context.payload.pull_request.title.startsWith("chore: release") ) { + // only approve PRs like "chore(main): release " + if ( !context.payload.pull_request.title.startsWith("chore(main): release") ) { return; } diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 05de1f60..6b5e56aa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: push: branches: diff --git a/.github/workflows/samples.yaml b/.github/workflows/samples.yaml index c46230a7..d5d964df 100644 --- a/.github/workflows/samples.yaml +++ b/.github/workflows/samples.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: pull_request: name: samples diff --git a/.kokoro/build.bat b/.kokoro/build.bat index 05826ad9..cc602c9e 100644 --- a/.kokoro/build.bat +++ b/.kokoro/build.bat @@ -1,3 +1,18 @@ :: See documentation in type-shell-output.bat +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. "C:\Program Files\Git\bin\bash.exe" %~dp0build.sh diff --git a/README.md b/README.md index 40ebfb80..f1c5fe33 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.1.1 + 2.1.2 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.1.1' +implementation 'com.google.cloud:google-cloud-tasks:2.1.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.1" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.2" ``` ## Authentication From 58e68bf877414183160d3c813487eb06138a73ad Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 8 Feb 2022 00:56:49 +0000 Subject: [PATCH 221/401] chore: update auto-release script to fix breaking changes in v5 (#1350) (#602) Source-Link: https://github.com/googleapis/synthtool/commit/53a58c23eb4decb3a17fab07388d42799e158b5f Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:3c950ed12391ebaffd1ee66d0374766a1c50144ebe6a7a0042300b2e6bb5856b --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/auto-release.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index a8ddd81a..9786771c 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:ebc2104854c5b81c6fd72ca79400a2e20e0d510c5e0654fd1a19e5c9be160ca6 + digest: sha256:3c950ed12391ebaffd1ee66d0374766a1c50144ebe6a7a0042300b2e6bb5856b diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 2ba3082b..18e23230 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -37,7 +37,7 @@ jobs: } // only approve PRs with pom.xml and versions.txt changes - const filesPromise = github.pulls.listFiles.endpoint({ + const filesPromise = github.rest.pulls.listFiles.endpoint({ owner: context.repo.owner, repo: context.repo.repo, pull_number: context.payload.pull_request.number, @@ -69,7 +69,7 @@ jobs: return; } - const promise = github.pulls.list.endpoint({ + const promise = github.rest.pulls.list.endpoint({ owner: context.repo.owner, repo: context.repo.repo, state: 'open' @@ -86,7 +86,7 @@ jobs: } // approve release PR - await github.pulls.createReview({ + await github.rest.pulls.createReview({ owner: context.repo.owner, repo: context.repo.repo, body: 'Rubber stamped release!', @@ -95,7 +95,7 @@ jobs: }); // attach kokoro:force-run and automerge labels - await github.issues.addLabels({ + await github.rest.issues.addLabels({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.payload.pull_request.number, From c6f2a71ab54bf9e2c2147436fe2d8a27c621708f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Feb 2022 18:28:59 +0100 Subject: [PATCH 222/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.7 (#603) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.6` -> `1.2.7` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.7/compatibility-slim/1.2.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.7/confidence-slim/1.2.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.7`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​127-httpsgithubcomgoogleapisjava-shared-configcomparev126v127-2022-02-04) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.6...v1.2.7)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 7a1a8894..ec030a46 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.6 + 1.2.7 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index 6e696c99..4051bba5 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.6 + 1.2.7 From babd05fa7a24f72b769ebbe9999ef595e9397241 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Feb 2022 22:58:54 +0100 Subject: [PATCH 223/401] chore(deps): update dependency com.google.cloud:libraries-bom to v24.3.0 (#604) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.2.0` -> `24.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/compatibility-slim/24.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/confidence-slim/24.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index ca57a7ca..01715b0e 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.2.0 + 24.3.0 pom import From 225089bea76e2ebd01dbde1e52a1f1917d1d80be Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Feb 2022 20:51:01 +0100 Subject: [PATCH 224/401] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.2.1 (#600) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.2.1 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 4051bba5..ff7e2028 100644 --- a/pom.xml +++ b/pom.xml @@ -144,7 +144,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.1.2 + 3.2.1 From 843c846162493db621c9bf5ec13c5ab95eef8445 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Feb 2022 20:51:17 +0100 Subject: [PATCH 225/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.1.2 (#599) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.1.2 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 7e4a5298..8aba41d0 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.1.1 + 2.1.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e6f2d384..070a97af 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.1.1 + 2.1.2 From bfd2efa35b72a889555e794e967fb6cbe2d59a76 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 11 Feb 2022 22:35:02 +0100 Subject: [PATCH 226/401] deps: update actions/github-script action to v6 (#608) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/github-script](https://togithub.com/actions/github-script) | action | major | `v5` -> `v6` | --- ### Release Notes
actions/github-script ### [`v6`](https://togithub.com/actions/github-script/compare/v5...v6) [Compare Source](https://togithub.com/actions/github-script/compare/v5...v6)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). From 6bc5a1fc7ba8e15bb21f1fa7e1c9dac7692fd1a5 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 11 Feb 2022 21:54:59 +0000 Subject: [PATCH 227/401] chore(main): release 2.1.3 (#609) :robot: I have created a release *beep* *boop* --- ### [2.1.3](https://github.com/googleapis/java-tasks/compare/v2.1.2...v2.1.3) (2022-02-11) ### Dependencies * update actions/github-script action to v6 ([#608](https://github.com/googleapis/java-tasks/issues/608)) ([bfd2efa](https://github.com/googleapis/java-tasks/commit/bfd2efa35b72a889555e794e967fb6cbe2d59a76)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a798e84..4fb6383c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [2.1.3](https://github.com/googleapis/java-tasks/compare/v2.1.2...v2.1.3) (2022-02-11) + + +### Dependencies + +* update actions/github-script action to v6 ([#608](https://github.com/googleapis/java-tasks/issues/608)) ([bfd2efa](https://github.com/googleapis/java-tasks/commit/bfd2efa35b72a889555e794e967fb6cbe2d59a76)) + ### [2.1.2](https://github.com/googleapis/java-tasks/compare/v2.1.1...v2.1.2) (2022-02-03) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index ec030a46..1ffc248c 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.3-SNAPSHOT + 2.1.3 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.3-SNAPSHOT + 2.1.3 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.3-SNAPSHOT + 0.91.3 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.3-SNAPSHOT + 0.91.3 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.3-SNAPSHOT + 2.1.3 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.3-SNAPSHOT + 0.91.3 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.3-SNAPSHOT + 0.91.3 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.3-SNAPSHOT + 2.1.3
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 85ebbe99..06a6a8af 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.3-SNAPSHOT + 2.1.3 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.3-SNAPSHOT + 2.1.3 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index fd2ac1f5..20c9cc62 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.3-SNAPSHOT + 2.1.3 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.3-SNAPSHOT + 2.1.3 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 5f840c8e..f872c712 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.3-SNAPSHOT + 0.91.3 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.3-SNAPSHOT + 2.1.3 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index e26e8ea7..31912891 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.3-SNAPSHOT + 0.91.3 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.3-SNAPSHOT + 2.1.3 diff --git a/pom.xml b/pom.xml index ff7e2028..ef47c863 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.3-SNAPSHOT + 2.1.3 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.3-SNAPSHOT + 0.91.3 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.3-SNAPSHOT + 0.91.3 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.3-SNAPSHOT + 2.1.3 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.3-SNAPSHOT + 0.91.3 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.3-SNAPSHOT + 0.91.3 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.3-SNAPSHOT + 2.1.3 com.google.cloud google-cloud-tasks - 2.1.3-SNAPSHOT + 2.1.3 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 815915b1..97232373 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.3-SNAPSHOT + 2.1.3 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.3-SNAPSHOT + 2.1.3 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index b8285827..3f1edb8f 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.3-SNAPSHOT + 0.91.3 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.3-SNAPSHOT + 2.1.3 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index ebefc66b..7b378a1c 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.3-SNAPSHOT + 0.91.3 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.3-SNAPSHOT + 2.1.3 diff --git a/versions.txt b/versions.txt index a93c997b..1e576446 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.2:2.1.3-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.91.2:0.91.3-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.91.2:0.91.3-SNAPSHOT -grpc-google-cloud-tasks-v2:2.1.2:2.1.3-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.91.2:0.91.3-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.91.2:0.91.3-SNAPSHOT -proto-google-cloud-tasks-v2:2.1.2:2.1.3-SNAPSHOT +google-cloud-tasks:2.1.3:2.1.3 +grpc-google-cloud-tasks-v2beta3:0.91.3:0.91.3 +grpc-google-cloud-tasks-v2beta2:0.91.3:0.91.3 +grpc-google-cloud-tasks-v2:2.1.3:2.1.3 +proto-google-cloud-tasks-v2beta3:0.91.3:0.91.3 +proto-google-cloud-tasks-v2beta2:0.91.3:0.91.3 +proto-google-cloud-tasks-v2:2.1.3:2.1.3 From 186303369ebffc4993716435fc9937ffd80d23df Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 11 Feb 2022 22:14:47 +0000 Subject: [PATCH 228/401] chore(main): release 2.1.4-SNAPSHOT (#610) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 1ffc248c..9edcd056 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.3 + 2.1.4-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.3 + 2.1.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.3 + 0.91.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.3 + 0.91.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.3 + 2.1.4-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.3 + 0.91.4-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.3 + 0.91.4-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.3 + 2.1.4-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 06a6a8af..811e137b 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.3 + 2.1.4-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.3 + 2.1.4-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 20c9cc62..ddc5ad47 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.3 + 2.1.4-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.3 + 2.1.4-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index f872c712..a2f94399 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.3 + 0.91.4-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.3 + 2.1.4-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 31912891..9f7cec4b 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.3 + 0.91.4-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.3 + 2.1.4-SNAPSHOT diff --git a/pom.xml b/pom.xml index ef47c863..037224f5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.3 + 2.1.4-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.3 + 0.91.4-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.3 + 0.91.4-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.3 + 2.1.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.3 + 0.91.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.3 + 0.91.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.3 + 2.1.4-SNAPSHOT com.google.cloud google-cloud-tasks - 2.1.3 + 2.1.4-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 97232373..5803bec3 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.3 + 2.1.4-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.3 + 2.1.4-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 3f1edb8f..4e8f7af5 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.3 + 0.91.4-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.3 + 2.1.4-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 7b378a1c..6eba9ff1 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.3 + 0.91.4-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.3 + 2.1.4-SNAPSHOT diff --git a/versions.txt b/versions.txt index 1e576446..de8075d6 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.3:2.1.3 -grpc-google-cloud-tasks-v2beta3:0.91.3:0.91.3 -grpc-google-cloud-tasks-v2beta2:0.91.3:0.91.3 -grpc-google-cloud-tasks-v2:2.1.3:2.1.3 -proto-google-cloud-tasks-v2beta3:0.91.3:0.91.3 -proto-google-cloud-tasks-v2beta2:0.91.3:0.91.3 -proto-google-cloud-tasks-v2:2.1.3:2.1.3 +google-cloud-tasks:2.1.3:2.1.4-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.91.3:0.91.4-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.91.3:0.91.4-SNAPSHOT +grpc-google-cloud-tasks-v2:2.1.3:2.1.4-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.91.3:0.91.4-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.91.3:0.91.4-SNAPSHOT +proto-google-cloud-tasks-v2:2.1.3:2.1.4-SNAPSHOT From 7d27b61ef2a9aac9ec063670e4610e70ce27df23 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 12 Feb 2022 00:58:59 +0100 Subject: [PATCH 229/401] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.3.2 (#607) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-javadoc-plugin](https://maven.apache.org/plugins/) ([source](https://togithub.com/apache/maven-javadoc-plugin)) | `3.3.1` -> `3.3.2` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.3.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.3.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.3.2/compatibility-slim/3.3.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.3.2/confidence-slim/3.3.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 037224f5..a55a15c0 100644 --- a/pom.xml +++ b/pom.xml @@ -171,7 +171,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.3.1 + 3.3.2 html From 9ca392c201d96a2ee2c2012452cb489fd0261142 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Feb 2022 22:56:42 +0100 Subject: [PATCH 230/401] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.9 (#612) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | org.sonatype.plugins:nexus-staging-maven-plugin | `1.6.8` -> `1.6.9` | [![age](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.9/compatibility-slim/1.6.8)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.9/confidence-slim/1.6.8)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- README.md | 6 +++--- samples/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f1c5fe33..70530abc 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.1.2 + 2.1.3 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.1.2' +implementation 'com.google.cloud:google-cloud-tasks:2.1.3' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.2" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.3" ``` ## Authentication diff --git a/samples/pom.xml b/samples/pom.xml index 70c02dae..29d823a3 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -46,7 +46,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.8 + 1.6.9 true From 35d3a0afbf079123ffefa67c94ff1f9eb8d39e34 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Feb 2022 17:56:51 +0100 Subject: [PATCH 231/401] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.10 (#614) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.sonatype.plugins:nexus-staging-maven-plugin](http://www.sonatype.com/) ([source](https://togithub.com/sonatype/nexus-maven-plugins)) | `1.6.9` -> `1.6.10` | [![age](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.10/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.10/compatibility-slim/1.6.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.10/confidence-slim/1.6.9)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sonatype/nexus-maven-plugins ### [`v1.6.10`](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.9...release-1.6.10) [Compare Source](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.9...release-1.6.10)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index 29d823a3..373061d0 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -46,7 +46,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.9 + 1.6.10 true From b0f3bba9d9a4eacb18a7dc467af80e678aeedaa3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Feb 2022 19:44:43 +0100 Subject: [PATCH 232/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.1.3 (#613) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.1.2` -> `2.1.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.3/compatibility-slim/2.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.3/confidence-slim/2.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-tasks ### [`v2.1.3`](https://togithub.com/googleapis/java-tasks/blob/HEAD/CHANGELOG.md#​213-httpsgithubcomgoogleapisjava-taskscomparev212v213-2022-02-11) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v2.1.2...v2.1.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 8aba41d0..bd1aa24a 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.1.2 + 2.1.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 070a97af..6269374b 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.1.2 + 2.1.3 From 243c2c7c2c0962e2f34b7114192909ffaced0c5f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 17 Feb 2022 16:46:53 +0100 Subject: [PATCH 233/401] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.11 (#615) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.sonatype.plugins:nexus-staging-maven-plugin](http://www.sonatype.com/) ([source](https://togithub.com/sonatype/nexus-maven-plugins)) | `1.6.10` -> `1.6.11` | [![age](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.11/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.11/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.11/compatibility-slim/1.6.10)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.11/confidence-slim/1.6.10)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sonatype/nexus-maven-plugins ### [`v1.6.11`](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.10...release-1.6.11) [Compare Source](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.10...release-1.6.11)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index 373061d0..92ea1f87 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -46,7 +46,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.10 + 1.6.11 true From 986951ed68699e68ef346dd46608ce6611ab1755 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 25 Feb 2022 22:06:39 +0000 Subject: [PATCH 234/401] ci: pull request template includes sample format (#1357) (#620) Source-Link: https://github.com/googleapis/synthtool/commit/e122cb03ea37652946651346736d99b9dcc4311f Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:387835a1375a0049ec44e02542c844302854c732d8291bdf8e472c0ff70a8f67 --- .github/.OwlBot.lock.yaml | 2 +- .github/PULL_REQUEST_TEMPLATE.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 9786771c..9351fdfb 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:3c950ed12391ebaffd1ee66d0374766a1c50144ebe6a7a0042300b2e6bb5856b + digest: sha256:387835a1375a0049ec44e02542c844302854c732d8291bdf8e472c0ff70a8f67 diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index b6a49cc8..b3fe18c9 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -5,3 +5,6 @@ Thank you for opening a Pull Request! Before submitting your PR, there are a few - [ ] Appropriate docs were updated (if necessary) Fixes # ☕️ + +If you write sample code, please follow the [samples format]( +https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md). From 767f3c9671b5dcd4d1b6683f77956388937ec8ad Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 28 Feb 2022 23:34:22 +0100 Subject: [PATCH 235/401] deps: update actions/setup-java action to v3 (#618) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/setup-java](https://togithub.com/actions/setup-java) | action | major | `v1` -> `v3` | | [actions/setup-java](https://togithub.com/actions/setup-java) | action | major | `v2` -> `v3` | --- ### Release Notes
actions/setup-java ### [`v3`](https://togithub.com/actions/setup-java/compare/v2...v3) [Compare Source](https://togithub.com/actions/setup-java/compare/v2...v3) ### [`v2`](https://togithub.com/actions/setup-java/compare/v1...v2) [Compare Source](https://togithub.com/actions/setup-java/compare/v1...v2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). From a000cfe769b3d4e1448ec8b1f7f9e9e6e6388313 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 28 Feb 2022 22:44:35 +0000 Subject: [PATCH 236/401] chore(main): release 2.1.4 (#622) :robot: I have created a release *beep* *boop* --- ### [2.1.4](https://github.com/googleapis/java-tasks/compare/v2.1.3...v2.1.4) (2022-02-28) ### Dependencies * update actions/setup-java action to v3 ([#618](https://github.com/googleapis/java-tasks/issues/618)) ([767f3c9](https://github.com/googleapis/java-tasks/commit/767f3c9671b5dcd4d1b6683f77956388937ec8ad)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fb6383c..62e9e3db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [2.1.4](https://github.com/googleapis/java-tasks/compare/v2.1.3...v2.1.4) (2022-02-28) + + +### Dependencies + +* update actions/setup-java action to v3 ([#618](https://github.com/googleapis/java-tasks/issues/618)) ([767f3c9](https://github.com/googleapis/java-tasks/commit/767f3c9671b5dcd4d1b6683f77956388937ec8ad)) + ### [2.1.3](https://github.com/googleapis/java-tasks/compare/v2.1.2...v2.1.3) (2022-02-11) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 9edcd056..f8fb5d26 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.4-SNAPSHOT + 2.1.4 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.4-SNAPSHOT + 2.1.4 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.4-SNAPSHOT + 0.91.4 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.4-SNAPSHOT + 0.91.4 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.4-SNAPSHOT + 2.1.4 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.4-SNAPSHOT + 0.91.4 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.4-SNAPSHOT + 0.91.4 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.4-SNAPSHOT + 2.1.4
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 811e137b..08233231 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.4-SNAPSHOT + 2.1.4 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.4-SNAPSHOT + 2.1.4 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index ddc5ad47..d8029c34 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.4-SNAPSHOT + 2.1.4 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.4-SNAPSHOT + 2.1.4 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index a2f94399..9b2852b9 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.4-SNAPSHOT + 0.91.4 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.4-SNAPSHOT + 2.1.4 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 9f7cec4b..868b01a7 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.4-SNAPSHOT + 0.91.4 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.4-SNAPSHOT + 2.1.4 diff --git a/pom.xml b/pom.xml index a55a15c0..ba6a5b3b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.4-SNAPSHOT + 2.1.4 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.4-SNAPSHOT + 0.91.4 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.4-SNAPSHOT + 0.91.4 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.4-SNAPSHOT + 2.1.4 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.4-SNAPSHOT + 0.91.4 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.4-SNAPSHOT + 0.91.4 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.4-SNAPSHOT + 2.1.4 com.google.cloud google-cloud-tasks - 2.1.4-SNAPSHOT + 2.1.4 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 5803bec3..b71485f8 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.4-SNAPSHOT + 2.1.4 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.4-SNAPSHOT + 2.1.4 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 4e8f7af5..6bae5332 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.4-SNAPSHOT + 0.91.4 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.4-SNAPSHOT + 2.1.4 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 6eba9ff1..2419d53f 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.4-SNAPSHOT + 0.91.4 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.4-SNAPSHOT + 2.1.4 diff --git a/versions.txt b/versions.txt index de8075d6..1613fadc 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.3:2.1.4-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.91.3:0.91.4-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.91.3:0.91.4-SNAPSHOT -grpc-google-cloud-tasks-v2:2.1.3:2.1.4-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.91.3:0.91.4-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.91.3:0.91.4-SNAPSHOT -proto-google-cloud-tasks-v2:2.1.3:2.1.4-SNAPSHOT +google-cloud-tasks:2.1.4:2.1.4 +grpc-google-cloud-tasks-v2beta3:0.91.4:0.91.4 +grpc-google-cloud-tasks-v2beta2:0.91.4:0.91.4 +grpc-google-cloud-tasks-v2:2.1.4:2.1.4 +proto-google-cloud-tasks-v2beta3:0.91.4:0.91.4 +proto-google-cloud-tasks-v2beta2:0.91.4:0.91.4 +proto-google-cloud-tasks-v2:2.1.4:2.1.4 From 487c1f43dbe28c811ba77e11e87a9a290ab5cf50 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 1 Mar 2022 01:00:26 +0000 Subject: [PATCH 237/401] chore(main): release 2.1.5-SNAPSHOT (#623) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index f8fb5d26..c092a79c 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.4 + 2.1.5-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.4 + 2.1.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.4 + 0.91.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.4 + 0.91.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.4 + 2.1.5-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.4 + 0.91.5-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.4 + 0.91.5-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.4 + 2.1.5-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 08233231..776c3cfb 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.4 + 2.1.5-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.4 + 2.1.5-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index d8029c34..b7ea868e 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.4 + 2.1.5-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.4 + 2.1.5-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 9b2852b9..95a34be5 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.4 + 0.91.5-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.4 + 2.1.5-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 868b01a7..0ec962e9 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.4 + 0.91.5-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.4 + 2.1.5-SNAPSHOT diff --git a/pom.xml b/pom.xml index ba6a5b3b..5e39f0a9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.4 + 2.1.5-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.4 + 0.91.5-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.4 + 0.91.5-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.4 + 2.1.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.4 + 0.91.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.4 + 0.91.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.4 + 2.1.5-SNAPSHOT com.google.cloud google-cloud-tasks - 2.1.4 + 2.1.5-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index b71485f8..78e2ed01 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.4 + 2.1.5-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.4 + 2.1.5-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 6bae5332..00826af4 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.4 + 0.91.5-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.4 + 2.1.5-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 2419d53f..f7436280 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.4 + 0.91.5-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.4 + 2.1.5-SNAPSHOT diff --git a/versions.txt b/versions.txt index 1613fadc..1d6c8e22 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.4:2.1.4 -grpc-google-cloud-tasks-v2beta3:0.91.4:0.91.4 -grpc-google-cloud-tasks-v2beta2:0.91.4:0.91.4 -grpc-google-cloud-tasks-v2:2.1.4:2.1.4 -proto-google-cloud-tasks-v2beta3:0.91.4:0.91.4 -proto-google-cloud-tasks-v2beta2:0.91.4:0.91.4 -proto-google-cloud-tasks-v2:2.1.4:2.1.4 +google-cloud-tasks:2.1.4:2.1.5-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.91.4:0.91.5-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.91.4:0.91.5-SNAPSHOT +grpc-google-cloud-tasks-v2:2.1.4:2.1.5-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.91.4:0.91.5-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.91.4:0.91.5-SNAPSHOT +proto-google-cloud-tasks-v2:2.1.4:2.1.5-SNAPSHOT From 7bff95555509cc4a2e5500cf9bae0345dcab1464 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 1 Mar 2022 02:04:11 +0100 Subject: [PATCH 238/401] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.2.2 (#619) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) | `3.2.1` -> `3.2.2` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.2/compatibility-slim/3.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.2/confidence-slim/3.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- README.md | 6 +++--- pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 70530abc..fcdf6d9e 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.1.3 + 2.1.4 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.1.3' +implementation 'com.google.cloud:google-cloud-tasks:2.1.4' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.3" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.4" ``` ## Authentication diff --git a/pom.xml b/pom.xml index 5e39f0a9..fc4ac3da 100644 --- a/pom.xml +++ b/pom.xml @@ -144,7 +144,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.2.1 + 3.2.2 From 6444ff5950a22471b788c12976051ddb0fc04b59 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 1 Mar 2022 03:40:26 +0100 Subject: [PATCH 239/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.1.4 (#624) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.1.3` -> `2.1.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.4/compatibility-slim/2.1.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.4/confidence-slim/2.1.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-tasks ### [`v2.1.4`](https://togithub.com/googleapis/java-tasks/blob/HEAD/CHANGELOG.md#​214-httpsgithubcomgoogleapisjava-taskscomparev213v214-2022-02-28) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v2.1.3...v2.1.4)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index bd1aa24a..46a34aca 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.1.3 + 2.1.4 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 6269374b..872836ad 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.1.3 + 2.1.4 From ec53481cc690561f4aa7ffd6307f66197d1239bc Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Tue, 1 Mar 2022 15:54:20 -0500 Subject: [PATCH 240/401] docs(sample): add native-image sample (#621) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Relocating the sample from native-image-support to this repository `mvn clean verify -DskipTests -P lint` passes. Fixes # ☕️ If you write sample code, please follow the [samples format]( https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md). --- README.md | 1 + samples/native-image-sample/README.md | 119 ++++++++++++++ samples/native-image-sample/pom.xml | 150 ++++++++++++++++++ .../example/tasks/TasksSampleApplication.java | 85 ++++++++++ .../tasks/ITNativeImageTasksSample.java | 43 +++++ samples/pom.xml | 1 + 6 files changed, 399 insertions(+) create mode 100644 samples/native-image-sample/README.md create mode 100644 samples/native-image-sample/pom.xml create mode 100644 samples/native-image-sample/src/main/java/com/example/tasks/TasksSampleApplication.java create mode 100644 samples/native-image-sample/src/test/java/com/example/tasks/ITNativeImageTasksSample.java diff --git a/README.md b/README.md index fcdf6d9e..c387b3a5 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-tasks/tree/ma | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | +| Tasks Sample Application | [source code](https://github.com/googleapis/java-tasks/blob/main/samples/native-image-sample/src/main/java/com/example/tasks/TasksSampleApplication.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/native-image-sample/src/main/java/com/example/tasks/TasksSampleApplication.java) | | Create Http Task | [source code](https://github.com/googleapis/java-tasks/blob/main/samples/snippets/src/main/java/com/example/task/CreateHttpTask.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/CreateHttpTask.java) | | Create Http Task With Token | [source code](https://github.com/googleapis/java-tasks/blob/main/samples/snippets/src/main/java/com/example/task/CreateHttpTaskWithToken.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/CreateHttpTaskWithToken.java) | | Create Queue | [source code](https://github.com/googleapis/java-tasks/blob/main/samples/snippets/src/main/java/com/example/task/CreateQueue.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/CreateQueue.java) | diff --git a/samples/native-image-sample/README.md b/samples/native-image-sample/README.md new file mode 100644 index 00000000..acbbe7ff --- /dev/null +++ b/samples/native-image-sample/README.md @@ -0,0 +1,119 @@ +# Cloud Tasks Sample Application with Native Image + +The Cloud Tasks sample application demonstrates some common operations with +[Google Cloud Tasks](https://cloud.google.com/tasks) and is compatible with +Native Image compilation. + +This application will create a new queue called `graal-test-queue` if it does +not already exist. +It will then submit a new task to this queue. + +## Setup Instructions + +1. Follow the [GCP Project and Native Image Setup Instructions](../../README.md). + +2. [Enable the Cloud Tasks APIs](https://console.cloud.google.com/apis/api/cloudtasks.googleapis.com). + +### Run with Native Image Compilation + +Navigate to this directory in a new terminal. + +1. Compile the application using the Native Image Compiler. This step may take a few minutes. + + ``` + $ mvn package -P native + ``` + + The project uses an environment variable `LOCATION_ID` to run the test. + +2. Run the application: + + ``` + $ LOCATION_ID=us-east1 ./target/tasks-sample + ``` + + The sample application uses an environment variable `LOCATION_ID`. + +3. The application runs through some basic Cloud Tasks operations (create queue, create task) and then prints some results of the operations. + + ``` + Test queue ready: name: "projects/xxxxxxxxxx/locations/us-central1/queues/graal-test-queue-4009" + rate_limits { + max_dispatches_per_second: 500.0 + max_burst_size: 100 + max_concurrent_dispatches: 1 + } + retry_config { + max_attempts: 100 + min_backoff { + nanos: 100000000 + } + max_backoff { + seconds: 3600 + } + max_doublings: 16 + } + state: RUNNING + + Created task: name: "projects/xxxxxxxxxx/locations/us-central1/queues/graal-test-queue-4009/tasks/5886258204485021611" + http_request { + url: "https://google.com/" + http_method: GET + headers { + key: "User-Agent" + value: "Google-Cloud-Tasks" + } + } + schedule_time { + seconds: 1613189391 + nanos: 486293000 + } + create_time { + seconds: 1613189391 + } + dispatch_deadline { + seconds: 600 + } + view: BASIC + + Queue purged + Queue deleted + ``` + +4. Run the test in the project in the native-image mode + + ``` + $ LOCATION_ID=us-east1 mvn test -P native + ... + [INFO] ------------------------------------------------------- + [INFO] T E S T S + [INFO] ------------------------------------------------------- + [INFO] Running com.example.tasks.ITNativeImageTasksSample + ... + [INFO] --- native-maven-plugin:0.9.9:test (test-native) @ native-image-sample --- + [INFO] ==================== + [INFO] Initializing project: native-image-sample + ... + com.example.tasks.ITNativeImageTasksSample > testRunSampleApplication SUCCESSFUL + + + Test run finished after 1025 ms + [ 3 containers found ] + [ 0 containers skipped ] + [ 3 containers started ] + [ 0 containers aborted ] + [ 3 containers successful ] + [ 0 containers failed ] + [ 1 tests found ] + [ 0 tests skipped ] + [ 1 tests started ] + [ 0 tests aborted ] + [ 1 tests successful ] + [ 0 tests failed ] + + [INFO] ------------------------------------------------------------------------ + [INFO] BUILD SUCCESS + [INFO] ------------------------------------------------------------------------ + [INFO] Total time: 02:27 min + ... + ``` diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml new file mode 100644 index 00000000..42d75d30 --- /dev/null +++ b/samples/native-image-sample/pom.xml @@ -0,0 +1,150 @@ + + + 4.0.0 + com.example.tasks + native-image-sample + Native Image Sample + + + + com.google.cloud.samples + shared-configuration + 1.2.0 + + + + + 1.8 + 1.8 + UTF-8 + + + + + + com.google.cloud + libraries-bom + 24.2.0 + pom + import + + + + + + + com.google.cloud + google-cloud-core + + + com.google.cloud + google-cloud-tasks + + + junit + junit + 4.13.2 + test + + + com.google.truth + truth + 1.1.3 + test + + + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + com.example.TasksSampleApplication + + + + + + + + + + native + + + + com.google.cloud + native-image-support + 0.10.0 + + + org.junit.vintage + junit-vintage-engine + 5.8.2 + + + org.graalvm.buildtools + junit-platform-native + 0.9.9 + test + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + 2.22.2 + + + **/IT* + + + + + org.graalvm.buildtools + native-maven-plugin + 0.9.9 + true + + com.example.tasks.TasksSampleApplication + + --no-fallback + --no-server + --initialize-at-build-time + --features=com.google.cloud.nativeimage.features.ProtobufMessageFeature + + + + + build-native + + build + test + + package + + + test-native + + test + + test + + + + + + + + \ No newline at end of file diff --git a/samples/native-image-sample/src/main/java/com/example/tasks/TasksSampleApplication.java b/samples/native-image-sample/src/main/java/com/example/tasks/TasksSampleApplication.java new file mode 100644 index 00000000..de736aa8 --- /dev/null +++ b/samples/native-image-sample/src/main/java/com/example/tasks/TasksSampleApplication.java @@ -0,0 +1,85 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.tasks; + +import com.google.cloud.ServiceOptions; +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.CreateQueueRequest; +import com.google.cloud.tasks.v2.HttpMethod; +import com.google.cloud.tasks.v2.HttpRequest; +import com.google.cloud.tasks.v2.LocationName; +import com.google.cloud.tasks.v2.Queue; +import com.google.cloud.tasks.v2.QueueName; +import com.google.cloud.tasks.v2.RateLimits; +import com.google.cloud.tasks.v2.Task; +import java.io.IOException; +import java.util.UUID; + +/** Sample application demonstrating Native Image compatibility with Google Cloud Tasks APIs. */ +public class TasksSampleApplication { + /** + * Queue name randomness added to avoid FAILED_PRECONDITION: The queue cannot be created because a + * queue with this name existed too recently. + */ + private static final String GRAALVM_TEST_QUEUE_NAME = "graal-test-queue-"; + + private static final String LOCATION_ID = System.getenv("LOCATION_ID"); + + /** Runs the Cloud Tasks sample application. */ + public static void main(String[] args) throws IOException { + String projectId = ServiceOptions.getDefaultProjectId(); + LocationName parent = LocationName.of(projectId, LOCATION_ID); + QueueName queueName = + QueueName.of( + parent.getProject(), + parent.getLocation(), + GRAALVM_TEST_QUEUE_NAME + UUID.randomUUID().toString()); + + try (CloudTasksClient client = CloudTasksClient.create()) { + // Create queue + Queue queue = + Queue.newBuilder() + .setName(queueName.toString()) + .setRateLimits(RateLimits.newBuilder().setMaxConcurrentDispatches(1).build()) + .build(); + + CreateQueueRequest createQueueRequest = + CreateQueueRequest.newBuilder().setParent(parent.toString()).setQueue(queue).build(); + + Queue createdQueue = client.createQueue(createQueueRequest); + System.out.println("Test queue ready: " + createdQueue); + + // Create task + HttpRequest taskTarget = + HttpRequest.newBuilder() + .setUrl("https://google.com") + .setHttpMethod(HttpMethod.GET) + .build(); + + Task taskRequest = Task.newBuilder().setHttpRequest(taskTarget).build(); + Task task = client.createTask(queueName, taskRequest); + System.out.println("Created task: " + task); + + // Cleanup + client.purgeQueue(queueName); + System.out.println("Queue purged"); + + client.deleteQueue(queueName); + System.out.println("Queue deleted"); + } + } +} diff --git a/samples/native-image-sample/src/test/java/com/example/tasks/ITNativeImageTasksSample.java b/samples/native-image-sample/src/test/java/com/example/tasks/ITNativeImageTasksSample.java new file mode 100644 index 00000000..70e91ffa --- /dev/null +++ b/samples/native-image-sample/src/test/java/com/example/tasks/ITNativeImageTasksSample.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.example.tasks; + +import static com.google.common.truth.Truth.assertThat; + +import java.io.ByteArrayOutputStream; +import java.io.PrintStream; +import org.junit.Before; +import org.junit.Test; + +public class ITNativeImageTasksSample { + private ByteArrayOutputStream bout; + + @Before + public void setUp() throws Exception { + bout = new ByteArrayOutputStream(); + System.setOut(new PrintStream(bout)); + } + + @Test + public void testRunSampleApplication() throws Exception { + TasksSampleApplication.main(new String[] {}); + String output = bout.toString(); + assertThat(output).contains("Test queue ready"); + assertThat(output).contains("Queue purged"); + assertThat(output).contains("Queue deleted"); + } +} diff --git a/samples/pom.xml b/samples/pom.xml index 92ea1f87..87ddc149 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -31,6 +31,7 @@ install-without-bom snapshot snippets + native-image-sample From fb1ef621fe3c14a875de8dd25bd0ac702bb2e996 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 2 Mar 2022 19:08:24 +0100 Subject: [PATCH 241/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 (#631) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.7.0` -> `2.8.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.8.0/compatibility-slim/2.7.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.8.0/confidence-slim/2.7.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.8.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​280-httpsgithubcomgoogleapisjava-shared-dependenciescomparev270v280-2022-03-02) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.7.0...v2.8.0) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.33.2 ([#​602](https://togithub.com/googleapis/java-shared-dependencies/issues/602)) ([85b132f](https://togithub.com/googleapis/java-shared-dependencies/commit/85b132f5830772646025b6a9fbbb970a941b86b5)) - update dependency com.google.api:api-common to v2.1.4 ([#​605](https://togithub.com/googleapis/java-shared-dependencies/issues/605)) ([ca7d49a](https://togithub.com/googleapis/java-shared-dependencies/commit/ca7d49aee26b6d90abd2afd61c20861d2307fe9c)) - update dependency com.google.auth:google-auth-library-bom to v1.5.3 ([#​614](https://togithub.com/googleapis/java-shared-dependencies/issues/614)) ([e6413f3](https://togithub.com/googleapis/java-shared-dependencies/commit/e6413f3b1be78473ace7085c344eda2d78cdf01a)) - update dependency com.google.cloud:google-cloud-core to v2.5.6 ([#​621](https://togithub.com/googleapis/java-shared-dependencies/issues/621)) ([3d5669f](https://togithub.com/googleapis/java-shared-dependencies/commit/3d5669f215689dd2df71200ffe37d5a9d385cda8)) - update dependency com.google.code.gson:gson to v2.9.0 ([#​611](https://togithub.com/googleapis/java-shared-dependencies/issues/611)) ([f59c28d](https://togithub.com/googleapis/java-shared-dependencies/commit/f59c28d8cd30ada1237f7722135ba148dce6315e)) - update dependency com.google.http-client:google-http-client-bom to v1.41.4 ([#​608](https://togithub.com/googleapis/java-shared-dependencies/issues/608)) ([f9a4f23](https://togithub.com/googleapis/java-shared-dependencies/commit/f9a4f23d3a32148ac59e53eaae6558ccbceca12c)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.1 ([#​606](https://togithub.com/googleapis/java-shared-dependencies/issues/606)) ([3882494](https://togithub.com/googleapis/java-shared-dependencies/commit/3882494770d48fcc02ed19088aa06612a8e440eb)) - update dependency com.google.protobuf:protobuf-bom to v3.19.4 ([#​593](https://togithub.com/googleapis/java-shared-dependencies/issues/593)) ([1e155bf](https://togithub.com/googleapis/java-shared-dependencies/commit/1e155bfc957bbb7e25d2e0994cdecaa81843bdc5)) - update dependency io.grpc:grpc-bom to v1.44.1 ([#​613](https://togithub.com/googleapis/java-shared-dependencies/issues/613)) ([3038a2c](https://togithub.com/googleapis/java-shared-dependencies/commit/3038a2c86cd20c91b65f2d7926eeb739147a68db)) - update dependency junit:junit to v4.13.2 ([#​607](https://togithub.com/googleapis/java-shared-dependencies/issues/607)) ([987e617](https://togithub.com/googleapis/java-shared-dependencies/commit/987e61796c7a093e005fe8832cf39275c391b2c1)) - update dependency org.checkerframework:checker-qual to v3.21.3 ([#​596](https://togithub.com/googleapis/java-shared-dependencies/issues/596)) ([ac5083c](https://togithub.com/googleapis/java-shared-dependencies/commit/ac5083cd010924dc128f041c2cdbab20166a6bf0)) - update gax.version to v2.12.2 ([#​592](https://togithub.com/googleapis/java-shared-dependencies/issues/592)) ([713ff8d](https://togithub.com/googleapis/java-shared-dependencies/commit/713ff8dd94f939c417524616bc47c771a3fbe0cf)) - update google.common-protos.version to v2.7.4 ([#​603](https://togithub.com/googleapis/java-shared-dependencies/issues/603)) ([bb9b4c7](https://togithub.com/googleapis/java-shared-dependencies/commit/bb9b4c7e39552cc73b3b9d4c826b26e8cb74459f)) - update google.core.version ([#​599](https://togithub.com/googleapis/java-shared-dependencies/issues/599)) ([327d0df](https://togithub.com/googleapis/java-shared-dependencies/commit/327d0df9b57203c0d4f426de0380770d3d7910d6)) - update iam.version to v1.2.6 ([#​598](https://togithub.com/googleapis/java-shared-dependencies/issues/598)) ([2801439](https://togithub.com/googleapis/java-shared-dependencies/commit/280143964c7c3b93a8d7f67215ba2cc74ffce761))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index fc4ac3da..538ccf7e 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.7.0 + 2.8.0 pom import From 457b697a3d9029bd4f33b258ea98918bb38cc1b2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 2 Mar 2022 20:16:23 +0100 Subject: [PATCH 242/401] deps: update dependency com.google.cloud:native-image-support to v0.12.6 (#628) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:native-image-support](https://togithub.com/googleapis/java-core) | `0.10.0` -> `0.12.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.6/compatibility-slim/0.10.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.6/confidence-slim/0.10.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 42d75d30..90b6b650 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -84,7 +84,7 @@ com.google.cloud native-image-support - 0.10.0 + 0.12.6
org.junit.vintage From 1f08e4a446881032d3c40ee31986fa748dbc1914 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 3 Mar 2022 19:48:55 +0100 Subject: [PATCH 243/401] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.10 (#627) --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 90b6b650..328190a4 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -114,7 +114,7 @@ org.graalvm.buildtools native-maven-plugin - 0.9.9 + 0.9.10 true com.example.tasks.TasksSampleApplication From 808c56ef98ecdf7a57cbf31234ef4c6b1c93c609 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 3 Mar 2022 19:49:07 +0100 Subject: [PATCH 244/401] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.10 (#626) --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 328190a4..cc0f9f4c 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -94,7 +94,7 @@ org.graalvm.buildtools junit-platform-native - 0.9.9 + 0.9.10 test
From 6857b4eaf62904e17d14dc7c71daf1297af94395 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 3 Mar 2022 18:54:42 +0000 Subject: [PATCH 245/401] chore: fix license header in build.bat (#1363) (#633) * chore: fix license header in build.bat * chore: add disctribution field for setup-java action Source-Link: https://github.com/googleapis/synthtool/commit/4fea5f40a9075f3ba205ede0b453010cf080e194 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:df8d7b2cc0dbc65871e7edd86601901a0612b272fa3f7f0eb590c5c53aa5f92e --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/approve-readme.yaml | 2 +- .github/workflows/auto-release.yaml | 2 +- .github/workflows/ci.yaml | 20 +++++++++--------- .github/workflows/samples.yaml | 5 +++-- .kokoro/build.bat | 30 +++++++++++++-------------- 6 files changed, 31 insertions(+), 30 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 9351fdfb..3473042c 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:387835a1375a0049ec44e02542c844302854c732d8291bdf8e472c0ff70a8f67 + digest: sha256:df8d7b2cc0dbc65871e7edd86601901a0612b272fa3f7f0eb590c5c53aa5f92e diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml index 1bb18232..f5fc7d51 100644 --- a/.github/workflows/approve-readme.yaml +++ b/.github/workflows/approve-readme.yaml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' steps: - - uses: actions/github-script@v5 + - uses: actions/github-script@v6 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} script: | diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 18e23230..7a106d00 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest if: contains(github.head_ref, 'release-please') steps: - - uses: actions/github-script@v5 + - uses: actions/github-script@v6 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} debug: true diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6b5e56aa..83ef7f9c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,8 +27,8 @@ jobs: matrix: java: [8, 11, 17] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: ${{matrix.java}} @@ -39,8 +39,8 @@ jobs: windows: runs-on: windows-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: 8 @@ -54,8 +54,8 @@ jobs: matrix: java: [8, 11, 17] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: ${{matrix.java}} @@ -64,8 +64,8 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: 11 @@ -76,8 +76,8 @@ jobs: clirr: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: 8 diff --git a/.github/workflows/samples.yaml b/.github/workflows/samples.yaml index d5d964df..912ed8b2 100644 --- a/.github/workflows/samples.yaml +++ b/.github/workflows/samples.yaml @@ -20,9 +20,10 @@ jobs: checkstyle: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: + distribution: zulu java-version: 8 - name: Run checkstyle run: mvn -P lint --quiet --batch-mode checkstyle:check diff --git a/.kokoro/build.bat b/.kokoro/build.bat index cc602c9e..067cf4a4 100644 --- a/.kokoro/build.bat +++ b/.kokoro/build.bat @@ -1,18 +1,18 @@ +:: Copyright 2022 Google LLC +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: Github action job to test core java library features on +:: downstream client libraries before they are released. :: See documentation in type-shell-output.bat -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. "C:\Program Files\Git\bin\bash.exe" %~dp0build.sh From 298ed80551291894bbb29c9b4fc6704c3a5ce5ec Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 3 Mar 2022 19:56:37 +0100 Subject: [PATCH 246/401] chore(deps): update dependency com.google.cloud:libraries-bom to v24.4.0 (#632) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.3.0` -> `24.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/compatibility-slim/24.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/confidence-slim/24.3.0)](https://docs.renovatebot.com/merge-confidence/) | | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.2.0` -> `24.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/compatibility-slim/24.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/confidence-slim/24.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index cc0f9f4c..dbadb0b8 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -29,7 +29,7 @@ com.google.cloud libraries-bom - 24.2.0 + 24.4.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 01715b0e..b8d8ce12 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.3.0 + 24.4.0 pom import From 5438edb0cc3acdddb16c20c982231d702c492091 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 3 Mar 2022 14:33:56 -0800 Subject: [PATCH 247/401] chore(main): release 2.1.5 (#625) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 15 +++++++++++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 52 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 62e9e3db..783aace3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +### [2.1.5](https://github.com/googleapis/java-tasks/compare/v2.1.4...v2.1.5) (2022-03-03) + + +### Documentation + +* **sample:** add native-image sample ([#621](https://github.com/googleapis/java-tasks/issues/621)) ([ec53481](https://github.com/googleapis/java-tasks/commit/ec53481cc690561f4aa7ffd6307f66197d1239bc)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 ([#631](https://github.com/googleapis/java-tasks/issues/631)) ([fb1ef62](https://github.com/googleapis/java-tasks/commit/fb1ef621fe3c14a875de8dd25bd0ac702bb2e996)) +* update dependency com.google.cloud:native-image-support to v0.12.6 ([#628](https://github.com/googleapis/java-tasks/issues/628)) ([457b697](https://github.com/googleapis/java-tasks/commit/457b697a3d9029bd4f33b258ea98918bb38cc1b2)) +* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.10 ([#626](https://github.com/googleapis/java-tasks/issues/626)) ([808c56e](https://github.com/googleapis/java-tasks/commit/808c56ef98ecdf7a57cbf31234ef4c6b1c93c609)) +* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.10 ([#627](https://github.com/googleapis/java-tasks/issues/627)) ([1f08e4a](https://github.com/googleapis/java-tasks/commit/1f08e4a446881032d3c40ee31986fa748dbc1914)) + ### [2.1.4](https://github.com/googleapis/java-tasks/compare/v2.1.3...v2.1.4) (2022-02-28) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index c092a79c..b2ba3877 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.5-SNAPSHOT + 2.1.5 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.5-SNAPSHOT + 2.1.5 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.5-SNAPSHOT + 0.91.5 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.5-SNAPSHOT + 0.91.5 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.5-SNAPSHOT + 2.1.5 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.5-SNAPSHOT + 0.91.5 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.5-SNAPSHOT + 0.91.5 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.5-SNAPSHOT + 2.1.5
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 776c3cfb..83a4c078 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.5-SNAPSHOT + 2.1.5 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.5-SNAPSHOT + 2.1.5 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index b7ea868e..44c89a8b 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.5-SNAPSHOT + 2.1.5 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.5-SNAPSHOT + 2.1.5 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 95a34be5..a8efd998 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.5-SNAPSHOT + 0.91.5 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.5-SNAPSHOT + 2.1.5 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 0ec962e9..2f798a2d 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.5-SNAPSHOT + 0.91.5 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.5-SNAPSHOT + 2.1.5 diff --git a/pom.xml b/pom.xml index 538ccf7e..66209592 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.5-SNAPSHOT + 2.1.5 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.5-SNAPSHOT + 0.91.5 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.5-SNAPSHOT + 0.91.5 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.5-SNAPSHOT + 2.1.5 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.5-SNAPSHOT + 0.91.5 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.5-SNAPSHOT + 0.91.5 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.5-SNAPSHOT + 2.1.5 com.google.cloud google-cloud-tasks - 2.1.5-SNAPSHOT + 2.1.5 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 78e2ed01..beb41c39 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.5-SNAPSHOT + 2.1.5 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.5-SNAPSHOT + 2.1.5 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 00826af4..b4f9997f 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.5-SNAPSHOT + 0.91.5 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.5-SNAPSHOT + 2.1.5 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index f7436280..e2f23b6d 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.5-SNAPSHOT + 0.91.5 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.5-SNAPSHOT + 2.1.5 diff --git a/versions.txt b/versions.txt index 1d6c8e22..aacfbac5 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.4:2.1.5-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.91.4:0.91.5-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.91.4:0.91.5-SNAPSHOT -grpc-google-cloud-tasks-v2:2.1.4:2.1.5-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.91.4:0.91.5-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.91.4:0.91.5-SNAPSHOT -proto-google-cloud-tasks-v2:2.1.4:2.1.5-SNAPSHOT +google-cloud-tasks:2.1.5:2.1.5 +grpc-google-cloud-tasks-v2beta3:0.91.5:0.91.5 +grpc-google-cloud-tasks-v2beta2:0.91.5:0.91.5 +grpc-google-cloud-tasks-v2:2.1.5:2.1.5 +proto-google-cloud-tasks-v2beta3:0.91.5:0.91.5 +proto-google-cloud-tasks-v2beta2:0.91.5:0.91.5 +proto-google-cloud-tasks-v2:2.1.5:2.1.5 From ed8b37a2eed9c74948793d10e7899c7f80f1732a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 3 Mar 2022 22:40:16 +0000 Subject: [PATCH 248/401] chore(main): release 2.1.6-SNAPSHOT (#634) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index b2ba3877..75eedf96 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.5 + 2.1.6-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.5 + 2.1.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.5 + 0.91.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.5 + 0.91.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.5 + 2.1.6-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.5 + 0.91.6-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.5 + 0.91.6-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.5 + 2.1.6-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 83a4c078..cf728365 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.5 + 2.1.6-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.5 + 2.1.6-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 44c89a8b..163b06fd 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.5 + 2.1.6-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.5 + 2.1.6-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index a8efd998..9206b28d 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.5 + 0.91.6-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.5 + 2.1.6-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 2f798a2d..5ef32760 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.5 + 0.91.6-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.5 + 2.1.6-SNAPSHOT diff --git a/pom.xml b/pom.xml index 66209592..ab6fd6a9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.5 + 2.1.6-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.5 + 0.91.6-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.5 + 0.91.6-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.5 + 2.1.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.5 + 0.91.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.5 + 0.91.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.5 + 2.1.6-SNAPSHOT com.google.cloud google-cloud-tasks - 2.1.5 + 2.1.6-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index beb41c39..f58b879b 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.5 + 2.1.6-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.5 + 2.1.6-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index b4f9997f..9f66fc7d 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.5 + 0.91.6-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.5 + 2.1.6-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index e2f23b6d..9be3a833 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.5 + 0.91.6-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.5 + 2.1.6-SNAPSHOT diff --git a/versions.txt b/versions.txt index aacfbac5..bdc0b136 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.5:2.1.5 -grpc-google-cloud-tasks-v2beta3:0.91.5:0.91.5 -grpc-google-cloud-tasks-v2beta2:0.91.5:0.91.5 -grpc-google-cloud-tasks-v2:2.1.5:2.1.5 -proto-google-cloud-tasks-v2beta3:0.91.5:0.91.5 -proto-google-cloud-tasks-v2beta2:0.91.5:0.91.5 -proto-google-cloud-tasks-v2:2.1.5:2.1.5 +google-cloud-tasks:2.1.5:2.1.6-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.91.5:0.91.6-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.91.5:0.91.6-SNAPSHOT +grpc-google-cloud-tasks-v2:2.1.5:2.1.6-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.91.5:0.91.6-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.91.5:0.91.6-SNAPSHOT +proto-google-cloud-tasks-v2:2.1.5:2.1.6-SNAPSHOT From 9039df83cfa0426d6bd06bfbbc1347efa5a2c30c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 8 Mar 2022 02:46:27 +0000 Subject: [PATCH 249/401] chore: update java template (#1367) (#636) * chore: update java template * chore: fix tests * chore: fix tests * chore: update project Source-Link: https://github.com/googleapis/synthtool/commit/1155a97fed1c195d10ad406d483bc8ac2507f1d7 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:b0b1c1c89570e229b1026372a2b8989ba31495007055b8d30178b7648503eefa --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/nightly/integration.cfg | 4 ++-- README.md | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 3473042c..426cf83e 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:df8d7b2cc0dbc65871e7edd86601901a0612b272fa3f7f0eb590c5c53aa5f92e + digest: sha256:b0b1c1c89570e229b1026372a2b8989ba31495007055b8d30178b7648503eefa diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg index e51c7b4c..a2907a25 100644 --- a/.kokoro/nightly/integration.cfg +++ b/.kokoro/nightly/integration.cfg @@ -13,12 +13,12 @@ env_vars: { # TODO: remove this after we've migrated all tests and scripts env_vars: { key: "GCLOUD_PROJECT" - value: "gcloud-devel" + value: "java-docs-samples-testing" } env_vars: { key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" + value: "java-docs-samples-testing" } env_vars: { diff --git a/README.md b/README.md index c387b3a5..d2b7ad58 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.1.4 + 2.1.5 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.1.4' +implementation 'com.google.cloud:google-cloud-tasks:2.1.5' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.4" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.5" ``` ## Authentication From a35cc5dc6221c8c022c5147d61921b9317d450ea Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Mar 2022 04:00:41 +0100 Subject: [PATCH 250/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.1.5 (#635) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.1.4` -> `2.1.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.5/compatibility-slim/2.1.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.5/confidence-slim/2.1.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-tasks ### [`v2.1.5`](https://togithub.com/googleapis/java-tasks/blob/HEAD/CHANGELOG.md#​215-httpsgithubcomgoogleapisjava-taskscomparev214v215-2022-03-03) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v2.1.4...v2.1.5)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 46a34aca..2503894f 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.1.4 + 2.1.5 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 872836ad..14b53223 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.1.4 + 2.1.5 From 9a4a04cf7bed9bfbf43fc61b61d157510dbe2f27 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Mar 2022 21:42:27 +0100 Subject: [PATCH 251/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.3.0 (#638) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.7` -> `1.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.0/compatibility-slim/1.2.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.0/confidence-slim/1.2.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.3.0`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​130-httpsgithubcomgoogleapisjava-shared-configcomparev127v130-2022-03-07) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.7...v1.3.0) ##### Features - increase IT timeout from 20 to 60 mins ([#​440](https://togithub.com/googleapis/java-shared-config/issues/440)) ([a4427bc](https://togithub.com/googleapis/java-shared-config/commit/a4427bceebd0624e23f0b02bb24d7ed46ea4b3a6)) ##### Dependencies - update dependency com.google.cloud:native-image-support to v0.12.6 ([#​423](https://togithub.com/googleapis/java-shared-config/issues/423)) ([9a0cb79](https://togithub.com/googleapis/java-shared-config/commit/9a0cb79896d5c97dc3c5648a6740d53eb9ada673)) - update dependency com.puppycrawl.tools:checkstyle to v9.3 ([#​415](https://togithub.com/googleapis/java-shared-config/issues/415)) ([9e2d3fd](https://togithub.com/googleapis/java-shared-config/commit/9e2d3fd8bd42bc210dae5798f7d5dfe950c29f51)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.10 ([#​429](https://togithub.com/googleapis/java-shared-config/issues/429)) ([0355f29](https://togithub.com/googleapis/java-shared-config/commit/0355f2988ebcff19615b72bc65523555e4844523)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.10 ([#​430](https://togithub.com/googleapis/java-shared-config/issues/430)) ([16984d2](https://togithub.com/googleapis/java-shared-config/commit/16984d25a84aa6a8daf2a0925ea57cd0d3f0ee24)) ##### [1.2.7](https://togithub.com/googleapis/java-shared-config/compare/v1.2.6...v1.2.7) (2022-02-04) ##### Dependencies - update dependency com.google.cloud:native-image-support to v0.12.0 ([#​414](https://togithub.com/googleapis/java-shared-config/issues/414)) ([2133cc0](https://togithub.com/googleapis/java-shared-config/commit/2133cc093efd8420e352274f3eab09de819ff796)) ##### [1.2.6](https://togithub.com/googleapis/java-shared-config/compare/v1.2.5...v1.2.6) (2022-01-19) ##### Bug Fixes - library should released as 1.2.6 ([#​408](https://togithub.com/googleapis/java-shared-config/issues/408)) ([4972daa](https://togithub.com/googleapis/java-shared-config/commit/4972daa60467797566c4b043cebd322577b8eb73)) ##### [1.2.5](https://togithub.com/googleapis/java-shared-config/compare/v1.2.4...v1.2.5) (2022-01-11) ##### Bug Fixes - **java:** Enable unit tests in generated libraries for native image testing ([#​394](https://togithub.com/googleapis/java-shared-config/issues/394)) ([a453b9f](https://togithub.com/googleapis/java-shared-config/commit/a453b9f141c7555f2fd5333eb17d223410ab66eb)) ##### [1.2.4](https://www.github.com/googleapis/java-shared-config/compare/v1.2.3...v1.2.4) (2022-01-06) ##### Dependencies - revert dependency com.google.googlejavaformat:google-java-format to v1.7 ([#​391](https://www.togithub.com/googleapis/java-shared-config/issues/391)) ([17077fb](https://www.github.com/googleapis/java-shared-config/commit/17077fb1a58eef7098dc5e1e9b2c78a63c5c11e1)) ##### [1.2.3](https://www.github.com/googleapis/java-shared-config/compare/v1.2.2...v1.2.3) (2022-01-04) ##### Bug Fixes - **java:** add -ntp flag to native image testing command ([#​1299](https://www.togithub.com/googleapis/java-shared-config/issues/1299)) ([#​376](https://www.togithub.com/googleapis/java-shared-config/issues/376)) ([50e7a10](https://www.github.com/googleapis/java-shared-config/commit/50e7a10a8dca0505fd831e3dd929577d2f82b011)) - **java:** Only enable integration tests for native image testing ([#​375](https://www.togithub.com/googleapis/java-shared-config/issues/375)) ([663f421](https://www.github.com/googleapis/java-shared-config/commit/663f421de342afcba24703079f778738045d3ff2)) - **java:** Pass missing integration test flags to native image test commands ([#​1309](https://www.togithub.com/googleapis/java-shared-config/issues/1309)) ([#​383](https://www.togithub.com/googleapis/java-shared-config/issues/383)) ([b17b44e](https://www.github.com/googleapis/java-shared-config/commit/b17b44e37fe44ba61616417189c6b2271f3a4d18)) ##### Dependencies - update auto-value-annotation.version to v1.9 ([#​378](https://www.togithub.com/googleapis/java-shared-config/issues/378)) ([5e1cd0e](https://www.github.com/googleapis/java-shared-config/commit/5e1cd0e39910548ec4eb6639da979c3b66411503)) - update dependency com.google.googlejavaformat:google-java-format to v1.13.0 ([#​361](https://www.togithub.com/googleapis/java-shared-config/issues/361)) ([095d60a](https://www.github.com/googleapis/java-shared-config/commit/095d60a061a574dcf84b9fcf26dff48617a306b1)) - update dependency com.puppycrawl.tools:checkstyle to v9.2 ([#​366](https://www.togithub.com/googleapis/java-shared-config/issues/366)) ([061df67](https://www.github.com/googleapis/java-shared-config/commit/061df676d8b2fef5bbb0ce9661d3c96fcb57e73a)) - update dependency com.puppycrawl.tools:checkstyle to v9.2.1 ([#​382](https://www.togithub.com/googleapis/java-shared-config/issues/382)) ([1a182c5](https://www.github.com/googleapis/java-shared-config/commit/1a182c52e7c5431875296940d68c9bdfcf74be00)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.9 ([#​379](https://www.togithub.com/googleapis/java-shared-config/issues/379)) ([0a2b05f](https://www.github.com/googleapis/java-shared-config/commit/0a2b05ff7f649331efbc4dd540705da10691a2f1)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.8 ([#​372](https://www.togithub.com/googleapis/java-shared-config/issues/372)) ([6fe795e](https://www.github.com/googleapis/java-shared-config/commit/6fe795ede39575656ef1609bf7aac28c1d170976)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.9 ([#​380](https://www.togithub.com/googleapis/java-shared-config/issues/380)) ([f2efad5](https://www.github.com/googleapis/java-shared-config/commit/f2efad585b431fe186c7900a8171a999c689405b)) - update dependency org.junit.vintage:junit-vintage-engine to v5.8.2 ([#​365](https://www.togithub.com/googleapis/java-shared-config/issues/365)) ([604058d](https://www.github.com/googleapis/java-shared-config/commit/604058d52dc962db9a506762926576542687285e)) ##### [1.2.2](https://www.github.com/googleapis/java-shared-config/compare/v1.2.1...v1.2.2) (2021-11-16) ##### Bug Fixes - update dependency com.google.cloud:native-image-support to v0.10.0 ([#​358](https://www.togithub.com/googleapis/java-shared-config/issues/358)) ([0441958](https://www.github.com/googleapis/java-shared-config/commit/044195865a1122d419cadae90fddbf8dc5b4a32d)) ##### [1.2.1](https://www.github.com/googleapis/java-shared-config/compare/v1.2.0...v1.2.1) (2021-11-08) ##### Bug Fixes - Add native image feature to register protobuf reflection in tests ([#​347](https://www.togithub.com/googleapis/java-shared-config/issues/347)) ([88c3e3b](https://www.github.com/googleapis/java-shared-config/commit/88c3e3b0ad1e480e0fdbe9f6fe1f9df183066ee6)) ##### Dependencies - update dependency com.google.auto.service:auto-service-annotations to v1.0.1 ([#​346](https://www.togithub.com/googleapis/java-shared-config/issues/346)) ([9c1f943](https://www.github.com/googleapis/java-shared-config/commit/9c1f94345fb47346fe66f901976c2347b8102bc8)) - update dependency com.google.cloud:native-image-support to v0.9.0 ([#​350](https://www.togithub.com/googleapis/java-shared-config/issues/350)) ([3b496b0](https://www.github.com/googleapis/java-shared-config/commit/3b496b03bd95e59fcd1a3a1eb6cc0dfd330db769)) - update dependency com.puppycrawl.tools:checkstyle to v9.1 ([#​345](https://www.togithub.com/googleapis/java-shared-config/issues/345)) ([f5c03d3](https://www.github.com/googleapis/java-shared-config/commit/f5c03d35684ef4e0bb3178ab6056f231f3f4faf6))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 75eedf96..07d68186 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.7 + 1.3.0 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index ab6fd6a9..3193a4f9 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.7 + 1.3.0 From 57b9e27762fb6f599ee936318f3ce3091c425bba Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Mar 2022 21:44:19 +0100 Subject: [PATCH 252/401] deps: update dependency com.google.cloud:native-image-support to v0.12.7 (#637) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:native-image-support](https://togithub.com/googleapis/java-core) | `0.12.6` -> `0.12.7` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.7/compatibility-slim/0.12.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.7/confidence-slim/0.12.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index dbadb0b8..017bddf6 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -84,7 +84,7 @@ com.google.cloud native-image-support - 0.12.6 + 0.12.7
org.junit.vintage From 30269d1ba25c265d3ae278f327638dc36be54795 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 8 Mar 2022 20:58:27 +0000 Subject: [PATCH 253/401] chore(main): release 2.1.6 (#640) :robot: I have created a release *beep* *boop* --- ### [2.1.6](https://github.com/googleapis/java-tasks/compare/v2.1.5...v2.1.6) (2022-03-08) ### Dependencies * update dependency com.google.cloud:native-image-support to v0.12.7 ([#637](https://github.com/googleapis/java-tasks/issues/637)) ([57b9e27](https://github.com/googleapis/java-tasks/commit/57b9e27762fb6f599ee936318f3ce3091c425bba)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 783aace3..15a880ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [2.1.6](https://github.com/googleapis/java-tasks/compare/v2.1.5...v2.1.6) (2022-03-08) + + +### Dependencies + +* update dependency com.google.cloud:native-image-support to v0.12.7 ([#637](https://github.com/googleapis/java-tasks/issues/637)) ([57b9e27](https://github.com/googleapis/java-tasks/commit/57b9e27762fb6f599ee936318f3ce3091c425bba)) + ### [2.1.5](https://github.com/googleapis/java-tasks/compare/v2.1.4...v2.1.5) (2022-03-03) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 07d68186..ac3e40f9 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.6-SNAPSHOT + 2.1.6 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.6-SNAPSHOT + 2.1.6 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.6-SNAPSHOT + 0.91.6 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.6-SNAPSHOT + 0.91.6 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.6-SNAPSHOT + 2.1.6 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.6-SNAPSHOT + 0.91.6 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.6-SNAPSHOT + 0.91.6 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.6-SNAPSHOT + 2.1.6
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index cf728365..2b9cf477 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.6-SNAPSHOT + 2.1.6 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.6-SNAPSHOT + 2.1.6 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 163b06fd..d9f628ec 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.6-SNAPSHOT + 2.1.6 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.6-SNAPSHOT + 2.1.6 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 9206b28d..5c495e28 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.6-SNAPSHOT + 0.91.6 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.6-SNAPSHOT + 2.1.6 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 5ef32760..42bff14a 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.6-SNAPSHOT + 0.91.6 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.6-SNAPSHOT + 2.1.6 diff --git a/pom.xml b/pom.xml index 3193a4f9..9e19cc9d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.6-SNAPSHOT + 2.1.6 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.6-SNAPSHOT + 0.91.6 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.6-SNAPSHOT + 0.91.6 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.6-SNAPSHOT + 2.1.6 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.6-SNAPSHOT + 0.91.6 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.6-SNAPSHOT + 0.91.6 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.6-SNAPSHOT + 2.1.6 com.google.cloud google-cloud-tasks - 2.1.6-SNAPSHOT + 2.1.6 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index f58b879b..ac74ffcc 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.6-SNAPSHOT + 2.1.6 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.6-SNAPSHOT + 2.1.6 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 9f66fc7d..01ff3906 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.6-SNAPSHOT + 0.91.6 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.6-SNAPSHOT + 2.1.6 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 9be3a833..a7c09919 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.6-SNAPSHOT + 0.91.6 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.6-SNAPSHOT + 2.1.6 diff --git a/versions.txt b/versions.txt index bdc0b136..3577128a 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.5:2.1.6-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.91.5:0.91.6-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.91.5:0.91.6-SNAPSHOT -grpc-google-cloud-tasks-v2:2.1.5:2.1.6-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.91.5:0.91.6-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.91.5:0.91.6-SNAPSHOT -proto-google-cloud-tasks-v2:2.1.5:2.1.6-SNAPSHOT +google-cloud-tasks:2.1.6:2.1.6 +grpc-google-cloud-tasks-v2beta3:0.91.6:0.91.6 +grpc-google-cloud-tasks-v2beta2:0.91.6:0.91.6 +grpc-google-cloud-tasks-v2:2.1.6:2.1.6 +proto-google-cloud-tasks-v2beta3:0.91.6:0.91.6 +proto-google-cloud-tasks-v2beta2:0.91.6:0.91.6 +proto-google-cloud-tasks-v2:2.1.6:2.1.6 From a8420a86fd9e4714225f0361bb998ee33073caa5 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 8 Mar 2022 21:14:25 +0000 Subject: [PATCH 254/401] chore(main): release 2.1.7-SNAPSHOT (#641) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index ac3e40f9..de0e98af 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.6 + 2.1.7-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.6 + 2.1.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.6 + 0.91.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.6 + 0.91.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.6 + 2.1.7-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.6 + 0.91.7-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.6 + 0.91.7-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.6 + 2.1.7-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 2b9cf477..e21e47bc 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.6 + 2.1.7-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.6 + 2.1.7-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index d9f628ec..f967614c 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.6 + 2.1.7-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.6 + 2.1.7-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 5c495e28..09cd763c 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.6 + 0.91.7-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.6 + 2.1.7-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 42bff14a..c016aed9 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.6 + 0.91.7-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.6 + 2.1.7-SNAPSHOT diff --git a/pom.xml b/pom.xml index 9e19cc9d..cc413063 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.6 + 2.1.7-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.6 + 0.91.7-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.6 + 0.91.7-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.6 + 2.1.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.6 + 0.91.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.6 + 0.91.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.6 + 2.1.7-SNAPSHOT com.google.cloud google-cloud-tasks - 2.1.6 + 2.1.7-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index ac74ffcc..96268667 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.6 + 2.1.7-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.6 + 2.1.7-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 01ff3906..3f03b093 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.6 + 0.91.7-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.6 + 2.1.7-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index a7c09919..277f62d6 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.6 + 0.91.7-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.6 + 2.1.7-SNAPSHOT diff --git a/versions.txt b/versions.txt index 3577128a..ebc87ef0 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.6:2.1.6 -grpc-google-cloud-tasks-v2beta3:0.91.6:0.91.6 -grpc-google-cloud-tasks-v2beta2:0.91.6:0.91.6 -grpc-google-cloud-tasks-v2:2.1.6:2.1.6 -proto-google-cloud-tasks-v2beta3:0.91.6:0.91.6 -proto-google-cloud-tasks-v2beta2:0.91.6:0.91.6 -proto-google-cloud-tasks-v2:2.1.6:2.1.6 +google-cloud-tasks:2.1.6:2.1.7-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.91.6:0.91.7-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.91.6:0.91.7-SNAPSHOT +grpc-google-cloud-tasks-v2:2.1.6:2.1.7-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.91.6:0.91.7-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.91.6:0.91.7-SNAPSHOT +proto-google-cloud-tasks-v2:2.1.6:2.1.7-SNAPSHOT From a16af01b81d1a470ec87a29e1186017a06e36e0c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Mar 2022 18:28:16 +0100 Subject: [PATCH 255/401] deps: update dependency com.google.cloud:native-image-support to v0.12.8 (#643) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:native-image-support](https://togithub.com/googleapis/java-core) | `0.12.7` -> `0.12.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.8/compatibility-slim/0.12.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.8/confidence-slim/0.12.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- README.md | 6 +++--- samples/native-image-sample/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d2b7ad58..7b1fe986 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.1.5 + 2.1.6 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.1.5' +implementation 'com.google.cloud:google-cloud-tasks:2.1.6' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.5" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.6" ``` ## Authentication diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 017bddf6..7821134a 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -84,7 +84,7 @@ com.google.cloud native-image-support - 0.12.7 + 0.12.8 org.junit.vintage From e8c4d7c9e3e6a8e6288126f26b1588ab602e07c3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Mar 2022 18:28:25 +0100 Subject: [PATCH 256/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.1.6 (#642) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.1.5` -> `2.1.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.6/compatibility-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.6/confidence-slim/2.1.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-tasks ### [`v2.1.6`](https://togithub.com/googleapis/java-tasks/blob/HEAD/CHANGELOG.md#​216-httpsgithubcomgoogleapisjava-taskscomparev215v216-2022-03-08) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v2.1.5...v2.1.6)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 2503894f..7e6cf6b8 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.1.5 + 2.1.6 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 14b53223..37b9af87 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.1.5 + 2.1.6 From d7d9d7595f4a3d0aec7900d2ec7d3ec1bd1e3546 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 10 Mar 2022 23:14:19 +0100 Subject: [PATCH 257/401] deps: update dependency com.google.cloud:native-image-support to v0.12.9 (#645) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:native-image-support](https://togithub.com/googleapis/java-core) | `0.12.8` -> `0.12.9` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.9/compatibility-slim/0.12.8)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.9/confidence-slim/0.12.8)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 7821134a..b022ca84 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -84,7 +84,7 @@ com.google.cloud native-image-support - 0.12.8 + 0.12.9 org.junit.vintage From ed286d1e247b00144e03bee7e8e5c59927814c97 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 10 Mar 2022 22:24:20 +0000 Subject: [PATCH 258/401] chore(main): release 2.1.7 (#644) :robot: I have created a release *beep* *boop* --- ### [2.1.7](https://github.com/googleapis/java-tasks/compare/v2.1.6...v2.1.7) (2022-03-10) ### Dependencies * update dependency com.google.cloud:native-image-support to v0.12.8 ([#643](https://github.com/googleapis/java-tasks/issues/643)) ([a16af01](https://github.com/googleapis/java-tasks/commit/a16af01b81d1a470ec87a29e1186017a06e36e0c)) * update dependency com.google.cloud:native-image-support to v0.12.9 ([#645](https://github.com/googleapis/java-tasks/issues/645)) ([d7d9d75](https://github.com/googleapis/java-tasks/commit/d7d9d7595f4a3d0aec7900d2ec7d3ec1bd1e3546)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 8 ++++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 45 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15a880ec..6b9fee74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### [2.1.7](https://github.com/googleapis/java-tasks/compare/v2.1.6...v2.1.7) (2022-03-10) + + +### Dependencies + +* update dependency com.google.cloud:native-image-support to v0.12.8 ([#643](https://github.com/googleapis/java-tasks/issues/643)) ([a16af01](https://github.com/googleapis/java-tasks/commit/a16af01b81d1a470ec87a29e1186017a06e36e0c)) +* update dependency com.google.cloud:native-image-support to v0.12.9 ([#645](https://github.com/googleapis/java-tasks/issues/645)) ([d7d9d75](https://github.com/googleapis/java-tasks/commit/d7d9d7595f4a3d0aec7900d2ec7d3ec1bd1e3546)) + ### [2.1.6](https://github.com/googleapis/java-tasks/compare/v2.1.5...v2.1.6) (2022-03-08) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index de0e98af..d83f6e2e 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.7-SNAPSHOT + 2.1.7 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.7-SNAPSHOT + 2.1.7 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.7-SNAPSHOT + 0.91.7 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.7-SNAPSHOT + 0.91.7 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.7-SNAPSHOT + 2.1.7 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.7-SNAPSHOT + 0.91.7 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.7-SNAPSHOT + 0.91.7 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.7-SNAPSHOT + 2.1.7
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index e21e47bc..7f9ecd06 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.7-SNAPSHOT + 2.1.7 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.7-SNAPSHOT + 2.1.7 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index f967614c..9fa8623e 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.7-SNAPSHOT + 2.1.7 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.7-SNAPSHOT + 2.1.7 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 09cd763c..1acaad35 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.7-SNAPSHOT + 0.91.7 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.7-SNAPSHOT + 2.1.7 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index c016aed9..39235008 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.7-SNAPSHOT + 0.91.7 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.7-SNAPSHOT + 2.1.7 diff --git a/pom.xml b/pom.xml index cc413063..eeaadea7 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.7-SNAPSHOT + 2.1.7 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.7-SNAPSHOT + 0.91.7 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.7-SNAPSHOT + 0.91.7 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.7-SNAPSHOT + 2.1.7 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.7-SNAPSHOT + 0.91.7 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.7-SNAPSHOT + 0.91.7 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.7-SNAPSHOT + 2.1.7 com.google.cloud google-cloud-tasks - 2.1.7-SNAPSHOT + 2.1.7 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 96268667..97915652 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.7-SNAPSHOT + 2.1.7 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.7-SNAPSHOT + 2.1.7 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 3f03b093..91fee9e7 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.7-SNAPSHOT + 0.91.7 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.7-SNAPSHOT + 2.1.7 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 277f62d6..8420dfb2 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.7-SNAPSHOT + 0.91.7 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.7-SNAPSHOT + 2.1.7 diff --git a/versions.txt b/versions.txt index ebc87ef0..49c1748e 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.6:2.1.7-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.91.6:0.91.7-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.91.6:0.91.7-SNAPSHOT -grpc-google-cloud-tasks-v2:2.1.6:2.1.7-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.91.6:0.91.7-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.91.6:0.91.7-SNAPSHOT -proto-google-cloud-tasks-v2:2.1.6:2.1.7-SNAPSHOT +google-cloud-tasks:2.1.7:2.1.7 +grpc-google-cloud-tasks-v2beta3:0.91.7:0.91.7 +grpc-google-cloud-tasks-v2beta2:0.91.7:0.91.7 +grpc-google-cloud-tasks-v2:2.1.7:2.1.7 +proto-google-cloud-tasks-v2beta3:0.91.7:0.91.7 +proto-google-cloud-tasks-v2beta2:0.91.7:0.91.7 +proto-google-cloud-tasks-v2:2.1.7:2.1.7 From 005acf084e54019bc9b02c940f00787e4d476022 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 10 Mar 2022 22:30:24 +0000 Subject: [PATCH 259/401] chore(main): release 2.1.8-SNAPSHOT (#646) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index d83f6e2e..507566cd 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.7 + 2.1.8-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.7 + 2.1.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.7 + 0.91.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.7 + 0.91.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.7 + 2.1.8-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.7 + 0.91.8-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.7 + 0.91.8-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.7 + 2.1.8-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 7f9ecd06..73aad7e6 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.7 + 2.1.8-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.7 + 2.1.8-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 9fa8623e..ba3d130d 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.7 + 2.1.8-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.7 + 2.1.8-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 1acaad35..f74b039b 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.7 + 0.91.8-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.7 + 2.1.8-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 39235008..424f6129 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.7 + 0.91.8-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.7 + 2.1.8-SNAPSHOT diff --git a/pom.xml b/pom.xml index eeaadea7..e4111f7b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.7 + 2.1.8-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.7 + 0.91.8-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.7 + 0.91.8-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.7 + 2.1.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.7 + 0.91.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.7 + 0.91.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.7 + 2.1.8-SNAPSHOT com.google.cloud google-cloud-tasks - 2.1.7 + 2.1.8-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 97915652..fdc9d3ed 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.7 + 2.1.8-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.7 + 2.1.8-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 91fee9e7..ceb1fbbb 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.7 + 0.91.8-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.7 + 2.1.8-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 8420dfb2..eb19f7df 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.7 + 0.91.8-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.7 + 2.1.8-SNAPSHOT diff --git a/versions.txt b/versions.txt index 49c1748e..99d14774 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.7:2.1.7 -grpc-google-cloud-tasks-v2beta3:0.91.7:0.91.7 -grpc-google-cloud-tasks-v2beta2:0.91.7:0.91.7 -grpc-google-cloud-tasks-v2:2.1.7:2.1.7 -proto-google-cloud-tasks-v2beta3:0.91.7:0.91.7 -proto-google-cloud-tasks-v2beta2:0.91.7:0.91.7 -proto-google-cloud-tasks-v2:2.1.7:2.1.7 +google-cloud-tasks:2.1.7:2.1.8-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.91.7:0.91.8-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.91.7:0.91.8-SNAPSHOT +grpc-google-cloud-tasks-v2:2.1.7:2.1.8-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.91.7:0.91.8-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.91.7:0.91.8-SNAPSHOT +proto-google-cloud-tasks-v2:2.1.7:2.1.8-SNAPSHOT From acdf18322d2a7e166a8076b892c723eb4c3b498c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Mar 2022 23:02:30 +0100 Subject: [PATCH 260/401] chore(deps): update dependency com.google.cloud:libraries-bom to v25 (#649) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.4.0` -> `25.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/compatibility-slim/24.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/confidence-slim/24.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- README.md | 6 +++--- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7b1fe986..2d74261b 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.1.6 + 2.1.7 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.1.6' +implementation 'com.google.cloud:google-cloud-tasks:2.1.7' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.6" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.7" ``` ## Authentication diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index b022ca84..81e67575 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -29,7 +29,7 @@ com.google.cloud libraries-bom - 24.4.0 + 25.0.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index b8d8ce12..e0272648 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.4.0 + 25.0.0 pom import From 0ff381c432ce5ece411ea7aebb5f49ff8665345a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Mar 2022 23:06:17 +0100 Subject: [PATCH 261/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.1.7 (#647) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.1.6` -> `2.1.7` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.7/compatibility-slim/2.1.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.7/confidence-slim/2.1.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-tasks ### [`v2.1.7`](https://togithub.com/googleapis/java-tasks/blob/HEAD/CHANGELOG.md#​217-httpsgithubcomgoogleapisjava-taskscomparev216v217-2022-03-10) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v2.1.6...v2.1.7)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 7e6cf6b8..84b0c536 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.1.6 + 2.1.7 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 37b9af87..79772413 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.1.6 + 2.1.7 From 58aaab632b0ab3d6d64bcbe0e19ec5239916397c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Mar 2022 23:14:23 +0100 Subject: [PATCH 262/401] deps: update dependency com.google.cloud:native-image-support to v0.12.10 (#648) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:native-image-support](https://togithub.com/googleapis/java-core) | `0.12.9` -> `0.12.10` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.10/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.10/compatibility-slim/0.12.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.12.10/confidence-slim/0.12.9)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 81e67575..c3209ef1 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -84,7 +84,7 @@ com.google.cloud native-image-support - 0.12.9 + 0.12.10 org.junit.vintage From db1e19a1b2a21fcaca0039505cf310cb1f5acb5e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 14 Mar 2022 22:58:18 +0000 Subject: [PATCH 263/401] chore(main): release 2.1.8 (#650) :robot: I have created a release *beep* *boop* --- ### [2.1.8](https://github.com/googleapis/java-tasks/compare/v2.1.7...v2.1.8) (2022-03-14) ### Dependencies * update dependency com.google.cloud:native-image-support to v0.12.10 ([#648](https://github.com/googleapis/java-tasks/issues/648)) ([58aaab6](https://github.com/googleapis/java-tasks/commit/58aaab632b0ab3d6d64bcbe0e19ec5239916397c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b9fee74..f873437f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [2.1.8](https://github.com/googleapis/java-tasks/compare/v2.1.7...v2.1.8) (2022-03-14) + + +### Dependencies + +* update dependency com.google.cloud:native-image-support to v0.12.10 ([#648](https://github.com/googleapis/java-tasks/issues/648)) ([58aaab6](https://github.com/googleapis/java-tasks/commit/58aaab632b0ab3d6d64bcbe0e19ec5239916397c)) + ### [2.1.7](https://github.com/googleapis/java-tasks/compare/v2.1.6...v2.1.7) (2022-03-10) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 507566cd..a128d1a1 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.8-SNAPSHOT + 2.1.8 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.8-SNAPSHOT + 2.1.8 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.8-SNAPSHOT + 0.91.8 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.8-SNAPSHOT + 0.91.8 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.8-SNAPSHOT + 2.1.8 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.8-SNAPSHOT + 0.91.8 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.8-SNAPSHOT + 0.91.8 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.8-SNAPSHOT + 2.1.8
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 73aad7e6..5ca0422c 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.8-SNAPSHOT + 2.1.8 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.8-SNAPSHOT + 2.1.8 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index ba3d130d..42de4782 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.8-SNAPSHOT + 2.1.8 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.8-SNAPSHOT + 2.1.8 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index f74b039b..e21272b7 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.8-SNAPSHOT + 0.91.8 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.8-SNAPSHOT + 2.1.8 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 424f6129..f8d0040e 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.8-SNAPSHOT + 0.91.8 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.8-SNAPSHOT + 2.1.8 diff --git a/pom.xml b/pom.xml index e4111f7b..008efc2b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.8-SNAPSHOT + 2.1.8 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.8-SNAPSHOT + 0.91.8 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.8-SNAPSHOT + 0.91.8 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.8-SNAPSHOT + 2.1.8 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.8-SNAPSHOT + 0.91.8 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.8-SNAPSHOT + 0.91.8 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.8-SNAPSHOT + 2.1.8 com.google.cloud google-cloud-tasks - 2.1.8-SNAPSHOT + 2.1.8 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index fdc9d3ed..0ae56bc6 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.8-SNAPSHOT + 2.1.8 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.8-SNAPSHOT + 2.1.8 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index ceb1fbbb..847c3f25 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.8-SNAPSHOT + 0.91.8 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.8-SNAPSHOT + 2.1.8 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index eb19f7df..b0edc9cc 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.8-SNAPSHOT + 0.91.8 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.8-SNAPSHOT + 2.1.8 diff --git a/versions.txt b/versions.txt index 99d14774..6e243881 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.7:2.1.8-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.91.7:0.91.8-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.91.7:0.91.8-SNAPSHOT -grpc-google-cloud-tasks-v2:2.1.7:2.1.8-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.91.7:0.91.8-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.91.7:0.91.8-SNAPSHOT -proto-google-cloud-tasks-v2:2.1.7:2.1.8-SNAPSHOT +google-cloud-tasks:2.1.8:2.1.8 +grpc-google-cloud-tasks-v2beta3:0.91.8:0.91.8 +grpc-google-cloud-tasks-v2beta2:0.91.8:0.91.8 +grpc-google-cloud-tasks-v2:2.1.8:2.1.8 +proto-google-cloud-tasks-v2beta3:0.91.8:0.91.8 +proto-google-cloud-tasks-v2beta2:0.91.8:0.91.8 +proto-google-cloud-tasks-v2:2.1.8:2.1.8 From 43697b3f910a06c945835b53d995a5872c9b06c3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 14 Mar 2022 23:38:21 +0000 Subject: [PATCH 264/401] chore(main): release 2.1.9-SNAPSHOT (#651) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index a128d1a1..b80d302d 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.8 + 2.1.9-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.8 + 2.1.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.8 + 0.91.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.8 + 0.91.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.8 + 2.1.9-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.8 + 0.91.9-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.8 + 0.91.9-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.8 + 2.1.9-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 5ca0422c..68dbc018 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.8 + 2.1.9-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.8 + 2.1.9-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 42de4782..39db1dbb 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.8 + 2.1.9-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.8 + 2.1.9-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index e21272b7..acf91f62 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.8 + 0.91.9-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.8 + 2.1.9-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index f8d0040e..f8a6ce23 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.8 + 0.91.9-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.8 + 2.1.9-SNAPSHOT diff --git a/pom.xml b/pom.xml index 008efc2b..bf37b1b7 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.8 + 2.1.9-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.8 + 0.91.9-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.8 + 0.91.9-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.8 + 2.1.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.8 + 0.91.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.8 + 0.91.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.8 + 2.1.9-SNAPSHOT com.google.cloud google-cloud-tasks - 2.1.8 + 2.1.9-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 0ae56bc6..41681ee6 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.8 + 2.1.9-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.8 + 2.1.9-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 847c3f25..b4c35387 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.8 + 0.91.9-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.8 + 2.1.9-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index b0edc9cc..333114c4 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.8 + 0.91.9-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.8 + 2.1.9-SNAPSHOT diff --git a/versions.txt b/versions.txt index 6e243881..55fc0680 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.8:2.1.8 -grpc-google-cloud-tasks-v2beta3:0.91.8:0.91.8 -grpc-google-cloud-tasks-v2beta2:0.91.8:0.91.8 -grpc-google-cloud-tasks-v2:2.1.8:2.1.8 -proto-google-cloud-tasks-v2beta3:0.91.8:0.91.8 -proto-google-cloud-tasks-v2beta2:0.91.8:0.91.8 -proto-google-cloud-tasks-v2:2.1.8:2.1.8 +google-cloud-tasks:2.1.8:2.1.9-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.91.8:0.91.9-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.91.8:0.91.9-SNAPSHOT +grpc-google-cloud-tasks-v2:2.1.8:2.1.9-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.91.8:0.91.9-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.91.8:0.91.9-SNAPSHOT +proto-google-cloud-tasks-v2:2.1.8:2.1.9-SNAPSHOT From 13f889736b24dd4415527fd367cbfc0ae370834f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 16 Mar 2022 15:48:23 +0100 Subject: [PATCH 265/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.1.8 (#652) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.1.7` -> `2.1.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.8/compatibility-slim/2.1.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.8/confidence-slim/2.1.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-tasks ### [`v2.1.8`](https://togithub.com/googleapis/java-tasks/blob/HEAD/CHANGELOG.md#​218-httpsgithubcomgoogleapisjava-taskscomparev217v218-2022-03-14) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v2.1.7...v2.1.8)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2d74261b..051a8f9e 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.1.7 + 2.1.8 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.1.7' +implementation 'com.google.cloud:google-cloud-tasks:2.1.8' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.7" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.8" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 84b0c536..75d12ba1 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.1.7 + 2.1.8 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 79772413..7a245b9e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.1.7 + 2.1.8 From 10eae14f22bd2c4aea147b5d94e1637b3a2a3f73 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 24 Mar 2022 16:12:28 +0100 Subject: [PATCH 266/401] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.11 (#653) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:junit-platform-native](https://togithub.com/graalvm/native-build-tools) | `0.9.10` -> `0.9.11` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.11/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.11/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.11/compatibility-slim/0.9.10)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.11/confidence-slim/0.9.10)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
graalvm/native-build-tools ### [`v0.9.11`](https://togithub.com/graalvm/native-build-tools/releases/0.9.11) [Compare Source](https://togithub.com/graalvm/native-build-tools/compare/0.9.10...0.9.11) ##### What's Changed Read what's new in the [documentation](https://graalvm.github.io/native-build-tools/latest/index.html#changelog). - Add issue templates by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/216](https://togithub.com/graalvm/native-build-tools/pull/216) - Fix [@​arg](https://togithub.com/arg) file not being used for tests in Maven by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/212](https://togithub.com/graalvm/native-build-tools/pull/212) - Make it possible to use environment variables in native tests by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/217](https://togithub.com/graalvm/native-build-tools/pull/217) - Fix incorrect declaration of output directory by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/219](https://togithub.com/graalvm/native-build-tools/pull/219) - Refactor build by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/220](https://togithub.com/graalvm/native-build-tools/pull/220) - Integrate native configuration repository with Gradle by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/204](https://togithub.com/graalvm/native-build-tools/pull/204) - Rework argfile generation by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/223](https://togithub.com/graalvm/native-build-tools/pull/223) - Rename `metadataRepository` and document feature by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/225](https://togithub.com/graalvm/native-build-tools/pull/225) - Support applications with custom packaging types by [@​alvarosanchez](https://togithub.com/alvarosanchez) in [https://github.com/graalvm/native-build-tools/pull/226](https://togithub.com/graalvm/native-build-tools/pull/226) ##### New Contributors - [@​alvarosanchez](https://togithub.com/alvarosanchez) made their first contribution in [https://github.com/graalvm/native-build-tools/pull/226](https://togithub.com/graalvm/native-build-tools/pull/226) **Full Changelog**: https://github.com/graalvm/native-build-tools/compare/0.9.10...0.9.11
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index c3209ef1..21dc74cc 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -94,7 +94,7 @@ org.graalvm.buildtools junit-platform-native - 0.9.10 + 0.9.11 test
From 7a5b271f1bc4793633fcf7c89ef844be8629e0c7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 24 Mar 2022 16:14:12 +0100 Subject: [PATCH 267/401] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.11 (#654) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:native-maven-plugin](https://togithub.com/graalvm/native-build-tools) | `0.9.10` -> `0.9.11` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.11/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.11/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.11/compatibility-slim/0.9.10)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.11/confidence-slim/0.9.10)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
graalvm/native-build-tools ### [`v0.9.11`](https://togithub.com/graalvm/native-build-tools/releases/0.9.11) [Compare Source](https://togithub.com/graalvm/native-build-tools/compare/0.9.10...0.9.11) ##### What's Changed Read what's new in the [documentation](https://graalvm.github.io/native-build-tools/latest/index.html#changelog). - Add issue templates by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/216](https://togithub.com/graalvm/native-build-tools/pull/216) - Fix [@​arg](https://togithub.com/arg) file not being used for tests in Maven by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/212](https://togithub.com/graalvm/native-build-tools/pull/212) - Make it possible to use environment variables in native tests by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/217](https://togithub.com/graalvm/native-build-tools/pull/217) - Fix incorrect declaration of output directory by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/219](https://togithub.com/graalvm/native-build-tools/pull/219) - Refactor build by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/220](https://togithub.com/graalvm/native-build-tools/pull/220) - Integrate native configuration repository with Gradle by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/204](https://togithub.com/graalvm/native-build-tools/pull/204) - Rework argfile generation by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/223](https://togithub.com/graalvm/native-build-tools/pull/223) - Rename `metadataRepository` and document feature by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/225](https://togithub.com/graalvm/native-build-tools/pull/225) - Support applications with custom packaging types by [@​alvarosanchez](https://togithub.com/alvarosanchez) in [https://github.com/graalvm/native-build-tools/pull/226](https://togithub.com/graalvm/native-build-tools/pull/226) ##### New Contributors - [@​alvarosanchez](https://togithub.com/alvarosanchez) made their first contribution in [https://github.com/graalvm/native-build-tools/pull/226](https://togithub.com/graalvm/native-build-tools/pull/226) **Full Changelog**: https://github.com/graalvm/native-build-tools/compare/0.9.10...0.9.11
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 21dc74cc..d5fb38e7 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -114,7 +114,7 @@ org.graalvm.buildtools native-maven-plugin - 0.9.10 + 0.9.11 true com.example.tasks.TasksSampleApplication From a322b7741ec4c69665347a9529fabbdc68c6910a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 24 Mar 2022 15:26:12 +0000 Subject: [PATCH 268/401] chore(main): release 2.1.9 (#655) :robot: I have created a release *beep* *boop* --- ### [2.1.9](https://github.com/googleapis/java-tasks/compare/v2.1.8...v2.1.9) (2022-03-24) ### Dependencies * update dependency org.graalvm.buildtools:junit-platform-native to v0.9.11 ([#653](https://github.com/googleapis/java-tasks/issues/653)) ([10eae14](https://github.com/googleapis/java-tasks/commit/10eae14f22bd2c4aea147b5d94e1637b3a2a3f73)) * update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.11 ([#654](https://github.com/googleapis/java-tasks/issues/654)) ([7a5b271](https://github.com/googleapis/java-tasks/commit/7a5b271f1bc4793633fcf7c89ef844be8629e0c7)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 8 ++++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 45 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f873437f..f877395e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### [2.1.9](https://github.com/googleapis/java-tasks/compare/v2.1.8...v2.1.9) (2022-03-24) + + +### Dependencies + +* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.11 ([#653](https://github.com/googleapis/java-tasks/issues/653)) ([10eae14](https://github.com/googleapis/java-tasks/commit/10eae14f22bd2c4aea147b5d94e1637b3a2a3f73)) +* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.11 ([#654](https://github.com/googleapis/java-tasks/issues/654)) ([7a5b271](https://github.com/googleapis/java-tasks/commit/7a5b271f1bc4793633fcf7c89ef844be8629e0c7)) + ### [2.1.8](https://github.com/googleapis/java-tasks/compare/v2.1.7...v2.1.8) (2022-03-14) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index b80d302d..4eb88671 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.9-SNAPSHOT + 2.1.9 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.9-SNAPSHOT + 2.1.9 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.9-SNAPSHOT + 0.91.9 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.9-SNAPSHOT + 0.91.9 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.9-SNAPSHOT + 2.1.9 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.9-SNAPSHOT + 0.91.9 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.9-SNAPSHOT + 0.91.9 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.9-SNAPSHOT + 2.1.9
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 68dbc018..2a228c71 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.9-SNAPSHOT + 2.1.9 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.9-SNAPSHOT + 2.1.9 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 39db1dbb..81bac26f 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.9-SNAPSHOT + 2.1.9 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.9-SNAPSHOT + 2.1.9 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index acf91f62..ad4db9b6 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.9-SNAPSHOT + 0.91.9 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.9-SNAPSHOT + 2.1.9 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index f8a6ce23..a3f71efa 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.9-SNAPSHOT + 0.91.9 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.9-SNAPSHOT + 2.1.9 diff --git a/pom.xml b/pom.xml index bf37b1b7..e5e5d91c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.9-SNAPSHOT + 2.1.9 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.9-SNAPSHOT + 0.91.9 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.9-SNAPSHOT + 0.91.9 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.9-SNAPSHOT + 2.1.9 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.9-SNAPSHOT + 0.91.9 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.9-SNAPSHOT + 0.91.9 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.9-SNAPSHOT + 2.1.9 com.google.cloud google-cloud-tasks - 2.1.9-SNAPSHOT + 2.1.9 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 41681ee6..2a633e7e 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.9-SNAPSHOT + 2.1.9 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.9-SNAPSHOT + 2.1.9 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index b4c35387..7d61f49e 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.9-SNAPSHOT + 0.91.9 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.9-SNAPSHOT + 2.1.9 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 333114c4..04686201 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.9-SNAPSHOT + 0.91.9 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.9-SNAPSHOT + 2.1.9 diff --git a/versions.txt b/versions.txt index 55fc0680..d91979b7 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.8:2.1.9-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.91.8:0.91.9-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.91.8:0.91.9-SNAPSHOT -grpc-google-cloud-tasks-v2:2.1.8:2.1.9-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.91.8:0.91.9-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.91.8:0.91.9-SNAPSHOT -proto-google-cloud-tasks-v2:2.1.8:2.1.9-SNAPSHOT +google-cloud-tasks:2.1.9:2.1.9 +grpc-google-cloud-tasks-v2beta3:0.91.9:0.91.9 +grpc-google-cloud-tasks-v2beta2:0.91.9:0.91.9 +grpc-google-cloud-tasks-v2:2.1.9:2.1.9 +proto-google-cloud-tasks-v2beta3:0.91.9:0.91.9 +proto-google-cloud-tasks-v2beta2:0.91.9:0.91.9 +proto-google-cloud-tasks-v2:2.1.9:2.1.9 From 0380f217d1f10f3f241a7258df4a3e54561c5a1a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 24 Mar 2022 15:58:16 +0000 Subject: [PATCH 269/401] chore(main): release 2.1.10-SNAPSHOT (#656) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 4eb88671..d80a0c0a 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.9 + 2.1.10-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.9 + 2.1.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.9 + 0.91.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.9 + 0.91.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.9 + 2.1.10-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.9 + 0.91.10-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.9 + 0.91.10-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.9 + 2.1.10-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 2a228c71..74480ea7 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.9 + 2.1.10-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.9 + 2.1.10-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 81bac26f..273e93a9 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.9 + 2.1.10-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.9 + 2.1.10-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index ad4db9b6..15ac7c4d 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.9 + 0.91.10-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.9 + 2.1.10-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index a3f71efa..871c16b0 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.9 + 0.91.10-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.9 + 2.1.10-SNAPSHOT diff --git a/pom.xml b/pom.xml index e5e5d91c..6404e37f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.9 + 2.1.10-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.9 + 0.91.10-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.9 + 0.91.10-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.9 + 2.1.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.9 + 0.91.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.9 + 0.91.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.9 + 2.1.10-SNAPSHOT com.google.cloud google-cloud-tasks - 2.1.9 + 2.1.10-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 2a633e7e..ed66b643 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.9 + 2.1.10-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.9 + 2.1.10-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 7d61f49e..049f33b8 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.9 + 0.91.10-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.9 + 2.1.10-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 04686201..c798a1e6 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.9 + 0.91.10-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.9 + 2.1.10-SNAPSHOT diff --git a/versions.txt b/versions.txt index d91979b7..756c8fbe 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.9:2.1.9 -grpc-google-cloud-tasks-v2beta3:0.91.9:0.91.9 -grpc-google-cloud-tasks-v2beta2:0.91.9:0.91.9 -grpc-google-cloud-tasks-v2:2.1.9:2.1.9 -proto-google-cloud-tasks-v2beta3:0.91.9:0.91.9 -proto-google-cloud-tasks-v2beta2:0.91.9:0.91.9 -proto-google-cloud-tasks-v2:2.1.9:2.1.9 +google-cloud-tasks:2.1.9:2.1.10-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.91.9:0.91.10-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.91.9:0.91.10-SNAPSHOT +grpc-google-cloud-tasks-v2:2.1.9:2.1.10-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.91.9:0.91.10-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.91.9:0.91.10-SNAPSHOT +proto-google-cloud-tasks-v2:2.1.9:2.1.10-SNAPSHOT From fa48a0a853dd3cd7d25cf61c64f0f024769bf357 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 25 Mar 2022 19:32:14 +0100 Subject: [PATCH 270/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.1.9 (#657) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.1.8` -> `2.1.9` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.9/compatibility-slim/2.1.8)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.9/confidence-slim/2.1.8)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-tasks ### [`v2.1.9`](https://togithub.com/googleapis/java-tasks/blob/HEAD/CHANGELOG.md#​219-httpsgithubcomgoogleapisjava-taskscomparev218v219-2022-03-24) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v2.1.8...v2.1.9)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 051a8f9e..d6db8643 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.1.8 + 2.1.9 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.1.8' +implementation 'com.google.cloud:google-cloud-tasks:2.1.9' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.8" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.9" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 75d12ba1..09d84361 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.1.8 + 2.1.9 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 7a245b9e..24845aeb 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.1.8 + 2.1.9 From 2513e4d16a908a6e4e0c6432ed038d5f98ab43b5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 29 Mar 2022 19:06:49 +0200 Subject: [PATCH 271/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.3.2 (#658) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.3.0` -> `1.3.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.2/compatibility-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.2/confidence-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.3.2`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​132-httpsgithubcomgoogleapisjava-shared-configcomparev131v132-2022-03-28) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.3.1...v1.3.2) ### [`v1.3.1`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​131-httpsgithubcomgoogleapisjava-shared-configcomparev130v131-2022-03-25) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.3.0...v1.3.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index d80a0c0a..c083d495 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.3.0 + 1.3.2 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index 6404e37f..aa1ad894 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.3.0 + 1.3.2 From 7f3d52a2e51add5bcbeffa4fb51c22199960eb05 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 29 Mar 2022 20:10:13 +0200 Subject: [PATCH 272/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 (#660) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.8.0` -> `2.9.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.9.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.9.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.9.0/compatibility-slim/2.8.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.9.0/confidence-slim/2.8.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.9.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​290-httpsgithubcomgoogleapisjava-shared-dependenciescomparev280v290-2022-03-28) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.8.0...v2.9.0) ##### Dependencies - guava 31.1 ([#​635](https://togithub.com/googleapis/java-shared-dependencies/issues/635)) ([0939b06](https://togithub.com/googleapis/java-shared-dependencies/commit/0939b063a79cd4ffafb49cf04861ce577e35efd6)) - update dependency com.fasterxml.jackson:jackson-bom to v2.13.2 ([#​626](https://togithub.com/googleapis/java-shared-dependencies/issues/626)) ([6014663](https://togithub.com/googleapis/java-shared-dependencies/commit/601466339c9631faa88033d1ff1e31582fb67b7b)) - update dependency com.fasterxml.jackson:jackson-bom to v2.13.2.20220324 ([#​636](https://togithub.com/googleapis/java-shared-dependencies/issues/636)) ([6c833fa](https://togithub.com/googleapis/java-shared-dependencies/commit/6c833faa7815147013999bfc2bb6935fd8fe6b34)) - update dependency com.google.api-client:google-api-client-bom to v1.33.4 ([#​642](https://togithub.com/googleapis/java-shared-dependencies/issues/642)) ([57bd912](https://togithub.com/googleapis/java-shared-dependencies/commit/57bd9124ce8981b7b3b5d0c87b7c1e5f935b7150)) - update dependency com.google.api:api-common to v2.1.5 ([#​637](https://togithub.com/googleapis/java-shared-dependencies/issues/637)) ([d3a00fa](https://togithub.com/googleapis/java-shared-dependencies/commit/d3a00fa5ce9908000122d8365fb2f2d0e388494b)) - update dependency com.google.auth:google-auth-library-bom to v1.6.0 ([#​631](https://togithub.com/googleapis/java-shared-dependencies/issues/631)) ([53dc7c2](https://togithub.com/googleapis/java-shared-dependencies/commit/53dc7c2fe255a6c7ca059dd414449bf96780f936)) - update dependency com.google.cloud:google-cloud-core-bom to v2.5.11 ([#​644](https://togithub.com/googleapis/java-shared-dependencies/issues/644)) ([4331dcc](https://togithub.com/googleapis/java-shared-dependencies/commit/4331dcc331e8377fcc57e5404321611186ca22cb)) - update dependency com.google.http-client:google-http-client-bom to v1.41.5 ([#​638](https://togithub.com/googleapis/java-shared-dependencies/issues/638)) ([e007d23](https://togithub.com/googleapis/java-shared-dependencies/commit/e007d2381bd388a1c199fc3f31d0b965f8ae592d)) - update dependency io.grpc:grpc-bom to v1.45.0 ([#​630](https://togithub.com/googleapis/java-shared-dependencies/issues/630)) ([20334e3](https://togithub.com/googleapis/java-shared-dependencies/commit/20334e30d256897cd7ef52c646e5c4549cd7ae69)) - update dependency org.threeten:threetenbp to v1.6.0 ([#​633](https://togithub.com/googleapis/java-shared-dependencies/issues/633)) ([1a2716d](https://togithub.com/googleapis/java-shared-dependencies/commit/1a2716d22e442c5cd6adea9449756b9ac3ddbf8e)) - update gax.version to v2.13.0 ([#​641](https://togithub.com/googleapis/java-shared-dependencies/issues/641)) ([b863746](https://togithub.com/googleapis/java-shared-dependencies/commit/b863746727fadd45c35198f58eb862f47fe14945)) - update google.common-protos.version to v2.8.0 ([#​639](https://togithub.com/googleapis/java-shared-dependencies/issues/639)) ([252afba](https://togithub.com/googleapis/java-shared-dependencies/commit/252afba1df8e4cfdf2574d127097b0978b7778c0)) - update google.core.version to v2.5.10 ([#​628](https://togithub.com/googleapis/java-shared-dependencies/issues/628)) ([fec6f51](https://togithub.com/googleapis/java-shared-dependencies/commit/fec6f5121384a04a389bad6f6477a9a5ce468016)) - update iam.version to v1.2.10 ([#​625](https://togithub.com/googleapis/java-shared-dependencies/issues/625)) ([0d7ca29](https://togithub.com/googleapis/java-shared-dependencies/commit/0d7ca2924bd24abe14883c173156bb4dc5fb90bf))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index aa1ad894..0562da3f 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.8.0 + 2.9.0 pom import From 55ef45926c65f68c41ebfbd7b2216e8428ae31be Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 30 Mar 2022 01:58:04 +0200 Subject: [PATCH 273/401] deps: update dependency com.google.cloud:native-image-support to v0.12.11 (#659) --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index d5fb38e7..da360a77 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -84,7 +84,7 @@ com.google.cloud native-image-support - 0.12.10 + 0.12.11
org.junit.vintage From a42d390763ed438bde2191ef4a02e6f161a6a587 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 30 Mar 2022 00:04:21 +0000 Subject: [PATCH 274/401] chore(main): release 2.1.10 (#661) :robot: I have created a release *beep* *boop* --- ### [2.1.10](https://github.com/googleapis/java-tasks/compare/v2.1.9...v2.1.10) (2022-03-29) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 ([#660](https://github.com/googleapis/java-tasks/issues/660)) ([7f3d52a](https://github.com/googleapis/java-tasks/commit/7f3d52a2e51add5bcbeffa4fb51c22199960eb05)) * update dependency com.google.cloud:native-image-support to v0.12.11 ([#659](https://github.com/googleapis/java-tasks/issues/659)) ([55ef459](https://github.com/googleapis/java-tasks/commit/55ef45926c65f68c41ebfbd7b2216e8428ae31be)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 8 ++++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 45 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f877395e..680d4ea8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +### [2.1.10](https://github.com/googleapis/java-tasks/compare/v2.1.9...v2.1.10) (2022-03-29) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 ([#660](https://github.com/googleapis/java-tasks/issues/660)) ([7f3d52a](https://github.com/googleapis/java-tasks/commit/7f3d52a2e51add5bcbeffa4fb51c22199960eb05)) +* update dependency com.google.cloud:native-image-support to v0.12.11 ([#659](https://github.com/googleapis/java-tasks/issues/659)) ([55ef459](https://github.com/googleapis/java-tasks/commit/55ef45926c65f68c41ebfbd7b2216e8428ae31be)) + ### [2.1.9](https://github.com/googleapis/java-tasks/compare/v2.1.8...v2.1.9) (2022-03-24) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index c083d495..22448a79 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.10-SNAPSHOT + 2.1.10 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.10-SNAPSHOT + 2.1.10 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.10-SNAPSHOT + 0.91.10 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.10-SNAPSHOT + 0.91.10 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.10-SNAPSHOT + 2.1.10 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.10-SNAPSHOT + 0.91.10 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.10-SNAPSHOT + 0.91.10 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.10-SNAPSHOT + 2.1.10
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 74480ea7..f98d9661 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.10-SNAPSHOT + 2.1.10 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.10-SNAPSHOT + 2.1.10 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 273e93a9..f27c68b9 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.10-SNAPSHOT + 2.1.10 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.10-SNAPSHOT + 2.1.10 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 15ac7c4d..af56aee9 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.10-SNAPSHOT + 0.91.10 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.10-SNAPSHOT + 2.1.10 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 871c16b0..ea823917 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.10-SNAPSHOT + 0.91.10 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.10-SNAPSHOT + 2.1.10 diff --git a/pom.xml b/pom.xml index 0562da3f..afb338da 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.10-SNAPSHOT + 2.1.10 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.10-SNAPSHOT + 0.91.10 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.10-SNAPSHOT + 0.91.10 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.10-SNAPSHOT + 2.1.10 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.10-SNAPSHOT + 0.91.10 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.10-SNAPSHOT + 0.91.10 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.10-SNAPSHOT + 2.1.10 com.google.cloud google-cloud-tasks - 2.1.10-SNAPSHOT + 2.1.10 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index ed66b643..149ecc90 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.10-SNAPSHOT + 2.1.10 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.10-SNAPSHOT + 2.1.10 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 049f33b8..13434078 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.10-SNAPSHOT + 0.91.10 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.10-SNAPSHOT + 2.1.10 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index c798a1e6..bc0b096f 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.10-SNAPSHOT + 0.91.10 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.10-SNAPSHOT + 2.1.10 diff --git a/versions.txt b/versions.txt index 756c8fbe..b32d6242 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.9:2.1.10-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.91.9:0.91.10-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.91.9:0.91.10-SNAPSHOT -grpc-google-cloud-tasks-v2:2.1.9:2.1.10-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.91.9:0.91.10-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.91.9:0.91.10-SNAPSHOT -proto-google-cloud-tasks-v2:2.1.9:2.1.10-SNAPSHOT +google-cloud-tasks:2.1.10:2.1.10 +grpc-google-cloud-tasks-v2beta3:0.91.10:0.91.10 +grpc-google-cloud-tasks-v2beta2:0.91.10:0.91.10 +grpc-google-cloud-tasks-v2:2.1.10:2.1.10 +proto-google-cloud-tasks-v2beta3:0.91.10:0.91.10 +proto-google-cloud-tasks-v2beta2:0.91.10:0.91.10 +proto-google-cloud-tasks-v2:2.1.10:2.1.10 From 7fee400d523ca10b7d40e2e20754af759021c1f4 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 30 Mar 2022 00:10:19 +0000 Subject: [PATCH 275/401] chore(main): release 2.1.11-SNAPSHOT (#662) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 22448a79..a486d57b 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.10 + 2.1.11-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.10 + 2.1.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.10 + 0.91.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.10 + 0.91.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.10 + 2.1.11-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.10 + 0.91.11-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.10 + 0.91.11-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.10 + 2.1.11-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index f98d9661..28f45477 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.10 + 2.1.11-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.10 + 2.1.11-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index f27c68b9..af07511f 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.10 + 2.1.11-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.10 + 2.1.11-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index af56aee9..a5c82d30 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.10 + 0.91.11-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.10 + 2.1.11-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index ea823917..22091dce 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.10 + 0.91.11-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.10 + 2.1.11-SNAPSHOT diff --git a/pom.xml b/pom.xml index afb338da..143ba903 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.10 + 2.1.11-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.10 + 0.91.11-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.10 + 0.91.11-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.10 + 2.1.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.10 + 0.91.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.10 + 0.91.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.10 + 2.1.11-SNAPSHOT com.google.cloud google-cloud-tasks - 2.1.10 + 2.1.11-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 149ecc90..cbaa19ad 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.10 + 2.1.11-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.10 + 2.1.11-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 13434078..ee2a0611 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.10 + 0.91.11-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.10 + 2.1.11-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index bc0b096f..cdec9fc9 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.10 + 0.91.11-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.10 + 2.1.11-SNAPSHOT diff --git a/versions.txt b/versions.txt index b32d6242..7e772601 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.10:2.1.10 -grpc-google-cloud-tasks-v2beta3:0.91.10:0.91.10 -grpc-google-cloud-tasks-v2beta2:0.91.10:0.91.10 -grpc-google-cloud-tasks-v2:2.1.10:2.1.10 -proto-google-cloud-tasks-v2beta3:0.91.10:0.91.10 -proto-google-cloud-tasks-v2beta2:0.91.10:0.91.10 -proto-google-cloud-tasks-v2:2.1.10:2.1.10 +google-cloud-tasks:2.1.10:2.1.11-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.91.10:0.91.11-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.91.10:0.91.11-SNAPSHOT +grpc-google-cloud-tasks-v2:2.1.10:2.1.11-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.91.10:0.91.11-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.91.10:0.91.11-SNAPSHOT +proto-google-cloud-tasks-v2:2.1.10:2.1.11-SNAPSHOT From 663cf4ec268b3efc299a359b2881a2a7a0c4c2f3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Apr 2022 19:04:14 +0200 Subject: [PATCH 276/401] chore(deps): update dependency com.google.cloud:libraries-bom to v25.1.0 (#664) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.0.0` -> `25.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/compatibility-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/confidence-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- README.md | 6 +++--- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d6db8643..431c9d95 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.1.9 + 2.1.10 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.1.9' +implementation 'com.google.cloud:google-cloud-tasks:2.1.10' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.9" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.10" ``` ## Authentication diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index da360a77..fc8394d0 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -29,7 +29,7 @@ com.google.cloud libraries-bom - 25.0.0 + 25.1.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index e0272648..baa6658f 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.0.0 + 25.1.0 pom import From 1f130c938148486bd9249f8629d8ac9b2eea6475 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Apr 2022 19:04:20 +0200 Subject: [PATCH 277/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.1.10 (#663) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.1.9` -> `2.1.10` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.10/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.10/compatibility-slim/2.1.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.10/confidence-slim/2.1.9)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-tasks ### [`v2.1.10`](https://togithub.com/googleapis/java-tasks/blob/HEAD/CHANGELOG.md#​2110-httpsgithubcomgoogleapisjava-taskscomparev219v2110-2022-03-29) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v2.1.9...v2.1.10)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 09d84361..252a8eee 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.1.9 + 2.1.10 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 24845aeb..7632f7d9 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.1.9 + 2.1.10 From 1f4b3096a2528978a48c263e72e830e0d1af2427 Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Fri, 1 Apr 2022 15:03:12 -0400 Subject: [PATCH 278/401] docs(sample): modify README instructions for Native Image sample (#666) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs(sample): modify README instructions for Native Image sample * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * add setup instructions Co-authored-by: Owl Bot --- samples/native-image-sample/README.md | 60 ++++++++++++++++++++++----- 1 file changed, 49 insertions(+), 11 deletions(-) diff --git a/samples/native-image-sample/README.md b/samples/native-image-sample/README.md index acbbe7ff..5069656b 100644 --- a/samples/native-image-sample/README.md +++ b/samples/native-image-sample/README.md @@ -10,31 +10,69 @@ It will then submit a new task to this queue. ## Setup Instructions -1. Follow the [GCP Project and Native Image Setup Instructions](../../README.md). +You will need to follow these prerequisite steps in order to run these samples: -2. [Enable the Cloud Tasks APIs](https://console.cloud.google.com/apis/api/cloudtasks.googleapis.com). +1. If you have not already, [create a Google Cloud Platform Project](https://cloud.google.com/resource-manager/docs/creating-managing-projects#creating_a_project). + +2. Install the [Google Cloud SDK](https://cloud.google.com/sdk/) which will allow you to run the sample with your project's credentials. + + Once installed, log in with Application Default Credentials using the following command: + + ``` + gcloud auth application-default login + ``` + + **Note:** Authenticating with Application Default Credentials is convenient to use during development, but we recommend [alternate methods of authentication](https://cloud.google.com/docs/authentication/production) during production use. + +3. Install the GraalVM compiler. + + You can follow the [official installation instructions](https://www.graalvm.org/docs/getting-started/#install-graalvm) from the GraalVM website. + After following the instructions, ensure that you install the Native Image extension installed by running: + + ``` + gu install native-image + ``` + + Once you finish following the instructions, verify that the default version of Java is set to the GraalVM version by running `java -version` in a terminal. + + You will see something similar to the below output: + + ``` + $ java -version + + openjdk 11.0.14 2022-01-18 + OpenJDK Runtime Environment GraalVM CE 22.0.0.2 (build 11.0.14+9-jvmci-22.0-b05) + OpenJDK 64-Bit Server VM GraalVM CE 22.0.0.2 (build 11.0.14+9-jvmci-22.0-b05, mixed mode, sharing) + + ``` + +4. [Enable the Cloud Tasks APIs](https://console.cloud.google.com/apis/api/cloudtasks.googleapis.com). ### Run with Native Image Compilation Navigate to this directory in a new terminal. -1. Compile the application using the Native Image Compiler. This step may take a few minutes. +1. The project uses an environment variable `LOCATION_ID` to run the test. Set the environment variable by calling: + + ``` + export LOCATION_ID=us-east1 + ``` + +2. Compile the application using the Native Image Compiler. This step may take a few minutes. ``` $ mvn package -P native ``` - The project uses an environment variable `LOCATION_ID` to run the test. + -2. Run the application: +3. Run the application: ``` - $ LOCATION_ID=us-east1 ./target/tasks-sample + $ ./target/native-image-sample ``` - The sample application uses an environment variable `LOCATION_ID`. - -3. The application runs through some basic Cloud Tasks operations (create queue, create task) and then prints some results of the operations. +4. The application runs through some basic Cloud Tasks operations (create queue, create task) and then prints some results of the operations. ``` Test queue ready: name: "projects/xxxxxxxxxx/locations/us-central1/queues/graal-test-queue-4009" @@ -80,10 +118,10 @@ Navigate to this directory in a new terminal. Queue deleted ``` -4. Run the test in the project in the native-image mode +5. Run the test in the project in the native-image mode ``` - $ LOCATION_ID=us-east1 mvn test -P native + $ export LOCATION_ID=us-east1 && mvn test -P native ... [INFO] ------------------------------------------------------- [INFO] T E S T S From d14d5de93b1de322062999e05819d980b8ffd727 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 14 Apr 2022 01:54:15 +0000 Subject: [PATCH 279/401] chore: Enable Size-Label bot in all googleapis Java repositories (#1381) (#669) * chore: Enable Size-Label bot in all googleapis Java repositories Auto-label T-shirt size indicator should be assigned on every new pull request in all googleapis Java repositories * Remove product Remove product since it is by default true * add license header Co-authored-by: Neenu Shaji Source-Link: https://github.com/googleapis/synthtool/commit/54b2c6ac75370a4a3582431b4a3080f777ba1f11 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:fc52b202aa298a50a12c64efd04fea3884d867947effe2fa85382a246c09e813 --- .github/.OwlBot.lock.yaml | 3 ++- .github/auto-label.yaml | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/auto-label.yaml diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 426cf83e..f60d7749 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:b0b1c1c89570e229b1026372a2b8989ba31495007055b8d30178b7648503eefa + digest: sha256:fc52b202aa298a50a12c64efd04fea3884d867947effe2fa85382a246c09e813 +# created: 2022-04-06T16:30:03.627422514Z diff --git a/.github/auto-label.yaml b/.github/auto-label.yaml new file mode 100644 index 00000000..4caef688 --- /dev/null +++ b/.github/auto-label.yaml @@ -0,0 +1,15 @@ +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +requestsize: + enabled: true From c4e5766f34d52e1ee023de9ef111affc96decc3d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 15 Apr 2022 21:26:35 +0200 Subject: [PATCH 280/401] deps: update dependency com.google.cloud:native-image-support to v0.13.1 (#671) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:native-image-support](https://togithub.com/googleapis/java-core) | `0.12.11` -> `0.13.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.13.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.13.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.13.1/compatibility-slim/0.12.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:native-image-support/0.13.1/confidence-slim/0.12.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index fc8394d0..f8b46d45 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -84,7 +84,7 @@ com.google.cloud native-image-support - 0.12.11 + 0.13.1 org.junit.vintage From 0a486572e74cf11d98c1dcdb97f9b93ed235a9b8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 15 Apr 2022 21:28:24 +0200 Subject: [PATCH 281/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 (#670) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.9.0` -> `2.10.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/compatibility-slim/2.9.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/confidence-slim/2.9.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.10.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​2100-httpsgithubcomgoogleapisjava-shared-dependenciescomparev290v2100-2022-04-15) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.9.0...v2.10.0) ##### Dependencies - google-cloud-core 2.6.0 ([#​668](https://togithub.com/googleapis/java-shared-dependencies/issues/668)) ([22f4d18](https://togithub.com/googleapis/java-shared-dependencies/commit/22f4d1809cbb9848174b3569ab527e4bef00d443)) - reverting protobuf to 3.19.4 ([#​657](https://togithub.com/googleapis/java-shared-dependencies/issues/657)) ([8501e6d](https://togithub.com/googleapis/java-shared-dependencies/commit/8501e6d842c10d2370bbd5d5246070134336bddd)) - update dependency com.fasterxml.jackson:jackson-bom to v2.13.2.20220328 ([#​646](https://togithub.com/googleapis/java-shared-dependencies/issues/646)) ([7bfd6d7](https://togithub.com/googleapis/java-shared-dependencies/commit/7bfd6d7073859d1955b91b368c6713a72ffa14b6)) - update dependency com.google.api-client:google-api-client-bom to v1.34.0 ([#​662](https://togithub.com/googleapis/java-shared-dependencies/issues/662)) ([1b8e378](https://togithub.com/googleapis/java-shared-dependencies/commit/1b8e378fe0ccf2a28c759868caaf5ba593a95728)) - update dependency com.google.errorprone:error_prone_annotations to v2.12.1 ([#​652](https://togithub.com/googleapis/java-shared-dependencies/issues/652)) ([1cc80ee](https://togithub.com/googleapis/java-shared-dependencies/commit/1cc80ee984ebcad9bc2a95e2f28c0a49fe924b37)) - update dependency com.google.errorprone:error_prone_annotations to v2.13.0 ([#​669](https://togithub.com/googleapis/java-shared-dependencies/issues/669)) ([61b7834](https://togithub.com/googleapis/java-shared-dependencies/commit/61b78341b34a251722be4805a6bdd895cd64836c)) - update dependency com.google.http-client:google-http-client-bom to v1.41.6 ([#​654](https://togithub.com/googleapis/java-shared-dependencies/issues/654)) ([140ef40](https://togithub.com/googleapis/java-shared-dependencies/commit/140ef405bc17ed83f5ce177df59affca14fbe49c)) - update dependency com.google.http-client:google-http-client-bom to v1.41.7 ([#​658](https://togithub.com/googleapis/java-shared-dependencies/issues/658)) ([f6f93e5](https://togithub.com/googleapis/java-shared-dependencies/commit/f6f93e5b9172c9684623c4c148e4a8fe2fae1e94)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.2 ([#​655](https://togithub.com/googleapis/java-shared-dependencies/issues/655)) ([20cd9ed](https://togithub.com/googleapis/java-shared-dependencies/commit/20cd9eda112c96836a5ab7485a4247ed2bc0edb8)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.3 ([#​663](https://togithub.com/googleapis/java-shared-dependencies/issues/663)) ([f011a46](https://togithub.com/googleapis/java-shared-dependencies/commit/f011a46c551dba16851b4f8c919c40452fc5d5c3)) - update dependency com.google.protobuf:protobuf-bom to v3.20.0 ([#​651](https://togithub.com/googleapis/java-shared-dependencies/issues/651)) ([ad2ff73](https://togithub.com/googleapis/java-shared-dependencies/commit/ad2ff73207dd6493321c77d8eca0022baf13b4ce)) - update dependency io.grpc:grpc-bom to v1.45.1 ([#​647](https://togithub.com/googleapis/java-shared-dependencies/issues/647)) ([38e46fc](https://togithub.com/googleapis/java-shared-dependencies/commit/38e46fc4f03af0a02f30ce4a2fa222c71797ae15)) - update dependency org.checkerframework:checker-qual to v3.21.4 ([#​650](https://togithub.com/googleapis/java-shared-dependencies/issues/650)) ([125e80a](https://togithub.com/googleapis/java-shared-dependencies/commit/125e80ab2c3225a00c03f5ff5de94872ebb94303)) - update gax.version to v2.15.0 ([#​649](https://togithub.com/googleapis/java-shared-dependencies/issues/649)) ([c7f32a6](https://togithub.com/googleapis/java-shared-dependencies/commit/c7f32a68b14520104432282ac9598643700162eb)) - update gax.version to v2.16.0 ([#​664](https://togithub.com/googleapis/java-shared-dependencies/issues/664)) ([caaf941](https://togithub.com/googleapis/java-shared-dependencies/commit/caaf941643af04295f5527a0144587d7bf040862)) - update google.common-protos.version to v2.8.1 ([#​656](https://togithub.com/googleapis/java-shared-dependencies/issues/656)) ([df4a4a2](https://togithub.com/googleapis/java-shared-dependencies/commit/df4a4a2130a3cdb2965ea42962d1ea6a85506ba7)) - update google.common-protos.version to v2.8.2 ([#​659](https://togithub.com/googleapis/java-shared-dependencies/issues/659)) ([b499e2b](https://togithub.com/googleapis/java-shared-dependencies/commit/b499e2bc99506d48d26e35bf6e68c09409ce8b11)) - update google.common-protos.version to v2.8.3 ([#​660](https://togithub.com/googleapis/java-shared-dependencies/issues/660)) ([461081c](https://togithub.com/googleapis/java-shared-dependencies/commit/461081c0cf73057c1f6e07fc573453ad467a60ae)) - update iam.version to v1.3.0 ([#​648](https://togithub.com/googleapis/java-shared-dependencies/issues/648)) ([6670c4f](https://togithub.com/googleapis/java-shared-dependencies/commit/6670c4f61fcf075c543bfd148eea49796e0662ce)) - update iam.version to v1.3.1 ([#​661](https://togithub.com/googleapis/java-shared-dependencies/issues/661)) ([cc8fbe6](https://togithub.com/googleapis/java-shared-dependencies/commit/cc8fbe6eae03341c2ece7d3356febc843a74a812))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 143ba903..2d0c5cd5 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.9.0 + 2.10.0 pom import From 9844586d7557f3f2f9c6df69d3a3befc5f29672c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 19 Apr 2022 18:06:21 +0000 Subject: [PATCH 282/401] chore(main): release 2.1.11 (#667) :robot: I have created a release *beep* *boop* --- ### [2.1.11](https://github.com/googleapis/java-tasks/compare/v2.1.10...v2.1.11) (2022-04-15) ### Documentation * **sample:** modify README instructions for Native Image sample ([#666](https://github.com/googleapis/java-tasks/issues/666)) ([1f4b309](https://github.com/googleapis/java-tasks/commit/1f4b3096a2528978a48c263e72e830e0d1af2427)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#670](https://github.com/googleapis/java-tasks/issues/670)) ([0a48657](https://github.com/googleapis/java-tasks/commit/0a486572e74cf11d98c1dcdb97f9b93ed235a9b8)) * update dependency com.google.cloud:native-image-support to v0.13.1 ([#671](https://github.com/googleapis/java-tasks/issues/671)) ([c4e5766](https://github.com/googleapis/java-tasks/commit/c4e5766f34d52e1ee023de9ef111affc96decc3d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 13 +++++++++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 50 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 680d4ea8..53c46065 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +### [2.1.11](https://github.com/googleapis/java-tasks/compare/v2.1.10...v2.1.11) (2022-04-15) + + +### Documentation + +* **sample:** modify README instructions for Native Image sample ([#666](https://github.com/googleapis/java-tasks/issues/666)) ([1f4b309](https://github.com/googleapis/java-tasks/commit/1f4b3096a2528978a48c263e72e830e0d1af2427)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#670](https://github.com/googleapis/java-tasks/issues/670)) ([0a48657](https://github.com/googleapis/java-tasks/commit/0a486572e74cf11d98c1dcdb97f9b93ed235a9b8)) +* update dependency com.google.cloud:native-image-support to v0.13.1 ([#671](https://github.com/googleapis/java-tasks/issues/671)) ([c4e5766](https://github.com/googleapis/java-tasks/commit/c4e5766f34d52e1ee023de9ef111affc96decc3d)) + ### [2.1.10](https://github.com/googleapis/java-tasks/compare/v2.1.9...v2.1.10) (2022-03-29) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index a486d57b..6377c48e 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.11-SNAPSHOT + 2.1.11 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.11-SNAPSHOT + 2.1.11 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.11-SNAPSHOT + 0.91.11 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.11-SNAPSHOT + 0.91.11 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.11-SNAPSHOT + 2.1.11 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.11-SNAPSHOT + 0.91.11 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.11-SNAPSHOT + 0.91.11 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.11-SNAPSHOT + 2.1.11
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 28f45477..acfa24ac 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.11-SNAPSHOT + 2.1.11 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.11-SNAPSHOT + 2.1.11 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index af07511f..28e69831 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.11-SNAPSHOT + 2.1.11 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.11-SNAPSHOT + 2.1.11 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index a5c82d30..c3e75ac8 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.11-SNAPSHOT + 0.91.11 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.11-SNAPSHOT + 2.1.11 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 22091dce..b7dca0b1 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.11-SNAPSHOT + 0.91.11 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.11-SNAPSHOT + 2.1.11 diff --git a/pom.xml b/pom.xml index 2d0c5cd5..3e2cd902 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.11-SNAPSHOT + 2.1.11 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.11-SNAPSHOT + 0.91.11 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.11-SNAPSHOT + 0.91.11 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.11-SNAPSHOT + 2.1.11 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.11-SNAPSHOT + 0.91.11 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.11-SNAPSHOT + 0.91.11 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.11-SNAPSHOT + 2.1.11 com.google.cloud google-cloud-tasks - 2.1.11-SNAPSHOT + 2.1.11 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index cbaa19ad..f9c2bcc8 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.11-SNAPSHOT + 2.1.11 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.11-SNAPSHOT + 2.1.11 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index ee2a0611..6300e1bc 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.11-SNAPSHOT + 0.91.11 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.11-SNAPSHOT + 2.1.11 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index cdec9fc9..d03037f8 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.11-SNAPSHOT + 0.91.11 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.11-SNAPSHOT + 2.1.11 diff --git a/versions.txt b/versions.txt index 7e772601..ade741f0 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.10:2.1.11-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.91.10:0.91.11-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.91.10:0.91.11-SNAPSHOT -grpc-google-cloud-tasks-v2:2.1.10:2.1.11-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.91.10:0.91.11-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.91.10:0.91.11-SNAPSHOT -proto-google-cloud-tasks-v2:2.1.10:2.1.11-SNAPSHOT +google-cloud-tasks:2.1.11:2.1.11 +grpc-google-cloud-tasks-v2beta3:0.91.11:0.91.11 +grpc-google-cloud-tasks-v2beta2:0.91.11:0.91.11 +grpc-google-cloud-tasks-v2:2.1.11:2.1.11 +proto-google-cloud-tasks-v2beta3:0.91.11:0.91.11 +proto-google-cloud-tasks-v2beta2:0.91.11:0.91.11 +proto-google-cloud-tasks-v2:2.1.11:2.1.11 From 784072e9db26c7fc0012ca5fb39e31d539c65a3e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 19 Apr 2022 18:14:20 +0000 Subject: [PATCH 283/401] chore(main): release 2.1.12-SNAPSHOT (#672) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 6377c48e..c2b455dd 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.11 + 2.1.12-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.11 + 2.1.12-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.11 + 0.91.12-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.11 + 0.91.12-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.11 + 2.1.12-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.11 + 0.91.12-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.11 + 0.91.12-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.11 + 2.1.12-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index acfa24ac..57c385ae 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.11 + 2.1.12-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.11 + 2.1.12-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 28e69831..49426d85 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.11 + 2.1.12-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.11 + 2.1.12-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index c3e75ac8..353bc917 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.11 + 0.91.12-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.11 + 2.1.12-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index b7dca0b1..c4f64c27 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.11 + 0.91.12-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.11 + 2.1.12-SNAPSHOT diff --git a/pom.xml b/pom.xml index 3e2cd902..1fdff6df 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.11 + 2.1.12-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.11 + 0.91.12-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.11 + 0.91.12-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.11 + 2.1.12-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.11 + 0.91.12-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.11 + 0.91.12-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.11 + 2.1.12-SNAPSHOT com.google.cloud google-cloud-tasks - 2.1.11 + 2.1.12-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index f9c2bcc8..f7528a91 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.11 + 2.1.12-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.11 + 2.1.12-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 6300e1bc..11220e81 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.11 + 0.91.12-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.11 + 2.1.12-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index d03037f8..4d5de7ee 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.11 + 0.91.12-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.11 + 2.1.12-SNAPSHOT diff --git a/versions.txt b/versions.txt index ade741f0..6f0c6649 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.11:2.1.11 -grpc-google-cloud-tasks-v2beta3:0.91.11:0.91.11 -grpc-google-cloud-tasks-v2beta2:0.91.11:0.91.11 -grpc-google-cloud-tasks-v2:2.1.11:2.1.11 -proto-google-cloud-tasks-v2beta3:0.91.11:0.91.11 -proto-google-cloud-tasks-v2beta2:0.91.11:0.91.11 -proto-google-cloud-tasks-v2:2.1.11:2.1.11 +google-cloud-tasks:2.1.11:2.1.12-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.91.11:0.91.12-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.91.11:0.91.12-SNAPSHOT +grpc-google-cloud-tasks-v2:2.1.11:2.1.12-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.91.11:0.91.12-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.91.11:0.91.12-SNAPSHOT +proto-google-cloud-tasks-v2:2.1.11:2.1.12-SNAPSHOT From 894bc68830d55135a4cdc7b9622c37a66d916f42 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 Apr 2022 16:50:33 +0200 Subject: [PATCH 284/401] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.4.0 (#675) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-javadoc-plugin](https://maven.apache.org/plugins/) | `3.3.2` -> `3.4.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.0/compatibility-slim/3.3.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.0/confidence-slim/3.3.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- README.md | 6 +++--- pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 431c9d95..a37364d5 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.1.10 + 2.1.11 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.1.10' +implementation 'com.google.cloud:google-cloud-tasks:2.1.11' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.10" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.11" ``` ## Authentication diff --git a/pom.xml b/pom.xml index 1fdff6df..f4259e04 100644 --- a/pom.xml +++ b/pom.xml @@ -171,7 +171,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.3.2 + 3.4.0 html From fac0d9baee729d0a3ff0fd71f7e052ea59a39948 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 Apr 2022 17:30:34 +0200 Subject: [PATCH 285/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.3.3 (#674) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.3.2` -> `1.3.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.3/compatibility-slim/1.3.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.3/confidence-slim/1.3.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.3.3`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​133-httpsgithubcomgoogleapisjava-shared-configcomparev132v133-2022-04-19) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.3.2...v1.3.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index c2b455dd..709ce9d7 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.3.2 + 1.3.3 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index f4259e04..13940d84 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.3.2 + 1.3.3 From 6c4b2076ce3630d2a3c99ab636a5fdbc3466551e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 Apr 2022 19:36:29 +0200 Subject: [PATCH 286/401] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.13 (#676) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.sonatype.plugins:nexus-staging-maven-plugin](http://www.sonatype.com/) ([source](https://togithub.com/sonatype/nexus-maven-plugins)) | `1.6.11` -> `1.6.13` | [![age](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.13/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.13/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.13/compatibility-slim/1.6.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.13/confidence-slim/1.6.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sonatype/nexus-maven-plugins ### [`v1.6.13`](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.12...release-1.6.13) [Compare Source](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.12...release-1.6.13) ### [`v1.6.12`](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.11...release-1.6.12) [Compare Source](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.11...release-1.6.12)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index 87ddc149..b8b3d105 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -47,7 +47,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.11 + 1.6.13 true From 980fcb4119fb3f676f926785fdf1655eb7fd9db6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 Apr 2022 19:54:18 +0200 Subject: [PATCH 287/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.1.11 (#673) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.1.10` -> `2.1.11` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.11/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.11/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.11/compatibility-slim/2.1.10)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.1.11/confidence-slim/2.1.10)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-tasks ### [`v2.1.11`](https://togithub.com/googleapis/java-tasks/blob/HEAD/CHANGELOG.md#​2111-httpsgithubcomgoogleapisjava-taskscomparev2110v2111-2022-04-15) [Compare Source](https://togithub.com/googleapis/java-tasks/compare/v2.1.10...v2.1.11)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 252a8eee..044457c1 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.1.10 + 2.1.11 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 7632f7d9..8709ba2f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.1.10 + 2.1.11 From c29f78e68ce8964e8cf10f0bbf4aed85068d1578 Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Thu, 21 Apr 2022 22:11:43 -0400 Subject: [PATCH 288/401] docs(sample): remove protobuf feature from native image sample (#665) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs(sample): remove protobuf feature from native image sample * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- samples/native-image-sample/pom.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index f8b46d45..37e1d795 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -121,8 +121,6 @@ --no-fallback --no-server - --initialize-at-build-time - --features=com.google.cloud.nativeimage.features.ProtobufMessageFeature From c0402985a0e5b5d2dd4e04679c2cafaea792de38 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Apr 2022 17:50:12 +0200 Subject: [PATCH 289/401] chore(deps): update dependency com.google.cloud:libraries-bom to v25.2.0 (#679) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.1.0` -> `25.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/compatibility-slim/25.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/confidence-slim/25.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 37e1d795..c245260b 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -29,7 +29,7 @@ com.google.cloud libraries-bom - 25.1.0 + 25.2.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index baa6658f..02bf521c 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.1.0 + 25.2.0 pom import From d920172de95e34bda1575a9a1d4799ea3c2760a4 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Thu, 28 Apr 2022 11:48:30 -0400 Subject: [PATCH 290/401] docs(sample): removing unnecessary native-image-support dependency (#681) For GraalVM native image, GAX provides required metadata. We no longer need native-image-support-java module. --- samples/native-image-sample/pom.xml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index c245260b..9a6992a4 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -80,12 +80,6 @@ native - - - com.google.cloud - native-image-support - 0.13.1 - org.junit.vintage junit-vintage-engine From e2484012714996a34ea8bae9108fd945d6cafef9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 29 Apr 2022 22:20:18 +0200 Subject: [PATCH 291/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.4.0 (#682) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.3.3` -> `1.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.4.0/compatibility-slim/1.3.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.4.0/confidence-slim/1.3.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.4.0`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​140-httpsgithubcomgoogleapisjava-shared-configcomparev133v140-2022-04-28) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.3.3...v1.4.0) ##### Features - **java:** remove native image module ([#​471](https://togithub.com/googleapis/java-shared-config/issues/471)) ([7fcba01](https://togithub.com/googleapis/java-shared-config/commit/7fcba016b3138d7beaa4e962853f9bc80f59438c)) ##### [1.3.3](https://togithub.com/googleapis/java-shared-config/compare/v1.3.2...v1.3.3) (2022-04-19) ##### Bug Fixes - **java:** remove protobuf feature from native profile ([#​461](https://togithub.com/googleapis/java-shared-config/issues/461)) ([ffd07cb](https://togithub.com/googleapis/java-shared-config/commit/ffd07cb18ee7d45d4daee1d9ea6f6d321fdca874)) ##### Dependencies - update dependency com.google.cloud:native-image-support to v0.12.11 ([#​459](https://togithub.com/googleapis/java-shared-config/issues/459)) ([d20008d](https://togithub.com/googleapis/java-shared-config/commit/d20008df15209708fdf9d06828b567778190f4d0)) - update dependency com.google.cloud:native-image-support to v0.13.1 ([#​465](https://togithub.com/googleapis/java-shared-config/issues/465)) ([b202064](https://togithub.com/googleapis/java-shared-config/commit/b2020648816feb4740ad70acedfed470d7da5bcf)) ##### [1.3.2](https://togithub.com/googleapis/java-shared-config/compare/v1.3.1...v1.3.2) (2022-03-28) ##### Dependencies - revert google-java-format to 1.7 ([#​453](https://togithub.com/googleapis/java-shared-config/issues/453)) ([cbc777f](https://togithub.com/googleapis/java-shared-config/commit/cbc777f3e9ab75edb6fa2e0268a7446ae4111725)) ##### [1.3.1](https://togithub.com/googleapis/java-shared-config/compare/v1.3.0...v1.3.1) (2022-03-25) ##### Dependencies - update dependency com.google.cloud:native-image-support to v0.12.10 ([#​443](https://togithub.com/googleapis/java-shared-config/issues/443)) ([5b39d5e](https://togithub.com/googleapis/java-shared-config/commit/5b39d5ee15121f052226ff873b6ab101e9c71de5)) - update dependency com.google.googlejavaformat:google-java-format to v1.15.0 ([#​426](https://togithub.com/googleapis/java-shared-config/issues/426)) ([4c3c4b6](https://togithub.com/googleapis/java-shared-config/commit/4c3c4b66129632181e6bc363a0ecccf4f5aac914)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.11 ([#​448](https://togithub.com/googleapis/java-shared-config/issues/448)) ([f7f518e](https://togithub.com/googleapis/java-shared-config/commit/f7f518e87d1d9feb9ac54d7c099f97d8751ee3da)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.11 ([#​449](https://togithub.com/googleapis/java-shared-config/issues/449)) ([3e1c0b5](https://togithub.com/googleapis/java-shared-config/commit/3e1c0b5a1d2f4a0db88c06a0d683ed90cbc745e2))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 709ce9d7..064dd701 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.3.3 + 1.4.0 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index 13940d84..496e1fd7 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.3.3 + 1.4.0 From d79718f5811f7eeceebf2cb2ea4e63f3ef2f9125 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 5 May 2022 00:54:27 +0200 Subject: [PATCH 292/401] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.3.0 (#680) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) ([source](https://togithub.com/apache/maven-project-info-reports-plugin)) | `3.2.2` -> `3.3.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.3.0/compatibility-slim/3.2.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.3.0/confidence-slim/3.2.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 496e1fd7..0271ee5d 100644 --- a/pom.xml +++ b/pom.xml @@ -144,7 +144,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.2.2 + 3.3.0 From 3e018390857bf4fdd1f7fa70eb66a7cc359ffd6c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 6 May 2022 16:49:50 -0700 Subject: [PATCH 293/401] chore(deps): upgrade gapic-generator-java to 2.7.0 and update gax-java to 2.16.0 (#668) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: AuditConfig for IAM v1 PiperOrigin-RevId: 439356405 Source-Link: https://github.com/googleapis/googleapis/commit/afa2ba156bd5c83ad8168030ab801a8ca84ac819 Source-Link: https://github.com/googleapis/googleapis-gen/commit/3e40c17e1510c95fab58fc2143ccb61cceca5989 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2U0MGMxN2UxNTEwYzk1ZmFiNThmYzIxNDNjY2I2MWNjZWNhNTk4OSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: remove unused imports PiperOrigin-RevId: 439598143 Source-Link: https://github.com/googleapis/googleapis/commit/63db84f1311b6e4d3509e68d66dceec329cd77c8 Source-Link: https://github.com/googleapis/googleapis-gen/commit/bee5a91154d1c7ceda6303d6c69dd07558a3badd Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmVlNWE5MTE1NGQxYzdjZWRhNjMwM2Q2YzY5ZGQwNzU1OGEzYmFkZCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore(bazel): update version of Protobuf to v3.20.1 PiperOrigin-RevId: 444328399 Source-Link: https://github.com/googleapis/googleapis/commit/c7ca416c2856aad6a3f7092924e56b8cf0cb2534 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d61705453a62b3ecda78aa30c192840ebc5a8a90 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDYxNzA1NDUzYTYyYjNlY2RhNzhhYTMwYzE5Mjg0MGViYzVhOGE5MCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore(deps): upgrade gapic-generator-java to 2.7.0 and update gax-java to 2.16.0 PiperOrigin-RevId: 446250659 Source-Link: https://github.com/googleapis/googleapis/commit/dc4ef314fecf1b00833e78288cf2eb4d2b165ad1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5fdda4ddfbab87998e77e4a453e0ff87986d2db8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWZkZGE0ZGRmYmFiODc5OThlNzdlNGE0NTNlMGZmODc5ODZkMmRiOCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../cloud/tasks/v2/CloudTasksClient.java | 140 +++++++++++++- .../cloud/tasks/v2/CloudTasksSettings.java | 4 +- .../google/cloud/tasks/v2/package-info.java | 4 +- .../cloud/tasks/v2/stub/CloudTasksStub.java | 2 +- .../tasks/v2/stub/CloudTasksStubSettings.java | 4 +- .../stub/GrpcCloudTasksCallableFactory.java | 2 +- .../tasks/v2/stub/GrpcCloudTasksStub.java | 2 +- .../cloud/tasks/v2beta2/CloudTasksClient.java | 172 +++++++++++++++++- .../tasks/v2beta2/CloudTasksSettings.java | 4 +- .../cloud/tasks/v2beta2/package-info.java | 4 +- .../tasks/v2beta2/stub/CloudTasksStub.java | 2 +- .../v2beta2/stub/CloudTasksStubSettings.java | 4 +- .../stub/GrpcCloudTasksCallableFactory.java | 2 +- .../v2beta2/stub/GrpcCloudTasksStub.java | 2 +- .../cloud/tasks/v2beta3/CloudTasksClient.java | 140 +++++++++++++- .../tasks/v2beta3/CloudTasksSettings.java | 4 +- .../cloud/tasks/v2beta3/package-info.java | 4 +- .../tasks/v2beta3/stub/CloudTasksStub.java | 2 +- .../v2beta3/stub/CloudTasksStubSettings.java | 4 +- .../stub/GrpcCloudTasksCallableFactory.java | 2 +- .../v2beta3/stub/GrpcCloudTasksStub.java | 2 +- .../cloud/tasks/v2/CloudTasksClientTest.java | 7 +- .../google/cloud/tasks/v2/MockCloudTasks.java | 2 +- .../cloud/tasks/v2/MockCloudTasksImpl.java | 2 +- .../tasks/v2beta2/CloudTasksClientTest.java | 7 +- .../cloud/tasks/v2beta2/MockCloudTasks.java | 2 +- .../tasks/v2beta2/MockCloudTasksImpl.java | 2 +- .../tasks/v2beta3/CloudTasksClientTest.java | 7 +- .../cloud/tasks/v2beta3/MockCloudTasks.java | 2 +- .../tasks/v2beta3/MockCloudTasksImpl.java | 2 +- .../cloud/tasks/v2/AppEngineHttpRequest.java | 21 ++- .../v2/AppEngineHttpRequestOrBuilder.java | 7 +- .../cloud/tasks/v2/AppEngineRouting.java | 2 + .../com/google/cloud/tasks/v2/Attempt.java | 2 + .../cloud/tasks/v2/CreateQueueRequest.java | 2 + .../cloud/tasks/v2/CreateTaskRequest.java | 2 + .../cloud/tasks/v2/DeleteQueueRequest.java | 2 + .../cloud/tasks/v2/DeleteTaskRequest.java | 2 + .../cloud/tasks/v2/GetQueueRequest.java | 2 + .../google/cloud/tasks/v2/GetTaskRequest.java | 2 + .../google/cloud/tasks/v2/HttpRequest.java | 27 +-- .../cloud/tasks/v2/HttpRequestOrBuilder.java | 7 +- .../cloud/tasks/v2/ListQueuesRequest.java | 2 + .../cloud/tasks/v2/ListQueuesResponse.java | 2 + .../cloud/tasks/v2/ListTasksRequest.java | 2 + .../cloud/tasks/v2/ListTasksResponse.java | 2 + .../google/cloud/tasks/v2/LocationName.java | 2 +- .../com/google/cloud/tasks/v2/OAuthToken.java | 2 + .../com/google/cloud/tasks/v2/OidcToken.java | 2 + .../cloud/tasks/v2/PauseQueueRequest.java | 2 + .../cloud/tasks/v2/PurgeQueueRequest.java | 2 + .../java/com/google/cloud/tasks/v2/Queue.java | 2 + .../com/google/cloud/tasks/v2/QueueName.java | 2 +- .../com/google/cloud/tasks/v2/QueueProto.java | 57 +++--- .../com/google/cloud/tasks/v2/RateLimits.java | 6 +- .../cloud/tasks/v2/ResumeQueueRequest.java | 2 + .../google/cloud/tasks/v2/RetryConfig.java | 2 + .../google/cloud/tasks/v2/RunTaskRequest.java | 2 + .../tasks/v2/StackdriverLoggingConfig.java | 6 +- .../google/cloud/tasks/v2/TargetProto.java | 59 +++--- .../java/com/google/cloud/tasks/v2/Task.java | 8 +- .../com/google/cloud/tasks/v2/TaskName.java | 2 +- .../com/google/cloud/tasks/v2/TaskProto.java | 55 +++--- .../cloud/tasks/v2/UpdateQueueRequest.java | 2 + .../proto/google/cloud/tasks/v2/queue.proto | 1 - .../proto/google/cloud/tasks/v2/target.proto | 1 - .../proto/google/cloud/tasks/v2/task.proto | 1 - .../tasks/v2beta2/AcknowledgeTaskRequest.java | 2 + .../tasks/v2beta2/AppEngineHttpRequest.java | 21 ++- .../AppEngineHttpRequestOrBuilder.java | 7 +- .../tasks/v2beta2/AppEngineHttpTarget.java | 2 + .../cloud/tasks/v2beta2/AppEngineRouting.java | 2 + .../cloud/tasks/v2beta2/AttemptStatus.java | 2 + .../tasks/v2beta2/CancelLeaseRequest.java | 2 + .../tasks/v2beta2/CreateQueueRequest.java | 2 + .../tasks/v2beta2/CreateTaskRequest.java | 2 + .../tasks/v2beta2/DeleteQueueRequest.java | 2 + .../tasks/v2beta2/DeleteTaskRequest.java | 2 + .../cloud/tasks/v2beta2/GetQueueRequest.java | 2 + .../cloud/tasks/v2beta2/GetTaskRequest.java | 2 + .../tasks/v2beta2/LeaseTasksRequest.java | 2 + .../tasks/v2beta2/LeaseTasksResponse.java | 2 + .../tasks/v2beta2/ListQueuesRequest.java | 2 + .../tasks/v2beta2/ListQueuesResponse.java | 2 + .../cloud/tasks/v2beta2/ListTasksRequest.java | 2 + .../tasks/v2beta2/ListTasksResponse.java | 2 + .../cloud/tasks/v2beta2/LocationName.java | 2 +- .../tasks/v2beta2/PauseQueueRequest.java | 2 + .../cloud/tasks/v2beta2/PullMessage.java | 2 + .../cloud/tasks/v2beta2/PullTarget.java | 2 + .../tasks/v2beta2/PurgeQueueRequest.java | 2 + .../com/google/cloud/tasks/v2beta2/Queue.java | 8 +- .../google/cloud/tasks/v2beta2/QueueName.java | 2 +- .../cloud/tasks/v2beta2/QueueStats.java | 6 +- .../cloud/tasks/v2beta2/RateLimits.java | 6 +- .../tasks/v2beta2/RenewLeaseRequest.java | 2 + .../tasks/v2beta2/ResumeQueueRequest.java | 2 + .../cloud/tasks/v2beta2/RetryConfig.java | 6 +- .../cloud/tasks/v2beta2/RunTaskRequest.java | 2 + .../com/google/cloud/tasks/v2beta2/Task.java | 8 +- .../google/cloud/tasks/v2beta2/TaskName.java | 2 +- .../cloud/tasks/v2beta2/TaskStatus.java | 2 + .../tasks/v2beta2/UpdateQueueRequest.java | 2 + .../tasks/v2beta3/AppEngineHttpQueue.java | 2 + .../tasks/v2beta3/AppEngineHttpRequest.java | 21 ++- .../AppEngineHttpRequestOrBuilder.java | 7 +- .../cloud/tasks/v2beta3/AppEngineRouting.java | 2 + .../google/cloud/tasks/v2beta3/Attempt.java | 2 + .../tasks/v2beta3/CreateQueueRequest.java | 2 + .../tasks/v2beta3/CreateTaskRequest.java | 2 + .../tasks/v2beta3/DeleteQueueRequest.java | 2 + .../tasks/v2beta3/DeleteTaskRequest.java | 2 + .../cloud/tasks/v2beta3/GetQueueRequest.java | 2 + .../cloud/tasks/v2beta3/GetTaskRequest.java | 2 + .../cloud/tasks/v2beta3/HttpRequest.java | 27 +-- .../tasks/v2beta3/HttpRequestOrBuilder.java | 7 +- .../tasks/v2beta3/ListQueuesRequest.java | 2 + .../tasks/v2beta3/ListQueuesResponse.java | 2 + .../cloud/tasks/v2beta3/ListTasksRequest.java | 2 + .../tasks/v2beta3/ListTasksResponse.java | 2 + .../cloud/tasks/v2beta3/LocationName.java | 2 +- .../cloud/tasks/v2beta3/OAuthToken.java | 2 + .../google/cloud/tasks/v2beta3/OidcToken.java | 2 + .../tasks/v2beta3/PauseQueueRequest.java | 2 + .../cloud/tasks/v2beta3/PullMessage.java | 2 + .../tasks/v2beta3/PurgeQueueRequest.java | 2 + .../com/google/cloud/tasks/v2beta3/Queue.java | 5 +- .../google/cloud/tasks/v2beta3/QueueName.java | 2 +- .../cloud/tasks/v2beta3/QueueStats.java | 6 +- .../cloud/tasks/v2beta3/RateLimits.java | 6 +- .../tasks/v2beta3/ResumeQueueRequest.java | 2 + .../cloud/tasks/v2beta3/RetryConfig.java | 2 + .../cloud/tasks/v2beta3/RunTaskRequest.java | 2 + .../v2beta3/StackdriverLoggingConfig.java | 6 +- .../com/google/cloud/tasks/v2beta3/Task.java | 11 +- .../google/cloud/tasks/v2beta3/TaskName.java | 2 +- .../tasks/v2beta3/UpdateQueueRequest.java | 2 + 137 files changed, 897 insertions(+), 212 deletions(-) diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java index 7c9d661a..4d289ca9 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -50,6 +50,8 @@ * calls that map to API methods. Sample code to get started: * *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
  *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  *   Queue response = cloudTasksClient.getQueue(name);
@@ -85,6 +87,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -95,6 +99,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build();
  * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
@@ -162,6 +168,8 @@ public CloudTasksStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
@@ -189,6 +197,8 @@ public final ListQueuesPagedResponse listQueues(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
@@ -215,6 +225,8 @@ public final ListQueuesPagedResponse listQueues(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -245,6 +257,8 @@ public final ListQueuesPagedResponse listQueues(ListQueuesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -274,6 +288,8 @@ public final UnaryCallable listQueue
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -308,6 +324,8 @@ public final UnaryCallable listQueuesCall
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.getQueue(name);
@@ -331,6 +349,8 @@ public final Queue getQueue(QueueName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.getQueue(name);
@@ -353,6 +373,8 @@ public final Queue getQueue(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetQueueRequest request =
    *       GetQueueRequest.newBuilder()
@@ -376,6 +398,8 @@ public final Queue getQueue(GetQueueRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetQueueRequest request =
    *       GetQueueRequest.newBuilder()
@@ -405,6 +429,8 @@ public final UnaryCallable getQueueCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Queue queue = Queue.newBuilder().build();
@@ -444,6 +470,8 @@ public final Queue createQueue(LocationName parent, Queue queue) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Queue queue = Queue.newBuilder().build();
@@ -480,6 +508,8 @@ public final Queue createQueue(String parent, Queue queue) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
@@ -511,6 +541,8 @@ public final Queue createQueue(CreateQueueRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
@@ -543,6 +575,8 @@ public final UnaryCallable createQueueCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   Queue queue = Queue.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -581,6 +615,8 @@ public final Queue updateQueue(Queue queue, FieldMask updateMask) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   UpdateQueueRequest request =
    *       UpdateQueueRequest.newBuilder()
@@ -614,6 +650,8 @@ public final Queue updateQueue(UpdateQueueRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   UpdateQueueRequest request =
    *       UpdateQueueRequest.newBuilder()
@@ -645,6 +683,8 @@ public final UnaryCallable updateQueueCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   cloudTasksClient.deleteQueue(name);
@@ -676,6 +716,8 @@ public final void deleteQueue(QueueName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   cloudTasksClient.deleteQueue(name);
@@ -706,6 +748,8 @@ public final void deleteQueue(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteQueueRequest request =
    *       DeleteQueueRequest.newBuilder()
@@ -737,6 +781,8 @@ public final void deleteQueue(DeleteQueueRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteQueueRequest request =
    *       DeleteQueueRequest.newBuilder()
@@ -764,6 +810,8 @@ public final UnaryCallable deleteQueueCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.purgeQueue(name);
@@ -792,6 +840,8 @@ public final Queue purgeQueue(QueueName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.purgeQueue(name);
@@ -819,6 +869,8 @@ public final Queue purgeQueue(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PurgeQueueRequest request =
    *       PurgeQueueRequest.newBuilder()
@@ -847,6 +899,8 @@ public final Queue purgeQueue(PurgeQueueRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PurgeQueueRequest request =
    *       PurgeQueueRequest.newBuilder()
@@ -874,6 +928,8 @@ public final UnaryCallable purgeQueueCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.pauseQueue(name);
@@ -902,6 +958,8 @@ public final Queue pauseQueue(QueueName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.pauseQueue(name);
@@ -929,6 +987,8 @@ public final Queue pauseQueue(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PauseQueueRequest request =
    *       PauseQueueRequest.newBuilder()
@@ -957,6 +1017,8 @@ public final Queue pauseQueue(PauseQueueRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PauseQueueRequest request =
    *       PauseQueueRequest.newBuilder()
@@ -989,6 +1051,8 @@ public final UnaryCallable pauseQueueCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.resumeQueue(name);
@@ -1022,6 +1086,8 @@ public final Queue resumeQueue(QueueName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.resumeQueue(name);
@@ -1054,6 +1120,8 @@ public final Queue resumeQueue(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResumeQueueRequest request =
    *       ResumeQueueRequest.newBuilder()
@@ -1087,6 +1155,8 @@ public final Queue resumeQueue(ResumeQueueRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResumeQueueRequest request =
    *       ResumeQueueRequest.newBuilder()
@@ -1117,6 +1187,8 @@ public final UnaryCallable resumeQueueCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
@@ -1150,6 +1222,8 @@ public final Policy getIamPolicy(ResourceName resource) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
@@ -1180,6 +1254,8 @@ public final Policy getIamPolicy(String resource) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1216,6 +1292,8 @@ public final Policy getIamPolicy(QueueName queueName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1250,6 +1328,8 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy policy = Policy.newBuilder().build();
@@ -1291,6 +1371,8 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy policy = Policy.newBuilder().build();
@@ -1329,11 +1411,14 @@ public final Policy setIamPolicy(String resource, Policy policy) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
    *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
    *           .build();
    *   Policy response = cloudTasksClient.setIamPolicy(request);
    * }
@@ -1368,11 +1453,14 @@ public final Policy setIamPolicy(QueueName queue, Policy policy) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
    *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
    *           .build();
    *   ApiFuture future = cloudTasksClient.setIamPolicyCallable().futureCall(request);
    *   // Do something.
@@ -1397,6 +1485,8 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   List permissions = new ArrayList<>();
@@ -1435,6 +1525,8 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   List permissions = new ArrayList<>();
@@ -1473,6 +1565,8 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1508,6 +1602,8 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1540,6 +1636,8 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
@@ -1572,6 +1670,8 @@ public final ListTasksPagedResponse listTasks(QueueName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
@@ -1603,6 +1703,8 @@ public final ListTasksPagedResponse listTasks(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1637,6 +1739,8 @@ public final ListTasksPagedResponse listTasks(ListTasksRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1670,6 +1774,8 @@ public final UnaryCallable listTasksPa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1703,6 +1809,8 @@ public final UnaryCallable listTasksCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Task response = cloudTasksClient.getTask(name);
@@ -1726,6 +1834,8 @@ public final Task getTask(TaskName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Task response = cloudTasksClient.getTask(name);
@@ -1748,6 +1858,8 @@ public final Task getTask(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetTaskRequest request =
    *       GetTaskRequest.newBuilder()
@@ -1771,6 +1883,8 @@ public final Task getTask(GetTaskRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetTaskRequest request =
    *       GetTaskRequest.newBuilder()
@@ -1799,6 +1913,8 @@ public final UnaryCallable getTaskCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Task task = Task.newBuilder().build();
@@ -1856,6 +1972,8 @@ public final Task createTask(QueueName parent, Task task) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Task task = Task.newBuilder().build();
@@ -1910,6 +2028,8 @@ public final Task createTask(String parent, Task task) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
@@ -1940,6 +2060,8 @@ public final Task createTask(CreateTaskRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
@@ -1966,6 +2088,8 @@ public final UnaryCallable createTaskCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   cloudTasksClient.deleteTask(name);
@@ -1992,6 +2116,8 @@ public final void deleteTask(TaskName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   cloudTasksClient.deleteTask(name);
@@ -2017,6 +2143,8 @@ public final void deleteTask(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteTaskRequest request =
    *       DeleteTaskRequest.newBuilder()
@@ -2043,6 +2171,8 @@ public final void deleteTask(DeleteTaskRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteTaskRequest request =
    *       DeleteTaskRequest.newBuilder()
@@ -2086,6 +2216,8 @@ public final UnaryCallable deleteTaskCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Task response = cloudTasksClient.runTask(name);
@@ -2130,6 +2262,8 @@ public final Task runTask(TaskName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Task response = cloudTasksClient.runTask(name);
@@ -2173,6 +2307,8 @@ public final Task runTask(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   RunTaskRequest request =
    *       RunTaskRequest.newBuilder()
@@ -2217,6 +2353,8 @@ public final Task runTask(RunTaskRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   RunTaskRequest request =
    *       RunTaskRequest.newBuilder()
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java
index 0b9c4aee..433cfa77 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -59,6 +59,8 @@
  * 

For example, to set the total timeout of getQueue to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder();
  * cloudTasksSettingsBuilder
  *     .getQueueSettings()
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java
index c587018a..dc0f95a2 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -25,6 +25,8 @@
  * 

Sample for CloudTasksClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
  *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  *   Queue response = cloudTasksClient.getQueue(name);
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStub.java
index f4bc72fa..f8739059 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStub.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java
index 394f0559..fcc4bf86 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -91,6 +91,8 @@
  * 

For example, to set the total timeout of getQueue to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder();
  * cloudTasksSettingsBuilder
  *     .getQueueSettings()
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksCallableFactory.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksCallableFactory.java
index 5ad8073e..ccb41e66 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksCallableFactory.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java
index f7d05c8b..b0a36eed 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java
index d6620298..09c3408d 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -52,6 +52,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
  *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  *   Queue response = cloudTasksClient.getQueue(name);
@@ -87,6 +89,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -97,6 +101,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build();
  * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
@@ -165,6 +171,8 @@ public CloudTasksStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
@@ -192,6 +200,8 @@ public final ListQueuesPagedResponse listQueues(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
@@ -218,6 +228,8 @@ public final ListQueuesPagedResponse listQueues(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -249,6 +261,8 @@ public final ListQueuesPagedResponse listQueues(ListQueuesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -279,6 +293,8 @@ public final UnaryCallable listQueue
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -314,6 +330,8 @@ public final UnaryCallable listQueuesCall
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.getQueue(name);
@@ -337,6 +355,8 @@ public final Queue getQueue(QueueName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.getQueue(name);
@@ -359,6 +379,8 @@ public final Queue getQueue(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetQueueRequest request =
    *       GetQueueRequest.newBuilder()
@@ -383,6 +405,8 @@ public final Queue getQueue(GetQueueRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetQueueRequest request =
    *       GetQueueRequest.newBuilder()
@@ -413,6 +437,8 @@ public final UnaryCallable getQueueCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Queue queue = Queue.newBuilder().build();
@@ -452,6 +478,8 @@ public final Queue createQueue(LocationName parent, Queue queue) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Queue queue = Queue.newBuilder().build();
@@ -488,6 +516,8 @@ public final Queue createQueue(String parent, Queue queue) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
@@ -519,6 +549,8 @@ public final Queue createQueue(CreateQueueRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
@@ -551,6 +583,8 @@ public final UnaryCallable createQueueCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   Queue queue = Queue.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -589,6 +623,8 @@ public final Queue updateQueue(Queue queue, FieldMask updateMask) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   UpdateQueueRequest request =
    *       UpdateQueueRequest.newBuilder()
@@ -622,6 +658,8 @@ public final Queue updateQueue(UpdateQueueRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   UpdateQueueRequest request =
    *       UpdateQueueRequest.newBuilder()
@@ -653,6 +691,8 @@ public final UnaryCallable updateQueueCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   cloudTasksClient.deleteQueue(name);
@@ -684,6 +724,8 @@ public final void deleteQueue(QueueName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   cloudTasksClient.deleteQueue(name);
@@ -714,6 +756,8 @@ public final void deleteQueue(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteQueueRequest request =
    *       DeleteQueueRequest.newBuilder()
@@ -745,6 +789,8 @@ public final void deleteQueue(DeleteQueueRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteQueueRequest request =
    *       DeleteQueueRequest.newBuilder()
@@ -772,6 +818,8 @@ public final UnaryCallable deleteQueueCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.purgeQueue(name);
@@ -800,6 +848,8 @@ public final Queue purgeQueue(QueueName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.purgeQueue(name);
@@ -827,6 +877,8 @@ public final Queue purgeQueue(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PurgeQueueRequest request =
    *       PurgeQueueRequest.newBuilder()
@@ -855,6 +907,8 @@ public final Queue purgeQueue(PurgeQueueRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PurgeQueueRequest request =
    *       PurgeQueueRequest.newBuilder()
@@ -883,6 +937,8 @@ public final UnaryCallable purgeQueueCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.pauseQueue(name);
@@ -912,6 +968,8 @@ public final Queue pauseQueue(QueueName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.pauseQueue(name);
@@ -940,6 +998,8 @@ public final Queue pauseQueue(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PauseQueueRequest request =
    *       PauseQueueRequest.newBuilder()
@@ -969,6 +1029,8 @@ public final Queue pauseQueue(PauseQueueRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PauseQueueRequest request =
    *       PauseQueueRequest.newBuilder()
@@ -1001,6 +1063,8 @@ public final UnaryCallable pauseQueueCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.resumeQueue(name);
@@ -1034,6 +1098,8 @@ public final Queue resumeQueue(QueueName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.resumeQueue(name);
@@ -1066,6 +1132,8 @@ public final Queue resumeQueue(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResumeQueueRequest request =
    *       ResumeQueueRequest.newBuilder()
@@ -1099,6 +1167,8 @@ public final Queue resumeQueue(ResumeQueueRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResumeQueueRequest request =
    *       ResumeQueueRequest.newBuilder()
@@ -1129,6 +1199,8 @@ public final UnaryCallable resumeQueueCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
@@ -1162,6 +1234,8 @@ public final Policy getIamPolicy(ResourceName resource) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
@@ -1192,6 +1266,8 @@ public final Policy getIamPolicy(String resource) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1228,6 +1304,8 @@ public final Policy getIamPolicy(QueueName queueName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1262,6 +1340,8 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy policy = Policy.newBuilder().build();
@@ -1303,6 +1383,8 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy policy = Policy.newBuilder().build();
@@ -1341,11 +1423,14 @@ public final Policy setIamPolicy(String resource, Policy policy) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
    *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
    *           .build();
    *   Policy response = cloudTasksClient.setIamPolicy(request);
    * }
@@ -1380,11 +1465,14 @@ public final Policy setIamPolicy(QueueName queue, Policy policy) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
    *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
    *           .build();
    *   ApiFuture future = cloudTasksClient.setIamPolicyCallable().futureCall(request);
    *   // Do something.
@@ -1409,6 +1497,8 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   List permissions = new ArrayList<>();
@@ -1447,6 +1537,8 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   List permissions = new ArrayList<>();
@@ -1485,6 +1577,8 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1520,6 +1614,8 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1552,6 +1648,8 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
@@ -1584,6 +1682,8 @@ public final ListTasksPagedResponse listTasks(QueueName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
@@ -1615,6 +1715,8 @@ public final ListTasksPagedResponse listTasks(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1649,6 +1751,8 @@ public final ListTasksPagedResponse listTasks(ListTasksRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1682,6 +1786,8 @@ public final UnaryCallable listTasksPa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1715,6 +1821,8 @@ public final UnaryCallable listTasksCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Task response = cloudTasksClient.getTask(name);
@@ -1738,6 +1846,8 @@ public final Task getTask(TaskName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Task response = cloudTasksClient.getTask(name);
@@ -1760,6 +1870,8 @@ public final Task getTask(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetTaskRequest request =
    *       GetTaskRequest.newBuilder()
@@ -1783,6 +1895,8 @@ public final Task getTask(GetTaskRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetTaskRequest request =
    *       GetTaskRequest.newBuilder()
@@ -1813,6 +1927,8 @@ public final UnaryCallable getTaskCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Task task = Task.newBuilder().build();
@@ -1872,6 +1988,8 @@ public final Task createTask(QueueName parent, Task task) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Task task = Task.newBuilder().build();
@@ -1928,6 +2046,8 @@ public final Task createTask(String parent, Task task) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
@@ -1960,6 +2080,8 @@ public final Task createTask(CreateTaskRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
@@ -1986,6 +2108,8 @@ public final UnaryCallable createTaskCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   cloudTasksClient.deleteTask(name);
@@ -2012,6 +2136,8 @@ public final void deleteTask(TaskName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   cloudTasksClient.deleteTask(name);
@@ -2037,6 +2163,8 @@ public final void deleteTask(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteTaskRequest request =
    *       DeleteTaskRequest.newBuilder()
@@ -2063,6 +2191,8 @@ public final void deleteTask(DeleteTaskRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteTaskRequest request =
    *       DeleteTaskRequest.newBuilder()
@@ -2103,6 +2233,8 @@ public final UnaryCallable deleteTaskCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Duration leaseDuration = Duration.newBuilder().build();
@@ -2163,6 +2295,8 @@ public final LeaseTasksResponse leaseTasks(QueueName parent, Duration leaseDurat
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Duration leaseDuration = Duration.newBuilder().build();
@@ -2220,6 +2354,8 @@ public final LeaseTasksResponse leaseTasks(String parent, Duration leaseDuration
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   LeaseTasksRequest request =
    *       LeaseTasksRequest.newBuilder()
@@ -2264,6 +2400,8 @@ public final LeaseTasksResponse leaseTasks(LeaseTasksRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   LeaseTasksRequest request =
    *       LeaseTasksRequest.newBuilder()
@@ -2302,6 +2440,8 @@ public final UnaryCallable leaseTasksCall
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Timestamp scheduleTime = Timestamp.newBuilder().build();
@@ -2346,6 +2486,8 @@ public final void acknowledgeTask(TaskName name, Timestamp scheduleTime) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Timestamp scheduleTime = Timestamp.newBuilder().build();
@@ -2387,6 +2529,8 @@ public final void acknowledgeTask(String name, Timestamp scheduleTime) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   AcknowledgeTaskRequest request =
    *       AcknowledgeTaskRequest.newBuilder()
@@ -2423,6 +2567,8 @@ public final void acknowledgeTask(AcknowledgeTaskRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   AcknowledgeTaskRequest request =
    *       AcknowledgeTaskRequest.newBuilder()
@@ -2450,6 +2596,8 @@ public final UnaryCallable acknowledgeTaskCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Timestamp scheduleTime = Timestamp.newBuilder().build();
@@ -2491,6 +2639,8 @@ public final Task renewLease(TaskName name, Timestamp scheduleTime, Duration lea
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Timestamp scheduleTime = Timestamp.newBuilder().build();
@@ -2532,6 +2682,8 @@ public final Task renewLease(String name, Timestamp scheduleTime, Duration lease
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   RenewLeaseRequest request =
    *       RenewLeaseRequest.newBuilder()
@@ -2561,6 +2713,8 @@ public final Task renewLease(RenewLeaseRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   RenewLeaseRequest request =
    *       RenewLeaseRequest.newBuilder()
@@ -2590,6 +2744,8 @@ public final UnaryCallable renewLeaseCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Timestamp scheduleTime = Timestamp.newBuilder().build();
@@ -2627,6 +2783,8 @@ public final Task cancelLease(TaskName name, Timestamp scheduleTime) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Timestamp scheduleTime = Timestamp.newBuilder().build();
@@ -2661,6 +2819,8 @@ public final Task cancelLease(String name, Timestamp scheduleTime) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CancelLeaseRequest request =
    *       CancelLeaseRequest.newBuilder()
@@ -2690,6 +2850,8 @@ public final Task cancelLease(CancelLeaseRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CancelLeaseRequest request =
    *       CancelLeaseRequest.newBuilder()
@@ -2738,6 +2900,8 @@ public final UnaryCallable cancelLeaseCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Task response = cloudTasksClient.runTask(name);
@@ -2786,6 +2950,8 @@ public final Task runTask(TaskName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Task response = cloudTasksClient.runTask(name);
@@ -2833,6 +2999,8 @@ public final Task runTask(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   RunTaskRequest request =
    *       RunTaskRequest.newBuilder()
@@ -2881,6 +3049,8 @@ public final Task runTask(RunTaskRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   RunTaskRequest request =
    *       RunTaskRequest.newBuilder()
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java
index eb5e1430..3f9c9be6 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -59,6 +59,8 @@
  * 

For example, to set the total timeout of getQueue to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder();
  * cloudTasksSettingsBuilder
  *     .getQueueSettings()
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java
index 6b83d110..190255fe 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -25,6 +25,8 @@
  * 

Sample for CloudTasksClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
  *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  *   Queue response = cloudTasksClient.getQueue(name);
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStub.java
index cdc47d99..accc4342 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStub.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java
index e46b7c1c..59a0f2ba 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -96,6 +96,8 @@
  * 

For example, to set the total timeout of getQueue to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder();
  * cloudTasksSettingsBuilder
  *     .getQueueSettings()
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksCallableFactory.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksCallableFactory.java
index 0ebd5ea5..1221424e 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksCallableFactory.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java
index d0bb8f15..1218f4ab 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java
index 1773728d..24430428 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -50,6 +50,8 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
  *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  *   Queue response = cloudTasksClient.getQueue(name);
@@ -85,6 +87,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -95,6 +99,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build();
  * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
@@ -163,6 +169,8 @@ public CloudTasksStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
@@ -190,6 +198,8 @@ public final ListQueuesPagedResponse listQueues(LocationName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
@@ -216,6 +226,8 @@ public final ListQueuesPagedResponse listQueues(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -247,6 +259,8 @@ public final ListQueuesPagedResponse listQueues(ListQueuesRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -277,6 +291,8 @@ public final UnaryCallable listQueue
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -312,6 +328,8 @@ public final UnaryCallable listQueuesCall
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.getQueue(name);
@@ -335,6 +353,8 @@ public final Queue getQueue(QueueName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.getQueue(name);
@@ -357,6 +377,8 @@ public final Queue getQueue(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetQueueRequest request =
    *       GetQueueRequest.newBuilder()
@@ -381,6 +403,8 @@ public final Queue getQueue(GetQueueRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetQueueRequest request =
    *       GetQueueRequest.newBuilder()
@@ -411,6 +435,8 @@ public final UnaryCallable getQueueCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Queue queue = Queue.newBuilder().build();
@@ -450,6 +476,8 @@ public final Queue createQueue(LocationName parent, Queue queue) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Queue queue = Queue.newBuilder().build();
@@ -486,6 +514,8 @@ public final Queue createQueue(String parent, Queue queue) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
@@ -517,6 +547,8 @@ public final Queue createQueue(CreateQueueRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
@@ -549,6 +581,8 @@ public final UnaryCallable createQueueCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   Queue queue = Queue.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -587,6 +621,8 @@ public final Queue updateQueue(Queue queue, FieldMask updateMask) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   UpdateQueueRequest request =
    *       UpdateQueueRequest.newBuilder()
@@ -620,6 +656,8 @@ public final Queue updateQueue(UpdateQueueRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   UpdateQueueRequest request =
    *       UpdateQueueRequest.newBuilder()
@@ -651,6 +689,8 @@ public final UnaryCallable updateQueueCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   cloudTasksClient.deleteQueue(name);
@@ -682,6 +722,8 @@ public final void deleteQueue(QueueName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   cloudTasksClient.deleteQueue(name);
@@ -712,6 +754,8 @@ public final void deleteQueue(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteQueueRequest request =
    *       DeleteQueueRequest.newBuilder()
@@ -743,6 +787,8 @@ public final void deleteQueue(DeleteQueueRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteQueueRequest request =
    *       DeleteQueueRequest.newBuilder()
@@ -770,6 +816,8 @@ public final UnaryCallable deleteQueueCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.purgeQueue(name);
@@ -798,6 +846,8 @@ public final Queue purgeQueue(QueueName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.purgeQueue(name);
@@ -825,6 +875,8 @@ public final Queue purgeQueue(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PurgeQueueRequest request =
    *       PurgeQueueRequest.newBuilder()
@@ -853,6 +905,8 @@ public final Queue purgeQueue(PurgeQueueRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PurgeQueueRequest request =
    *       PurgeQueueRequest.newBuilder()
@@ -881,6 +935,8 @@ public final UnaryCallable purgeQueueCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.pauseQueue(name);
@@ -910,6 +966,8 @@ public final Queue pauseQueue(QueueName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.pauseQueue(name);
@@ -938,6 +996,8 @@ public final Queue pauseQueue(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PauseQueueRequest request =
    *       PauseQueueRequest.newBuilder()
@@ -967,6 +1027,8 @@ public final Queue pauseQueue(PauseQueueRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   PauseQueueRequest request =
    *       PauseQueueRequest.newBuilder()
@@ -999,6 +1061,8 @@ public final UnaryCallable pauseQueueCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.resumeQueue(name);
@@ -1032,6 +1096,8 @@ public final Queue resumeQueue(QueueName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.resumeQueue(name);
@@ -1064,6 +1130,8 @@ public final Queue resumeQueue(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResumeQueueRequest request =
    *       ResumeQueueRequest.newBuilder()
@@ -1097,6 +1165,8 @@ public final Queue resumeQueue(ResumeQueueRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResumeQueueRequest request =
    *       ResumeQueueRequest.newBuilder()
@@ -1127,6 +1197,8 @@ public final UnaryCallable resumeQueueCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
@@ -1160,6 +1232,8 @@ public final Policy getIamPolicy(ResourceName resource) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
@@ -1190,6 +1264,8 @@ public final Policy getIamPolicy(String resource) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1226,6 +1302,8 @@ public final Policy getIamPolicy(QueueName queueName) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1260,6 +1338,8 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy policy = Policy.newBuilder().build();
@@ -1301,6 +1381,8 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy policy = Policy.newBuilder().build();
@@ -1339,11 +1421,14 @@ public final Policy setIamPolicy(String resource, Policy policy) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
    *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
    *           .build();
    *   Policy response = cloudTasksClient.setIamPolicy(request);
    * }
@@ -1378,11 +1463,14 @@ public final Policy setIamPolicy(QueueName queue, Policy policy) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
    *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
    *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
    *           .build();
    *   ApiFuture future = cloudTasksClient.setIamPolicyCallable().futureCall(request);
    *   // Do something.
@@ -1407,6 +1495,8 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   List permissions = new ArrayList<>();
@@ -1445,6 +1535,8 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   List permissions = new ArrayList<>();
@@ -1483,6 +1575,8 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1518,6 +1612,8 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1550,6 +1646,8 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
@@ -1582,6 +1680,8 @@ public final ListTasksPagedResponse listTasks(QueueName parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
@@ -1613,6 +1713,8 @@ public final ListTasksPagedResponse listTasks(String parent) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1647,6 +1749,8 @@ public final ListTasksPagedResponse listTasks(ListTasksRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1680,6 +1784,8 @@ public final UnaryCallable listTasksPa
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1713,6 +1819,8 @@ public final UnaryCallable listTasksCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Task response = cloudTasksClient.getTask(name);
@@ -1736,6 +1844,8 @@ public final Task getTask(TaskName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Task response = cloudTasksClient.getTask(name);
@@ -1758,6 +1868,8 @@ public final Task getTask(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetTaskRequest request =
    *       GetTaskRequest.newBuilder()
@@ -1781,6 +1893,8 @@ public final Task getTask(GetTaskRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   GetTaskRequest request =
    *       GetTaskRequest.newBuilder()
@@ -1809,6 +1923,8 @@ public final UnaryCallable getTaskCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Task task = Task.newBuilder().build();
@@ -1866,6 +1982,8 @@ public final Task createTask(QueueName parent, Task task) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Task task = Task.newBuilder().build();
@@ -1920,6 +2038,8 @@ public final Task createTask(String parent, Task task) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
@@ -1950,6 +2070,8 @@ public final Task createTask(CreateTaskRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
@@ -1976,6 +2098,8 @@ public final UnaryCallable createTaskCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   cloudTasksClient.deleteTask(name);
@@ -2002,6 +2126,8 @@ public final void deleteTask(TaskName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   cloudTasksClient.deleteTask(name);
@@ -2027,6 +2153,8 @@ public final void deleteTask(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteTaskRequest request =
    *       DeleteTaskRequest.newBuilder()
@@ -2053,6 +2181,8 @@ public final void deleteTask(DeleteTaskRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   DeleteTaskRequest request =
    *       DeleteTaskRequest.newBuilder()
@@ -2097,6 +2227,8 @@ public final UnaryCallable deleteTaskCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Task response = cloudTasksClient.runTask(name);
@@ -2142,6 +2274,8 @@ public final Task runTask(TaskName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Task response = cloudTasksClient.runTask(name);
@@ -2186,6 +2320,8 @@ public final Task runTask(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   RunTaskRequest request =
    *       RunTaskRequest.newBuilder()
@@ -2231,6 +2367,8 @@ public final Task runTask(RunTaskRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
    *   RunTaskRequest request =
    *       RunTaskRequest.newBuilder()
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java
index 18df7d20..4b670b0a 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -59,6 +59,8 @@
  * 

For example, to set the total timeout of getQueue to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder();
  * cloudTasksSettingsBuilder
  *     .getQueueSettings()
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java
index 0a884409..b0103080 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -25,6 +25,8 @@
  * 

Sample for CloudTasksClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
  *   QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  *   Queue response = cloudTasksClient.getQueue(name);
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStub.java
index 1fbad68e..8183c88f 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStub.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java
index 3d660e42..d158d0c5 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -91,6 +91,8 @@
  * 

For example, to set the total timeout of getQueue to 30 seconds: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder();
  * cloudTasksSettingsBuilder
  *     .getQueueSettings()
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksCallableFactory.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksCallableFactory.java
index 388c2112..c9cb88d9 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksCallableFactory.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksCallableFactory.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java
index fac9d556..3538397e 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java
index d87ada6a..a631eaf4 100644
--- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java
+++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -28,6 +28,7 @@
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.resourcenames.ResourceName;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
 import com.google.iam.v1.Binding;
 import com.google.iam.v1.GetIamPolicyRequest;
 import com.google.iam.v1.Policy;
@@ -736,6 +737,7 @@ public void getIamPolicyTest() throws Exception {
         Policy.newBuilder()
             .setVersion(351608024)
             .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
             .setEtag(ByteString.EMPTY)
             .build();
     mockCloudTasks.addResponse(expectedResponse);
@@ -776,6 +778,7 @@ public void getIamPolicyTest2() throws Exception {
         Policy.newBuilder()
             .setVersion(351608024)
             .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
             .setEtag(ByteString.EMPTY)
             .build();
     mockCloudTasks.addResponse(expectedResponse);
@@ -816,6 +819,7 @@ public void setIamPolicyTest() throws Exception {
         Policy.newBuilder()
             .setVersion(351608024)
             .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
             .setEtag(ByteString.EMPTY)
             .build();
     mockCloudTasks.addResponse(expectedResponse);
@@ -859,6 +863,7 @@ public void setIamPolicyTest2() throws Exception {
         Policy.newBuilder()
             .setVersion(351608024)
             .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
             .setEtag(ByteString.EMPTY)
             .build();
     mockCloudTasks.addResponse(expectedResponse);
diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasks.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasks.java
index 29bf65ae..227ffe64 100644
--- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasks.java
+++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasks.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java
index 3e5a4ac0..aa591568 100644
--- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java
+++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java
index 6b0734be..4494b6cd 100644
--- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java
+++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -28,6 +28,7 @@
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.resourcenames.ResourceName;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
 import com.google.iam.v1.Binding;
 import com.google.iam.v1.GetIamPolicyRequest;
 import com.google.iam.v1.Policy;
@@ -747,6 +748,7 @@ public void getIamPolicyTest() throws Exception {
         Policy.newBuilder()
             .setVersion(351608024)
             .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
             .setEtag(ByteString.EMPTY)
             .build();
     mockCloudTasks.addResponse(expectedResponse);
@@ -787,6 +789,7 @@ public void getIamPolicyTest2() throws Exception {
         Policy.newBuilder()
             .setVersion(351608024)
             .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
             .setEtag(ByteString.EMPTY)
             .build();
     mockCloudTasks.addResponse(expectedResponse);
@@ -827,6 +830,7 @@ public void setIamPolicyTest() throws Exception {
         Policy.newBuilder()
             .setVersion(351608024)
             .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
             .setEtag(ByteString.EMPTY)
             .build();
     mockCloudTasks.addResponse(expectedResponse);
@@ -870,6 +874,7 @@ public void setIamPolicyTest2() throws Exception {
         Policy.newBuilder()
             .setVersion(351608024)
             .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
             .setEtag(ByteString.EMPTY)
             .build();
     mockCloudTasks.addResponse(expectedResponse);
diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasks.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasks.java
index 2dc23ac9..38058fb7 100644
--- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasks.java
+++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasks.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java
index 0ed40abb..703132e5 100644
--- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java
+++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java
index c3f05b65..626dc32c 100644
--- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java
+++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -28,6 +28,7 @@
 import com.google.api.gax.rpc.InvalidArgumentException;
 import com.google.api.resourcenames.ResourceName;
 import com.google.common.collect.Lists;
+import com.google.iam.v1.AuditConfig;
 import com.google.iam.v1.Binding;
 import com.google.iam.v1.GetIamPolicyRequest;
 import com.google.iam.v1.Policy;
@@ -758,6 +759,7 @@ public void getIamPolicyTest() throws Exception {
         Policy.newBuilder()
             .setVersion(351608024)
             .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
             .setEtag(ByteString.EMPTY)
             .build();
     mockCloudTasks.addResponse(expectedResponse);
@@ -798,6 +800,7 @@ public void getIamPolicyTest2() throws Exception {
         Policy.newBuilder()
             .setVersion(351608024)
             .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
             .setEtag(ByteString.EMPTY)
             .build();
     mockCloudTasks.addResponse(expectedResponse);
@@ -838,6 +841,7 @@ public void setIamPolicyTest() throws Exception {
         Policy.newBuilder()
             .setVersion(351608024)
             .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
             .setEtag(ByteString.EMPTY)
             .build();
     mockCloudTasks.addResponse(expectedResponse);
@@ -881,6 +885,7 @@ public void setIamPolicyTest2() throws Exception {
         Policy.newBuilder()
             .setVersion(351608024)
             .addAllBindings(new ArrayList())
+            .addAllAuditConfigs(new ArrayList())
             .setEtag(ByteString.EMPTY)
             .build();
     mockCloudTasks.addResponse(expectedResponse);
diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasks.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasks.java
index aa5ecd29..ae10f963 100644
--- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasks.java
+++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasks.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java
index e5b306fe..4e2a3a2d 100644
--- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java
+++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequest.java
index 99d17c72..bb0cf20e 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequest.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequest.java
@@ -181,6 +181,8 @@ private AppEngineHttpRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -455,7 +457,7 @@ public int getHeadersCount() {
   @java.lang.Override
   public boolean containsHeaders(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetHeaders().getMap().containsKey(key);
   }
@@ -554,7 +556,7 @@ public java.util.Map getHeadersMap() {
   @java.lang.Override
   public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetHeaders().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -603,7 +605,7 @@ public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.Stri
   @java.lang.Override
   public java.lang.String getHeadersOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetHeaders().getMap();
     if (!map.containsKey(key)) {
@@ -1651,7 +1653,7 @@ public int getHeadersCount() {
     @java.lang.Override
     public boolean containsHeaders(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetHeaders().getMap().containsKey(key);
     }
@@ -1751,7 +1753,7 @@ public java.util.Map getHeadersMap() {
     public java.lang.String getHeadersOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetHeaders().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1800,7 +1802,7 @@ public java.lang.String getHeadersOrDefault(
     @java.lang.Override
     public java.lang.String getHeadersOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetHeaders().getMap();
       if (!map.containsKey(key)) {
@@ -1856,7 +1858,7 @@ public Builder clearHeaders() {
      */
     public Builder removeHeaders(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableHeaders().getMutableMap().remove(key);
       return this;
@@ -1909,11 +1911,12 @@ public java.util.Map getMutableHeaders() {
      */
     public Builder putHeaders(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableHeaders().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequestOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequestOrBuilder.java
index ecb6a530..e2387d20 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequestOrBuilder.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequestOrBuilder.java
@@ -316,7 +316,12 @@ public interface AppEngineHttpRequestOrBuilder
    *
    * map<string, string> headers = 4;
    */
-  java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getHeadersOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRouting.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRouting.java
index c4ffc462..2a3556d6 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRouting.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRouting.java
@@ -128,6 +128,8 @@ private AppEngineRouting(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Attempt.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Attempt.java
index 051c6648..95c7a78e 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Attempt.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Attempt.java
@@ -139,6 +139,8 @@ private Attempt(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequest.java
index ce30444e..3e89e7dc 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequest.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequest.java
@@ -103,6 +103,8 @@ private CreateQueueRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequest.java
index 0abd34c0..10c558c1 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequest.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequest.java
@@ -110,6 +110,8 @@ private CreateTaskRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequest.java
index d5a28ebb..40511a70 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequest.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequest.java
@@ -88,6 +88,8 @@ private DeleteQueueRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequest.java
index 242069ab..a62eb1e2 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequest.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequest.java
@@ -89,6 +89,8 @@ private DeleteTaskRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequest.java
index d636ef96..2e4dccd2 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequest.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequest.java
@@ -88,6 +88,8 @@ private GetQueueRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequest.java
index 7e92ae6a..7e12b47b 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequest.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequest.java
@@ -96,6 +96,8 @@ private GetTaskRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequest.java
index 7d310c8e..84b5b41e 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequest.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequest.java
@@ -172,6 +172,8 @@ private HttpRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -407,7 +409,7 @@ public int getHeadersCount() {
   @java.lang.Override
   public boolean containsHeaders(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetHeaders().getMap().containsKey(key);
   }
@@ -482,7 +484,7 @@ public java.util.Map getHeadersMap() {
   @java.lang.Override
   public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetHeaders().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -519,7 +521,7 @@ public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.Stri
   @java.lang.Override
   public java.lang.String getHeadersOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetHeaders().getMap();
     if (!map.containsKey(key)) {
@@ -1463,7 +1465,7 @@ public int getHeadersCount() {
     @java.lang.Override
     public boolean containsHeaders(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetHeaders().getMap().containsKey(key);
     }
@@ -1539,7 +1541,7 @@ public java.util.Map getHeadersMap() {
     public java.lang.String getHeadersOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetHeaders().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1576,7 +1578,7 @@ public java.lang.String getHeadersOrDefault(
     @java.lang.Override
     public java.lang.String getHeadersOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetHeaders().getMap();
       if (!map.containsKey(key)) {
@@ -1620,7 +1622,7 @@ public Builder clearHeaders() {
      */
     public Builder removeHeaders(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableHeaders().getMutableMap().remove(key);
       return this;
@@ -1661,11 +1663,12 @@ public java.util.Map getMutableHeaders() {
      */
     public Builder putHeaders(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableHeaders().getMutableMap().put(key, value);
       return this;
     }
@@ -1903,8 +1906,9 @@ public Builder mergeOauthToken(com.google.cloud.tasks.v2.OAuthToken value) {
       } else {
         if (authorizationHeaderCase_ == 5) {
           oauthTokenBuilder_.mergeFrom(value);
+        } else {
+          oauthTokenBuilder_.setMessage(value);
         }
-        oauthTokenBuilder_.setMessage(value);
       }
       authorizationHeaderCase_ = 5;
       return this;
@@ -2161,8 +2165,9 @@ public Builder mergeOidcToken(com.google.cloud.tasks.v2.OidcToken value) {
       } else {
         if (authorizationHeaderCase_ == 6) {
           oidcTokenBuilder_.mergeFrom(value);
+        } else {
+          oidcTokenBuilder_.setMessage(value);
         }
-        oidcTokenBuilder_.setMessage(value);
       }
       authorizationHeaderCase_ = 6;
       return this;
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequestOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequestOrBuilder.java
index 81d54642..08196f38 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequestOrBuilder.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequestOrBuilder.java
@@ -207,7 +207,12 @@ public interface HttpRequestOrBuilder
    *
    * map<string, string> headers = 3;
    */
-  java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getHeadersOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequest.java
index 5efd9eae..9855ecb3 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequest.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequest.java
@@ -109,6 +109,8 @@ private ListQueuesRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponse.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponse.java
index f240193f..7adf33da 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponse.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponse.java
@@ -100,6 +100,8 @@ private ListQueuesResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequest.java
index 76c3e8d1..595074bb 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequest.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequest.java
@@ -109,6 +109,8 @@ private ListTasksRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponse.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponse.java
index d66126d1..8bcc41f0 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponse.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponse.java
@@ -100,6 +100,8 @@ private ListTasksResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java
index e37fe26a..6136688a 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthToken.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthToken.java
index 5bde4982..1d13e2be 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthToken.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthToken.java
@@ -99,6 +99,8 @@ private OAuthToken(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcToken.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcToken.java
index 581134d6..982de06e 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcToken.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcToken.java
@@ -101,6 +101,8 @@ private OidcToken(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequest.java
index f4b265df..756d588f 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequest.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequest.java
@@ -88,6 +88,8 @@ private PauseQueueRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequest.java
index 7ae6da0e..ec7b1df4 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequest.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequest.java
@@ -88,6 +88,8 @@ private PurgeQueueRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Queue.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Queue.java
index f11f7587..7bbe29d9 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Queue.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Queue.java
@@ -178,6 +178,8 @@ private Queue(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueName.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueName.java
index 98cdde17..4e6f4c60 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueName.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueName.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueProto.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueProto.java
index c90215f3..db5e00c6 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueProto.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueProto.java
@@ -56,34 +56,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "gle.cloud.tasks.v2\032\031google/api/resource."
           + "proto\032\"google/cloud/tasks/v2/target.prot"
           + "o\032\036google/protobuf/duration.proto\032\037googl"
-          + "e/protobuf/timestamp.proto\032\034google/api/a"
-          + "nnotations.proto\"\262\004\n\005Queue\022\014\n\004name\030\001 \001(\t"
-          + "\022L\n\033app_engine_routing_override\030\002 \001(\0132\'."
-          + "google.cloud.tasks.v2.AppEngineRouting\0226"
-          + "\n\013rate_limits\030\003 \001(\0132!.google.cloud.tasks"
-          + ".v2.RateLimits\0228\n\014retry_config\030\004 \001(\0132\".g"
-          + "oogle.cloud.tasks.v2.RetryConfig\0221\n\005stat"
-          + "e\030\005 \001(\0162\".google.cloud.tasks.v2.Queue.St"
-          + "ate\022.\n\npurge_time\030\006 \001(\0132\032.google.protobu"
-          + "f.Timestamp\022S\n\032stackdriver_logging_confi"
-          + "g\030\t \001(\0132/.google.cloud.tasks.v2.Stackdri"
-          + "verLoggingConfig\"E\n\005State\022\025\n\021STATE_UNSPE"
-          + "CIFIED\020\000\022\013\n\007RUNNING\020\001\022\n\n\006PAUSED\020\002\022\014\n\010DIS"
-          + "ABLED\020\003:\\\352AY\n\037cloudtasks.googleapis.com/"
-          + "Queue\0226projects/{project}/locations/{loc"
-          + "ation}/queues/{queue}\"j\n\nRateLimits\022!\n\031m"
-          + "ax_dispatches_per_second\030\001 \001(\001\022\026\n\016max_bu"
-          + "rst_size\030\002 \001(\005\022!\n\031max_concurrent_dispatc"
-          + "hes\030\003 \001(\005\"\321\001\n\013RetryConfig\022\024\n\014max_attempt"
-          + "s\030\001 \001(\005\0225\n\022max_retry_duration\030\002 \001(\0132\031.go"
-          + "ogle.protobuf.Duration\022.\n\013min_backoff\030\003 "
-          + "\001(\0132\031.google.protobuf.Duration\022.\n\013max_ba"
-          + "ckoff\030\004 \001(\0132\031.google.protobuf.Duration\022\025"
-          + "\n\rmax_doublings\030\005 \001(\005\"2\n\030StackdriverLogg"
-          + "ingConfig\022\026\n\016sampling_ratio\030\001 \001(\001Be\n\031com"
-          + ".google.cloud.tasks.v2B\nQueueProtoP\001Z:go"
-          + "ogle.golang.org/genproto/googleapis/clou"
-          + "d/tasks/v2;tasksb\006proto3"
+          + "e/protobuf/timestamp.proto\"\262\004\n\005Queue\022\014\n\004"
+          + "name\030\001 \001(\t\022L\n\033app_engine_routing_overrid"
+          + "e\030\002 \001(\0132\'.google.cloud.tasks.v2.AppEngin"
+          + "eRouting\0226\n\013rate_limits\030\003 \001(\0132!.google.c"
+          + "loud.tasks.v2.RateLimits\0228\n\014retry_config"
+          + "\030\004 \001(\0132\".google.cloud.tasks.v2.RetryConf"
+          + "ig\0221\n\005state\030\005 \001(\0162\".google.cloud.tasks.v"
+          + "2.Queue.State\022.\n\npurge_time\030\006 \001(\0132\032.goog"
+          + "le.protobuf.Timestamp\022S\n\032stackdriver_log"
+          + "ging_config\030\t \001(\0132/.google.cloud.tasks.v"
+          + "2.StackdriverLoggingConfig\"E\n\005State\022\025\n\021S"
+          + "TATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\n\n\006PAUSE"
+          + "D\020\002\022\014\n\010DISABLED\020\003:\\\352AY\n\037cloudtasks.googl"
+          + "eapis.com/Queue\0226projects/{project}/loca"
+          + "tions/{location}/queues/{queue}\"j\n\nRateL"
+          + "imits\022!\n\031max_dispatches_per_second\030\001 \001(\001"
+          + "\022\026\n\016max_burst_size\030\002 \001(\005\022!\n\031max_concurre"
+          + "nt_dispatches\030\003 \001(\005\"\321\001\n\013RetryConfig\022\024\n\014m"
+          + "ax_attempts\030\001 \001(\005\0225\n\022max_retry_duration\030"
+          + "\002 \001(\0132\031.google.protobuf.Duration\022.\n\013min_"
+          + "backoff\030\003 \001(\0132\031.google.protobuf.Duration"
+          + "\022.\n\013max_backoff\030\004 \001(\0132\031.google.protobuf."
+          + "Duration\022\025\n\rmax_doublings\030\005 \001(\005\"2\n\030Stack"
+          + "driverLoggingConfig\022\026\n\016sampling_ratio\030\001 "
+          + "\001(\001Be\n\031com.google.cloud.tasks.v2B\nQueueP"
+          + "rotoP\001Z:google.golang.org/genproto/googl"
+          + "eapis/cloud/tasks/v2;tasksb\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -93,7 +92,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               com.google.cloud.tasks.v2.TargetProto.getDescriptor(),
               com.google.protobuf.DurationProto.getDescriptor(),
               com.google.protobuf.TimestampProto.getDescriptor(),
-              com.google.api.AnnotationsProto.getDescriptor(),
             });
     internal_static_google_cloud_tasks_v2_Queue_descriptor =
         getDescriptor().getMessageTypes().get(0);
@@ -142,7 +140,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     com.google.cloud.tasks.v2.TargetProto.getDescriptor();
     com.google.protobuf.DurationProto.getDescriptor();
     com.google.protobuf.TimestampProto.getDescriptor();
-    com.google.api.AnnotationsProto.getDescriptor();
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RateLimits.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RateLimits.java
index 820a0703..ecc9472c 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RateLimits.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RateLimits.java
@@ -98,6 +98,8 @@ private RateLimits(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -231,7 +233,7 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (maxDispatchesPerSecond_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(maxDispatchesPerSecond_) != 0) {
       output.writeDouble(1, maxDispatchesPerSecond_);
     }
     if (maxBurstSize_ != 0) {
@@ -249,7 +251,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (maxDispatchesPerSecond_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(maxDispatchesPerSecond_) != 0) {
       size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, maxDispatchesPerSecond_);
     }
     if (maxBurstSize_ != 0) {
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequest.java
index 6e55124e..619044c3 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequest.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequest.java
@@ -88,6 +88,8 @@ private ResumeQueueRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RetryConfig.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RetryConfig.java
index 27d84833..27cfb35c 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RetryConfig.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RetryConfig.java
@@ -135,6 +135,8 @@ private RetryConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequest.java
index ce22f90c..27d0ddda 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequest.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequest.java
@@ -97,6 +97,8 @@ private RunTaskRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/StackdriverLoggingConfig.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/StackdriverLoggingConfig.java
index b1b82c8c..112d7577 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/StackdriverLoggingConfig.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/StackdriverLoggingConfig.java
@@ -85,6 +85,8 @@ private StackdriverLoggingConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -143,7 +145,7 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (samplingRatio_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(samplingRatio_) != 0) {
       output.writeDouble(1, samplingRatio_);
     }
     unknownFields.writeTo(output);
@@ -155,7 +157,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (samplingRatio_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(samplingRatio_) != 0) {
       size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, samplingRatio_);
     }
     size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TargetProto.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TargetProto.java
index c293f452..38185289 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TargetProto.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TargetProto.java
@@ -66,42 +66,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     java.lang.String[] descriptorData = {
       "\n\"google/cloud/tasks/v2/target.proto\022\025go"
           + "ogle.cloud.tasks.v2\032\037google/api/field_be"
-          + "havior.proto\032\034google/api/annotations.pro"
-          + "to\"\341\002\n\013HttpRequest\022\020\n\003url\030\001 \001(\tB\003\340A\002\0226\n\013"
-          + "http_method\030\002 \001(\0162!.google.cloud.tasks.v"
-          + "2.HttpMethod\022@\n\007headers\030\003 \003(\0132/.google.c"
-          + "loud.tasks.v2.HttpRequest.HeadersEntry\022\014"
-          + "\n\004body\030\004 \001(\014\0228\n\013oauth_token\030\005 \001(\0132!.goog"
-          + "le.cloud.tasks.v2.OAuthTokenH\000\0226\n\noidc_t"
-          + "oken\030\006 \001(\0132 .google.cloud.tasks.v2.OidcT"
-          + "okenH\000\032.\n\014HeadersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v"
-          + "alue\030\002 \001(\t:\0028\001B\026\n\024authorization_header\"\262"
-          + "\002\n\024AppEngineHttpRequest\0226\n\013http_method\030\001"
-          + " \001(\0162!.google.cloud.tasks.v2.HttpMethod\022"
-          + "C\n\022app_engine_routing\030\002 \001(\0132\'.google.clo"
-          + "ud.tasks.v2.AppEngineRouting\022\024\n\014relative"
-          + "_uri\030\003 \001(\t\022I\n\007headers\030\004 \003(\01328.google.clo"
-          + "ud.tasks.v2.AppEngineHttpRequest.Headers"
-          + "Entry\022\014\n\004body\030\005 \001(\014\032.\n\014HeadersEntry\022\013\n\003k"
-          + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"T\n\020AppEngine"
-          + "Routing\022\017\n\007service\030\001 \001(\t\022\017\n\007version\030\002 \001("
-          + "\t\022\020\n\010instance\030\003 \001(\t\022\014\n\004host\030\004 \001(\t\":\n\nOAu"
-          + "thToken\022\035\n\025service_account_email\030\001 \001(\t\022\r"
-          + "\n\005scope\030\002 \001(\t\"<\n\tOidcToken\022\035\n\025service_ac"
-          + "count_email\030\001 \001(\t\022\020\n\010audience\030\002 \001(\t*s\n\nH"
-          + "ttpMethod\022\033\n\027HTTP_METHOD_UNSPECIFIED\020\000\022\010"
-          + "\n\004POST\020\001\022\007\n\003GET\020\002\022\010\n\004HEAD\020\003\022\007\n\003PUT\020\004\022\n\n\006"
-          + "DELETE\020\005\022\t\n\005PATCH\020\006\022\013\n\007OPTIONS\020\007Bf\n\031com."
-          + "google.cloud.tasks.v2B\013TargetProtoP\001Z:go"
-          + "ogle.golang.org/genproto/googleapis/clou"
-          + "d/tasks/v2;tasksb\006proto3"
+          + "havior.proto\"\341\002\n\013HttpRequest\022\020\n\003url\030\001 \001("
+          + "\tB\003\340A\002\0226\n\013http_method\030\002 \001(\0162!.google.clo"
+          + "ud.tasks.v2.HttpMethod\022@\n\007headers\030\003 \003(\0132"
+          + "/.google.cloud.tasks.v2.HttpRequest.Head"
+          + "ersEntry\022\014\n\004body\030\004 \001(\014\0228\n\013oauth_token\030\005 "
+          + "\001(\0132!.google.cloud.tasks.v2.OAuthTokenH\000"
+          + "\0226\n\noidc_token\030\006 \001(\0132 .google.cloud.task"
+          + "s.v2.OidcTokenH\000\032.\n\014HeadersEntry\022\013\n\003key\030"
+          + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\026\n\024authorizatio"
+          + "n_header\"\262\002\n\024AppEngineHttpRequest\0226\n\013htt"
+          + "p_method\030\001 \001(\0162!.google.cloud.tasks.v2.H"
+          + "ttpMethod\022C\n\022app_engine_routing\030\002 \001(\0132\'."
+          + "google.cloud.tasks.v2.AppEngineRouting\022\024"
+          + "\n\014relative_uri\030\003 \001(\t\022I\n\007headers\030\004 \003(\01328."
+          + "google.cloud.tasks.v2.AppEngineHttpReque"
+          + "st.HeadersEntry\022\014\n\004body\030\005 \001(\014\032.\n\014Headers"
+          + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"T\n"
+          + "\020AppEngineRouting\022\017\n\007service\030\001 \001(\t\022\017\n\007ve"
+          + "rsion\030\002 \001(\t\022\020\n\010instance\030\003 \001(\t\022\014\n\004host\030\004 "
+          + "\001(\t\":\n\nOAuthToken\022\035\n\025service_account_ema"
+          + "il\030\001 \001(\t\022\r\n\005scope\030\002 \001(\t\"<\n\tOidcToken\022\035\n\025"
+          + "service_account_email\030\001 \001(\t\022\020\n\010audience\030"
+          + "\002 \001(\t*s\n\nHttpMethod\022\033\n\027HTTP_METHOD_UNSPE"
+          + "CIFIED\020\000\022\010\n\004POST\020\001\022\007\n\003GET\020\002\022\010\n\004HEAD\020\003\022\007\n"
+          + "\003PUT\020\004\022\n\n\006DELETE\020\005\022\t\n\005PATCH\020\006\022\013\n\007OPTIONS"
+          + "\020\007Bf\n\031com.google.cloud.tasks.v2B\013TargetP"
+          + "rotoP\001Z:google.golang.org/genproto/googl"
+          + "eapis/cloud/tasks/v2;tasksb\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
             descriptorData,
             new com.google.protobuf.Descriptors.FileDescriptor[] {
               com.google.api.FieldBehaviorProto.getDescriptor(),
-              com.google.api.AnnotationsProto.getDescriptor(),
             });
     internal_static_google_cloud_tasks_v2_HttpRequest_descriptor =
         getDescriptor().getMessageTypes().get(0);
@@ -173,7 +171,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
         descriptor, registry);
     com.google.api.FieldBehaviorProto.getDescriptor();
-    com.google.api.AnnotationsProto.getDescriptor();
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Task.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Task.java
index 0e377eef..62fb0dd0 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Task.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Task.java
@@ -214,6 +214,8 @@ private Task(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -1940,8 +1942,9 @@ public Builder mergeAppEngineHttpRequest(com.google.cloud.tasks.v2.AppEngineHttp
       } else {
         if (messageTypeCase_ == 2) {
           appEngineHttpRequestBuilder_.mergeFrom(value);
+        } else {
+          appEngineHttpRequestBuilder_.setMessage(value);
         }
-        appEngineHttpRequestBuilder_.setMessage(value);
       }
       messageTypeCase_ = 2;
       return this;
@@ -2158,8 +2161,9 @@ public Builder mergeHttpRequest(com.google.cloud.tasks.v2.HttpRequest value) {
       } else {
         if (messageTypeCase_ == 3) {
           httpRequestBuilder_.mergeFrom(value);
+        } else {
+          httpRequestBuilder_.setMessage(value);
         }
-        httpRequestBuilder_.setMessage(value);
       }
       messageTypeCase_ = 3;
       return this;
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java
index e4dc35e0..abe36d35 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskProto.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskProto.java
index 390bf110..ed8a2c9b 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskProto.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskProto.java
@@ -49,33 +49,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "roto\032\"google/cloud/tasks/v2/target.proto"
           + "\032\036google/protobuf/duration.proto\032\037google"
           + "/protobuf/timestamp.proto\032\027google/rpc/st"
-          + "atus.proto\032\034google/api/annotations.proto"
-          + "\"\264\005\n\004Task\022\014\n\004name\030\001 \001(\t\022N\n\027app_engine_ht"
-          + "tp_request\030\002 \001(\0132+.google.cloud.tasks.v2"
-          + ".AppEngineHttpRequestH\000\022:\n\014http_request\030"
-          + "\003 \001(\0132\".google.cloud.tasks.v2.HttpReques"
-          + "tH\000\0221\n\rschedule_time\030\004 \001(\0132\032.google.prot"
-          + "obuf.Timestamp\022/\n\013create_time\030\005 \001(\0132\032.go"
-          + "ogle.protobuf.Timestamp\0224\n\021dispatch_dead"
-          + "line\030\006 \001(\0132\031.google.protobuf.Duration\022\026\n"
-          + "\016dispatch_count\030\007 \001(\005\022\026\n\016response_count\030"
-          + "\010 \001(\005\0225\n\rfirst_attempt\030\t \001(\0132\036.google.cl"
-          + "oud.tasks.v2.Attempt\0224\n\014last_attempt\030\n \001"
-          + "(\0132\036.google.cloud.tasks.v2.Attempt\022.\n\004vi"
-          + "ew\030\013 \001(\0162 .google.cloud.tasks.v2.Task.Vi"
-          + "ew\"1\n\004View\022\024\n\020VIEW_UNSPECIFIED\020\000\022\t\n\005BASI"
-          + "C\020\001\022\010\n\004FULL\020\002:h\352Ae\n\036cloudtasks.googleapi"
-          + "s.com/Task\022Cprojects/{project}/locations"
-          + "/{location}/queues/{queue}/tasks/{task}B"
-          + "\016\n\014message_type\"\317\001\n\007Attempt\0221\n\rschedule_"
-          + "time\030\001 \001(\0132\032.google.protobuf.Timestamp\0221"
-          + "\n\rdispatch_time\030\002 \001(\0132\032.google.protobuf."
-          + "Timestamp\0221\n\rresponse_time\030\003 \001(\0132\032.googl"
-          + "e.protobuf.Timestamp\022+\n\017response_status\030"
-          + "\004 \001(\0132\022.google.rpc.StatusBd\n\031com.google."
-          + "cloud.tasks.v2B\tTaskProtoP\001Z:google.gola"
-          + "ng.org/genproto/googleapis/cloud/tasks/v"
-          + "2;tasksb\006proto3"
+          + "atus.proto\"\264\005\n\004Task\022\014\n\004name\030\001 \001(\t\022N\n\027app"
+          + "_engine_http_request\030\002 \001(\0132+.google.clou"
+          + "d.tasks.v2.AppEngineHttpRequestH\000\022:\n\014htt"
+          + "p_request\030\003 \001(\0132\".google.cloud.tasks.v2."
+          + "HttpRequestH\000\0221\n\rschedule_time\030\004 \001(\0132\032.g"
+          + "oogle.protobuf.Timestamp\022/\n\013create_time\030"
+          + "\005 \001(\0132\032.google.protobuf.Timestamp\0224\n\021dis"
+          + "patch_deadline\030\006 \001(\0132\031.google.protobuf.D"
+          + "uration\022\026\n\016dispatch_count\030\007 \001(\005\022\026\n\016respo"
+          + "nse_count\030\010 \001(\005\0225\n\rfirst_attempt\030\t \001(\0132\036"
+          + ".google.cloud.tasks.v2.Attempt\0224\n\014last_a"
+          + "ttempt\030\n \001(\0132\036.google.cloud.tasks.v2.Att"
+          + "empt\022.\n\004view\030\013 \001(\0162 .google.cloud.tasks."
+          + "v2.Task.View\"1\n\004View\022\024\n\020VIEW_UNSPECIFIED"
+          + "\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002:h\352Ae\n\036cloudtasks"
+          + ".googleapis.com/Task\022Cprojects/{project}"
+          + "/locations/{location}/queues/{queue}/tas"
+          + "ks/{task}B\016\n\014message_type\"\317\001\n\007Attempt\0221\n"
+          + "\rschedule_time\030\001 \001(\0132\032.google.protobuf.T"
+          + "imestamp\0221\n\rdispatch_time\030\002 \001(\0132\032.google"
+          + ".protobuf.Timestamp\0221\n\rresponse_time\030\003 \001"
+          + "(\0132\032.google.protobuf.Timestamp\022+\n\017respon"
+          + "se_status\030\004 \001(\0132\022.google.rpc.StatusBd\n\031c"
+          + "om.google.cloud.tasks.v2B\tTaskProtoP\001Z:g"
+          + "oogle.golang.org/genproto/googleapis/clo"
+          + "ud/tasks/v2;tasksb\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -86,7 +85,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
               com.google.protobuf.DurationProto.getDescriptor(),
               com.google.protobuf.TimestampProto.getDescriptor(),
               com.google.rpc.StatusProto.getDescriptor(),
-              com.google.api.AnnotationsProto.getDescriptor(),
             });
     internal_static_google_cloud_tasks_v2_Task_descriptor =
         getDescriptor().getMessageTypes().get(0);
@@ -125,7 +123,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
     com.google.protobuf.DurationProto.getDescriptor();
     com.google.protobuf.TimestampProto.getDescriptor();
     com.google.rpc.StatusProto.getDescriptor();
-    com.google.api.AnnotationsProto.getDescriptor();
   }
 
   // @@protoc_insertion_point(outer_class_scope)
diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/UpdateQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/UpdateQueueRequest.java
index 35295447..efa8f447 100644
--- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/UpdateQueueRequest.java
+++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/UpdateQueueRequest.java
@@ -109,6 +109,8 @@ private UpdateQueueRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/queue.proto b/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/queue.proto
index 483a1f61..3de39792 100644
--- a/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/queue.proto
+++ b/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/queue.proto
@@ -21,7 +21,6 @@ import "google/api/resource.proto";
 import "google/cloud/tasks/v2/target.proto";
 import "google/protobuf/duration.proto";
 import "google/protobuf/timestamp.proto";
-import "google/api/annotations.proto";
 
 option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2;tasks";
 option java_multiple_files = true;
diff --git a/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/target.proto b/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/target.proto
index fca9cf81..db7ef20f 100644
--- a/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/target.proto
+++ b/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/target.proto
@@ -18,7 +18,6 @@ syntax = "proto3";
 package google.cloud.tasks.v2;
 
 import "google/api/field_behavior.proto";
-import "google/api/annotations.proto";
 
 option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2;tasks";
 option java_multiple_files = true;
diff --git a/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/task.proto b/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/task.proto
index 70a2baba..9669b21a 100644
--- a/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/task.proto
+++ b/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/task.proto
@@ -22,7 +22,6 @@ import "google/cloud/tasks/v2/target.proto";
 import "google/protobuf/duration.proto";
 import "google/protobuf/timestamp.proto";
 import "google/rpc/status.proto";
-import "google/api/annotations.proto";
 
 option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2;tasks";
 option java_multiple_files = true;
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequest.java
index db3194e6..ea776bea 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequest.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequest.java
@@ -104,6 +104,8 @@ private AcknowledgeTaskRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequest.java
index 8cc08797..bda8fe19 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequest.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequest.java
@@ -184,6 +184,8 @@ private AppEngineHttpRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -452,7 +454,7 @@ public int getHeadersCount() {
   @java.lang.Override
   public boolean containsHeaders(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetHeaders().getMap().containsKey(key);
   }
@@ -551,7 +553,7 @@ public java.util.Map getHeadersMap() {
   @java.lang.Override
   public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetHeaders().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -600,7 +602,7 @@ public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.Stri
   @java.lang.Override
   public java.lang.String getHeadersOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetHeaders().getMap();
     if (!map.containsKey(key)) {
@@ -1642,7 +1644,7 @@ public int getHeadersCount() {
     @java.lang.Override
     public boolean containsHeaders(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetHeaders().getMap().containsKey(key);
     }
@@ -1742,7 +1744,7 @@ public java.util.Map getHeadersMap() {
     public java.lang.String getHeadersOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetHeaders().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1791,7 +1793,7 @@ public java.lang.String getHeadersOrDefault(
     @java.lang.Override
     public java.lang.String getHeadersOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetHeaders().getMap();
       if (!map.containsKey(key)) {
@@ -1847,7 +1849,7 @@ public Builder clearHeaders() {
      */
     public Builder removeHeaders(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableHeaders().getMutableMap().remove(key);
       return this;
@@ -1900,11 +1902,12 @@ public java.util.Map getMutableHeaders() {
      */
     public Builder putHeaders(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableHeaders().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequestOrBuilder.java
index deb18f99..4a27f8c2 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequestOrBuilder.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequestOrBuilder.java
@@ -310,7 +310,12 @@ public interface AppEngineHttpRequestOrBuilder
    *
    * map<string, string> headers = 4;
    */
-  java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getHeadersOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpTarget.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpTarget.java
index b30cefc6..3633a62d 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpTarget.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpTarget.java
@@ -104,6 +104,8 @@ private AppEngineHttpTarget(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRouting.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRouting.java
index 595fb836..ad2acdb0 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRouting.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRouting.java
@@ -123,6 +123,8 @@ private AppEngineRouting(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AttemptStatus.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AttemptStatus.java
index 401b52c1..28cd82db 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AttemptStatus.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AttemptStatus.java
@@ -139,6 +139,8 @@ private AttemptStatus(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequest.java
index 0411d42a..4f0d227b 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequest.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequest.java
@@ -112,6 +112,8 @@ private CancelLeaseRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequest.java
index 057f118e..2fff1143 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequest.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequest.java
@@ -104,6 +104,8 @@ private CreateQueueRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequest.java
index f371212d..5b08ffe3 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequest.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequest.java
@@ -112,6 +112,8 @@ private CreateTaskRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequest.java
index e4e419f6..be30b05b 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequest.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequest.java
@@ -88,6 +88,8 @@ private DeleteQueueRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequest.java
index 8b2deaca..d8cdf272 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequest.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequest.java
@@ -89,6 +89,8 @@ private DeleteTaskRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequest.java
index 3af91444..098da970 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequest.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequest.java
@@ -103,6 +103,8 @@ private GetQueueRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequest.java
index 7636e7f7..555bd07a 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequest.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequest.java
@@ -96,6 +96,8 @@ private GetTaskRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequest.java
index 457e67b8..baf42571 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequest.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequest.java
@@ -124,6 +124,8 @@ private LeaseTasksRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksResponse.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksResponse.java
index e6c8e360..db622add 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksResponse.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksResponse.java
@@ -93,6 +93,8 @@ private LeaseTasksResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequest.java
index f53f2217..e54a748b 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequest.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequest.java
@@ -124,6 +124,8 @@ private ListQueuesRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponse.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponse.java
index 65eb3c54..b939f1fb 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponse.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponse.java
@@ -101,6 +101,8 @@ private ListQueuesResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequest.java
index e228cead..7c714d8e 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequest.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequest.java
@@ -109,6 +109,8 @@ private ListTasksRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponse.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponse.java
index ed2d92de..02a9e4ef 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponse.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponse.java
@@ -101,6 +101,8 @@ private ListTasksResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LocationName.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LocationName.java
index 6a3d8ff2..5e7ccd33 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LocationName.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LocationName.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequest.java
index 0daf179c..d0889429 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequest.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequest.java
@@ -88,6 +88,8 @@ private PauseQueueRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessage.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessage.java
index 0fa0fd39..68114f46 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessage.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessage.java
@@ -97,6 +97,8 @@ private PullMessage(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullTarget.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullTarget.java
index f939b442..ac577696 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullTarget.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullTarget.java
@@ -79,6 +79,8 @@ private PullTarget(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequest.java
index bcb85fe1..ffb1a8e6 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequest.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequest.java
@@ -88,6 +88,8 @@ private PurgeQueueRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java
index 94d1032b..31f4d38a 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java
@@ -226,6 +226,8 @@ private Queue(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -2061,8 +2063,9 @@ public Builder mergeAppEngineHttpTarget(
       } else {
         if (targetTypeCase_ == 3) {
           appEngineHttpTargetBuilder_.mergeFrom(value);
+        } else {
+          appEngineHttpTargetBuilder_.setMessage(value);
         }
-        appEngineHttpTargetBuilder_.setMessage(value);
       }
       targetTypeCase_ = 3;
       return this;
@@ -2281,8 +2284,9 @@ public Builder mergePullTarget(com.google.cloud.tasks.v2beta2.PullTarget value)
       } else {
         if (targetTypeCase_ == 4) {
           pullTargetBuilder_.mergeFrom(value);
+        } else {
+          pullTargetBuilder_.setMessage(value);
         }
-        pullTargetBuilder_.setMessage(value);
       }
       targetTypeCase_ = 4;
       return this;
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueName.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueName.java
index 4678fe50..a7417d36 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueName.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueName.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueStats.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueStats.java
index 9464aaa0..851774bb 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueStats.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueStats.java
@@ -114,6 +114,8 @@ private QueueStats(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -302,7 +304,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (concurrentDispatchesCount_ != 0L) {
       output.writeInt64(4, concurrentDispatchesCount_);
     }
-    if (effectiveExecutionRate_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(effectiveExecutionRate_) != 0) {
       output.writeDouble(5, effectiveExecutionRate_);
     }
     unknownFields.writeTo(output);
@@ -328,7 +330,7 @@ public int getSerializedSize() {
     if (concurrentDispatchesCount_ != 0L) {
       size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, concurrentDispatchesCount_);
     }
-    if (effectiveExecutionRate_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(effectiveExecutionRate_) != 0) {
       size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, effectiveExecutionRate_);
     }
     size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RateLimits.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RateLimits.java
index 40f1d735..ba22e1ca 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RateLimits.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RateLimits.java
@@ -98,6 +98,8 @@ private RateLimits(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -237,7 +239,7 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (maxTasksDispatchedPerSecond_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(maxTasksDispatchedPerSecond_) != 0) {
       output.writeDouble(1, maxTasksDispatchedPerSecond_);
     }
     if (maxBurstSize_ != 0) {
@@ -255,7 +257,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (maxTasksDispatchedPerSecond_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(maxTasksDispatchedPerSecond_) != 0) {
       size +=
           com.google.protobuf.CodedOutputStream.computeDoubleSize(1, maxTasksDispatchedPerSecond_);
     }
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequest.java
index 5b949669..91ce7c71 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequest.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequest.java
@@ -127,6 +127,8 @@ private RenewLeaseRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequest.java
index 207ad64e..66717318 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequest.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequest.java
@@ -88,6 +88,8 @@ private ResumeQueueRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java
index 87f39ca6..9a966fb3 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java
@@ -71,14 +71,14 @@ private RetryConfig(
             break;
           case 8:
             {
-              numAttemptsCase_ = 1;
               numAttempts_ = input.readInt32();
+              numAttemptsCase_ = 1;
               break;
             }
           case 16:
             {
-              numAttemptsCase_ = 2;
               numAttempts_ = input.readBool();
+              numAttemptsCase_ = 2;
               break;
             }
           case 26:
@@ -142,6 +142,8 @@ private RetryConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequest.java
index e662f5ce..a8d244e6 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequest.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequest.java
@@ -97,6 +97,8 @@ private RunTaskRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Task.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Task.java
index 944202ca..b4b9a701 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Task.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Task.java
@@ -179,6 +179,8 @@ private Task(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -1653,8 +1655,9 @@ public Builder mergeAppEngineHttpRequest(
       } else {
         if (payloadTypeCase_ == 3) {
           appEngineHttpRequestBuilder_.mergeFrom(value);
+        } else {
+          appEngineHttpRequestBuilder_.setMessage(value);
         }
-        appEngineHttpRequestBuilder_.setMessage(value);
       }
       payloadTypeCase_ = 3;
       return this;
@@ -1890,8 +1893,9 @@ public Builder mergePullMessage(com.google.cloud.tasks.v2beta2.PullMessage value
       } else {
         if (payloadTypeCase_ == 4) {
           pullMessageBuilder_.mergeFrom(value);
+        } else {
+          pullMessageBuilder_.setMessage(value);
         }
-        pullMessageBuilder_.setMessage(value);
       }
       payloadTypeCase_ = 4;
       return this;
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskName.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskName.java
index 6a58cd23..481ab626 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskName.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskName.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskStatus.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskStatus.java
index 31106585..361386df 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskStatus.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskStatus.java
@@ -121,6 +121,8 @@ private TaskStatus(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/UpdateQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/UpdateQueueRequest.java
index ba963de5..c862f9eb 100644
--- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/UpdateQueueRequest.java
+++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/UpdateQueueRequest.java
@@ -110,6 +110,8 @@ private UpdateQueueRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpQueue.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpQueue.java
index f65ecf67..2443b42f 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpQueue.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpQueue.java
@@ -104,6 +104,8 @@ private AppEngineHttpQueue(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequest.java
index 7f93f9e6..c4f1b564 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequest.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequest.java
@@ -182,6 +182,8 @@ private AppEngineHttpRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -450,7 +452,7 @@ public int getHeadersCount() {
   @java.lang.Override
   public boolean containsHeaders(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetHeaders().getMap().containsKey(key);
   }
@@ -549,7 +551,7 @@ public java.util.Map getHeadersMap() {
   @java.lang.Override
   public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetHeaders().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -598,7 +600,7 @@ public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.Stri
   @java.lang.Override
   public java.lang.String getHeadersOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetHeaders().getMap();
     if (!map.containsKey(key)) {
@@ -1636,7 +1638,7 @@ public int getHeadersCount() {
     @java.lang.Override
     public boolean containsHeaders(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetHeaders().getMap().containsKey(key);
     }
@@ -1736,7 +1738,7 @@ public java.util.Map getHeadersMap() {
     public java.lang.String getHeadersOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetHeaders().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1785,7 +1787,7 @@ public java.lang.String getHeadersOrDefault(
     @java.lang.Override
     public java.lang.String getHeadersOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetHeaders().getMap();
       if (!map.containsKey(key)) {
@@ -1841,7 +1843,7 @@ public Builder clearHeaders() {
      */
     public Builder removeHeaders(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableHeaders().getMutableMap().remove(key);
       return this;
@@ -1894,11 +1896,12 @@ public java.util.Map getMutableHeaders() {
      */
     public Builder putHeaders(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableHeaders().getMutableMap().put(key, value);
       return this;
     }
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequestOrBuilder.java
index 80e3b9fb..b7415b57 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequestOrBuilder.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequestOrBuilder.java
@@ -310,7 +310,12 @@ public interface AppEngineHttpRequestOrBuilder
    *
    * map<string, string> headers = 4;
    */
-  java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getHeadersOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRouting.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRouting.java
index a2c0c0f3..99d0cc4b 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRouting.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRouting.java
@@ -123,6 +123,8 @@ private AppEngineRouting(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Attempt.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Attempt.java
index c5af84b2..178ff60f 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Attempt.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Attempt.java
@@ -139,6 +139,8 @@ private Attempt(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequest.java
index 4a490ac2..91bd1d65 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequest.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequest.java
@@ -104,6 +104,8 @@ private CreateQueueRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequest.java
index 4c193004..07fe1038 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequest.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequest.java
@@ -112,6 +112,8 @@ private CreateTaskRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequest.java
index de7f137b..1be3d865 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequest.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequest.java
@@ -88,6 +88,8 @@ private DeleteQueueRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequest.java
index 5fdfdfbe..23d7d974 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequest.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequest.java
@@ -89,6 +89,8 @@ private DeleteTaskRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequest.java
index eb3f4f44..22f86ccf 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequest.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequest.java
@@ -103,6 +103,8 @@ private GetQueueRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequest.java
index 75dd85fa..4042daaa 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequest.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequest.java
@@ -96,6 +96,8 @@ private GetTaskRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequest.java
index 448a6485..55ca2408 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequest.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequest.java
@@ -174,6 +174,8 @@ private HttpRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -409,7 +411,7 @@ public int getHeadersCount() {
   @java.lang.Override
   public boolean containsHeaders(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     return internalGetHeaders().getMap().containsKey(key);
   }
@@ -484,7 +486,7 @@ public java.util.Map getHeadersMap() {
   @java.lang.Override
   public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetHeaders().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -521,7 +523,7 @@ public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.Stri
   @java.lang.Override
   public java.lang.String getHeadersOrThrow(java.lang.String key) {
     if (key == null) {
-      throw new java.lang.NullPointerException();
+      throw new NullPointerException("map key");
     }
     java.util.Map map = internalGetHeaders().getMap();
     if (!map.containsKey(key)) {
@@ -1469,7 +1471,7 @@ public int getHeadersCount() {
     @java.lang.Override
     public boolean containsHeaders(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       return internalGetHeaders().getMap().containsKey(key);
     }
@@ -1545,7 +1547,7 @@ public java.util.Map getHeadersMap() {
     public java.lang.String getHeadersOrDefault(
         java.lang.String key, java.lang.String defaultValue) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetHeaders().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1582,7 +1584,7 @@ public java.lang.String getHeadersOrDefault(
     @java.lang.Override
     public java.lang.String getHeadersOrThrow(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       java.util.Map map = internalGetHeaders().getMap();
       if (!map.containsKey(key)) {
@@ -1626,7 +1628,7 @@ public Builder clearHeaders() {
      */
     public Builder removeHeaders(java.lang.String key) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       internalGetMutableHeaders().getMutableMap().remove(key);
       return this;
@@ -1667,11 +1669,12 @@ public java.util.Map getMutableHeaders() {
      */
     public Builder putHeaders(java.lang.String key, java.lang.String value) {
       if (key == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map key");
       }
       if (value == null) {
-        throw new java.lang.NullPointerException();
+        throw new NullPointerException("map value");
       }
+
       internalGetMutableHeaders().getMutableMap().put(key, value);
       return this;
     }
@@ -1911,8 +1914,9 @@ public Builder mergeOauthToken(com.google.cloud.tasks.v2beta3.OAuthToken value)
       } else {
         if (authorizationHeaderCase_ == 5) {
           oauthTokenBuilder_.mergeFrom(value);
+        } else {
+          oauthTokenBuilder_.setMessage(value);
         }
-        oauthTokenBuilder_.setMessage(value);
       }
       authorizationHeaderCase_ = 5;
       return this;
@@ -2170,8 +2174,9 @@ public Builder mergeOidcToken(com.google.cloud.tasks.v2beta3.OidcToken value) {
       } else {
         if (authorizationHeaderCase_ == 6) {
           oidcTokenBuilder_.mergeFrom(value);
+        } else {
+          oidcTokenBuilder_.setMessage(value);
         }
-        oidcTokenBuilder_.setMessage(value);
       }
       authorizationHeaderCase_ = 6;
       return this;
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequestOrBuilder.java
index 2f2f31c0..a6be1e13 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequestOrBuilder.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequestOrBuilder.java
@@ -207,7 +207,12 @@ public interface HttpRequestOrBuilder
    *
    * map<string, string> headers = 3;
    */
-  java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  /* nullable */
+  java.lang.String getHeadersOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue);
   /**
    *
    *
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequest.java
index 97d56953..c08ca2b9 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequest.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequest.java
@@ -124,6 +124,8 @@ private ListQueuesRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponse.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponse.java
index db804aaf..fdbf3dd3 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponse.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponse.java
@@ -101,6 +101,8 @@ private ListQueuesResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequest.java
index 42967755..44cfe1ea 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequest.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequest.java
@@ -109,6 +109,8 @@ private ListTasksRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponse.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponse.java
index 1447647f..09f702ea 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponse.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponse.java
@@ -101,6 +101,8 @@ private ListTasksResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/LocationName.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/LocationName.java
index a4df0ac3..afcff3bd 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/LocationName.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/LocationName.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthToken.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthToken.java
index 9a608bee..f4b3966c 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthToken.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthToken.java
@@ -99,6 +99,8 @@ private OAuthToken(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcToken.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcToken.java
index cf7675d7..d8ef8572 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcToken.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcToken.java
@@ -101,6 +101,8 @@ private OidcToken(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequest.java
index 0bf51a1d..ddd155f1 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequest.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequest.java
@@ -88,6 +88,8 @@ private PauseQueueRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessage.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessage.java
index 39588c74..845fa92d 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessage.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessage.java
@@ -100,6 +100,8 @@ private PullMessage(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequest.java
index d63e386f..78c3ead3 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequest.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequest.java
@@ -88,6 +88,8 @@ private PurgeQueueRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Queue.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Queue.java
index 53a25cde..45c41179 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Queue.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Queue.java
@@ -235,6 +235,8 @@ private Queue(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -2312,8 +2314,9 @@ public Builder mergeAppEngineHttpQueue(
       } else {
         if (queueTypeCase_ == 3) {
           appEngineHttpQueueBuilder_.mergeFrom(value);
+        } else {
+          appEngineHttpQueueBuilder_.setMessage(value);
         }
-        appEngineHttpQueueBuilder_.setMessage(value);
       }
       queueTypeCase_ = 3;
       return this;
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueName.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueName.java
index 0e8eb965..50a0ee52 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueName.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueName.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueStats.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueStats.java
index c22b4d05..978a5c1e 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueStats.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueStats.java
@@ -114,6 +114,8 @@ private QueueStats(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -302,7 +304,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (concurrentDispatchesCount_ != 0L) {
       output.writeInt64(4, concurrentDispatchesCount_);
     }
-    if (effectiveExecutionRate_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(effectiveExecutionRate_) != 0) {
       output.writeDouble(5, effectiveExecutionRate_);
     }
     unknownFields.writeTo(output);
@@ -328,7 +330,7 @@ public int getSerializedSize() {
     if (concurrentDispatchesCount_ != 0L) {
       size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, concurrentDispatchesCount_);
     }
-    if (effectiveExecutionRate_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(effectiveExecutionRate_) != 0) {
       size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, effectiveExecutionRate_);
     }
     size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RateLimits.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RateLimits.java
index 707b2d88..dad67fef 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RateLimits.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RateLimits.java
@@ -98,6 +98,8 @@ private RateLimits(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -231,7 +233,7 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (maxDispatchesPerSecond_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(maxDispatchesPerSecond_) != 0) {
       output.writeDouble(1, maxDispatchesPerSecond_);
     }
     if (maxBurstSize_ != 0) {
@@ -249,7 +251,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (maxDispatchesPerSecond_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(maxDispatchesPerSecond_) != 0) {
       size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, maxDispatchesPerSecond_);
     }
     if (maxBurstSize_ != 0) {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequest.java
index db27820f..7b20829a 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequest.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequest.java
@@ -88,6 +88,8 @@ private ResumeQueueRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RetryConfig.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RetryConfig.java
index 0a1be47f..dda88aec 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RetryConfig.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RetryConfig.java
@@ -135,6 +135,8 @@ private RetryConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequest.java
index 34a26f3b..8e7d1959 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequest.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequest.java
@@ -97,6 +97,8 @@ private RunTaskRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/StackdriverLoggingConfig.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/StackdriverLoggingConfig.java
index 13fb8f24..d80fab89 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/StackdriverLoggingConfig.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/StackdriverLoggingConfig.java
@@ -85,6 +85,8 @@ private StackdriverLoggingConfig(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -143,7 +145,7 @@ public final boolean isInitialized() {
 
   @java.lang.Override
   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
-    if (samplingRatio_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(samplingRatio_) != 0) {
       output.writeDouble(1, samplingRatio_);
     }
     unknownFields.writeTo(output);
@@ -155,7 +157,7 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    if (samplingRatio_ != 0D) {
+    if (java.lang.Double.doubleToRawLongBits(samplingRatio_) != 0) {
       size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, samplingRatio_);
     }
     size += unknownFields.getSerializedSize();
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Task.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Task.java
index c8ab276b..03927a4e 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Task.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Task.java
@@ -237,6 +237,8 @@ private Task(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -2070,8 +2072,9 @@ public Builder mergeAppEngineHttpRequest(
       } else {
         if (payloadTypeCase_ == 3) {
           appEngineHttpRequestBuilder_.mergeFrom(value);
+        } else {
+          appEngineHttpRequestBuilder_.setMessage(value);
         }
-        appEngineHttpRequestBuilder_.setMessage(value);
       }
       payloadTypeCase_ = 3;
       return this;
@@ -2290,8 +2293,9 @@ public Builder mergeHttpRequest(com.google.cloud.tasks.v2beta3.HttpRequest value
       } else {
         if (payloadTypeCase_ == 11) {
           httpRequestBuilder_.mergeFrom(value);
+        } else {
+          httpRequestBuilder_.setMessage(value);
         }
-        httpRequestBuilder_.setMessage(value);
       }
       payloadTypeCase_ = 11;
       return this;
@@ -2533,8 +2537,9 @@ public Builder mergePullMessage(com.google.cloud.tasks.v2beta3.PullMessage value
       } else {
         if (payloadTypeCase_ == 13) {
           pullMessageBuilder_.mergeFrom(value);
+        } else {
+          pullMessageBuilder_.setMessage(value);
         }
-        pullMessageBuilder_.setMessage(value);
       }
       payloadTypeCase_ = 13;
       return this;
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskName.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskName.java
index 30b7bb44..061715f4 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskName.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskName.java
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/UpdateQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/UpdateQueueRequest.java
index 148c09ce..0721b5ef 100644
--- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/UpdateQueueRequest.java
+++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/UpdateQueueRequest.java
@@ -110,6 +110,8 @@ private UpdateQueueRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {

From 9b95ea840e19dc6aca18209feda9e8a3f6c5a7d3 Mon Sep 17 00:00:00 2001
From: Emily Ball 
Date: Wed, 11 May 2022 13:43:44 -0700
Subject: [PATCH 294/401] feat: next release from main branch is 2.1.11 (#683)

---
 .github/release-please.yml      |  4 ++++
 .github/sync-repo-settings.yaml | 15 +++++++++++++++
 2 files changed, 19 insertions(+)

diff --git a/.github/release-please.yml b/.github/release-please.yml
index 118a4019..fe1abf0c 100644
--- a/.github/release-please.yml
+++ b/.github/release-please.yml
@@ -10,3 +10,7 @@ branches:
     handleGHRelease: true
     releaseType: java-backport
     branch: 2.0.x
+  - bumpMinorPreMajor: true
+    handleGHRelease: true
+    releaseType: java-backport
+    branch: 2.1.x
diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml
index 60f0901b..6d660c1a 100644
--- a/.github/sync-repo-settings.yaml
+++ b/.github/sync-repo-settings.yaml
@@ -47,6 +47,21 @@ branchProtectionRules:
       - 'Kokoro - Test: Integration'
       - cla/google
       - OwlBot Post Processor
+  - pattern: 2.1.x
+    isAdminEnforced: true
+    requiredApprovingReviewCount: 1
+    requiresCodeOwnerReviews: true
+    requiresStrictStatusChecks: false
+    requiredStatusCheckContexts:
+      - dependencies (8)
+      - dependencies (11)
+      - lint
+      - clirr
+      - units (8)
+      - units (11)
+      - 'Kokoro - Test: Integration'
+      - cla/google
+      - OwlBot Post Processor
 permissionRules:
   - team: yoshi-admins
     permission: admin

From 7fcbaa9bb3078555192a9e68522b67cf39dbf40d Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate 
Date: Mon, 16 May 2022 19:27:29 +0200
Subject: [PATCH 295/401] chore(deps): update dependency
 com.google.cloud:libraries-bom to v25.3.0 (#686)

---
 samples/native-image-sample/pom.xml | 2 +-
 samples/snippets/pom.xml            | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml
index 9a6992a4..c2f50508 100644
--- a/samples/native-image-sample/pom.xml
+++ b/samples/native-image-sample/pom.xml
@@ -29,7 +29,7 @@
       
         com.google.cloud
         libraries-bom
-        25.2.0
+        25.3.0
         pom
         import
       
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 02bf521c..4d011f45 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -30,7 +30,7 @@
       
         com.google.cloud
         libraries-bom
-        25.2.0
+        25.3.0
         pom
         import
       

From 2c953994af809cb182dbd20038053712f1c7570e Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Thu, 19 May 2022 21:02:15 +0000
Subject: [PATCH 296/401] feat: add build scripts for native image testing in
 Java 17 (#1440) (#688)

Source-Link: https://github.com/googleapis/synthtool/commit/505ce5a7edb58bf6d9d4de10b4bb4e81000ae324
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:2567a120ce90fadb6201999b87d649d9f67459de28815ad239bce9ebfaa18a74
---
 .github/.OwlBot.lock.yaml               |  4 +--
 .kokoro/presubmit/graalvm-native-17.cfg | 33 +++++++++++++++++++++++++
 2 files changed, 35 insertions(+), 2 deletions(-)
 create mode 100644 .kokoro/presubmit/graalvm-native-17.cfg

diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index f60d7749..a79f0627 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,5 +13,5 @@
 # limitations under the License.
 docker:
   image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
-  digest: sha256:fc52b202aa298a50a12c64efd04fea3884d867947effe2fa85382a246c09e813
-# created: 2022-04-06T16:30:03.627422514Z
+  digest: sha256:2567a120ce90fadb6201999b87d649d9f67459de28815ad239bce9ebfaa18a74
+# created: 2022-05-19T15:12:45.278246753Z
diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg
new file mode 100644
index 00000000..a3f7fb9d
--- /dev/null
+++ b/.kokoro/presubmit/graalvm-native-17.cfg
@@ -0,0 +1,33 @@
+# Format: //devtools/kokoro/config/proto/build.proto
+
+# Configure the docker image for kokoro-trampoline.
+env_vars: {
+  key: "TRAMPOLINE_IMAGE"
+  value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17"
+}
+
+env_vars: {
+  key: "JOB_TYPE"
+  value: "graalvm17"
+}
+
+# TODO: remove this after we've migrated all tests and scripts
+env_vars: {
+  key: "GCLOUD_PROJECT"
+  value: "gcloud-devel"
+}
+
+env_vars: {
+  key: "GOOGLE_CLOUD_PROJECT"
+  value: "gcloud-devel"
+}
+
+env_vars: {
+  key: "GOOGLE_APPLICATION_CREDENTIALS"
+  value: "secret_manager/java-it-service-account"
+}
+
+env_vars: {
+  key: "SECRET_MANAGER_KEYS"
+  value: "java-it-service-account"
+}
\ No newline at end of file

From d57b320ce4e89fa07ac00cc6ec990166cef4afc3 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate 
Date: Thu, 19 May 2022 23:02:23 +0200
Subject: [PATCH 297/401] deps: update dependency
 com.google.cloud:google-cloud-shared-dependencies to v2.11.0 (#687)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.10.0` -> `2.11.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.11.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.11.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.11.0/compatibility-slim/2.10.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.11.0/confidence-slim/2.10.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

googleapis/java-shared-dependencies ### [`v2.11.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​2110-httpsgithubcomgoogleapisjava-shared-dependenciescomparev2100v2110-2022-05-18) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.10.0...v2.11.0) ##### Features - next release from main branch is 2.11.0 ([#​674](https://togithub.com/googleapis/java-shared-dependencies/issues/674)) ([611e3b7](https://togithub.com/googleapis/java-shared-dependencies/commit/611e3b7c50108a71efc94415166b85d2bf8647e5)) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.13.3 ([#​689](https://togithub.com/googleapis/java-shared-dependencies/issues/689)) ([03897e3](https://togithub.com/googleapis/java-shared-dependencies/commit/03897e30a71f8f1aa37233da2433ee5afccc1d61)) - update dependency com.google.api-client:google-api-client-bom to v1.34.1 ([#​685](https://togithub.com/googleapis/java-shared-dependencies/issues/685)) ([9bc0557](https://togithub.com/googleapis/java-shared-dependencies/commit/9bc0557d8ce2f3d8dc7c8ffafdd36fd4c03e2df5)) - update dependency com.google.api:api-common to v2.2.0 ([#​690](https://togithub.com/googleapis/java-shared-dependencies/issues/690)) ([47a8736](https://togithub.com/googleapis/java-shared-dependencies/commit/47a87365e51f73132b15b054d85f8c9baa8e89f6)) - update dependency com.google.auth:google-auth-library-bom to v1.7.0 ([#​691](https://togithub.com/googleapis/java-shared-dependencies/issues/691)) ([ec6aab7](https://togithub.com/googleapis/java-shared-dependencies/commit/ec6aab72eaed43574efe47a696bba6a612f161bb)) - update dependency com.google.errorprone:error_prone_annotations to v2.13.1 ([#​672](https://togithub.com/googleapis/java-shared-dependencies/issues/672)) ([8c7e530](https://togithub.com/googleapis/java-shared-dependencies/commit/8c7e530d3c7170b2fb76cc27a05164524ba4e00b)) - update dependency com.google.http-client:google-http-client-bom to v1.41.8 ([#​684](https://togithub.com/googleapis/java-shared-dependencies/issues/684)) ([1305356](https://togithub.com/googleapis/java-shared-dependencies/commit/1305356775247dbb641b60654ac56da43513088e)) - update dependency com.google.protobuf:protobuf-bom to v3.20.1 ([#​678](https://togithub.com/googleapis/java-shared-dependencies/issues/678)) ([3e6d4a1](https://togithub.com/googleapis/java-shared-dependencies/commit/3e6d4a1a8e5d45723071a62c99bb1ab87d2b2b84)) - update dependency io.grpc:grpc-bom to v1.46.0 ([#​680](https://togithub.com/googleapis/java-shared-dependencies/issues/680)) ([b8a052b](https://togithub.com/googleapis/java-shared-dependencies/commit/b8a052b75a1bc2703500b4f31c5c6dac887ab8be)) - update dependency org.checkerframework:checker-qual to v3.22.0 ([#​683](https://togithub.com/googleapis/java-shared-dependencies/issues/683)) ([b0a30cd](https://togithub.com/googleapis/java-shared-dependencies/commit/b0a30cdecae8dcfb3a6d36e3f194c39a0086673e)) - update gax.version to v2.17.0 ([#​687](https://togithub.com/googleapis/java-shared-dependencies/issues/687)) ([e0e89ea](https://togithub.com/googleapis/java-shared-dependencies/commit/e0e89eade481effc723c9c7261f2ebf4e5883621)) - update gax.version to v2.18.0 ([#​692](https://togithub.com/googleapis/java-shared-dependencies/issues/692)) ([9536612](https://togithub.com/googleapis/java-shared-dependencies/commit/9536612c77af1e4d912c5b63515ea6f750e53810)) - update google.core.version to v2.6.1 ([#​671](https://togithub.com/googleapis/java-shared-dependencies/issues/671)) ([e3d1aeb](https://togithub.com/googleapis/java-shared-dependencies/commit/e3d1aebed31f8e91109d5865afd9525ac3595c90)) - update google.core.version to v2.7.0 ([#​693](https://togithub.com/googleapis/java-shared-dependencies/issues/693)) ([2171677](https://togithub.com/googleapis/java-shared-dependencies/commit/2171677e16190de9f37dc16c924d829ea8ccd86c)) - update iam.version to v1.3.2 ([#​673](https://togithub.com/googleapis/java-shared-dependencies/issues/673)) ([9882baa](https://togithub.com/googleapis/java-shared-dependencies/commit/9882baa3ecc8d7584788af1916f0d8c5ec670b5c)) - update iam.version to v1.3.3 ([#​679](https://togithub.com/googleapis/java-shared-dependencies/issues/679)) ([9fe34c8](https://togithub.com/googleapis/java-shared-dependencies/commit/9fe34c89eabed5eeebad986bffeeeb64dbbc38c1)) - update iam.version to v1.3.4 ([#​686](https://togithub.com/googleapis/java-shared-dependencies/issues/686)) ([4e95b3a](https://togithub.com/googleapis/java-shared-dependencies/commit/4e95b3a1d4302812338c220df316391c19ef7473)) - update opencensus.version to v0.31.1 ([#​682](https://togithub.com/googleapis/java-shared-dependencies/issues/682)) ([5d25746](https://togithub.com/googleapis/java-shared-dependencies/commit/5d25746bc6c9329b240204cbe7b83e2fee4c6cb3))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0271ee5d..877828e8 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.10.0 + 2.11.0 pom import From 66ba4dbc0e924a864ce5b6eb34ff262a52c2fde6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 May 2022 23:30:12 +0200 Subject: [PATCH 298/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 (#689) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.11.0` -> `2.12.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.12.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.12.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.12.0/compatibility-slim/2.11.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.12.0/confidence-slim/2.11.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.12.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​2120-httpsgithubcomgoogleapisjava-shared-dependenciescomparev2110v2120-2022-05-19) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.11.0...v2.12.0) ##### Features - add build scripts for native image testing in Java 17 ([#​1440](https://togithub.com/googleapis/java-shared-dependencies/issues/1440)) ([#​697](https://togithub.com/googleapis/java-shared-dependencies/issues/697)) ([f10ec4e](https://togithub.com/googleapis/java-shared-dependencies/commit/f10ec4e664d8fde868effe366b7182a5fad08dd0)) ##### Dependencies - update gax.version to v2.18.1 ([#​695](https://togithub.com/googleapis/java-shared-dependencies/issues/695)) ([09bc61c](https://togithub.com/googleapis/java-shared-dependencies/commit/09bc61c9152a99bfe87554a07324f15ae6217d6e)) - update google.core.version to v2.7.1 ([#​698](https://togithub.com/googleapis/java-shared-dependencies/issues/698)) ([43de259](https://togithub.com/googleapis/java-shared-dependencies/commit/43de2593f1a6e8fa5e34799364ab683246ddd449))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 877828e8..a6d8a75e 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.11.0 + 2.12.0 pom import From 9486f64f483fa22a30d58897c9f2106b199f40ef Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 24 May 2022 19:30:11 +0000 Subject: [PATCH 299/401] chore(main): release 2.2.0 (#678) :robot: I have created a release *beep* *boop* --- ## [2.2.0](https://github.com/googleapis/java-tasks/compare/v2.1.11...v2.2.0) (2022-05-19) ### Features * add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-tasks/issues/1440)) ([#688](https://github.com/googleapis/java-tasks/issues/688)) ([2c95399](https://github.com/googleapis/java-tasks/commit/2c953994af809cb182dbd20038053712f1c7570e)) * next release from main branch is 2.1.11 ([#683](https://github.com/googleapis/java-tasks/issues/683)) ([9b95ea8](https://github.com/googleapis/java-tasks/commit/9b95ea840e19dc6aca18209feda9e8a3f6c5a7d3)) ### Documentation * **sample:** remove protobuf feature from native image sample ([#665](https://github.com/googleapis/java-tasks/issues/665)) ([c29f78e](https://github.com/googleapis/java-tasks/commit/c29f78e68ce8964e8cf10f0bbf4aed85068d1578)) * **sample:** removing unnecessary native-image-support dependency ([#681](https://github.com/googleapis/java-tasks/issues/681)) ([d920172](https://github.com/googleapis/java-tasks/commit/d920172de95e34bda1575a9a1d4799ea3c2760a4)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.11.0 ([#687](https://github.com/googleapis/java-tasks/issues/687)) ([d57b320](https://github.com/googleapis/java-tasks/commit/d57b320ce4e89fa07ac00cc6ec990166cef4afc3)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 ([#689](https://github.com/googleapis/java-tasks/issues/689)) ([66ba4db](https://github.com/googleapis/java-tasks/commit/66ba4dbc0e924a864ce5b6eb34ff262a52c2fde6)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 20 ++++++++++++++++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 57 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53c46065..8a9f139f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,25 @@ # Changelog +## [2.2.0](https://github.com/googleapis/java-tasks/compare/v2.1.11...v2.2.0) (2022-05-19) + + +### Features + +* add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-tasks/issues/1440)) ([#688](https://github.com/googleapis/java-tasks/issues/688)) ([2c95399](https://github.com/googleapis/java-tasks/commit/2c953994af809cb182dbd20038053712f1c7570e)) +* next release from main branch is 2.1.11 ([#683](https://github.com/googleapis/java-tasks/issues/683)) ([9b95ea8](https://github.com/googleapis/java-tasks/commit/9b95ea840e19dc6aca18209feda9e8a3f6c5a7d3)) + + +### Documentation + +* **sample:** remove protobuf feature from native image sample ([#665](https://github.com/googleapis/java-tasks/issues/665)) ([c29f78e](https://github.com/googleapis/java-tasks/commit/c29f78e68ce8964e8cf10f0bbf4aed85068d1578)) +* **sample:** removing unnecessary native-image-support dependency ([#681](https://github.com/googleapis/java-tasks/issues/681)) ([d920172](https://github.com/googleapis/java-tasks/commit/d920172de95e34bda1575a9a1d4799ea3c2760a4)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.11.0 ([#687](https://github.com/googleapis/java-tasks/issues/687)) ([d57b320](https://github.com/googleapis/java-tasks/commit/d57b320ce4e89fa07ac00cc6ec990166cef4afc3)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 ([#689](https://github.com/googleapis/java-tasks/issues/689)) ([66ba4db](https://github.com/googleapis/java-tasks/commit/66ba4dbc0e924a864ce5b6eb34ff262a52c2fde6)) + ### [2.1.11](https://github.com/googleapis/java-tasks/compare/v2.1.10...v2.1.11) (2022-04-15) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 064dd701..f0a28866 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.1.12-SNAPSHOT + 2.2.0 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.1.12-SNAPSHOT + 2.2.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.12-SNAPSHOT + 0.92.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.12-SNAPSHOT + 0.92.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.12-SNAPSHOT + 2.2.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.12-SNAPSHOT + 0.92.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.12-SNAPSHOT + 0.92.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.12-SNAPSHOT + 2.2.0 diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 57c385ae..5f310c1a 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.1.12-SNAPSHOT + 2.2.0 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.1.12-SNAPSHOT + 2.2.0 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 49426d85..c4f5b6d3 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.12-SNAPSHOT + 2.2.0 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.12-SNAPSHOT + 2.2.0 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 353bc917..62f0168d 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.12-SNAPSHOT + 0.92.0 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.12-SNAPSHOT + 2.2.0 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index c4f64c27..d150e127 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.12-SNAPSHOT + 0.92.0 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.12-SNAPSHOT + 2.2.0 diff --git a/pom.xml b/pom.xml index a6d8a75e..0fa7d842 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.1.12-SNAPSHOT + 2.2.0 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.12-SNAPSHOT + 0.92.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.12-SNAPSHOT + 0.92.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.12-SNAPSHOT + 2.2.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.91.12-SNAPSHOT + 0.92.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.91.12-SNAPSHOT + 0.92.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.1.12-SNAPSHOT + 2.2.0 com.google.cloud google-cloud-tasks - 2.1.12-SNAPSHOT + 2.2.0 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index f7528a91..d42a16b5 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.1.12-SNAPSHOT + 2.2.0 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.1.12-SNAPSHOT + 2.2.0 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 11220e81..4077f197 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.91.12-SNAPSHOT + 0.92.0 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.1.12-SNAPSHOT + 2.2.0 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 4d5de7ee..5172564f 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.91.12-SNAPSHOT + 0.92.0 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.1.12-SNAPSHOT + 2.2.0 diff --git a/versions.txt b/versions.txt index 6f0c6649..8548688e 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.1.11:2.1.12-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.91.11:0.91.12-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.91.11:0.91.12-SNAPSHOT -grpc-google-cloud-tasks-v2:2.1.11:2.1.12-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.91.11:0.91.12-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.91.11:0.91.12-SNAPSHOT -proto-google-cloud-tasks-v2:2.1.11:2.1.12-SNAPSHOT +google-cloud-tasks:2.2.0:2.2.0 +grpc-google-cloud-tasks-v2beta3:0.92.0:0.92.0 +grpc-google-cloud-tasks-v2beta2:0.92.0:0.92.0 +grpc-google-cloud-tasks-v2:2.2.0:2.2.0 +proto-google-cloud-tasks-v2beta3:0.92.0:0.92.0 +proto-google-cloud-tasks-v2beta2:0.92.0:0.92.0 +proto-google-cloud-tasks-v2:2.2.0:2.2.0 From a904db2e753d4e1c4ce0a09a8df5d3224ad1c273 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 24 May 2022 19:40:27 +0000 Subject: [PATCH 300/401] chore(main): release 2.2.1-SNAPSHOT (#691) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index f0a28866..1842e3a0 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.2.0 + 2.2.1-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.2.0 + 2.2.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.92.0 + 0.92.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.92.0 + 0.92.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.2.0 + 2.2.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.92.0 + 0.92.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.92.0 + 0.92.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.2.0 + 2.2.1-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 5f310c1a..be33188c 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.2.0 + 2.2.1-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.2.0 + 2.2.1-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index c4f5b6d3..bf57e290 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.2.0 + 2.2.1-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.2.0 + 2.2.1-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 62f0168d..09276bc7 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.92.0 + 0.92.1-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.2.0 + 2.2.1-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index d150e127..34df9f2e 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.92.0 + 0.92.1-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.2.0 + 2.2.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 0fa7d842..cd15e113 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.2.0 + 2.2.1-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.92.0 + 0.92.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.92.0 + 0.92.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.2.0 + 2.2.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.92.0 + 0.92.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.92.0 + 0.92.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.2.0 + 2.2.1-SNAPSHOT com.google.cloud google-cloud-tasks - 2.2.0 + 2.2.1-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index d42a16b5..af419c6a 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.2.0 + 2.2.1-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.2.0 + 2.2.1-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 4077f197..fdb2e38a 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.92.0 + 0.92.1-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.2.0 + 2.2.1-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 5172564f..c8a28f0f 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.92.0 + 0.92.1-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.2.0 + 2.2.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 8548688e..e0aab656 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.2.0:2.2.0 -grpc-google-cloud-tasks-v2beta3:0.92.0:0.92.0 -grpc-google-cloud-tasks-v2beta2:0.92.0:0.92.0 -grpc-google-cloud-tasks-v2:2.2.0:2.2.0 -proto-google-cloud-tasks-v2beta3:0.92.0:0.92.0 -proto-google-cloud-tasks-v2beta2:0.92.0:0.92.0 -proto-google-cloud-tasks-v2:2.2.0:2.2.0 +google-cloud-tasks:2.2.0:2.2.1-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.92.0:0.92.1-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.92.0:0.92.1-SNAPSHOT +grpc-google-cloud-tasks-v2:2.2.0:2.2.1-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.92.0:0.92.1-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.92.0:0.92.1-SNAPSHOT +proto-google-cloud-tasks-v2:2.2.0:2.2.1-SNAPSHOT From 5b699618cbbbc62c8f864980765b18a5777bd551 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 26 May 2022 16:46:16 +0200 Subject: [PATCH 301/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.2.0 (#693) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.1.11` -> `2.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.2.0/compatibility-slim/2.1.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.2.0/confidence-slim/2.1.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a37364d5..950ffbdb 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.1.11 + 2.2.0 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.1.11' +implementation 'com.google.cloud:google-cloud-tasks:2.2.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.1.11" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.2.0" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 044457c1..4ca7ece1 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.1.11 + 2.2.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 8709ba2f..e8934131 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.1.11 + 2.2.0 From a75ad23ea1cdd596d7584aca41967b5399a2e00a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 13 Jun 2022 17:04:11 +0200 Subject: [PATCH 302/401] chore(deps): update dependency com.google.cloud:libraries-bom to v25.4.0 (#694) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.3.0` -> `25.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/compatibility-slim/25.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/confidence-slim/25.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index c2f50508..b7762d1e 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -29,7 +29,7 @@ com.google.cloud libraries-bom - 25.3.0 + 25.4.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 4d011f45..9df79d6e 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.3.0 + 25.4.0 pom import From f346412807f2e3c89f934ee7b74719fd9902be6a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 13 Jun 2022 19:08:11 +0200 Subject: [PATCH 303/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.0 (#696) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.4.0` -> `1.5.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.0/compatibility-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.0/confidence-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.5.0`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​150-httpsgithubcomgoogleapisjava-shared-configcomparev140v150-2022-06-10) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.4.0...v1.5.0) ##### Features - add build scripts for native image testing in Java 17 ([#​1440](https://togithub.com/googleapis/java-shared-config/issues/1440)) ([#​475](https://togithub.com/googleapis/java-shared-config/issues/475)) ([e4dfc1b](https://togithub.com/googleapis/java-shared-config/commit/e4dfc1ba29295158c78c8fcf94467d2a6a33538a)) - to produce Java 8 compatible bytecode when using JDK 9+ ([2468276](https://togithub.com/googleapis/java-shared-config/commit/2468276145cdfe1ca911b52f765e026e77661a09)) ##### Dependencies - update surefire.version to v3.0.0-m7 ([bbfe663](https://togithub.com/googleapis/java-shared-config/commit/bbfe66393af3e49612c9c1e4334ba39c133ea1d0))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 1842e3a0..17a65f47 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.4.0 + 1.5.0 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index cd15e113..ae59403d 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.4.0 + 1.5.0 From cf3ed8f96cd4598e929726635d27838b6e2962e8 Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Tue, 14 Jun 2022 21:32:21 +0000 Subject: [PATCH 304/401] chore: include generated samples dir (#695) --- .github/.OwlBot.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml index a8cf5ed4..686a4867 100644 --- a/.github/.OwlBot.yaml +++ b/.github/.OwlBot.yaml @@ -16,6 +16,7 @@ docker: image: "gcr.io/cloud-devrel-public-resources/owlbot-java:latest" deep-remove-regex: +- "/samples/snippets/generated" - "/grpc-google-.*/src" - "/proto-google-.*/src" - "/google-.*/src" @@ -34,3 +35,5 @@ deep-copy-regex: dest: "/owl-bot-staging/$1/grpc-google-cloud-tasks-$1/src" - source: "/google/cloud/tasks/(v.*)/.*-java/gapic-google-.*/src" dest: "/owl-bot-staging/$1/google-cloud-tasks/src" +- source: "/google/cloud/tasks/(v.*)/.*-java/samples/snippets/generated" + dest: "/owl-bot-staging/$1/samples/snippets/generated" From 81677defcf97f51b0e9583e4fbace23eb07fc178 Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Wed, 15 Jun 2022 15:19:07 -0400 Subject: [PATCH 305/401] docs(sample): clean up README for native image sample (#697) --- samples/native-image-sample/README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/samples/native-image-sample/README.md b/samples/native-image-sample/README.md index 5069656b..4ac48e60 100644 --- a/samples/native-image-sample/README.md +++ b/samples/native-image-sample/README.md @@ -24,25 +24,25 @@ You will need to follow these prerequisite steps in order to run these samples: **Note:** Authenticating with Application Default Credentials is convenient to use during development, but we recommend [alternate methods of authentication](https://cloud.google.com/docs/authentication/production) during production use. -3. Install the GraalVM compiler. +3. Install the native image compiler. - You can follow the [official installation instructions](https://www.graalvm.org/docs/getting-started/#install-graalvm) from the GraalVM website. + You can follow the [official installation instructions](https://www.graalvm.org/docs/getting-started/#install-graalvm). After following the instructions, ensure that you install the Native Image extension installed by running: ``` gu install native-image ``` - Once you finish following the instructions, verify that the default version of Java is set to the GraalVM version by running `java -version` in a terminal. + Once you finish following the instructions, verify that the default version of Java is set to the correct version by running `java -version` in a terminal. You will see something similar to the below output: ``` $ java -version - openjdk 11.0.14 2022-01-18 - OpenJDK Runtime Environment GraalVM CE 22.0.0.2 (build 11.0.14+9-jvmci-22.0-b05) - OpenJDK 64-Bit Server VM GraalVM CE 22.0.0.2 (build 11.0.14+9-jvmci-22.0-b05, mixed mode, sharing) + openjdk version "17.0.3" 2022-04-19 + OpenJDK Runtime Environment GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06) + OpenJDK 64-Bit Server VM GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06, mixed mode, sharing) ``` @@ -58,7 +58,7 @@ Navigate to this directory in a new terminal. export LOCATION_ID=us-east1 ``` -2. Compile the application using the Native Image Compiler. This step may take a few minutes. +2. Compile the application using the native image Compiler. This step may take a few minutes. ``` $ mvn package -P native From f14d92364771f5e519b8812292f1c4382f806b63 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Jun 2022 02:06:15 +0200 Subject: [PATCH 306/401] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.12 (#700) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:native-maven-plugin](https://togithub.com/graalvm/native-build-tools) | `0.9.11` -> `0.9.12` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.12/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.12/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.12/compatibility-slim/0.9.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.12/confidence-slim/0.9.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
graalvm/native-build-tools ### [`v0.9.12`](https://togithub.com/graalvm/native-build-tools/releases/tag/0.9.12) [Compare Source](https://togithub.com/graalvm/native-build-tools/compare/0.9.11...0.9.12) #### What's Changed Read what's new in the [documentation](https://graalvm.github.io/native-build-tools/latest/index.html#changelog). - Add Mockito / Byte Buddy support documentation by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/236](https://togithub.com/graalvm/native-build-tools/pull/236) - Prevent builds from failing if no test list is present by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/239](https://togithub.com/graalvm/native-build-tools/pull/239) - Support different agent modes in the native-image Gradle plugin by [@​gradinac](https://togithub.com/gradinac) in [https://github.com/graalvm/native-build-tools/pull/230](https://togithub.com/graalvm/native-build-tools/pull/230) - JVM Reachability Metadata support for Maven by [@​alvarosanchez](https://togithub.com/alvarosanchez) in [https://github.com/graalvm/native-build-tools/pull/240](https://togithub.com/graalvm/native-build-tools/pull/240) - Warn about deprecated agent DSL by [@​gradinac](https://togithub.com/gradinac) in [https://github.com/graalvm/native-build-tools/pull/242](https://togithub.com/graalvm/native-build-tools/pull/242) - Rework Maven plugin by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/247](https://togithub.com/graalvm/native-build-tools/pull/247) - Add Gradle rich output support, configure default metadata URL on Maven by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/249](https://togithub.com/graalvm/native-build-tools/pull/249) - Fix wrong scope for test dependencies by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/251](https://togithub.com/graalvm/native-build-tools/pull/251) - Add documentation for alternative build systems. by [@​gradinac](https://togithub.com/gradinac) in [https://github.com/graalvm/native-build-tools/pull/248](https://togithub.com/graalvm/native-build-tools/pull/248) **Full Changelog**: https://github.com/graalvm/native-build-tools/compare/0.9.11...0.9.12
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index b7762d1e..a407cb89 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -108,7 +108,7 @@ org.graalvm.buildtools native-maven-plugin - 0.9.11 + 0.9.12 true com.example.tasks.TasksSampleApplication From 267d11694a769b425e507a2f823cbba8842c33f7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 22 Jun 2022 02:08:14 +0200 Subject: [PATCH 307/401] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.12 (#699) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:junit-platform-native](https://togithub.com/graalvm/native-build-tools) | `0.9.11` -> `0.9.12` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.12/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.12/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.12/compatibility-slim/0.9.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.12/confidence-slim/0.9.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
graalvm/native-build-tools ### [`v0.9.12`](https://togithub.com/graalvm/native-build-tools/releases/tag/0.9.12) [Compare Source](https://togithub.com/graalvm/native-build-tools/compare/0.9.11...0.9.12) #### What's Changed Read what's new in the [documentation](https://graalvm.github.io/native-build-tools/latest/index.html#changelog). - Add Mockito / Byte Buddy support documentation by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/236](https://togithub.com/graalvm/native-build-tools/pull/236) - Prevent builds from failing if no test list is present by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/239](https://togithub.com/graalvm/native-build-tools/pull/239) - Support different agent modes in the native-image Gradle plugin by [@​gradinac](https://togithub.com/gradinac) in [https://github.com/graalvm/native-build-tools/pull/230](https://togithub.com/graalvm/native-build-tools/pull/230) - JVM Reachability Metadata support for Maven by [@​alvarosanchez](https://togithub.com/alvarosanchez) in [https://github.com/graalvm/native-build-tools/pull/240](https://togithub.com/graalvm/native-build-tools/pull/240) - Warn about deprecated agent DSL by [@​gradinac](https://togithub.com/gradinac) in [https://github.com/graalvm/native-build-tools/pull/242](https://togithub.com/graalvm/native-build-tools/pull/242) - Rework Maven plugin by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/247](https://togithub.com/graalvm/native-build-tools/pull/247) - Add Gradle rich output support, configure default metadata URL on Maven by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/249](https://togithub.com/graalvm/native-build-tools/pull/249) - Fix wrong scope for test dependencies by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/251](https://togithub.com/graalvm/native-build-tools/pull/251) - Add documentation for alternative build systems. by [@​gradinac](https://togithub.com/gradinac) in [https://github.com/graalvm/native-build-tools/pull/248](https://togithub.com/graalvm/native-build-tools/pull/248) **Full Changelog**: https://github.com/graalvm/native-build-tools/compare/0.9.11...0.9.12
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index a407cb89..85cb578c 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -88,7 +88,7 @@ org.graalvm.buildtools junit-platform-native - 0.9.11 + 0.9.12 test
From 52e4d94481c94707f8862d13564dd1c39ffcb803 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 23 Jun 2022 17:44:47 +0200 Subject: [PATCH 308/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 (#701) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.12.0` -> `2.13.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.13.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.13.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.13.0/compatibility-slim/2.12.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.13.0/confidence-slim/2.12.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.13.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​2130-httpsgithubcomgoogleapisjava-shared-dependenciescomparev2120v2130-2022-06-22) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.12.0...v2.13.0) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.35.0 ([#​709](https://togithub.com/googleapis/java-shared-dependencies/issues/709)) ([239f8c3](https://togithub.com/googleapis/java-shared-dependencies/commit/239f8c33a11e233e6af79aee8c7e68cd156a0554)) - update dependency com.google.api-client:google-api-client-bom to v1.35.1 ([#​713](https://togithub.com/googleapis/java-shared-dependencies/issues/713)) ([6559b45](https://togithub.com/googleapis/java-shared-dependencies/commit/6559b45b027dba783a9525d35e32183d78773cbe)) - update dependency com.google.api:api-common to v2.2.1 ([#​710](https://togithub.com/googleapis/java-shared-dependencies/issues/710)) ([650d4c5](https://togithub.com/googleapis/java-shared-dependencies/commit/650d4c5f8c3cfce711257d47280ad773cd2e2414)) - update dependency com.google.errorprone:error_prone_annotations to v2.14.0 ([#​701](https://togithub.com/googleapis/java-shared-dependencies/issues/701)) ([d24730f](https://togithub.com/googleapis/java-shared-dependencies/commit/d24730f78669f80b109e590b903446e5552e3e36)) - update dependency com.google.http-client:google-http-client-bom to v1.42.0 ([#​711](https://togithub.com/googleapis/java-shared-dependencies/issues/711)) ([5168a18](https://togithub.com/googleapis/java-shared-dependencies/commit/5168a181722128d434a0d0d2ab5cc485686bbc78)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.34.0 ([#​708](https://togithub.com/googleapis/java-shared-dependencies/issues/708)) ([620336e](https://togithub.com/googleapis/java-shared-dependencies/commit/620336e6733e2017116e5e8a7b403b183a728bc1)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.34.1 ([#​712](https://togithub.com/googleapis/java-shared-dependencies/issues/712)) ([a2c18a5](https://togithub.com/googleapis/java-shared-dependencies/commit/a2c18a5bc4152cc9034cec691a29f54a35c38a51)) - update dependency com.google.protobuf:protobuf-bom to v3.21.0 ([#​703](https://togithub.com/googleapis/java-shared-dependencies/issues/703)) ([5f9fe12](https://togithub.com/googleapis/java-shared-dependencies/commit/5f9fe1200b4bdf4c54bf947c21bd3ed02f26f990)) - update dependency com.google.protobuf:protobuf-bom to v3.21.1 ([#​705](https://togithub.com/googleapis/java-shared-dependencies/issues/705)) ([c68edfb](https://togithub.com/googleapis/java-shared-dependencies/commit/c68edfbe7e1993e1112640b867b29aa2fbcf7579)) - update dependency io.grpc:grpc-bom to v1.47.0 ([#​707](https://togithub.com/googleapis/java-shared-dependencies/issues/707)) ([d02918a](https://togithub.com/googleapis/java-shared-dependencies/commit/d02918a0418cd65d1d247f27afb0637f1f8f5666)) - update dependency org.checkerframework:checker-qual to v3.22.1 ([#​706](https://togithub.com/googleapis/java-shared-dependencies/issues/706)) ([545843b](https://togithub.com/googleapis/java-shared-dependencies/commit/545843b492cead230b8cc72a1dae7d4922f33b39)) - update dependency org.checkerframework:checker-qual to v3.22.2 ([#​717](https://togithub.com/googleapis/java-shared-dependencies/issues/717)) ([142852a](https://togithub.com/googleapis/java-shared-dependencies/commit/142852a37140f221197f5c71aed451def353b1e0)) - update gax.version to v2.18.2 ([#​718](https://togithub.com/googleapis/java-shared-dependencies/issues/718)) ([5f8156e](https://togithub.com/googleapis/java-shared-dependencies/commit/5f8156e55c6a07b018a8c5efafa68be781b4288b)) - update google.common-protos.version to v2.9.0 ([#​714](https://togithub.com/googleapis/java-shared-dependencies/issues/714)) ([9e5591e](https://togithub.com/googleapis/java-shared-dependencies/commit/9e5591ec3035350450ecbfebd00e08216433b06c)) - update google.core.version to v2.8.0 ([#​719](https://togithub.com/googleapis/java-shared-dependencies/issues/719)) ([4023c60](https://togithub.com/googleapis/java-shared-dependencies/commit/4023c6063a2c5b5308da531df1a08c90c491965d)) - update iam.version to v1.4.0 ([#​700](https://togithub.com/googleapis/java-shared-dependencies/issues/700)) ([c1097a4](https://togithub.com/googleapis/java-shared-dependencies/commit/c1097a46ab0739b0b7234bc510e4c3d9ce2c2861)) - update iam.version to v1.4.1 ([#​716](https://togithub.com/googleapis/java-shared-dependencies/issues/716)) ([e2dc7c2](https://togithub.com/googleapis/java-shared-dependencies/commit/e2dc7c21c39e007878841e2664d548ec44a72d54))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ae59403d..82e87280 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.12.0 + 2.13.0 pom import From 0620928c1e52ccdedaedec003623ee4f67d4a1a8 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 27 Jun 2022 19:24:34 +0000 Subject: [PATCH 309/401] chore: update dependencies for regapic (#1467) (#702) * chore: update dependencies for regapic * add more dependencies and trigger comment * update goldens * fix indentation * remove duplicate gax-httpjson dependency * remove duplicated dependencies Source-Link: https://github.com/googleapis/synthtool/commit/fa54eb2a78c6ee48613fd33152e2130e949dcbd9 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:1ec28a46062b19135b11178ceee60231e5f5a92dab454e23ae0aab72cd875906 --- .github/.OwlBot.lock.yaml | 4 ++-- .kokoro/common.sh | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index a79f0627..f0625e4d 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:2567a120ce90fadb6201999b87d649d9f67459de28815ad239bce9ebfaa18a74 -# created: 2022-05-19T15:12:45.278246753Z + digest: sha256:1ec28a46062b19135b11178ceee60231e5f5a92dab454e23ae0aab72cd875906 +# created: 2022-06-27T15:01:06.405564326Z diff --git a/.kokoro/common.sh b/.kokoro/common.sh index ace89f45..f8f957af 100644 --- a/.kokoro/common.sh +++ b/.kokoro/common.sh @@ -55,4 +55,6 @@ function retry_with_backoff { ## Helper functionss function now() { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n'; } function msg() { println "$*" >&2; } -function println() { printf '%s\n' "$(now) $*"; } \ No newline at end of file +function println() { printf '%s\n' "$(now) $*"; } + +## Helper comment to trigger updated repo dependency release \ No newline at end of file From 3a06bdf6ca4f1ac35b0721f15e2f8a7421185b9f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 28 Jun 2022 16:40:45 -0700 Subject: [PATCH 310/401] feat: Enable REST transport for most of Java and Go clients (#690) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): upgrade gapic-generator-java to 2.8.0 and update gax-java to 2.18.1 PiperOrigin-RevId: 450543911 Source-Link: https://github.com/googleapis/googleapis/commit/55283447ab72f10b6c2571d770af0498b593e84f Source-Link: https://github.com/googleapis/googleapis-gen/commit/9f6775cab1958982b88967a43e5e806af0f135db Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOWY2Nzc1Y2FiMTk1ODk4MmI4ODk2N2E0M2U1ZTgwNmFmMGYxMzVkYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: Integrate new gapic-generator-java and rules_gapic PiperOrigin-RevId: 454027580 Source-Link: https://github.com/googleapis/googleapis/commit/1b222777baa702e7135610355706570ed2b56318 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e04cea20d0d12eb5c3bdb360a9e72b654edcb638 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTA0Y2VhMjBkMGQxMmViNWMzYmRiMzYwYTllNzJiNjU0ZWRjYjYzOCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Update pom.xml Co-authored-by: Owl Bot Co-authored-by: Neenu Shaji --- google-cloud-tasks/pom.xml | 16 + .../cloud/tasks/v2/CloudTasksClient.java | 22 +- .../cloud/tasks/v2/CloudTasksSettings.java | 23 +- .../tasks/v2/stub/CloudTasksStubSettings.java | 54 +- .../HttpJsonCloudTasksCallableFactory.java | 105 + .../tasks/v2/stub/HttpJsonCloudTasksStub.java | 982 ++++++++ .../cloud/tasks/v2beta2/CloudTasksClient.java | 21 +- .../tasks/v2beta2/CloudTasksSettings.java | 23 +- .../v2beta2/stub/CloudTasksStubSettings.java | 54 +- .../HttpJsonCloudTasksCallableFactory.java | 105 + .../v2beta2/stub/HttpJsonCloudTasksStub.java | 1191 ++++++++++ .../cloud/tasks/v2beta3/CloudTasksClient.java | 21 +- .../tasks/v2beta3/CloudTasksSettings.java | 23 +- .../v2beta3/stub/CloudTasksStubSettings.java | 54 +- .../HttpJsonCloudTasksCallableFactory.java | 105 + .../v2beta3/stub/HttpJsonCloudTasksStub.java | 984 +++++++++ .../v2/CloudTasksClientHttpJsonTest.java | 1602 ++++++++++++++ .../v2beta2/CloudTasksClientHttpJsonTest.java | 1966 +++++++++++++++++ .../v2beta3/CloudTasksClientHttpJsonTest.java | 1628 ++++++++++++++ 19 files changed, 8945 insertions(+), 34 deletions(-) create mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksCallableFactory.java create mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksStub.java create mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksCallableFactory.java create mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksStub.java create mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksCallableFactory.java create mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksStub.java create mode 100644 google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientHttpJsonTest.java create mode 100644 google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientHttpJsonTest.java create mode 100644 google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientHttpJsonTest.java diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index be33188c..c6817d84 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -66,6 +66,10 @@ com.google.api gax-grpc
+ + com.google.api + gax-httpjson + org.threeten threetenbp @@ -102,12 +106,24 @@ test + + com.google.api + gax + testlib + test + com.google.api gax-grpc testlib test + + com.google.api + gax-httpjson + testlib + test +
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java index 4d289ca9..cf1c53d1 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java @@ -18,7 +18,6 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; @@ -106,6 +105,20 @@ * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); * }
* + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * CloudTasksSettings cloudTasksSettings =
+ *     CloudTasksSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             CloudTasksSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") @@ -130,7 +143,6 @@ public static final CloudTasksClient create(CloudTasksSettings settings) throws * Constructs an instance of CloudTasksClient, using the given stub for making calls. This is for * advanced usage - prefer using create(CloudTasksSettings). */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final CloudTasksClient create(CloudTasksStub stub) { return new CloudTasksClient(stub); } @@ -144,7 +156,6 @@ protected CloudTasksClient(CloudTasksSettings settings) throws IOException { this.stub = ((CloudTasksStubSettings) settings.getStubSettings()).createStub(); } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected CloudTasksClient(CloudTasksStub stub) { this.settings = null; this.stub = stub; @@ -154,7 +165,6 @@ public final CloudTasksSettings getSettings() { return settings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public CloudTasksStub getStub() { return stub; } @@ -300,7 +310,7 @@ public final UnaryCallable listQueue * .build(); * while (true) { * ListQueuesResponse response = cloudTasksClient.listQueuesCallable().call(request); - * for (Queue element : response.getResponsesList()) { + * for (Queue element : response.getQueuesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1785,7 +1795,7 @@ public final UnaryCallable listTasksPa * .build(); * while (true) { * ListTasksResponse response = cloudTasksClient.listTasksCallable().call(request); - * for (Task element : response.getResponsesList()) { + * for (Task element : response.getTasksList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java index 433cfa77..5ba02bdf 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java @@ -24,6 +24,7 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; @@ -184,11 +185,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return CloudTasksStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return CloudTasksStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return CloudTasksStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return CloudTasksStubSettings.defaultTransportChannelProvider(); } @@ -198,11 +206,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return CloudTasksStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -240,6 +254,11 @@ private static Builder createDefault() { return new Builder(CloudTasksStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(CloudTasksStubSettings.newHttpJsonBuilder()); + } + public CloudTasksStubSettings.Builder getStubSettingsBuilder() { return ((CloudTasksStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java index fcc4bf86..917761b9 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java @@ -28,6 +28,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -321,13 +324,17 @@ public UnaryCallSettings runTaskSettings() { return runTaskSettings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public CloudTasksStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcCloudTasksStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonCloudTasksStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -360,18 +367,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(CloudTasksStubSettings.class)) @@ -379,11 +393,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CloudTasksStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CloudTasksStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -580,6 +613,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .listQueuesSettings() diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksCallableFactory.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksCallableFactory.java new file mode 100644 index 00000000..df93d9fd --- /dev/null +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 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.v2.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the CloudTasks service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonCloudTasksCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksStub.java new file mode 100644 index 00000000..79109ceb --- /dev/null +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksStub.java @@ -0,0 +1,982 @@ +/* + * Copyright 2022 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.v2.stub; + +import static com.google.cloud.tasks.v2.CloudTasksClient.ListQueuesPagedResponse; +import static com.google.cloud.tasks.v2.CloudTasksClient.ListTasksPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.tasks.v2.CreateQueueRequest; +import com.google.cloud.tasks.v2.CreateTaskRequest; +import com.google.cloud.tasks.v2.DeleteQueueRequest; +import com.google.cloud.tasks.v2.DeleteTaskRequest; +import com.google.cloud.tasks.v2.GetQueueRequest; +import com.google.cloud.tasks.v2.GetTaskRequest; +import com.google.cloud.tasks.v2.ListQueuesRequest; +import com.google.cloud.tasks.v2.ListQueuesResponse; +import com.google.cloud.tasks.v2.ListTasksRequest; +import com.google.cloud.tasks.v2.ListTasksResponse; +import com.google.cloud.tasks.v2.PauseQueueRequest; +import com.google.cloud.tasks.v2.PurgeQueueRequest; +import com.google.cloud.tasks.v2.Queue; +import com.google.cloud.tasks.v2.ResumeQueueRequest; +import com.google.cloud.tasks.v2.RunTaskRequest; +import com.google.cloud.tasks.v2.Task; +import com.google.cloud.tasks.v2.UpdateQueueRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the CloudTasks service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonCloudTasksStub extends CloudTasksStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + listQueuesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2.CloudTasks/ListQueues") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*/locations/*}/queues", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListQueuesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getQueueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2.CloudTasks/GetQueue") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/queues/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Queue.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor createQueueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2.CloudTasks/CreateQueue") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*/locations/*}/queues", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> ProtoRestSerializer.create().toBody("queue", request.getQueue())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Queue.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor updateQueueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2.CloudTasks/UpdateQueue") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{queue.name=projects/*/locations/*/queues/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "queue.name", request.getQueue().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> ProtoRestSerializer.create().toBody("queue", request.getQueue())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Queue.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor deleteQueueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2.CloudTasks/DeleteQueue") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/queues/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor purgeQueueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2.CloudTasks/PurgeQueue") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/queues/*}:purge", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Queue.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor pauseQueueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2.CloudTasks/PauseQueue") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/queues/*}:pause", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Queue.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor resumeQueueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2.CloudTasks/ResumeQueue") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/queues/*}:resume", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Queue.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2.CloudTasks/GetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{resource=projects/*/locations/*/queues/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2.CloudTasks/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{resource=projects/*/locations/*/queues/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2.CloudTasks/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{resource=projects/*/locations/*/queues/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listTasksMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2.CloudTasks/ListTasks") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*/locations/*/queues/*}/tasks", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam( + fields, "responseView", request.getResponseView()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListTasksResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getTaskMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2.CloudTasks/GetTask") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/queues/*/tasks/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "responseView", request.getResponseView()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Task.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor createTaskMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2.CloudTasks/CreateTask") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{parent=projects/*/locations/*/queues/*}/tasks", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Task.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor deleteTaskMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2.CloudTasks/DeleteTask") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/queues/*/tasks/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor runTaskMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2.CloudTasks/RunTask") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2/{name=projects/*/locations/*/queues/*/tasks/*}:run", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Task.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable listQueuesCallable; + private final UnaryCallable listQueuesPagedCallable; + private final UnaryCallable getQueueCallable; + private final UnaryCallable createQueueCallable; + private final UnaryCallable updateQueueCallable; + private final UnaryCallable deleteQueueCallable; + private final UnaryCallable purgeQueueCallable; + private final UnaryCallable pauseQueueCallable; + private final UnaryCallable resumeQueueCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + private final UnaryCallable listTasksCallable; + private final UnaryCallable listTasksPagedCallable; + private final UnaryCallable getTaskCallable; + private final UnaryCallable createTaskCallable; + private final UnaryCallable deleteTaskCallable; + private final UnaryCallable runTaskCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonCloudTasksStub create(CloudTasksStubSettings settings) + throws IOException { + return new HttpJsonCloudTasksStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonCloudTasksStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonCloudTasksStub( + CloudTasksStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonCloudTasksStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonCloudTasksStub( + CloudTasksStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonCloudTasksStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonCloudTasksStub(CloudTasksStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonCloudTasksCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonCloudTasksStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonCloudTasksStub( + CloudTasksStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings listQueuesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listQueuesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getQueueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getQueueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createQueueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createQueueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateQueueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateQueueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteQueueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteQueueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings purgeQueueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(purgeQueueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings pauseQueueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(pauseQueueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings resumeQueueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(resumeQueueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listTasksTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listTasksMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getTaskTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getTaskMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createTaskTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createTaskMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteTaskTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteTaskMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings runTaskTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(runTaskMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.listQueuesCallable = + callableFactory.createUnaryCallable( + listQueuesTransportSettings, settings.listQueuesSettings(), clientContext); + this.listQueuesPagedCallable = + callableFactory.createPagedCallable( + listQueuesTransportSettings, settings.listQueuesSettings(), clientContext); + this.getQueueCallable = + callableFactory.createUnaryCallable( + getQueueTransportSettings, settings.getQueueSettings(), clientContext); + this.createQueueCallable = + callableFactory.createUnaryCallable( + createQueueTransportSettings, settings.createQueueSettings(), clientContext); + this.updateQueueCallable = + callableFactory.createUnaryCallable( + updateQueueTransportSettings, settings.updateQueueSettings(), clientContext); + this.deleteQueueCallable = + callableFactory.createUnaryCallable( + deleteQueueTransportSettings, settings.deleteQueueSettings(), clientContext); + this.purgeQueueCallable = + callableFactory.createUnaryCallable( + purgeQueueTransportSettings, settings.purgeQueueSettings(), clientContext); + this.pauseQueueCallable = + callableFactory.createUnaryCallable( + pauseQueueTransportSettings, settings.pauseQueueSettings(), clientContext); + this.resumeQueueCallable = + callableFactory.createUnaryCallable( + resumeQueueTransportSettings, settings.resumeQueueSettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + this.listTasksCallable = + callableFactory.createUnaryCallable( + listTasksTransportSettings, settings.listTasksSettings(), clientContext); + this.listTasksPagedCallable = + callableFactory.createPagedCallable( + listTasksTransportSettings, settings.listTasksSettings(), clientContext); + this.getTaskCallable = + callableFactory.createUnaryCallable( + getTaskTransportSettings, settings.getTaskSettings(), clientContext); + this.createTaskCallable = + callableFactory.createUnaryCallable( + createTaskTransportSettings, settings.createTaskSettings(), clientContext); + this.deleteTaskCallable = + callableFactory.createUnaryCallable( + deleteTaskTransportSettings, settings.deleteTaskSettings(), clientContext); + this.runTaskCallable = + callableFactory.createUnaryCallable( + runTaskTransportSettings, settings.runTaskSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listQueuesMethodDescriptor); + methodDescriptors.add(getQueueMethodDescriptor); + methodDescriptors.add(createQueueMethodDescriptor); + methodDescriptors.add(updateQueueMethodDescriptor); + methodDescriptors.add(deleteQueueMethodDescriptor); + methodDescriptors.add(purgeQueueMethodDescriptor); + methodDescriptors.add(pauseQueueMethodDescriptor); + methodDescriptors.add(resumeQueueMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + methodDescriptors.add(listTasksMethodDescriptor); + methodDescriptors.add(getTaskMethodDescriptor); + methodDescriptors.add(createTaskMethodDescriptor); + methodDescriptors.add(deleteTaskMethodDescriptor); + methodDescriptors.add(runTaskMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable listQueuesCallable() { + return listQueuesCallable; + } + + @Override + public UnaryCallable listQueuesPagedCallable() { + return listQueuesPagedCallable; + } + + @Override + public UnaryCallable getQueueCallable() { + return getQueueCallable; + } + + @Override + public UnaryCallable createQueueCallable() { + return createQueueCallable; + } + + @Override + public UnaryCallable updateQueueCallable() { + return updateQueueCallable; + } + + @Override + public UnaryCallable deleteQueueCallable() { + return deleteQueueCallable; + } + + @Override + public UnaryCallable purgeQueueCallable() { + return purgeQueueCallable; + } + + @Override + public UnaryCallable pauseQueueCallable() { + return pauseQueueCallable; + } + + @Override + public UnaryCallable resumeQueueCallable() { + return resumeQueueCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public UnaryCallable listTasksCallable() { + return listTasksCallable; + } + + @Override + public UnaryCallable listTasksPagedCallable() { + return listTasksPagedCallable; + } + + @Override + public UnaryCallable getTaskCallable() { + return getTaskCallable; + } + + @Override + public UnaryCallable createTaskCallable() { + return createTaskCallable; + } + + @Override + public UnaryCallable deleteTaskCallable() { + return deleteTaskCallable; + } + + @Override + public UnaryCallable runTaskCallable() { + return runTaskCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java index 09c3408d..2fb0f905 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java @@ -108,6 +108,20 @@ * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); * }

* + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * CloudTasksSettings cloudTasksSettings =
+ *     CloudTasksSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             CloudTasksSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi @@ -133,7 +147,6 @@ public static final CloudTasksClient create(CloudTasksSettings settings) throws * Constructs an instance of CloudTasksClient, using the given stub for making calls. This is for * advanced usage - prefer using create(CloudTasksSettings). */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final CloudTasksClient create(CloudTasksStub stub) { return new CloudTasksClient(stub); } @@ -147,7 +160,6 @@ protected CloudTasksClient(CloudTasksSettings settings) throws IOException { this.stub = ((CloudTasksStubSettings) settings.getStubSettings()).createStub(); } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected CloudTasksClient(CloudTasksStub stub) { this.settings = null; this.stub = stub; @@ -157,7 +169,6 @@ public final CloudTasksSettings getSettings() { return settings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public CloudTasksStub getStub() { return stub; } @@ -306,7 +317,7 @@ public final UnaryCallable listQueue * .build(); * while (true) { * ListQueuesResponse response = cloudTasksClient.listQueuesCallable().call(request); - * for (Queue element : response.getResponsesList()) { + * for (Queue element : response.getQueuesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1797,7 +1808,7 @@ public final UnaryCallable listTasksPa * .build(); * while (true) { * ListTasksResponse response = cloudTasksClient.listTasksCallable().call(request); - * for (Task element : response.getResponsesList()) { + * for (Task element : response.getTasksList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java index 3f9c9be6..88d405e7 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java @@ -24,6 +24,7 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; @@ -205,11 +206,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return CloudTasksStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return CloudTasksStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return CloudTasksStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return CloudTasksStubSettings.defaultTransportChannelProvider(); } @@ -219,11 +227,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return CloudTasksStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -261,6 +275,11 @@ private static Builder createDefault() { return new Builder(CloudTasksStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(CloudTasksStubSettings.newHttpJsonBuilder()); + } + public CloudTasksStubSettings.Builder getStubSettingsBuilder() { return ((CloudTasksStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java index 59a0f2ba..27411d78 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java @@ -28,6 +28,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -351,13 +354,17 @@ public UnaryCallSettings runTaskSettings() { return runTaskSettings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public CloudTasksStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcCloudTasksStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonCloudTasksStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -390,18 +397,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(CloudTasksStubSettings.class)) @@ -409,11 +423,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CloudTasksStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CloudTasksStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -635,6 +668,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .listQueuesSettings() diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksCallableFactory.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksCallableFactory.java new file mode 100644 index 00000000..3ea5df3e --- /dev/null +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 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.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the CloudTasks service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonCloudTasksCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksStub.java new file mode 100644 index 00000000..268878f2 --- /dev/null +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksStub.java @@ -0,0 +1,1191 @@ +/* + * Copyright 2022 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.stub; + +import static com.google.cloud.tasks.v2beta2.CloudTasksClient.ListQueuesPagedResponse; +import static com.google.cloud.tasks.v2beta2.CloudTasksClient.ListTasksPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest; +import com.google.cloud.tasks.v2beta2.CancelLeaseRequest; +import com.google.cloud.tasks.v2beta2.CreateQueueRequest; +import com.google.cloud.tasks.v2beta2.CreateTaskRequest; +import com.google.cloud.tasks.v2beta2.DeleteQueueRequest; +import com.google.cloud.tasks.v2beta2.DeleteTaskRequest; +import com.google.cloud.tasks.v2beta2.GetQueueRequest; +import com.google.cloud.tasks.v2beta2.GetTaskRequest; +import com.google.cloud.tasks.v2beta2.LeaseTasksRequest; +import com.google.cloud.tasks.v2beta2.LeaseTasksResponse; +import com.google.cloud.tasks.v2beta2.ListQueuesRequest; +import com.google.cloud.tasks.v2beta2.ListQueuesResponse; +import com.google.cloud.tasks.v2beta2.ListTasksRequest; +import com.google.cloud.tasks.v2beta2.ListTasksResponse; +import com.google.cloud.tasks.v2beta2.PauseQueueRequest; +import com.google.cloud.tasks.v2beta2.PurgeQueueRequest; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.cloud.tasks.v2beta2.RenewLeaseRequest; +import com.google.cloud.tasks.v2beta2.ResumeQueueRequest; +import com.google.cloud.tasks.v2beta2.RunTaskRequest; +import com.google.cloud.tasks.v2beta2.Task; +import com.google.cloud.tasks.v2beta2.UpdateQueueRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the CloudTasks service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonCloudTasksStub extends CloudTasksStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + listQueuesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/ListQueues") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta2/{parent=projects/*/locations/*}/queues", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "readMask", request.getReadMask()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListQueuesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getQueueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/GetQueue") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta2/{name=projects/*/locations/*/queues/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "readMask", request.getReadMask()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Queue.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor createQueueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/CreateQueue") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta2/{parent=projects/*/locations/*}/queues", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> ProtoRestSerializer.create().toBody("queue", request.getQueue())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Queue.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor updateQueueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/UpdateQueue") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta2/{queue.name=projects/*/locations/*/queues/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "queue.name", request.getQueue().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> ProtoRestSerializer.create().toBody("queue", request.getQueue())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Queue.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor deleteQueueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/DeleteQueue") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta2/{name=projects/*/locations/*/queues/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor purgeQueueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/PurgeQueue") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta2/{name=projects/*/locations/*/queues/*}:purge", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Queue.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor pauseQueueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/PauseQueue") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta2/{name=projects/*/locations/*/queues/*}:pause", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Queue.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor resumeQueueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/ResumeQueue") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta2/{name=projects/*/locations/*/queues/*}:resume", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Queue.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/GetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta2/{resource=projects/*/locations/*/queues/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta2/{resource=projects/*/locations/*/queues/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta2/{resource=projects/*/locations/*/queues/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listTasksMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/ListTasks") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam( + fields, "responseView", request.getResponseView()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListTasksResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getTaskMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/GetTask") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "responseView", request.getResponseView()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Task.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor createTaskMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/CreateTask") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Task.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor deleteTaskMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/DeleteTask") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + leaseTasksMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/LeaseTasks") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks:lease", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(LeaseTasksResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + acknowledgeTaskMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/AcknowledgeTask") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:acknowledge", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor renewLeaseMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/RenewLease") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:renewLease", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Task.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor cancelLeaseMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/CancelLease") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:cancelLease", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Task.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor runTaskMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/RunTask") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:run", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Task.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable listQueuesCallable; + private final UnaryCallable listQueuesPagedCallable; + private final UnaryCallable getQueueCallable; + private final UnaryCallable createQueueCallable; + private final UnaryCallable updateQueueCallable; + private final UnaryCallable deleteQueueCallable; + private final UnaryCallable purgeQueueCallable; + private final UnaryCallable pauseQueueCallable; + private final UnaryCallable resumeQueueCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + private final UnaryCallable listTasksCallable; + private final UnaryCallable listTasksPagedCallable; + private final UnaryCallable getTaskCallable; + private final UnaryCallable createTaskCallable; + private final UnaryCallable deleteTaskCallable; + private final UnaryCallable leaseTasksCallable; + private final UnaryCallable acknowledgeTaskCallable; + private final UnaryCallable renewLeaseCallable; + private final UnaryCallable cancelLeaseCallable; + private final UnaryCallable runTaskCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonCloudTasksStub create(CloudTasksStubSettings settings) + throws IOException { + return new HttpJsonCloudTasksStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonCloudTasksStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonCloudTasksStub( + CloudTasksStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonCloudTasksStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonCloudTasksStub( + CloudTasksStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonCloudTasksStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonCloudTasksStub(CloudTasksStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonCloudTasksCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonCloudTasksStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonCloudTasksStub( + CloudTasksStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings listQueuesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listQueuesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getQueueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getQueueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createQueueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createQueueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateQueueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateQueueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteQueueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteQueueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings purgeQueueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(purgeQueueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings pauseQueueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(pauseQueueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings resumeQueueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(resumeQueueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listTasksTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listTasksMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getTaskTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getTaskMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createTaskTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createTaskMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteTaskTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteTaskMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings leaseTasksTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(leaseTasksMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings acknowledgeTaskTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(acknowledgeTaskMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings renewLeaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(renewLeaseMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings cancelLeaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(cancelLeaseMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings runTaskTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(runTaskMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.listQueuesCallable = + callableFactory.createUnaryCallable( + listQueuesTransportSettings, settings.listQueuesSettings(), clientContext); + this.listQueuesPagedCallable = + callableFactory.createPagedCallable( + listQueuesTransportSettings, settings.listQueuesSettings(), clientContext); + this.getQueueCallable = + callableFactory.createUnaryCallable( + getQueueTransportSettings, settings.getQueueSettings(), clientContext); + this.createQueueCallable = + callableFactory.createUnaryCallable( + createQueueTransportSettings, settings.createQueueSettings(), clientContext); + this.updateQueueCallable = + callableFactory.createUnaryCallable( + updateQueueTransportSettings, settings.updateQueueSettings(), clientContext); + this.deleteQueueCallable = + callableFactory.createUnaryCallable( + deleteQueueTransportSettings, settings.deleteQueueSettings(), clientContext); + this.purgeQueueCallable = + callableFactory.createUnaryCallable( + purgeQueueTransportSettings, settings.purgeQueueSettings(), clientContext); + this.pauseQueueCallable = + callableFactory.createUnaryCallable( + pauseQueueTransportSettings, settings.pauseQueueSettings(), clientContext); + this.resumeQueueCallable = + callableFactory.createUnaryCallable( + resumeQueueTransportSettings, settings.resumeQueueSettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + this.listTasksCallable = + callableFactory.createUnaryCallable( + listTasksTransportSettings, settings.listTasksSettings(), clientContext); + this.listTasksPagedCallable = + callableFactory.createPagedCallable( + listTasksTransportSettings, settings.listTasksSettings(), clientContext); + this.getTaskCallable = + callableFactory.createUnaryCallable( + getTaskTransportSettings, settings.getTaskSettings(), clientContext); + this.createTaskCallable = + callableFactory.createUnaryCallable( + createTaskTransportSettings, settings.createTaskSettings(), clientContext); + this.deleteTaskCallable = + callableFactory.createUnaryCallable( + deleteTaskTransportSettings, settings.deleteTaskSettings(), clientContext); + this.leaseTasksCallable = + callableFactory.createUnaryCallable( + leaseTasksTransportSettings, settings.leaseTasksSettings(), clientContext); + this.acknowledgeTaskCallable = + callableFactory.createUnaryCallable( + acknowledgeTaskTransportSettings, settings.acknowledgeTaskSettings(), clientContext); + this.renewLeaseCallable = + callableFactory.createUnaryCallable( + renewLeaseTransportSettings, settings.renewLeaseSettings(), clientContext); + this.cancelLeaseCallable = + callableFactory.createUnaryCallable( + cancelLeaseTransportSettings, settings.cancelLeaseSettings(), clientContext); + this.runTaskCallable = + callableFactory.createUnaryCallable( + runTaskTransportSettings, settings.runTaskSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listQueuesMethodDescriptor); + methodDescriptors.add(getQueueMethodDescriptor); + methodDescriptors.add(createQueueMethodDescriptor); + methodDescriptors.add(updateQueueMethodDescriptor); + methodDescriptors.add(deleteQueueMethodDescriptor); + methodDescriptors.add(purgeQueueMethodDescriptor); + methodDescriptors.add(pauseQueueMethodDescriptor); + methodDescriptors.add(resumeQueueMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + methodDescriptors.add(listTasksMethodDescriptor); + methodDescriptors.add(getTaskMethodDescriptor); + methodDescriptors.add(createTaskMethodDescriptor); + methodDescriptors.add(deleteTaskMethodDescriptor); + methodDescriptors.add(leaseTasksMethodDescriptor); + methodDescriptors.add(acknowledgeTaskMethodDescriptor); + methodDescriptors.add(renewLeaseMethodDescriptor); + methodDescriptors.add(cancelLeaseMethodDescriptor); + methodDescriptors.add(runTaskMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable listQueuesCallable() { + return listQueuesCallable; + } + + @Override + public UnaryCallable listQueuesPagedCallable() { + return listQueuesPagedCallable; + } + + @Override + public UnaryCallable getQueueCallable() { + return getQueueCallable; + } + + @Override + public UnaryCallable createQueueCallable() { + return createQueueCallable; + } + + @Override + public UnaryCallable updateQueueCallable() { + return updateQueueCallable; + } + + @Override + public UnaryCallable deleteQueueCallable() { + return deleteQueueCallable; + } + + @Override + public UnaryCallable purgeQueueCallable() { + return purgeQueueCallable; + } + + @Override + public UnaryCallable pauseQueueCallable() { + return pauseQueueCallable; + } + + @Override + public UnaryCallable resumeQueueCallable() { + return resumeQueueCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public UnaryCallable listTasksCallable() { + return listTasksCallable; + } + + @Override + public UnaryCallable listTasksPagedCallable() { + return listTasksPagedCallable; + } + + @Override + public UnaryCallable getTaskCallable() { + return getTaskCallable; + } + + @Override + public UnaryCallable createTaskCallable() { + return createTaskCallable; + } + + @Override + public UnaryCallable deleteTaskCallable() { + return deleteTaskCallable; + } + + @Override + public UnaryCallable leaseTasksCallable() { + return leaseTasksCallable; + } + + @Override + public UnaryCallable acknowledgeTaskCallable() { + return acknowledgeTaskCallable; + } + + @Override + public UnaryCallable renewLeaseCallable() { + return renewLeaseCallable; + } + + @Override + public UnaryCallable cancelLeaseCallable() { + return cancelLeaseCallable; + } + + @Override + public UnaryCallable runTaskCallable() { + return runTaskCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java index 24430428..32fdf62d 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java @@ -106,6 +106,20 @@ * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); * }

* + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * CloudTasksSettings cloudTasksSettings =
+ *     CloudTasksSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             CloudTasksSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi @@ -131,7 +145,6 @@ public static final CloudTasksClient create(CloudTasksSettings settings) throws * Constructs an instance of CloudTasksClient, using the given stub for making calls. This is for * advanced usage - prefer using create(CloudTasksSettings). */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final CloudTasksClient create(CloudTasksStub stub) { return new CloudTasksClient(stub); } @@ -145,7 +158,6 @@ protected CloudTasksClient(CloudTasksSettings settings) throws IOException { this.stub = ((CloudTasksStubSettings) settings.getStubSettings()).createStub(); } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected CloudTasksClient(CloudTasksStub stub) { this.settings = null; this.stub = stub; @@ -155,7 +167,6 @@ public final CloudTasksSettings getSettings() { return settings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public CloudTasksStub getStub() { return stub; } @@ -304,7 +315,7 @@ public final UnaryCallable listQueue * .build(); * while (true) { * ListQueuesResponse response = cloudTasksClient.listQueuesCallable().call(request); - * for (Queue element : response.getResponsesList()) { + * for (Queue element : response.getQueuesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1795,7 +1806,7 @@ public final UnaryCallable listTasksPa * .build(); * while (true) { * ListTasksResponse response = cloudTasksClient.listTasksCallable().call(request); - * for (Task element : response.getResponsesList()) { + * for (Task element : response.getTasksList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java index 4b670b0a..027a308a 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java @@ -24,6 +24,7 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; @@ -185,11 +186,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return CloudTasksStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return CloudTasksStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return CloudTasksStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return CloudTasksStubSettings.defaultTransportChannelProvider(); } @@ -199,11 +207,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return CloudTasksStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -241,6 +255,11 @@ private static Builder createDefault() { return new Builder(CloudTasksStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(CloudTasksStubSettings.newHttpJsonBuilder()); + } + public CloudTasksStubSettings.Builder getStubSettingsBuilder() { return ((CloudTasksStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java index d158d0c5..f932d379 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java @@ -28,6 +28,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -322,13 +325,17 @@ public UnaryCallSettings runTaskSettings() { return runTaskSettings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public CloudTasksStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcCloudTasksStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonCloudTasksStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -361,18 +368,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(CloudTasksStubSettings.class)) @@ -380,11 +394,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CloudTasksStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CloudTasksStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -581,6 +614,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .listQueuesSettings() diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksCallableFactory.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksCallableFactory.java new file mode 100644 index 00000000..954545e4 --- /dev/null +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 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.v2beta3.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the CloudTasks service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonCloudTasksCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksStub.java new file mode 100644 index 00000000..9b9fdbd6 --- /dev/null +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksStub.java @@ -0,0 +1,984 @@ +/* + * Copyright 2022 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.v2beta3.stub; + +import static com.google.cloud.tasks.v2beta3.CloudTasksClient.ListQueuesPagedResponse; +import static com.google.cloud.tasks.v2beta3.CloudTasksClient.ListTasksPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.tasks.v2beta3.CreateQueueRequest; +import com.google.cloud.tasks.v2beta3.CreateTaskRequest; +import com.google.cloud.tasks.v2beta3.DeleteQueueRequest; +import com.google.cloud.tasks.v2beta3.DeleteTaskRequest; +import com.google.cloud.tasks.v2beta3.GetQueueRequest; +import com.google.cloud.tasks.v2beta3.GetTaskRequest; +import com.google.cloud.tasks.v2beta3.ListQueuesRequest; +import com.google.cloud.tasks.v2beta3.ListQueuesResponse; +import com.google.cloud.tasks.v2beta3.ListTasksRequest; +import com.google.cloud.tasks.v2beta3.ListTasksResponse; +import com.google.cloud.tasks.v2beta3.PauseQueueRequest; +import com.google.cloud.tasks.v2beta3.PurgeQueueRequest; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.cloud.tasks.v2beta3.ResumeQueueRequest; +import com.google.cloud.tasks.v2beta3.RunTaskRequest; +import com.google.cloud.tasks.v2beta3.Task; +import com.google.cloud.tasks.v2beta3.UpdateQueueRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the CloudTasks service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonCloudTasksStub extends CloudTasksStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + listQueuesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/ListQueues") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta3/{parent=projects/*/locations/*}/queues", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "readMask", request.getReadMask()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListQueuesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getQueueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/GetQueue") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta3/{name=projects/*/locations/*/queues/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "readMask", request.getReadMask()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Queue.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor createQueueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/CreateQueue") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta3/{parent=projects/*/locations/*}/queues", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> ProtoRestSerializer.create().toBody("queue", request.getQueue())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Queue.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor updateQueueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/UpdateQueue") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta3/{queue.name=projects/*/locations/*/queues/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "queue.name", request.getQueue().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> ProtoRestSerializer.create().toBody("queue", request.getQueue())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Queue.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor deleteQueueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/DeleteQueue") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta3/{name=projects/*/locations/*/queues/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor purgeQueueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/PurgeQueue") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta3/{name=projects/*/locations/*/queues/*}:purge", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Queue.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor pauseQueueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/PauseQueue") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta3/{name=projects/*/locations/*/queues/*}:pause", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Queue.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor resumeQueueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/ResumeQueue") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta3/{name=projects/*/locations/*/queues/*}:resume", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Queue.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/GetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta3/{resource=projects/*/locations/*/queues/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta3/{resource=projects/*/locations/*/queues/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta3/{resource=projects/*/locations/*/queues/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listTasksMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/ListTasks") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta3/{parent=projects/*/locations/*/queues/*}/tasks", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam( + fields, "responseView", request.getResponseView()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListTasksResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getTaskMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/GetTask") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "responseView", request.getResponseView()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Task.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor createTaskMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/CreateTask") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta3/{parent=projects/*/locations/*/queues/*}/tasks", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Task.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor deleteTaskMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/DeleteTask") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor runTaskMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/RunTask") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}:run", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Task.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable listQueuesCallable; + private final UnaryCallable listQueuesPagedCallable; + private final UnaryCallable getQueueCallable; + private final UnaryCallable createQueueCallable; + private final UnaryCallable updateQueueCallable; + private final UnaryCallable deleteQueueCallable; + private final UnaryCallable purgeQueueCallable; + private final UnaryCallable pauseQueueCallable; + private final UnaryCallable resumeQueueCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + private final UnaryCallable listTasksCallable; + private final UnaryCallable listTasksPagedCallable; + private final UnaryCallable getTaskCallable; + private final UnaryCallable createTaskCallable; + private final UnaryCallable deleteTaskCallable; + private final UnaryCallable runTaskCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonCloudTasksStub create(CloudTasksStubSettings settings) + throws IOException { + return new HttpJsonCloudTasksStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonCloudTasksStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonCloudTasksStub( + CloudTasksStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonCloudTasksStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonCloudTasksStub( + CloudTasksStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonCloudTasksStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonCloudTasksStub(CloudTasksStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonCloudTasksCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonCloudTasksStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonCloudTasksStub( + CloudTasksStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings listQueuesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listQueuesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getQueueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getQueueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createQueueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createQueueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateQueueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateQueueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteQueueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteQueueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings purgeQueueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(purgeQueueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings pauseQueueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(pauseQueueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings resumeQueueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(resumeQueueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listTasksTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listTasksMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getTaskTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getTaskMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createTaskTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createTaskMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteTaskTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteTaskMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings runTaskTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(runTaskMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.listQueuesCallable = + callableFactory.createUnaryCallable( + listQueuesTransportSettings, settings.listQueuesSettings(), clientContext); + this.listQueuesPagedCallable = + callableFactory.createPagedCallable( + listQueuesTransportSettings, settings.listQueuesSettings(), clientContext); + this.getQueueCallable = + callableFactory.createUnaryCallable( + getQueueTransportSettings, settings.getQueueSettings(), clientContext); + this.createQueueCallable = + callableFactory.createUnaryCallable( + createQueueTransportSettings, settings.createQueueSettings(), clientContext); + this.updateQueueCallable = + callableFactory.createUnaryCallable( + updateQueueTransportSettings, settings.updateQueueSettings(), clientContext); + this.deleteQueueCallable = + callableFactory.createUnaryCallable( + deleteQueueTransportSettings, settings.deleteQueueSettings(), clientContext); + this.purgeQueueCallable = + callableFactory.createUnaryCallable( + purgeQueueTransportSettings, settings.purgeQueueSettings(), clientContext); + this.pauseQueueCallable = + callableFactory.createUnaryCallable( + pauseQueueTransportSettings, settings.pauseQueueSettings(), clientContext); + this.resumeQueueCallable = + callableFactory.createUnaryCallable( + resumeQueueTransportSettings, settings.resumeQueueSettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + this.listTasksCallable = + callableFactory.createUnaryCallable( + listTasksTransportSettings, settings.listTasksSettings(), clientContext); + this.listTasksPagedCallable = + callableFactory.createPagedCallable( + listTasksTransportSettings, settings.listTasksSettings(), clientContext); + this.getTaskCallable = + callableFactory.createUnaryCallable( + getTaskTransportSettings, settings.getTaskSettings(), clientContext); + this.createTaskCallable = + callableFactory.createUnaryCallable( + createTaskTransportSettings, settings.createTaskSettings(), clientContext); + this.deleteTaskCallable = + callableFactory.createUnaryCallable( + deleteTaskTransportSettings, settings.deleteTaskSettings(), clientContext); + this.runTaskCallable = + callableFactory.createUnaryCallable( + runTaskTransportSettings, settings.runTaskSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listQueuesMethodDescriptor); + methodDescriptors.add(getQueueMethodDescriptor); + methodDescriptors.add(createQueueMethodDescriptor); + methodDescriptors.add(updateQueueMethodDescriptor); + methodDescriptors.add(deleteQueueMethodDescriptor); + methodDescriptors.add(purgeQueueMethodDescriptor); + methodDescriptors.add(pauseQueueMethodDescriptor); + methodDescriptors.add(resumeQueueMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + methodDescriptors.add(listTasksMethodDescriptor); + methodDescriptors.add(getTaskMethodDescriptor); + methodDescriptors.add(createTaskMethodDescriptor); + methodDescriptors.add(deleteTaskMethodDescriptor); + methodDescriptors.add(runTaskMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable listQueuesCallable() { + return listQueuesCallable; + } + + @Override + public UnaryCallable listQueuesPagedCallable() { + return listQueuesPagedCallable; + } + + @Override + public UnaryCallable getQueueCallable() { + return getQueueCallable; + } + + @Override + public UnaryCallable createQueueCallable() { + return createQueueCallable; + } + + @Override + public UnaryCallable updateQueueCallable() { + return updateQueueCallable; + } + + @Override + public UnaryCallable deleteQueueCallable() { + return deleteQueueCallable; + } + + @Override + public UnaryCallable purgeQueueCallable() { + return purgeQueueCallable; + } + + @Override + public UnaryCallable pauseQueueCallable() { + return pauseQueueCallable; + } + + @Override + public UnaryCallable resumeQueueCallable() { + return resumeQueueCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public UnaryCallable listTasksCallable() { + return listTasksCallable; + } + + @Override + public UnaryCallable listTasksPagedCallable() { + return listTasksPagedCallable; + } + + @Override + public UnaryCallable getTaskCallable() { + return getTaskCallable; + } + + @Override + public UnaryCallable createTaskCallable() { + return createTaskCallable; + } + + @Override + public UnaryCallable deleteTaskCallable() { + return deleteTaskCallable; + } + + @Override + public UnaryCallable runTaskCallable() { + return runTaskCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientHttpJsonTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientHttpJsonTest.java new file mode 100644 index 00000000..d9613017 --- /dev/null +++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientHttpJsonTest.java @@ -0,0 +1,1602 @@ +/* + * Copyright 2022 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.v2; + +import static com.google.cloud.tasks.v2.CloudTasksClient.ListQueuesPagedResponse; +import static com.google.cloud.tasks.v2.CloudTasksClient.ListTasksPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.tasks.v2.stub.HttpJsonCloudTasksStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.Policy; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.ByteString; +import com.google.protobuf.Duration; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CloudTasksClientHttpJsonTest { + private static MockHttpService mockService; + private static CloudTasksClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonCloudTasksStub.getMethodDescriptors(), CloudTasksSettings.getDefaultEndpoint()); + CloudTasksSettings settings = + CloudTasksSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + CloudTasksSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CloudTasksClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listQueuesTest() throws Exception { + Queue responsesElement = Queue.newBuilder().build(); + ListQueuesResponse expectedResponse = + ListQueuesResponse.newBuilder() + .setNextPageToken("") + .addAllQueues(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListQueuesPagedResponse pagedListResponse = client.listQueues(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getQueuesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listQueuesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listQueues(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listQueuesTest2() throws Exception { + Queue responsesElement = Queue.newBuilder().build(); + ListQueuesResponse expectedResponse = + ListQueuesResponse.newBuilder() + .setNextPageToken("") + .addAllQueues(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListQueuesPagedResponse pagedListResponse = client.listQueues(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getQueuesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listQueuesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listQueues(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getQueueTest() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + + Queue actualResponse = client.getQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getQueueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + client.getQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getQueueTest2() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + + Queue actualResponse = client.getQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getQueueExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + client.getQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createQueueTest() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Queue queue = Queue.newBuilder().build(); + + Queue actualResponse = client.createQueue(parent, queue); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createQueueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Queue queue = Queue.newBuilder().build(); + client.createQueue(parent, queue); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createQueueTest2() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + Queue queue = Queue.newBuilder().build(); + + Queue actualResponse = client.createQueue(parent, queue); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createQueueExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Queue queue = Queue.newBuilder().build(); + client.createQueue(parent, queue); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateQueueTest() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Queue queue = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Queue actualResponse = client.updateQueue(queue, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateQueueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Queue queue = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateQueue(queue, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteQueueTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + + client.deleteQueue(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteQueueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + client.deleteQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteQueueTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + + client.deleteQueue(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteQueueExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + client.deleteQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void purgeQueueTest() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + + Queue actualResponse = client.purgeQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void purgeQueueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + client.purgeQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void purgeQueueTest2() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + + Queue actualResponse = client.purgeQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void purgeQueueExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + client.purgeQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void pauseQueueTest() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + + Queue actualResponse = client.pauseQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void pauseQueueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + client.pauseQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void pauseQueueTest2() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + + Queue actualResponse = client.pauseQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void pauseQueueExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + client.pauseQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void resumeQueueTest() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + + Queue actualResponse = client.resumeQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void resumeQueueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + client.resumeQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void resumeQueueTest2() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + + Queue actualResponse = client.resumeQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void resumeQueueExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + client.resumeQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest2() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTasksTest() throws Exception { + Task responsesElement = Task.newBuilder().build(); + ListTasksResponse expectedResponse = + ListTasksResponse.newBuilder() + .setNextPageToken("") + .addAllTasks(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + + ListTasksPagedResponse pagedListResponse = client.listTasks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTasksExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + client.listTasks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTasksTest2() throws Exception { + Task responsesElement = Task.newBuilder().build(); + ListTasksResponse expectedResponse = + ListTasksResponse.newBuilder() + .setNextPageToken("") + .addAllTasks(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; + + ListTasksPagedResponse pagedListResponse = client.listTasks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTasksExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; + client.listTasks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTaskTest() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDispatchDeadline(Duration.newBuilder().build()) + .setDispatchCount(-1217252086) + .setResponseCount(424727441) + .setFirstAttempt(Attempt.newBuilder().build()) + .setLastAttempt(Attempt.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + + Task actualResponse = client.getTask(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTaskExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + client.getTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTaskTest2() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDispatchDeadline(Duration.newBuilder().build()) + .setDispatchCount(-1217252086) + .setResponseCount(424727441) + .setFirstAttempt(Attempt.newBuilder().build()) + .setLastAttempt(Attempt.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + + Task actualResponse = client.getTask(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTaskExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + client.getTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTaskTest() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDispatchDeadline(Duration.newBuilder().build()) + .setDispatchCount(-1217252086) + .setResponseCount(424727441) + .setFirstAttempt(Attempt.newBuilder().build()) + .setLastAttempt(Attempt.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Task task = Task.newBuilder().build(); + + Task actualResponse = client.createTask(parent, task); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createTaskExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Task task = Task.newBuilder().build(); + client.createTask(parent, task); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTaskTest2() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDispatchDeadline(Duration.newBuilder().build()) + .setDispatchCount(-1217252086) + .setResponseCount(424727441) + .setFirstAttempt(Attempt.newBuilder().build()) + .setLastAttempt(Attempt.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; + Task task = Task.newBuilder().build(); + + Task actualResponse = client.createTask(parent, task); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createTaskExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; + Task task = Task.newBuilder().build(); + client.createTask(parent, task); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTaskTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + + client.deleteTask(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTaskExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + client.deleteTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTaskTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + + client.deleteTask(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTaskExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + client.deleteTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void runTaskTest() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDispatchDeadline(Duration.newBuilder().build()) + .setDispatchCount(-1217252086) + .setResponseCount(424727441) + .setFirstAttempt(Attempt.newBuilder().build()) + .setLastAttempt(Attempt.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + + Task actualResponse = client.runTask(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runTaskExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + client.runTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void runTaskTest2() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDispatchDeadline(Duration.newBuilder().build()) + .setDispatchCount(-1217252086) + .setResponseCount(424727441) + .setFirstAttempt(Attempt.newBuilder().build()) + .setLastAttempt(Attempt.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + + Task actualResponse = client.runTask(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runTaskExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + client.runTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientHttpJsonTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientHttpJsonTest.java new file mode 100644 index 00000000..e7def613 --- /dev/null +++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientHttpJsonTest.java @@ -0,0 +1,1966 @@ +/* + * Copyright 2022 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; + +import static com.google.cloud.tasks.v2beta2.CloudTasksClient.ListQueuesPagedResponse; +import static com.google.cloud.tasks.v2beta2.CloudTasksClient.ListTasksPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.tasks.v2beta2.stub.HttpJsonCloudTasksStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.Policy; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.ByteString; +import com.google.protobuf.Duration; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CloudTasksClientHttpJsonTest { + private static MockHttpService mockService; + private static CloudTasksClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonCloudTasksStub.getMethodDescriptors(), CloudTasksSettings.getDefaultEndpoint()); + CloudTasksSettings settings = + CloudTasksSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + CloudTasksSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CloudTasksClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listQueuesTest() throws Exception { + Queue responsesElement = Queue.newBuilder().build(); + ListQueuesResponse expectedResponse = + ListQueuesResponse.newBuilder() + .setNextPageToken("") + .addAllQueues(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListQueuesPagedResponse pagedListResponse = client.listQueues(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getQueuesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listQueuesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listQueues(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listQueuesTest2() throws Exception { + Queue responsesElement = Queue.newBuilder().build(); + ListQueuesResponse expectedResponse = + ListQueuesResponse.newBuilder() + .setNextPageToken("") + .addAllQueues(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListQueuesPagedResponse pagedListResponse = client.listQueues(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getQueuesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listQueuesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listQueues(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getQueueTest() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + + Queue actualResponse = client.getQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getQueueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + client.getQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getQueueTest2() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + + Queue actualResponse = client.getQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getQueueExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + client.getQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createQueueTest() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Queue queue = Queue.newBuilder().build(); + + Queue actualResponse = client.createQueue(parent, queue); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createQueueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Queue queue = Queue.newBuilder().build(); + client.createQueue(parent, queue); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createQueueTest2() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + Queue queue = Queue.newBuilder().build(); + + Queue actualResponse = client.createQueue(parent, queue); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createQueueExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Queue queue = Queue.newBuilder().build(); + client.createQueue(parent, queue); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateQueueTest() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Queue queue = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Queue actualResponse = client.updateQueue(queue, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateQueueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Queue queue = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateQueue(queue, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteQueueTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + + client.deleteQueue(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteQueueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + client.deleteQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteQueueTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + + client.deleteQueue(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteQueueExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + client.deleteQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void purgeQueueTest() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + + Queue actualResponse = client.purgeQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void purgeQueueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + client.purgeQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void purgeQueueTest2() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + + Queue actualResponse = client.purgeQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void purgeQueueExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + client.purgeQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void pauseQueueTest() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + + Queue actualResponse = client.pauseQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void pauseQueueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + client.pauseQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void pauseQueueTest2() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + + Queue actualResponse = client.pauseQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void pauseQueueExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + client.pauseQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void resumeQueueTest() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + + Queue actualResponse = client.resumeQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void resumeQueueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + client.resumeQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void resumeQueueTest2() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + + Queue actualResponse = client.resumeQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void resumeQueueExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + client.resumeQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest2() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTasksTest() throws Exception { + Task responsesElement = Task.newBuilder().build(); + ListTasksResponse expectedResponse = + ListTasksResponse.newBuilder() + .setNextPageToken("") + .addAllTasks(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + + ListTasksPagedResponse pagedListResponse = client.listTasks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTasksExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + client.listTasks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTasksTest2() throws Exception { + Task responsesElement = Task.newBuilder().build(); + ListTasksResponse expectedResponse = + ListTasksResponse.newBuilder() + .setNextPageToken("") + .addAllTasks(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; + + ListTasksPagedResponse pagedListResponse = client.listTasks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTasksExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; + client.listTasks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTaskTest() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStatus(TaskStatus.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + + Task actualResponse = client.getTask(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTaskExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + client.getTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTaskTest2() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStatus(TaskStatus.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + + Task actualResponse = client.getTask(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTaskExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + client.getTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTaskTest() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStatus(TaskStatus.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Task task = Task.newBuilder().build(); + + Task actualResponse = client.createTask(parent, task); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createTaskExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Task task = Task.newBuilder().build(); + client.createTask(parent, task); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTaskTest2() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStatus(TaskStatus.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; + Task task = Task.newBuilder().build(); + + Task actualResponse = client.createTask(parent, task); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createTaskExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; + Task task = Task.newBuilder().build(); + client.createTask(parent, task); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTaskTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + + client.deleteTask(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTaskExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + client.deleteTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTaskTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + + client.deleteTask(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTaskExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + client.deleteTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void leaseTasksTest() throws Exception { + LeaseTasksResponse expectedResponse = + LeaseTasksResponse.newBuilder().addAllTasks(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Duration leaseDuration = Duration.newBuilder().build(); + + LeaseTasksResponse actualResponse = client.leaseTasks(parent, leaseDuration); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void leaseTasksExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Duration leaseDuration = Duration.newBuilder().build(); + client.leaseTasks(parent, leaseDuration); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void leaseTasksTest2() throws Exception { + LeaseTasksResponse expectedResponse = + LeaseTasksResponse.newBuilder().addAllTasks(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; + Duration leaseDuration = Duration.newBuilder().build(); + + LeaseTasksResponse actualResponse = client.leaseTasks(parent, leaseDuration); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void leaseTasksExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; + Duration leaseDuration = Duration.newBuilder().build(); + client.leaseTasks(parent, leaseDuration); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void acknowledgeTaskTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + + client.acknowledgeTask(name, scheduleTime); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void acknowledgeTaskExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + client.acknowledgeTask(name, scheduleTime); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void acknowledgeTaskTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + Timestamp scheduleTime = Timestamp.newBuilder().build(); + + client.acknowledgeTask(name, scheduleTime); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void acknowledgeTaskExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + Timestamp scheduleTime = Timestamp.newBuilder().build(); + client.acknowledgeTask(name, scheduleTime); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void renewLeaseTest() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStatus(TaskStatus.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + Duration leaseDuration = Duration.newBuilder().build(); + + Task actualResponse = client.renewLease(name, scheduleTime, leaseDuration); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void renewLeaseExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + Duration leaseDuration = Duration.newBuilder().build(); + client.renewLease(name, scheduleTime, leaseDuration); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void renewLeaseTest2() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStatus(TaskStatus.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + Timestamp scheduleTime = Timestamp.newBuilder().build(); + Duration leaseDuration = Duration.newBuilder().build(); + + Task actualResponse = client.renewLease(name, scheduleTime, leaseDuration); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void renewLeaseExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + Timestamp scheduleTime = Timestamp.newBuilder().build(); + Duration leaseDuration = Duration.newBuilder().build(); + client.renewLease(name, scheduleTime, leaseDuration); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void cancelLeaseTest() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStatus(TaskStatus.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + + Task actualResponse = client.cancelLease(name, scheduleTime); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void cancelLeaseExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + client.cancelLease(name, scheduleTime); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void cancelLeaseTest2() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStatus(TaskStatus.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + Timestamp scheduleTime = Timestamp.newBuilder().build(); + + Task actualResponse = client.cancelLease(name, scheduleTime); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void cancelLeaseExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + Timestamp scheduleTime = Timestamp.newBuilder().build(); + client.cancelLease(name, scheduleTime); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void runTaskTest() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStatus(TaskStatus.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + + Task actualResponse = client.runTask(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runTaskExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + client.runTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void runTaskTest2() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setStatus(TaskStatus.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + + Task actualResponse = client.runTask(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runTaskExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + client.runTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientHttpJsonTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientHttpJsonTest.java new file mode 100644 index 00000000..00cd0812 --- /dev/null +++ b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientHttpJsonTest.java @@ -0,0 +1,1628 @@ +/* + * Copyright 2022 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.v2beta3; + +import static com.google.cloud.tasks.v2beta3.CloudTasksClient.ListQueuesPagedResponse; +import static com.google.cloud.tasks.v2beta3.CloudTasksClient.ListTasksPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.tasks.v2beta3.stub.HttpJsonCloudTasksStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.Policy; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.ByteString; +import com.google.protobuf.Duration; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CloudTasksClientHttpJsonTest { + private static MockHttpService mockService; + private static CloudTasksClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonCloudTasksStub.getMethodDescriptors(), CloudTasksSettings.getDefaultEndpoint()); + CloudTasksSettings settings = + CloudTasksSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + CloudTasksSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CloudTasksClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listQueuesTest() throws Exception { + Queue responsesElement = Queue.newBuilder().build(); + ListQueuesResponse expectedResponse = + ListQueuesResponse.newBuilder() + .setNextPageToken("") + .addAllQueues(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListQueuesPagedResponse pagedListResponse = client.listQueues(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getQueuesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listQueuesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listQueues(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listQueuesTest2() throws Exception { + Queue responsesElement = Queue.newBuilder().build(); + ListQueuesResponse expectedResponse = + ListQueuesResponse.newBuilder() + .setNextPageToken("") + .addAllQueues(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListQueuesPagedResponse pagedListResponse = client.listQueues(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getQueuesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listQueuesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listQueues(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getQueueTest() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + + Queue actualResponse = client.getQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getQueueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + client.getQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getQueueTest2() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + + Queue actualResponse = client.getQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getQueueExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + client.getQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createQueueTest() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Queue queue = Queue.newBuilder().build(); + + Queue actualResponse = client.createQueue(parent, queue); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createQueueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Queue queue = Queue.newBuilder().build(); + client.createQueue(parent, queue); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createQueueTest2() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + Queue queue = Queue.newBuilder().build(); + + Queue actualResponse = client.createQueue(parent, queue); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createQueueExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Queue queue = Queue.newBuilder().build(); + client.createQueue(parent, queue); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateQueueTest() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Queue queue = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Queue actualResponse = client.updateQueue(queue, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateQueueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Queue queue = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateQueue(queue, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteQueueTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + + client.deleteQueue(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteQueueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + client.deleteQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteQueueTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + + client.deleteQueue(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteQueueExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + client.deleteQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void purgeQueueTest() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + + Queue actualResponse = client.purgeQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void purgeQueueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + client.purgeQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void purgeQueueTest2() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + + Queue actualResponse = client.purgeQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void purgeQueueExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + client.purgeQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void pauseQueueTest() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + + Queue actualResponse = client.pauseQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void pauseQueueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + client.pauseQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void pauseQueueTest2() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + + Queue actualResponse = client.pauseQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void pauseQueueExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + client.pauseQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void resumeQueueTest() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + + Queue actualResponse = client.resumeQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void resumeQueueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + client.resumeQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void resumeQueueTest2() throws Exception { + Queue expectedResponse = + Queue.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setRateLimits(RateLimits.newBuilder().build()) + .setRetryConfig(RetryConfig.newBuilder().build()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setTaskTtl(Duration.newBuilder().build()) + .setTombstoneTtl(Duration.newBuilder().build()) + .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) + .setStats(QueueStats.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + + Queue actualResponse = client.resumeQueue(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void resumeQueueExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; + client.resumeQueue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest2() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; + List permissions = new ArrayList<>(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; + List permissions = new ArrayList<>(); + client.testIamPermissions(resource, permissions); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTasksTest() throws Exception { + Task responsesElement = Task.newBuilder().build(); + ListTasksResponse expectedResponse = + ListTasksResponse.newBuilder() + .setNextPageToken("") + .addAllTasks(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + + ListTasksPagedResponse pagedListResponse = client.listTasks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTasksExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + client.listTasks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTasksTest2() throws Exception { + Task responsesElement = Task.newBuilder().build(); + ListTasksResponse expectedResponse = + ListTasksResponse.newBuilder() + .setNextPageToken("") + .addAllTasks(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; + + ListTasksPagedResponse pagedListResponse = client.listTasks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listTasksExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; + client.listTasks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTaskTest() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDispatchDeadline(Duration.newBuilder().build()) + .setDispatchCount(-1217252086) + .setResponseCount(424727441) + .setFirstAttempt(Attempt.newBuilder().build()) + .setLastAttempt(Attempt.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + + Task actualResponse = client.getTask(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTaskExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + client.getTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTaskTest2() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDispatchDeadline(Duration.newBuilder().build()) + .setDispatchCount(-1217252086) + .setResponseCount(424727441) + .setFirstAttempt(Attempt.newBuilder().build()) + .setLastAttempt(Attempt.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + + Task actualResponse = client.getTask(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getTaskExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + client.getTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTaskTest() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDispatchDeadline(Duration.newBuilder().build()) + .setDispatchCount(-1217252086) + .setResponseCount(424727441) + .setFirstAttempt(Attempt.newBuilder().build()) + .setLastAttempt(Attempt.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Task task = Task.newBuilder().build(); + + Task actualResponse = client.createTask(parent, task); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createTaskExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Task task = Task.newBuilder().build(); + client.createTask(parent, task); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createTaskTest2() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDispatchDeadline(Duration.newBuilder().build()) + .setDispatchCount(-1217252086) + .setResponseCount(424727441) + .setFirstAttempt(Attempt.newBuilder().build()) + .setLastAttempt(Attempt.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; + Task task = Task.newBuilder().build(); + + Task actualResponse = client.createTask(parent, task); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createTaskExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; + Task task = Task.newBuilder().build(); + client.createTask(parent, task); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTaskTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + + client.deleteTask(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTaskExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + client.deleteTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteTaskTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + + client.deleteTask(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteTaskExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + client.deleteTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void runTaskTest() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDispatchDeadline(Duration.newBuilder().build()) + .setDispatchCount(-1217252086) + .setResponseCount(424727441) + .setFirstAttempt(Attempt.newBuilder().build()) + .setLastAttempt(Attempt.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + + Task actualResponse = client.runTask(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runTaskExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + client.runTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void runTaskTest2() throws Exception { + Task expectedResponse = + Task.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDispatchDeadline(Duration.newBuilder().build()) + .setDispatchCount(-1217252086) + .setResponseCount(424727441) + .setFirstAttempt(Attempt.newBuilder().build()) + .setLastAttempt(Attempt.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + + Task actualResponse = client.runTask(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runTaskExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; + client.runTask(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} From 80b710b5fc8c19a7c247a120c8ab56de7a1e7e8e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 30 Jun 2022 02:16:28 +0000 Subject: [PATCH 311/401] chore: Disable CLIRR checks on releas (#1474) (#705) Source-Link: https://github.com/googleapis/synthtool/commit/7a220e27993a25ab3cda26510d5619d97b6952a9 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:6d4e3a15c62cfdcb823d60e16da7521e7c6fc00eba07c8ff12e4de9924a57d28 --- .github/.OwlBot.lock.yaml | 4 ++-- .kokoro/release/stage.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index f0625e4d..a454a61e 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:1ec28a46062b19135b11178ceee60231e5f5a92dab454e23ae0aab72cd875906 -# created: 2022-06-27T15:01:06.405564326Z + digest: sha256:6d4e3a15c62cfdcb823d60e16da7521e7c6fc00eba07c8ff12e4de9924a57d28 +# created: 2022-06-29T23:17:33.110417661Z diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh index 77dc4e8f..1dba8de1 100755 --- a/.kokoro/release/stage.sh +++ b/.kokoro/release/stage.sh @@ -32,6 +32,7 @@ retry_with_backoff 3 10 \ mvn clean deploy -B \ --settings ${MAVEN_SETTINGS_FILE} \ -DskipTests=true \ + -Dclirr.skip=true \ -DperformRelease=true \ -Dgpg.executable=gpg \ -Dgpg.passphrase=${GPG_PASSPHRASE} \ @@ -42,4 +43,4 @@ then mvn nexus-staging:release -B \ -DperformRelease=true \ --settings=settings.xml -fi \ No newline at end of file +fi From 4788bcbbb66529b7e1f64ed5ee35cf8c6950b331 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Fri, 1 Jul 2022 10:34:11 -0400 Subject: [PATCH 312/401] ci: removing clirr from required checks (#703) Making CLIRR not required. The version bumps are now controlled by the Release Please and OwlBot. The CL authors create appropriate change description to control major version bumps. --- .github/sync-repo-settings.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 6d660c1a..06c252fc 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -11,7 +11,6 @@ branchProtectionRules: - dependencies (8) - dependencies (11) - lint - - clirr - units (8) - units (11) - 'Kokoro - Test: Integration' @@ -26,7 +25,6 @@ branchProtectionRules: - dependencies (8) - dependencies (11) - lint - - clirr - units (7) - units (8) - units (11) @@ -41,7 +39,6 @@ branchProtectionRules: - dependencies (8) - dependencies (11) - lint - - clirr - units (8) - units (11) - 'Kokoro - Test: Integration' @@ -56,7 +53,6 @@ branchProtectionRules: - dependencies (8) - dependencies (11) - lint - - clirr - units (8) - units (11) - 'Kokoro - Test: Integration' From 2ab7226016947b94dca91d1b57812b204c3fd407 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 1 Jul 2022 19:22:17 +0000 Subject: [PATCH 313/401] chore(main): release 2.3.0 (#698) :robot: I have created a release *beep* *boop* --- ## [2.3.0](https://github.com/googleapis/java-tasks/compare/v2.2.0...v2.3.0) (2022-07-01) ### Features * Enable REST transport for most of Java and Go clients ([#690](https://github.com/googleapis/java-tasks/issues/690)) ([3a06bdf](https://github.com/googleapis/java-tasks/commit/3a06bdf6ca4f1ac35b0721f15e2f8a7421185b9f)) ### Documentation * **sample:** clean up README for native image sample ([#697](https://github.com/googleapis/java-tasks/issues/697)) ([81677de](https://github.com/googleapis/java-tasks/commit/81677defcf97f51b0e9583e4fbace23eb07fc178)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#701](https://github.com/googleapis/java-tasks/issues/701)) ([52e4d94](https://github.com/googleapis/java-tasks/commit/52e4d94481c94707f8862d13564dd1c39ffcb803)) * update dependency org.graalvm.buildtools:junit-platform-native to v0.9.12 ([#699](https://github.com/googleapis/java-tasks/issues/699)) ([267d116](https://github.com/googleapis/java-tasks/commit/267d11694a769b425e507a2f823cbba8842c33f7)) * update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.12 ([#700](https://github.com/googleapis/java-tasks/issues/700)) ([f14d923](https://github.com/googleapis/java-tasks/commit/f14d92364771f5e519b8812292f1c4382f806b63)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 19 +++++++++++++++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 56 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a9f139f..ec99a361 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [2.3.0](https://github.com/googleapis/java-tasks/compare/v2.2.0...v2.3.0) (2022-07-01) + + +### Features + +* Enable REST transport for most of Java and Go clients ([#690](https://github.com/googleapis/java-tasks/issues/690)) ([3a06bdf](https://github.com/googleapis/java-tasks/commit/3a06bdf6ca4f1ac35b0721f15e2f8a7421185b9f)) + + +### Documentation + +* **sample:** clean up README for native image sample ([#697](https://github.com/googleapis/java-tasks/issues/697)) ([81677de](https://github.com/googleapis/java-tasks/commit/81677defcf97f51b0e9583e4fbace23eb07fc178)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#701](https://github.com/googleapis/java-tasks/issues/701)) ([52e4d94](https://github.com/googleapis/java-tasks/commit/52e4d94481c94707f8862d13564dd1c39ffcb803)) +* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.12 ([#699](https://github.com/googleapis/java-tasks/issues/699)) ([267d116](https://github.com/googleapis/java-tasks/commit/267d11694a769b425e507a2f823cbba8842c33f7)) +* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.12 ([#700](https://github.com/googleapis/java-tasks/issues/700)) ([f14d923](https://github.com/googleapis/java-tasks/commit/f14d92364771f5e519b8812292f1c4382f806b63)) + ## [2.2.0](https://github.com/googleapis/java-tasks/compare/v2.1.11...v2.2.0) (2022-05-19) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 17a65f47..92a530f6 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.2.1-SNAPSHOT + 2.3.0 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.2.1-SNAPSHOT + 2.3.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.92.1-SNAPSHOT + 0.93.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.92.1-SNAPSHOT + 0.93.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.2.1-SNAPSHOT + 2.3.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.92.1-SNAPSHOT + 0.93.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.92.1-SNAPSHOT + 0.93.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.2.1-SNAPSHOT + 2.3.0 diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index c6817d84..ca9537e3 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.2.1-SNAPSHOT + 2.3.0 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.2.1-SNAPSHOT + 2.3.0 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index bf57e290..e8a710d3 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.2.1-SNAPSHOT + 2.3.0 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.2.1-SNAPSHOT + 2.3.0 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 09276bc7..cdd7156f 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.92.1-SNAPSHOT + 0.93.0 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.2.1-SNAPSHOT + 2.3.0 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 34df9f2e..74510957 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.92.1-SNAPSHOT + 0.93.0 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.2.1-SNAPSHOT + 2.3.0 diff --git a/pom.xml b/pom.xml index 82e87280..d196e2c3 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.2.1-SNAPSHOT + 2.3.0 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.92.1-SNAPSHOT + 0.93.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.92.1-SNAPSHOT + 0.93.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.2.1-SNAPSHOT + 2.3.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.92.1-SNAPSHOT + 0.93.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.92.1-SNAPSHOT + 0.93.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.2.1-SNAPSHOT + 2.3.0 com.google.cloud google-cloud-tasks - 2.2.1-SNAPSHOT + 2.3.0 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index af419c6a..efe48ae2 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.2.1-SNAPSHOT + 2.3.0 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.2.1-SNAPSHOT + 2.3.0 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index fdb2e38a..bade77e2 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.92.1-SNAPSHOT + 0.93.0 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.2.1-SNAPSHOT + 2.3.0 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index c8a28f0f..30f8706e 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.92.1-SNAPSHOT + 0.93.0 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.2.1-SNAPSHOT + 2.3.0 diff --git a/versions.txt b/versions.txt index e0aab656..7c464f9c 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.2.0:2.2.1-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.92.0:0.92.1-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.92.0:0.92.1-SNAPSHOT -grpc-google-cloud-tasks-v2:2.2.0:2.2.1-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.92.0:0.92.1-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.92.0:0.92.1-SNAPSHOT -proto-google-cloud-tasks-v2:2.2.0:2.2.1-SNAPSHOT +google-cloud-tasks:2.3.0:2.3.0 +grpc-google-cloud-tasks-v2beta3:0.93.0:0.93.0 +grpc-google-cloud-tasks-v2beta2:0.93.0:0.93.0 +grpc-google-cloud-tasks-v2:2.3.0:2.3.0 +proto-google-cloud-tasks-v2beta3:0.93.0:0.93.0 +proto-google-cloud-tasks-v2beta2:0.93.0:0.93.0 +proto-google-cloud-tasks-v2:2.3.0:2.3.0 From 421e766f7429bf65846a00848e9defc98dae4b97 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 1 Jul 2022 19:28:30 +0000 Subject: [PATCH 314/401] chore(main): release 2.3.1-SNAPSHOT (#706) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 92a530f6..171a3fe7 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.0 + 2.3.1-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.0 + 2.3.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.0 + 0.93.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.0 + 0.93.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.0 + 2.3.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.0 + 0.93.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.0 + 0.93.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.0 + 2.3.1-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index ca9537e3..013b6caf 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.0 + 2.3.1-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.0 + 2.3.1-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index e8a710d3..4af285d0 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.0 + 2.3.1-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.0 + 2.3.1-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index cdd7156f..df3f50e4 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.0 + 0.93.1-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.0 + 2.3.1-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 74510957..f73b8ce7 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.0 + 0.93.1-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.0 + 2.3.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index d196e2c3..2906ef97 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.0 + 2.3.1-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.0 + 0.93.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.0 + 0.93.1-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.0 + 2.3.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.0 + 0.93.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.0 + 0.93.1-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.0 + 2.3.1-SNAPSHOT com.google.cloud google-cloud-tasks - 2.3.0 + 2.3.1-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index efe48ae2..6dec612c 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.0 + 2.3.1-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.0 + 2.3.1-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index bade77e2..1700f180 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.0 + 0.93.1-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.0 + 2.3.1-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 30f8706e..70cb87cb 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.0 + 0.93.1-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.0 + 2.3.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 7c464f9c..aedf1609 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.0:2.3.0 -grpc-google-cloud-tasks-v2beta3:0.93.0:0.93.0 -grpc-google-cloud-tasks-v2beta2:0.93.0:0.93.0 -grpc-google-cloud-tasks-v2:2.3.0:2.3.0 -proto-google-cloud-tasks-v2beta3:0.93.0:0.93.0 -proto-google-cloud-tasks-v2beta2:0.93.0:0.93.0 -proto-google-cloud-tasks-v2:2.3.0:2.3.0 +google-cloud-tasks:2.3.0:2.3.1-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.93.0:0.93.1-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.93.0:0.93.1-SNAPSHOT +grpc-google-cloud-tasks-v2:2.3.0:2.3.1-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.93.0:0.93.1-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.93.0:0.93.1-SNAPSHOT +proto-google-cloud-tasks-v2:2.3.0:2.3.1-SNAPSHOT From 1b40d9158544a2afafceb18110c0bd704cbedfd0 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 8 Jul 2022 21:14:20 +0000 Subject: [PATCH 315/401] chore: fix minor typos in README and pom templates (#1479) (#709) Source-Link: https://github.com/googleapis/synthtool/commit/18d4e9bb50d0dfb3291de18c51b96a2c835e2446 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:f8374176dc59291f05dd3fec927a9da2cda687a9ef4de32e77f699a2be12ab45 --- .github/.OwlBot.lock.yaml | 4 ++-- README.md | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index a454a61e..1b645c01 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:6d4e3a15c62cfdcb823d60e16da7521e7c6fc00eba07c8ff12e4de9924a57d28 -# created: 2022-06-29T23:17:33.110417661Z + digest: sha256:f8374176dc59291f05dd3fec927a9da2cda687a9ef4de32e77f699a2be12ab45 +# created: 2022-07-07T14:26:11.880812641Z diff --git a/README.md b/README.md index 950ffbdb..17b6d934 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.2.0 + 2.3.0 ``` -If you are using Gradle without BOM, add this to your dependencies +If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.2.0' +implementation 'com.google.cloud:google-cloud-tasks:2.3.0' ``` -If you are using SBT, add this to your dependencies +If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.0" ``` ## Authentication From c50d434153f6af0d67b10afcb6cfd85529030ce9 Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Mon, 11 Jul 2022 14:27:50 -0400 Subject: [PATCH 316/401] chore: add native image checks as required (#704) --- .github/sync-repo-settings.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 06c252fc..38ba1b96 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -16,6 +16,8 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - cla/google - OwlBot Post Processor + - 'Kokoro - Test: Java GraalVM Native Image' + - 'Kokoro - Test: Java 17 GraalVM Native Image' - pattern: java7 isAdminEnforced: true requiredApprovingReviewCount: 1 From 8c15f85bf81f46a49a43946b95dc1f2a94a49ed0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 11 Jul 2022 20:28:02 +0200 Subject: [PATCH 317/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.1 (#707) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 171a3fe7..d8be2c29 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.5.0 + 1.5.1 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index 2906ef97..3f9ff588 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.5.0 + 1.5.1 From 908257572e773e469ccec634ac81c819be745b10 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 11 Jul 2022 20:28:13 +0200 Subject: [PATCH 318/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.3.0 (#708) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.3.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 4ca7ece1..9d253982 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.2.0 + 2.3.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e8934131..927083ff 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.2.0 + 2.3.0 From 34b877d1b64f802e8a217eb02832209df6478e1c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 11 Jul 2022 20:28:36 +0200 Subject: [PATCH 319/401] chore(deps): update dependency com.google.cloud:libraries-bom to v26 (#710) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 85cb578c..beefea00 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -29,7 +29,7 @@ com.google.cloud libraries-bom - 25.4.0 + 26.0.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 9df79d6e..7aaba932 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.4.0 + 26.0.0 pom import From ac338a8125cb7c5eea5bffa88e52a7f46784f3c4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 13 Jul 2022 19:24:34 +0000 Subject: [PATCH 320/401] fix: enable longpaths support for windows test (#1485) (#713) Source-Link: https://github.com/googleapis/synthtool/commit/73365620c41d96e97ff474b2c4d39b890ad51967 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:d4b80feffe1579818cdc39466152e9de95789a193408506cd4a1ffbe8804dc00 --- .github/.OwlBot.lock.yaml | 4 ++-- .github/workflows/ci.yaml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 1b645c01..de9173d9 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:f8374176dc59291f05dd3fec927a9da2cda687a9ef4de32e77f699a2be12ab45 -# created: 2022-07-07T14:26:11.880812641Z + digest: sha256:d4b80feffe1579818cdc39466152e9de95789a193408506cd4a1ffbe8804dc00 +# created: 2022-07-13T13:53:17.676447481Z diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 83ef7f9c..e3bb26e3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -39,6 +39,8 @@ jobs: windows: runs-on: windows-latest steps: + - name: Support longpaths + run: git config --system core.longpaths true - uses: actions/checkout@v3 - uses: actions/setup-java@v3 with: From cefa502d0715f8e188d491b290cbb59d79e3d171 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 14 Jul 2022 14:14:17 +0000 Subject: [PATCH 321/401] chore(main): release 2.3.1 (#714) :robot: I have created a release *beep* *boop* --- ## [2.3.1](https://github.com/googleapis/java-tasks/compare/v2.3.0...v2.3.1) (2022-07-13) ### Bug Fixes * enable longpaths support for windows test ([#1485](https://github.com/googleapis/java-tasks/issues/1485)) ([#713](https://github.com/googleapis/java-tasks/issues/713)) ([ac338a8](https://github.com/googleapis/java-tasks/commit/ac338a8125cb7c5eea5bffa88e52a7f46784f3c4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec99a361..eea6c520 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.3.1](https://github.com/googleapis/java-tasks/compare/v2.3.0...v2.3.1) (2022-07-13) + + +### Bug Fixes + +* enable longpaths support for windows test ([#1485](https://github.com/googleapis/java-tasks/issues/1485)) ([#713](https://github.com/googleapis/java-tasks/issues/713)) ([ac338a8](https://github.com/googleapis/java-tasks/commit/ac338a8125cb7c5eea5bffa88e52a7f46784f3c4)) + ## [2.3.0](https://github.com/googleapis/java-tasks/compare/v2.2.0...v2.3.0) (2022-07-01) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index d8be2c29..e11520f5 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.1-SNAPSHOT + 2.3.1 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.1-SNAPSHOT + 2.3.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.1-SNAPSHOT + 0.93.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.1-SNAPSHOT + 0.93.1 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.1-SNAPSHOT + 2.3.1 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.1-SNAPSHOT + 0.93.1 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.1-SNAPSHOT + 0.93.1 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.1-SNAPSHOT + 2.3.1 diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 013b6caf..5caa4e66 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.1-SNAPSHOT + 2.3.1 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.1-SNAPSHOT + 2.3.1 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 4af285d0..5135233b 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.1-SNAPSHOT + 2.3.1 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.1-SNAPSHOT + 2.3.1 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index df3f50e4..98b0c652 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.1-SNAPSHOT + 0.93.1 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.1-SNAPSHOT + 2.3.1 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index f73b8ce7..5e9e4c01 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.1-SNAPSHOT + 0.93.1 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.1-SNAPSHOT + 2.3.1 diff --git a/pom.xml b/pom.xml index 3f9ff588..ea090d28 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.1-SNAPSHOT + 2.3.1 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.1-SNAPSHOT + 0.93.1 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.1-SNAPSHOT + 0.93.1 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.1-SNAPSHOT + 2.3.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.1-SNAPSHOT + 0.93.1 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.1-SNAPSHOT + 0.93.1 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.1-SNAPSHOT + 2.3.1 com.google.cloud google-cloud-tasks - 2.3.1-SNAPSHOT + 2.3.1 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 6dec612c..db196c31 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.1-SNAPSHOT + 2.3.1 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.1-SNAPSHOT + 2.3.1 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 1700f180..c2c85d29 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.1-SNAPSHOT + 0.93.1 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.1-SNAPSHOT + 2.3.1 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 70cb87cb..262afc0d 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.1-SNAPSHOT + 0.93.1 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.1-SNAPSHOT + 2.3.1 diff --git a/versions.txt b/versions.txt index aedf1609..d2c2e6e9 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.0:2.3.1-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.93.0:0.93.1-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.93.0:0.93.1-SNAPSHOT -grpc-google-cloud-tasks-v2:2.3.0:2.3.1-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.93.0:0.93.1-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.93.0:0.93.1-SNAPSHOT -proto-google-cloud-tasks-v2:2.3.0:2.3.1-SNAPSHOT +google-cloud-tasks:2.3.1:2.3.1 +grpc-google-cloud-tasks-v2beta3:0.93.1:0.93.1 +grpc-google-cloud-tasks-v2beta2:0.93.1:0.93.1 +grpc-google-cloud-tasks-v2:2.3.1:2.3.1 +proto-google-cloud-tasks-v2beta3:0.93.1:0.93.1 +proto-google-cloud-tasks-v2beta2:0.93.1:0.93.1 +proto-google-cloud-tasks-v2:2.3.1:2.3.1 From 581c9c26281edfe6b6218e3621051b9a010641f3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 15 Jul 2022 19:00:18 +0200 Subject: [PATCH 322/401] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.13 (#711) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:junit-platform-native](https://togithub.com/graalvm/native-build-tools) | `0.9.12` -> `0.9.13` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.13/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.13/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.13/compatibility-slim/0.9.12)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.13/confidence-slim/0.9.12)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes

graalvm/native-build-tools ### [`v0.9.13`](https://togithub.com/graalvm/native-build-tools/releases/tag/0.9.13) [Compare Source](https://togithub.com/graalvm/native-build-tools/compare/0.9.12...0.9.13) ##### What's Changed Read what's new in the [documentation](https://graalvm.github.io/native-build-tools/latest/index.html#changelog). - Restore `NativeImagePlugin.NATIVE_TEST_EXTENSION` by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/256](https://togithub.com/graalvm/native-build-tools/pull/256) - Fix JUnit annotation scanning during the image build by [@​gradinac](https://togithub.com/gradinac) in [https://github.com/graalvm/native-build-tools/pull/258](https://togithub.com/graalvm/native-build-tools/pull/258) - Change reachability metadata fallback path by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/257](https://togithub.com/graalvm/native-build-tools/pull/257) - Add a DSL option that enables the native-image agent by [@​gradinac](https://togithub.com/gradinac) in [https://github.com/graalvm/native-build-tools/pull/263](https://togithub.com/graalvm/native-build-tools/pull/263) - Bump dependency versions by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/264](https://togithub.com/graalvm/native-build-tools/pull/264) - Rename `jvm-reachability-metadata` -> `graalvm-reachability-metadata` by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/265](https://togithub.com/graalvm/native-build-tools/pull/265) - Final PR for the metadata repo by [@​vjovanov](https://togithub.com/vjovanov) in [https://github.com/graalvm/native-build-tools/pull/266](https://togithub.com/graalvm/native-build-tools/pull/266) ##### New Contributors - [@​vjovanov](https://togithub.com/vjovanov) made their first contribution in [https://github.com/graalvm/native-build-tools/pull/266](https://togithub.com/graalvm/native-build-tools/pull/266) **Full Changelog**: https://github.com/graalvm/native-build-tools/compare/0.9.12...0.9.13
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index beefea00..ee8e6a50 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -88,7 +88,7 @@ org.graalvm.buildtools junit-platform-native - 0.9.12 + 0.9.13 test From d01c068098aa44eedc0678c6adf7e06d5f544b8d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 15 Jul 2022 19:02:12 +0200 Subject: [PATCH 323/401] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.13 (#712) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:native-maven-plugin](https://togithub.com/graalvm/native-build-tools) | `0.9.12` -> `0.9.13` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.13/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.13/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.13/compatibility-slim/0.9.12)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.13/confidence-slim/0.9.12)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
graalvm/native-build-tools ### [`v0.9.13`](https://togithub.com/graalvm/native-build-tools/releases/tag/0.9.13) [Compare Source](https://togithub.com/graalvm/native-build-tools/compare/0.9.12...0.9.13) ##### What's Changed Read what's new in the [documentation](https://graalvm.github.io/native-build-tools/latest/index.html#changelog). - Restore `NativeImagePlugin.NATIVE_TEST_EXTENSION` by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/256](https://togithub.com/graalvm/native-build-tools/pull/256) - Fix JUnit annotation scanning during the image build by [@​gradinac](https://togithub.com/gradinac) in [https://github.com/graalvm/native-build-tools/pull/258](https://togithub.com/graalvm/native-build-tools/pull/258) - Change reachability metadata fallback path by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/257](https://togithub.com/graalvm/native-build-tools/pull/257) - Add a DSL option that enables the native-image agent by [@​gradinac](https://togithub.com/gradinac) in [https://github.com/graalvm/native-build-tools/pull/263](https://togithub.com/graalvm/native-build-tools/pull/263) - Bump dependency versions by [@​lazar-mitrovic](https://togithub.com/lazar-mitrovic) in [https://github.com/graalvm/native-build-tools/pull/264](https://togithub.com/graalvm/native-build-tools/pull/264) - Rename `jvm-reachability-metadata` -> `graalvm-reachability-metadata` by [@​melix](https://togithub.com/melix) in [https://github.com/graalvm/native-build-tools/pull/265](https://togithub.com/graalvm/native-build-tools/pull/265) - Final PR for the metadata repo by [@​vjovanov](https://togithub.com/vjovanov) in [https://github.com/graalvm/native-build-tools/pull/266](https://togithub.com/graalvm/native-build-tools/pull/266) ##### New Contributors - [@​vjovanov](https://togithub.com/vjovanov) made their first contribution in [https://github.com/graalvm/native-build-tools/pull/266](https://togithub.com/graalvm/native-build-tools/pull/266) **Full Changelog**: https://github.com/graalvm/native-build-tools/compare/0.9.12...0.9.13
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index ee8e6a50..510810a5 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -108,7 +108,7 @@ org.graalvm.buildtools native-maven-plugin - 0.9.12 + 0.9.13 true com.example.tasks.TasksSampleApplication From b1cbf42b886fcaec55b4cb64822a196ac1362165 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 18 Jul 2022 17:10:12 +0200 Subject: [PATCH 324/401] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.4.0 (#717) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) | `3.3.0` -> `3.4.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/compatibility-slim/3.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/confidence-slim/3.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ea090d28..f6f0efc3 100644 --- a/pom.xml +++ b/pom.xml @@ -144,7 +144,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.3.0 + 3.4.0 From 65a6606168aa9756974a208fba394d7c0449e6a5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 19 Jul 2022 19:28:19 +0200 Subject: [PATCH 325/401] build(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3 (#719) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-deploy-plugin](https://maven.apache.org/plugins/) | `2.8.2` -> `3.0.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/compatibility-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/confidence-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index b8b3d105..e2f2f6fe 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -39,7 +39,7 @@ org.apache.maven.plugins maven-deploy-plugin - 2.8.2 + 3.0.0 true From 74ae4085b44480a8c682f6eae7cce41b23fac78c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 19 Jul 2022 20:54:15 +0000 Subject: [PATCH 326/401] ci: update template so GAPIC_AUTO repos do not require special approvers for Java code (#1494) (#718) Source-Link: https://github.com/googleapis/synthtool/commit/da89e53878d92467eb648c610e64f94a614915cc Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:04f254abfe5f47fe73ae6f91d68d55c3b76e722a4943066c3bb0ce03573b4ad9 --- .github/.OwlBot.lock.yaml | 4 ++-- .github/CODEOWNERS | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index de9173d9..6610882f 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:d4b80feffe1579818cdc39466152e9de95789a193408506cd4a1ffbe8804dc00 -# created: 2022-07-13T13:53:17.676447481Z + digest: sha256:04f254abfe5f47fe73ae6f91d68d55c3b76e722a4943066c3bb0ce03573b4ad9 +# created: 2022-07-18T21:44:23.94208526Z diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 5f9903d5..1578dc2f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -6,7 +6,7 @@ # The @googleapis/aap-dpes is the default owner for changes in this repo * @googleapis/yoshi-java @googleapis/aap-dpes -**/*.java @googleapis/aap-dpes + # The java-samples-reviewers team is the default owner for samples changes samples/**/*.java @googleapis/java-samples-reviewers From 264db96e930954a9453a34a11563e1ea89b87a6a Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 26 Jul 2022 19:26:52 +0000 Subject: [PATCH 327/401] ci: adjust owlbot-java for monorepo (#1500) (#720) Source-Link: https://github.com/googleapis/synthtool/commit/48f8857c642792150e2474418b1dbf545c162f8d Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:b47e411068ffc6e6990cb4e0802fbac9a4488dec7f5f424553518ba21abea208 --- .github/.OwlBot.lock.yaml | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 6610882f..f8b912ad 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:04f254abfe5f47fe73ae6f91d68d55c3b76e722a4943066c3bb0ce03573b4ad9 -# created: 2022-07-18T21:44:23.94208526Z + digest: sha256:b47e411068ffc6e6990cb4e0802fbac9a4488dec7f5f424553518ba21abea208 +# created: 2022-07-26T16:25:31.033836225Z diff --git a/README.md b/README.md index 17b6d934..4c900761 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.3.0 + 2.3.1 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.3.0' +implementation 'com.google.cloud:google-cloud-tasks:2.3.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.1" ``` ## Authentication From 46cf1406bd7e176f5e95b9457401945db78d3032 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 26 Jul 2022 19:58:40 +0000 Subject: [PATCH 328/401] chore(main): release 2.3.2-SNAPSHOT (#715) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index e11520f5..ad13b944 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.1 + 2.3.2-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.1 + 2.3.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.1 + 0.93.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.1 + 0.93.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.1 + 2.3.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.1 + 0.93.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.1 + 0.93.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.1 + 2.3.2-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 5caa4e66..05965580 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.1 + 2.3.2-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.1 + 2.3.2-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 5135233b..e0b71559 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.1 + 2.3.2-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.1 + 2.3.2-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 98b0c652..7658d358 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.1 + 0.93.2-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.1 + 2.3.2-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 5e9e4c01..bd8f3761 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.1 + 0.93.2-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.1 + 2.3.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index f6f0efc3..95e333da 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.1 + 2.3.2-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.1 + 0.93.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.1 + 0.93.2-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.1 + 2.3.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.1 + 0.93.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.1 + 0.93.2-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.1 + 2.3.2-SNAPSHOT com.google.cloud google-cloud-tasks - 2.3.1 + 2.3.2-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index db196c31..4a23b156 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.1 + 2.3.2-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.1 + 2.3.2-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index c2c85d29..cd1dc5af 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.1 + 0.93.2-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.1 + 2.3.2-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 262afc0d..d99ebf8e 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.1 + 0.93.2-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.1 + 2.3.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index d2c2e6e9..fac6a631 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.1:2.3.1 -grpc-google-cloud-tasks-v2beta3:0.93.1:0.93.1 -grpc-google-cloud-tasks-v2beta2:0.93.1:0.93.1 -grpc-google-cloud-tasks-v2:2.3.1:2.3.1 -proto-google-cloud-tasks-v2beta3:0.93.1:0.93.1 -proto-google-cloud-tasks-v2beta2:0.93.1:0.93.1 -proto-google-cloud-tasks-v2:2.3.1:2.3.1 +google-cloud-tasks:2.3.1:2.3.2-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.93.1:0.93.2-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.93.1:0.93.2-SNAPSHOT +grpc-google-cloud-tasks-v2:2.3.1:2.3.2-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.93.1:0.93.2-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.93.1:0.93.2-SNAPSHOT +proto-google-cloud-tasks-v2:2.3.1:2.3.2-SNAPSHOT From 4308e752373a992e1a7f0b7e0ce00e53bd06541c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 26 Jul 2022 20:06:16 +0000 Subject: [PATCH 329/401] chore(main): release 2.3.2 (#721) :robot: I have created a release *beep* *boop* --- ## [2.3.2](https://github.com/googleapis/java-tasks/compare/v2.3.1...v2.3.2) (2022-07-26) ### Dependencies * update dependency org.graalvm.buildtools:junit-platform-native to v0.9.13 ([#711](https://github.com/googleapis/java-tasks/issues/711)) ([581c9c2](https://github.com/googleapis/java-tasks/commit/581c9c26281edfe6b6218e3621051b9a010641f3)) * update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.13 ([#712](https://github.com/googleapis/java-tasks/issues/712)) ([d01c068](https://github.com/googleapis/java-tasks/commit/d01c068098aa44eedc0678c6adf7e06d5f544b8d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 8 ++++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 45 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eea6c520..b357c1b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [2.3.2](https://github.com/googleapis/java-tasks/compare/v2.3.1...v2.3.2) (2022-07-26) + + +### Dependencies + +* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.13 ([#711](https://github.com/googleapis/java-tasks/issues/711)) ([581c9c2](https://github.com/googleapis/java-tasks/commit/581c9c26281edfe6b6218e3621051b9a010641f3)) +* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.13 ([#712](https://github.com/googleapis/java-tasks/issues/712)) ([d01c068](https://github.com/googleapis/java-tasks/commit/d01c068098aa44eedc0678c6adf7e06d5f544b8d)) + ## [2.3.1](https://github.com/googleapis/java-tasks/compare/v2.3.0...v2.3.1) (2022-07-13) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index ad13b944..09b3de8b 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.2-SNAPSHOT + 2.3.2 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.2-SNAPSHOT + 2.3.2 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.2-SNAPSHOT + 0.93.2 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.2-SNAPSHOT + 0.93.2 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.2-SNAPSHOT + 2.3.2 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.2-SNAPSHOT + 0.93.2 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.2-SNAPSHOT + 0.93.2 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.2-SNAPSHOT + 2.3.2 diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 05965580..c1715989 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.2-SNAPSHOT + 2.3.2 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.2-SNAPSHOT + 2.3.2 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index e0b71559..b29e40fc 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.2-SNAPSHOT + 2.3.2 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.2-SNAPSHOT + 2.3.2 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 7658d358..2238c4e9 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.2-SNAPSHOT + 0.93.2 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.2-SNAPSHOT + 2.3.2 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index bd8f3761..7b542bdc 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.2-SNAPSHOT + 0.93.2 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.2-SNAPSHOT + 2.3.2 diff --git a/pom.xml b/pom.xml index 95e333da..416f2060 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.2-SNAPSHOT + 2.3.2 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.2-SNAPSHOT + 0.93.2 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.2-SNAPSHOT + 0.93.2 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.2-SNAPSHOT + 2.3.2 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.2-SNAPSHOT + 0.93.2 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.2-SNAPSHOT + 0.93.2 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.2-SNAPSHOT + 2.3.2 com.google.cloud google-cloud-tasks - 2.3.2-SNAPSHOT + 2.3.2 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 4a23b156..a247454d 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.2-SNAPSHOT + 2.3.2 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.2-SNAPSHOT + 2.3.2 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index cd1dc5af..9770c579 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.2-SNAPSHOT + 0.93.2 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.2-SNAPSHOT + 2.3.2 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index d99ebf8e..d6e80e18 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.2-SNAPSHOT + 0.93.2 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.2-SNAPSHOT + 2.3.2 diff --git a/versions.txt b/versions.txt index fac6a631..a82b8104 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.1:2.3.2-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.93.1:0.93.2-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.93.1:0.93.2-SNAPSHOT -grpc-google-cloud-tasks-v2:2.3.1:2.3.2-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.93.1:0.93.2-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.93.1:0.93.2-SNAPSHOT -proto-google-cloud-tasks-v2:2.3.1:2.3.2-SNAPSHOT +google-cloud-tasks:2.3.2:2.3.2 +grpc-google-cloud-tasks-v2beta3:0.93.2:0.93.2 +grpc-google-cloud-tasks-v2beta2:0.93.2:0.93.2 +grpc-google-cloud-tasks-v2:2.3.2:2.3.2 +proto-google-cloud-tasks-v2beta3:0.93.2:0.93.2 +proto-google-cloud-tasks-v2beta2:0.93.2:0.93.2 +proto-google-cloud-tasks-v2:2.3.2:2.3.2 From 5763ee67901faff48bb41216c02662f147e3316e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 26 Jul 2022 20:16:15 +0000 Subject: [PATCH 330/401] chore(main): release 2.3.3-SNAPSHOT (#722) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 09b3de8b..b4ddbedf 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.2 + 2.3.3-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.2 + 2.3.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.2 + 0.93.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.2 + 0.93.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.2 + 2.3.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.2 + 0.93.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.2 + 0.93.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.2 + 2.3.3-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index c1715989..22a5a7b6 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.2 + 2.3.3-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.2 + 2.3.3-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index b29e40fc..5c28c2a0 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.2 + 2.3.3-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.2 + 2.3.3-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 2238c4e9..aeb3d272 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.2 + 0.93.3-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.2 + 2.3.3-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 7b542bdc..c8ddc2de 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.2 + 0.93.3-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.2 + 2.3.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index 416f2060..c96ba547 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.2 + 2.3.3-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.2 + 0.93.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.2 + 0.93.3-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.2 + 2.3.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.2 + 0.93.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.2 + 0.93.3-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.2 + 2.3.3-SNAPSHOT com.google.cloud google-cloud-tasks - 2.3.2 + 2.3.3-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index a247454d..ccbaf848 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.2 + 2.3.3-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.2 + 2.3.3-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 9770c579..ed532d57 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.2 + 0.93.3-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.2 + 2.3.3-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index d6e80e18..d439e129 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.2 + 0.93.3-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.2 + 2.3.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index a82b8104..96307e94 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.2:2.3.2 -grpc-google-cloud-tasks-v2beta3:0.93.2:0.93.2 -grpc-google-cloud-tasks-v2beta2:0.93.2:0.93.2 -grpc-google-cloud-tasks-v2:2.3.2:2.3.2 -proto-google-cloud-tasks-v2beta3:0.93.2:0.93.2 -proto-google-cloud-tasks-v2beta2:0.93.2:0.93.2 -proto-google-cloud-tasks-v2:2.3.2:2.3.2 +google-cloud-tasks:2.3.2:2.3.3-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.93.2:0.93.3-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.93.2:0.93.3-SNAPSHOT +grpc-google-cloud-tasks-v2:2.3.2:2.3.3-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.93.2:0.93.3-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.93.2:0.93.3-SNAPSHOT +proto-google-cloud-tasks-v2:2.3.2:2.3.3-SNAPSHOT From 7934b7261304b8bcb6727a4cbc86f8d7733b04c0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Jul 2022 20:56:46 +0200 Subject: [PATCH 331/401] deps: update dependency org.junit.vintage:junit-vintage-engine to v5.9.0 (#723) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.junit.vintage:junit-vintage-engine](https://junit.org/junit5/) ([source](https://togithub.com/junit-team/junit5)) | `5.8.2` -> `5.9.0` | [![age](https://badges.renovateapi.com/packages/maven/org.junit.vintage:junit-vintage-engine/5.9.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.junit.vintage:junit-vintage-engine/5.9.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.junit.vintage:junit-vintage-engine/5.9.0/compatibility-slim/5.8.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.junit.vintage:junit-vintage-engine/5.9.0/confidence-slim/5.8.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- README.md | 6 +++--- samples/native-image-sample/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4c900761..e4ca36e5 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.3.1 + 2.3.2 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.3.1' +implementation 'com.google.cloud:google-cloud-tasks:2.3.2' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.1" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.2" ``` ## Authentication diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 510810a5..375f1b0e 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -83,7 +83,7 @@ org.junit.vintage junit-vintage-engine - 5.8.2 + 5.9.0 org.graalvm.buildtools From 85729dd7d253d46a156f6fc63f3719b99e823725 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 27 Jul 2022 19:04:22 +0000 Subject: [PATCH 332/401] chore(main): release 2.3.3 (#724) :robot: I have created a release *beep* *boop* --- ## [2.3.3](https://github.com/googleapis/java-tasks/compare/v2.3.2...v2.3.3) (2022-07-27) ### Dependencies * update dependency org.junit.vintage:junit-vintage-engine to v5.9.0 ([#723](https://github.com/googleapis/java-tasks/issues/723)) ([7934b72](https://github.com/googleapis/java-tasks/commit/7934b7261304b8bcb6727a4cbc86f8d7733b04c0)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b357c1b8..49697d72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.3.3](https://github.com/googleapis/java-tasks/compare/v2.3.2...v2.3.3) (2022-07-27) + + +### Dependencies + +* update dependency org.junit.vintage:junit-vintage-engine to v5.9.0 ([#723](https://github.com/googleapis/java-tasks/issues/723)) ([7934b72](https://github.com/googleapis/java-tasks/commit/7934b7261304b8bcb6727a4cbc86f8d7733b04c0)) + ## [2.3.2](https://github.com/googleapis/java-tasks/compare/v2.3.1...v2.3.2) (2022-07-26) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index b4ddbedf..5d32c3de 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.3-SNAPSHOT + 2.3.3 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.3-SNAPSHOT + 2.3.3 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.3-SNAPSHOT + 0.93.3 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.3-SNAPSHOT + 0.93.3 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.3-SNAPSHOT + 2.3.3 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.3-SNAPSHOT + 0.93.3 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.3-SNAPSHOT + 0.93.3 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.3-SNAPSHOT + 2.3.3 diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 22a5a7b6..8c7dd4cf 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.3-SNAPSHOT + 2.3.3 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.3-SNAPSHOT + 2.3.3 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 5c28c2a0..ecf7cf45 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.3-SNAPSHOT + 2.3.3 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.3-SNAPSHOT + 2.3.3 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index aeb3d272..9c562051 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.3-SNAPSHOT + 0.93.3 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.3-SNAPSHOT + 2.3.3 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index c8ddc2de..c2f1193f 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.3-SNAPSHOT + 0.93.3 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.3-SNAPSHOT + 2.3.3 diff --git a/pom.xml b/pom.xml index c96ba547..b0a32a6f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.3-SNAPSHOT + 2.3.3 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.3-SNAPSHOT + 0.93.3 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.3-SNAPSHOT + 0.93.3 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.3-SNAPSHOT + 2.3.3 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.3-SNAPSHOT + 0.93.3 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.3-SNAPSHOT + 0.93.3 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.3-SNAPSHOT + 2.3.3 com.google.cloud google-cloud-tasks - 2.3.3-SNAPSHOT + 2.3.3 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index ccbaf848..9e53fa62 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.3-SNAPSHOT + 2.3.3 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.3-SNAPSHOT + 2.3.3 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index ed532d57..ae1288d5 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.3-SNAPSHOT + 0.93.3 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.3-SNAPSHOT + 2.3.3 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index d439e129..5a20ee57 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.3-SNAPSHOT + 0.93.3 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.3-SNAPSHOT + 2.3.3 diff --git a/versions.txt b/versions.txt index 96307e94..8c1a3fa0 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.2:2.3.3-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.93.2:0.93.3-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.93.2:0.93.3-SNAPSHOT -grpc-google-cloud-tasks-v2:2.3.2:2.3.3-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.93.2:0.93.3-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.93.2:0.93.3-SNAPSHOT -proto-google-cloud-tasks-v2:2.3.2:2.3.3-SNAPSHOT +google-cloud-tasks:2.3.3:2.3.3 +grpc-google-cloud-tasks-v2beta3:0.93.3:0.93.3 +grpc-google-cloud-tasks-v2beta2:0.93.3:0.93.3 +grpc-google-cloud-tasks-v2:2.3.3:2.3.3 +proto-google-cloud-tasks-v2beta3:0.93.3:0.93.3 +proto-google-cloud-tasks-v2beta2:0.93.3:0.93.3 +proto-google-cloud-tasks-v2:2.3.3:2.3.3 From 8f194c2b3ddd5e1e4210c925dd6d6df0ba291bb9 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 27 Jul 2022 19:16:19 +0000 Subject: [PATCH 333/401] chore(main): release 2.3.4-SNAPSHOT (#725) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 5d32c3de..f819d014 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.3 + 2.3.4-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.3 + 2.3.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.3 + 0.93.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.3 + 0.93.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.3 + 2.3.4-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.3 + 0.93.4-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.3 + 0.93.4-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.3 + 2.3.4-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 8c7dd4cf..7a628276 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.3 + 2.3.4-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.3 + 2.3.4-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index ecf7cf45..ffd1b74c 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.3 + 2.3.4-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.3 + 2.3.4-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 9c562051..1d978460 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.3 + 0.93.4-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.3 + 2.3.4-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index c2f1193f..a7b7f79e 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.3 + 0.93.4-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.3 + 2.3.4-SNAPSHOT diff --git a/pom.xml b/pom.xml index b0a32a6f..503af48f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.3 + 2.3.4-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.3 + 0.93.4-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.3 + 0.93.4-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.3 + 2.3.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.3 + 0.93.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.3 + 0.93.4-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.3 + 2.3.4-SNAPSHOT com.google.cloud google-cloud-tasks - 2.3.3 + 2.3.4-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 9e53fa62..ede87af9 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.3 + 2.3.4-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.3 + 2.3.4-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index ae1288d5..a7869086 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.3 + 0.93.4-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.3 + 2.3.4-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 5a20ee57..c7a6f20f 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.3 + 0.93.4-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.3 + 2.3.4-SNAPSHOT diff --git a/versions.txt b/versions.txt index 8c1a3fa0..7154d23d 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.3:2.3.3 -grpc-google-cloud-tasks-v2beta3:0.93.3:0.93.3 -grpc-google-cloud-tasks-v2beta2:0.93.3:0.93.3 -grpc-google-cloud-tasks-v2:2.3.3:2.3.3 -proto-google-cloud-tasks-v2beta3:0.93.3:0.93.3 -proto-google-cloud-tasks-v2beta2:0.93.3:0.93.3 -proto-google-cloud-tasks-v2:2.3.3:2.3.3 +google-cloud-tasks:2.3.3:2.3.4-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.93.3:0.93.4-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.93.3:0.93.4-SNAPSHOT +grpc-google-cloud-tasks-v2:2.3.3:2.3.4-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.93.3:0.93.4-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.93.3:0.93.4-SNAPSHOT +proto-google-cloud-tasks-v2:2.3.3:2.3.4-SNAPSHOT From fd64ed1ac139f80e2d7a0827c77e5ef3433b7018 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 30 Jul 2022 02:38:29 +0200 Subject: [PATCH 334/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3 (#726) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.13.0` -> `3.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.0/compatibility-slim/2.13.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.0/confidence-slim/2.13.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v3.0.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​300-httpsgithubcomgoogleapisjava-shared-dependenciescomparev2130v300-2022-07-29) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.13.0...v3.0.0) ##### Bug Fixes - enable longpaths support for windows test ([#​1485](https://togithub.com/googleapis/java-shared-dependencies/issues/1485)) ([#​738](https://togithub.com/googleapis/java-shared-dependencies/issues/738)) ([11bc8f8](https://togithub.com/googleapis/java-shared-dependencies/commit/11bc8f81f28be88a97fdeafca21724e33638770c)) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.35.2 ([#​729](https://togithub.com/googleapis/java-shared-dependencies/issues/729)) ([1fa59af](https://togithub.com/googleapis/java-shared-dependencies/commit/1fa59af80abb9f278f57658c10158567e825fec6)) - update dependency com.google.api-client:google-api-client-bom to v2 ([#​746](https://togithub.com/googleapis/java-shared-dependencies/issues/746)) ([2dcb2e0](https://togithub.com/googleapis/java-shared-dependencies/commit/2dcb2e071e0ba0eea21bb575bd13cd559d4a1ca6)) - update dependency com.google.api.grpc:grpc-google-common-protos to v2.9.2 ([#​741](https://togithub.com/googleapis/java-shared-dependencies/issues/741)) ([3352d6c](https://togithub.com/googleapis/java-shared-dependencies/commit/3352d6c36111c04e3f6f3e6360470fa3efb10d8f)) - update dependency com.google.auth:google-auth-library-bom to v1.8.0 ([#​726](https://togithub.com/googleapis/java-shared-dependencies/issues/726)) ([2c5d64c](https://togithub.com/googleapis/java-shared-dependencies/commit/2c5d64c127db8384e49113acfeac6928716a2d7f)) - update dependency com.google.auth:google-auth-library-bom to v1.8.1 ([#​742](https://togithub.com/googleapis/java-shared-dependencies/issues/742)) ([4f53527](https://togithub.com/googleapis/java-shared-dependencies/commit/4f53527bda7f40896711b7c1d1c02453321ffbc8)) - update dependency com.google.cloud:first-party-dependencies to v2 ([#​747](https://togithub.com/googleapis/java-shared-dependencies/issues/747)) ([e970ac0](https://togithub.com/googleapis/java-shared-dependencies/commit/e970ac0599941c825dc2516146a7c6673e68a9b9)) - update dependency com.google.cloud:grpc-gcp to v1.2.1 ([#​751](https://togithub.com/googleapis/java-shared-dependencies/issues/751)) ([b3284b6](https://togithub.com/googleapis/java-shared-dependencies/commit/b3284b6ee52a96a6ea8696a05a94443df9ee5b9f)) - update dependency com.google.cloud:third-party-dependencies to v2 ([#​748](https://togithub.com/googleapis/java-shared-dependencies/issues/748)) ([573b41a](https://togithub.com/googleapis/java-shared-dependencies/commit/573b41a69504372741cbeb01dd200e7c71967186)) - update dependency com.google.http-client:google-http-client-bom to v1.42.1 ([#​730](https://togithub.com/googleapis/java-shared-dependencies/issues/730)) ([6b47126](https://togithub.com/googleapis/java-shared-dependencies/commit/6b47126686b603a5d112e097ce6aa3a1880daf6f)) - update dependency com.google.http-client:google-http-client-bom to v1.42.2 ([#​749](https://togithub.com/googleapis/java-shared-dependencies/issues/749)) ([299d7b0](https://togithub.com/googleapis/java-shared-dependencies/commit/299d7b0d4920644e2c3070d12dd1d97da17a5e88)) - update dependency com.google.protobuf:protobuf-bom to v3.21.2 ([#​722](https://togithub.com/googleapis/java-shared-dependencies/issues/722)) ([7a96b12](https://togithub.com/googleapis/java-shared-dependencies/commit/7a96b1259a526b63e9376fd6cc18b27cddeb5f0f)) - update dependency com.google.protobuf:protobuf-bom to v3.21.3 ([#​756](https://togithub.com/googleapis/java-shared-dependencies/issues/756)) ([3d0bac2](https://togithub.com/googleapis/java-shared-dependencies/commit/3d0bac23487aebb94267c0708f41ff6c02a028a4)) - update dependency com.google.protobuf:protobuf-bom to v3.21.4 ([#​759](https://togithub.com/googleapis/java-shared-dependencies/issues/759)) ([5a54ef1](https://togithub.com/googleapis/java-shared-dependencies/commit/5a54ef1a2d56244166d4fcc46041d62c0dc4b411)) - update dependency io.grpc:grpc-bom to v1.48.0 ([#​752](https://togithub.com/googleapis/java-shared-dependencies/issues/752)) ([20ac908](https://togithub.com/googleapis/java-shared-dependencies/commit/20ac908932a5e7c8e581bdfcd68579d7e1cedd5f)) - update dependency org.checkerframework:checker-qual to v3.23.0 ([#​736](https://togithub.com/googleapis/java-shared-dependencies/issues/736)) ([fc01d8f](https://togithub.com/googleapis/java-shared-dependencies/commit/fc01d8f93f391f12fdb800d5006f0b4505832eeb)) - update gax.version to v2.18.3 ([#​731](https://togithub.com/googleapis/java-shared-dependencies/issues/731)) ([e8ee554](https://togithub.com/googleapis/java-shared-dependencies/commit/e8ee554707acb2f71c739d08e2ff02fbe43ffa52)) - update gax.version to v2.18.4 ([#​735](https://togithub.com/googleapis/java-shared-dependencies/issues/735)) ([11c7415](https://togithub.com/googleapis/java-shared-dependencies/commit/11c74152a84697924de3a0e838b05f606c3098f7)) - update gax.version to v2.18.5 ([#​758](https://togithub.com/googleapis/java-shared-dependencies/issues/758)) ([7469fc1](https://togithub.com/googleapis/java-shared-dependencies/commit/7469fc1cc5095b39a5738e60156711a268f6e052)) - update gax.version to v2.18.6 ([#​763](https://togithub.com/googleapis/java-shared-dependencies/issues/763)) ([b5ca2f7](https://togithub.com/googleapis/java-shared-dependencies/commit/b5ca2f7b4d81c705823253f4f03363a32d2be48b)) - update google.common-protos.version to v2.9.1 ([#​724](https://togithub.com/googleapis/java-shared-dependencies/issues/724)) ([5213dbb](https://togithub.com/googleapis/java-shared-dependencies/commit/5213dbbfa9c9b73d2420ec2be7782f16c9c4955f)) - update google.core.version to v2.8.1 ([#​725](https://togithub.com/googleapis/java-shared-dependencies/issues/725)) ([575858a](https://togithub.com/googleapis/java-shared-dependencies/commit/575858a60f76e46bbc2a2435c2b6c01c8f4ab681)) - update google.core.version to v2.8.3 ([#​760](https://togithub.com/googleapis/java-shared-dependencies/issues/760)) ([cb10ae4](https://togithub.com/googleapis/java-shared-dependencies/commit/cb10ae4b76939215ea465af74163b3d4ad65a548)) - update google.core.version to v2.8.4 ([#​762](https://togithub.com/googleapis/java-shared-dependencies/issues/762)) ([821daaf](https://togithub.com/googleapis/java-shared-dependencies/commit/821daafefdbcfdfe6e363e580747538096a562ef)) - update google.core.version to v2.8.5 ([#​764](https://togithub.com/googleapis/java-shared-dependencies/issues/764)) ([a1f8f50](https://togithub.com/googleapis/java-shared-dependencies/commit/a1f8f501b54143a2cec8e72efd4ceb3ce47f13ae)) - update iam.version to v1.5.0 ([#​732](https://togithub.com/googleapis/java-shared-dependencies/issues/732)) ([9dce0e5](https://togithub.com/googleapis/java-shared-dependencies/commit/9dce0e5199c1e425119adc804304958f58003a27)) - update iam.version to v1.5.1 ([#​737](https://togithub.com/googleapis/java-shared-dependencies/issues/737)) ([df39168](https://togithub.com/googleapis/java-shared-dependencies/commit/df391685d42fcb1b04f03ab1380a594893bdce37)) - update iam.version to v1.5.2 ([#​743](https://togithub.com/googleapis/java-shared-dependencies/issues/743)) ([cdde697](https://togithub.com/googleapis/java-shared-dependencies/commit/cdde697f25a89fc8c2ec7eae6b7c54f69977bb1c))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- README.md | 6 +++--- pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e4ca36e5..f94bb7ae 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.3.2 + 2.3.3 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.3.2' +implementation 'com.google.cloud:google-cloud-tasks:2.3.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.2" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.3" ``` ## Authentication diff --git a/pom.xml b/pom.xml index 503af48f..3435c57a 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.13.0 + 3.0.0 pom import From 024c84a8047d72806b2d46f492e4918124db9c41 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Sat, 30 Jul 2022 00:48:12 +0000 Subject: [PATCH 335/401] chore(main): release 2.3.4 (#727) :robot: I have created a release *beep* *boop* --- ## [2.3.4](https://github.com/googleapis/java-tasks/compare/v2.3.3...v2.3.4) (2022-07-30) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#726](https://github.com/googleapis/java-tasks/issues/726)) ([fd64ed1](https://github.com/googleapis/java-tasks/commit/fd64ed1ac139f80e2d7a0827c77e5ef3433b7018)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49697d72..e568c513 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.3.4](https://github.com/googleapis/java-tasks/compare/v2.3.3...v2.3.4) (2022-07-30) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#726](https://github.com/googleapis/java-tasks/issues/726)) ([fd64ed1](https://github.com/googleapis/java-tasks/commit/fd64ed1ac139f80e2d7a0827c77e5ef3433b7018)) + ## [2.3.3](https://github.com/googleapis/java-tasks/compare/v2.3.2...v2.3.3) (2022-07-27) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index f819d014..30293da6 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.4-SNAPSHOT + 2.3.4 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.4-SNAPSHOT + 2.3.4 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.4-SNAPSHOT + 0.93.4 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.4-SNAPSHOT + 0.93.4 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.4-SNAPSHOT + 2.3.4 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.4-SNAPSHOT + 0.93.4 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.4-SNAPSHOT + 0.93.4 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.4-SNAPSHOT + 2.3.4
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 7a628276..29596f6c 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.4-SNAPSHOT + 2.3.4 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.4-SNAPSHOT + 2.3.4 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index ffd1b74c..a11857b0 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.4-SNAPSHOT + 2.3.4 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.4-SNAPSHOT + 2.3.4 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 1d978460..a500770c 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.4-SNAPSHOT + 0.93.4 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.4-SNAPSHOT + 2.3.4 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index a7b7f79e..9b05fd6a 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.4-SNAPSHOT + 0.93.4 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.4-SNAPSHOT + 2.3.4 diff --git a/pom.xml b/pom.xml index 3435c57a..d072ced0 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.4-SNAPSHOT + 2.3.4 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.4-SNAPSHOT + 0.93.4 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.4-SNAPSHOT + 0.93.4 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.4-SNAPSHOT + 2.3.4 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.4-SNAPSHOT + 0.93.4 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.4-SNAPSHOT + 0.93.4 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.4-SNAPSHOT + 2.3.4 com.google.cloud google-cloud-tasks - 2.3.4-SNAPSHOT + 2.3.4 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index ede87af9..ca03789e 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.4-SNAPSHOT + 2.3.4 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.4-SNAPSHOT + 2.3.4 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index a7869086..286d5877 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.4-SNAPSHOT + 0.93.4 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.4-SNAPSHOT + 2.3.4 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index c7a6f20f..487709b4 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.4-SNAPSHOT + 0.93.4 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.4-SNAPSHOT + 2.3.4 diff --git a/versions.txt b/versions.txt index 7154d23d..336f0b51 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.3:2.3.4-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.93.3:0.93.4-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.93.3:0.93.4-SNAPSHOT -grpc-google-cloud-tasks-v2:2.3.3:2.3.4-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.93.3:0.93.4-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.93.3:0.93.4-SNAPSHOT -proto-google-cloud-tasks-v2:2.3.3:2.3.4-SNAPSHOT +google-cloud-tasks:2.3.4:2.3.4 +grpc-google-cloud-tasks-v2beta3:0.93.4:0.93.4 +grpc-google-cloud-tasks-v2beta2:0.93.4:0.93.4 +grpc-google-cloud-tasks-v2:2.3.4:2.3.4 +proto-google-cloud-tasks-v2beta3:0.93.4:0.93.4 +proto-google-cloud-tasks-v2beta2:0.93.4:0.93.4 +proto-google-cloud-tasks-v2:2.3.4:2.3.4 From 38d25165a914b5e75c7d28c696ef9b22cd849757 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Sat, 30 Jul 2022 00:56:15 +0000 Subject: [PATCH 336/401] chore(main): release 2.3.5-SNAPSHOT (#728) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 30293da6..15111b7e 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.4 + 2.3.5-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.4 + 2.3.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.4 + 0.93.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.4 + 0.93.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.4 + 2.3.5-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.4 + 0.93.5-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.4 + 0.93.5-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.4 + 2.3.5-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 29596f6c..fbdaad87 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.4 + 2.3.5-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.4 + 2.3.5-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index a11857b0..809e31d2 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.4 + 2.3.5-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.4 + 2.3.5-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index a500770c..58c5576b 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.4 + 0.93.5-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.4 + 2.3.5-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 9b05fd6a..01ea938b 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.4 + 0.93.5-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.4 + 2.3.5-SNAPSHOT diff --git a/pom.xml b/pom.xml index d072ced0..2ab2a3fe 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.4 + 2.3.5-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.4 + 0.93.5-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.4 + 0.93.5-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.4 + 2.3.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.4 + 0.93.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.4 + 0.93.5-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.4 + 2.3.5-SNAPSHOT com.google.cloud google-cloud-tasks - 2.3.4 + 2.3.5-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index ca03789e..5969f979 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.4 + 2.3.5-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.4 + 2.3.5-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 286d5877..274cc7f7 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.4 + 0.93.5-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.4 + 2.3.5-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 487709b4..455f5751 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.4 + 0.93.5-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.4 + 2.3.5-SNAPSHOT diff --git a/versions.txt b/versions.txt index 336f0b51..bda9cb51 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.4:2.3.4 -grpc-google-cloud-tasks-v2beta3:0.93.4:0.93.4 -grpc-google-cloud-tasks-v2beta2:0.93.4:0.93.4 -grpc-google-cloud-tasks-v2:2.3.4:2.3.4 -proto-google-cloud-tasks-v2beta3:0.93.4:0.93.4 -proto-google-cloud-tasks-v2beta2:0.93.4:0.93.4 -proto-google-cloud-tasks-v2:2.3.4:2.3.4 +google-cloud-tasks:2.3.4:2.3.5-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.93.4:0.93.5-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.93.4:0.93.5-SNAPSHOT +grpc-google-cloud-tasks-v2:2.3.4:2.3.5-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.93.4:0.93.5-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.93.4:0.93.5-SNAPSHOT +proto-google-cloud-tasks-v2:2.3.4:2.3.5-SNAPSHOT From 5c051f580d6b874581f037e873e298d680da6db4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Aug 2022 20:44:17 +0200 Subject: [PATCH 337/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.3.4 (#731) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.3.0` -> `2.3.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.4/compatibility-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.4/confidence-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f94bb7ae..d37fca96 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.3.3 + 2.3.4 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.3.3' +implementation 'com.google.cloud:google-cloud-tasks:2.3.4' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.3" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.4" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 9d253982..1d87ba52 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.3.0 + 2.3.4 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 927083ff..5cbf7e44 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.3.0 + 2.3.4 From c63d7d5bbf6cdd9e3a678acb801721043574f8be Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Aug 2022 21:08:19 +0200 Subject: [PATCH 338/401] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.3 (#730) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.5.1` -> `1.5.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/compatibility-slim/1.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/confidence-slim/1.5.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- google-cloud-tasks-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 15111b7e..1300e30d 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.5.1 + 1.5.3 Google Cloud tasks BOM diff --git a/pom.xml b/pom.xml index 2ab2a3fe..0e3911d9 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.5.1 + 1.5.3 From 5f27ab2712f5f28e43712f9c91813eae73c00e5c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 3 Aug 2022 00:18:17 +0200 Subject: [PATCH 339/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.1 (#732) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.0` -> `3.0.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/compatibility-slim/3.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/confidence-slim/3.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v3.0.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​301-httpsgithubcomgoogleapisjava-shared-dependenciescomparev300v301-2022-08-02) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.0...v3.0.1) ##### Dependencies - update dependency com.google.code.gson:gson to v2.9.1 ([#​766](https://togithub.com/googleapis/java-shared-dependencies/issues/766)) ([f7b2b06](https://togithub.com/googleapis/java-shared-dependencies/commit/f7b2b06b80e3e95ff8ab9b1d6a2638ef3069298a)) - update gax.version to v2.18.7 ([#​767](https://togithub.com/googleapis/java-shared-dependencies/issues/767)) ([9650368](https://togithub.com/googleapis/java-shared-dependencies/commit/96503682e98cdf348ea2c1365a03a60f4322c712)) - update google.core.version to v2.8.6 ([#​770](https://togithub.com/googleapis/java-shared-dependencies/issues/770)) ([cfd4377](https://togithub.com/googleapis/java-shared-dependencies/commit/cfd4377dc178cebb4724065d55d185ce03988d55))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0e3911d9..6ec9b339 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.0 + 3.0.1 pom import From e54198366e6fb00966fa348fb5cdc311aece1cc0 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 2 Aug 2022 22:26:14 +0000 Subject: [PATCH 340/401] chore(main): release 2.3.5 (#733) :robot: I have created a release *beep* *boop* --- ## [2.3.5](https://github.com/googleapis/java-tasks/compare/v2.3.4...v2.3.5) (2022-08-02) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.1 ([#732](https://github.com/googleapis/java-tasks/issues/732)) ([5f27ab2](https://github.com/googleapis/java-tasks/commit/5f27ab2712f5f28e43712f9c91813eae73c00e5c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e568c513..7187d3e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.3.5](https://github.com/googleapis/java-tasks/compare/v2.3.4...v2.3.5) (2022-08-02) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.1 ([#732](https://github.com/googleapis/java-tasks/issues/732)) ([5f27ab2](https://github.com/googleapis/java-tasks/commit/5f27ab2712f5f28e43712f9c91813eae73c00e5c)) + ## [2.3.4](https://github.com/googleapis/java-tasks/compare/v2.3.3...v2.3.4) (2022-07-30) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 1300e30d..dd1ebbed 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.5-SNAPSHOT + 2.3.5 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.5-SNAPSHOT + 2.3.5 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.5-SNAPSHOT + 0.93.5 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.5-SNAPSHOT + 0.93.5 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.5-SNAPSHOT + 2.3.5 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.5-SNAPSHOT + 0.93.5 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.5-SNAPSHOT + 0.93.5 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.5-SNAPSHOT + 2.3.5
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index fbdaad87..27e55c69 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.5-SNAPSHOT + 2.3.5 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.5-SNAPSHOT + 2.3.5 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 809e31d2..f5e94e6f 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.5-SNAPSHOT + 2.3.5 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.5-SNAPSHOT + 2.3.5 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 58c5576b..cbf26200 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.5-SNAPSHOT + 0.93.5 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.5-SNAPSHOT + 2.3.5 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 01ea938b..4a7c535c 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.5-SNAPSHOT + 0.93.5 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.5-SNAPSHOT + 2.3.5 diff --git a/pom.xml b/pom.xml index 6ec9b339..5ac27270 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.5-SNAPSHOT + 2.3.5 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.5-SNAPSHOT + 0.93.5 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.5-SNAPSHOT + 0.93.5 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.5-SNAPSHOT + 2.3.5 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.5-SNAPSHOT + 0.93.5 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.5-SNAPSHOT + 0.93.5 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.5-SNAPSHOT + 2.3.5 com.google.cloud google-cloud-tasks - 2.3.5-SNAPSHOT + 2.3.5 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 5969f979..5da19719 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.5-SNAPSHOT + 2.3.5 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.5-SNAPSHOT + 2.3.5 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 274cc7f7..c1d992ab 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.5-SNAPSHOT + 0.93.5 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.5-SNAPSHOT + 2.3.5 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 455f5751..14406d40 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.5-SNAPSHOT + 0.93.5 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.5-SNAPSHOT + 2.3.5 diff --git a/versions.txt b/versions.txt index bda9cb51..21faf3a9 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.4:2.3.5-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.93.4:0.93.5-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.93.4:0.93.5-SNAPSHOT -grpc-google-cloud-tasks-v2:2.3.4:2.3.5-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.93.4:0.93.5-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.93.4:0.93.5-SNAPSHOT -proto-google-cloud-tasks-v2:2.3.4:2.3.5-SNAPSHOT +google-cloud-tasks:2.3.5:2.3.5 +grpc-google-cloud-tasks-v2beta3:0.93.5:0.93.5 +grpc-google-cloud-tasks-v2beta2:0.93.5:0.93.5 +grpc-google-cloud-tasks-v2:2.3.5:2.3.5 +proto-google-cloud-tasks-v2beta3:0.93.5:0.93.5 +proto-google-cloud-tasks-v2beta2:0.93.5:0.93.5 +proto-google-cloud-tasks-v2:2.3.5:2.3.5 From 178660d7bab9204c8e4ac8de8f66dbf56dab1361 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 2 Aug 2022 22:34:17 +0000 Subject: [PATCH 341/401] chore(main): release 2.3.6-SNAPSHOT (#734) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index dd1ebbed..ee600f7a 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.5 + 2.3.6-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.5 + 2.3.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.5 + 0.93.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.5 + 0.93.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.5 + 2.3.6-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.5 + 0.93.6-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.5 + 0.93.6-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.5 + 2.3.6-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 27e55c69..8985920e 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.5 + 2.3.6-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.5 + 2.3.6-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index f5e94e6f..64425d92 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.5 + 2.3.6-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.5 + 2.3.6-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index cbf26200..266faaa0 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.5 + 0.93.6-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.5 + 2.3.6-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 4a7c535c..d3339a9e 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.5 + 0.93.6-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.5 + 2.3.6-SNAPSHOT diff --git a/pom.xml b/pom.xml index 5ac27270..2b358adb 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.5 + 2.3.6-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.5 + 0.93.6-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.5 + 0.93.6-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.5 + 2.3.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.5 + 0.93.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.5 + 0.93.6-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.5 + 2.3.6-SNAPSHOT com.google.cloud google-cloud-tasks - 2.3.5 + 2.3.6-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 5da19719..93424a47 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.5 + 2.3.6-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.5 + 2.3.6-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index c1d992ab..ced5528b 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.5 + 0.93.6-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.5 + 2.3.6-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 14406d40..c9a3c4d9 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.5 + 0.93.6-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.5 + 2.3.6-SNAPSHOT diff --git a/versions.txt b/versions.txt index 21faf3a9..10ca9cbc 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.5:2.3.5 -grpc-google-cloud-tasks-v2beta3:0.93.5:0.93.5 -grpc-google-cloud-tasks-v2beta2:0.93.5:0.93.5 -grpc-google-cloud-tasks-v2:2.3.5:2.3.5 -proto-google-cloud-tasks-v2beta3:0.93.5:0.93.5 -proto-google-cloud-tasks-v2beta2:0.93.5:0.93.5 -proto-google-cloud-tasks-v2:2.3.5:2.3.5 +google-cloud-tasks:2.3.5:2.3.6-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.93.5:0.93.6-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.93.5:0.93.6-SNAPSHOT +grpc-google-cloud-tasks-v2:2.3.5:2.3.6-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.93.5:0.93.6-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.93.5:0.93.6-SNAPSHOT +proto-google-cloud-tasks-v2:2.3.5:2.3.6-SNAPSHOT From b2cef6320847de96d39e01bb5860c9b52f744f14 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 3 Aug 2022 16:58:21 +0200 Subject: [PATCH 342/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.3.5 (#735) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.3.4` -> `2.3.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.5/compatibility-slim/2.3.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.5/confidence-slim/2.3.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d37fca96..6d41e5c2 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.3.4 + 2.3.5 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.3.4' +implementation 'com.google.cloud:google-cloud-tasks:2.3.5' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.4" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.5" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 1d87ba52..82a16c9f 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.3.4 + 2.3.5 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 5cbf7e44..54eb4395 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.3.4 + 2.3.5 From 6e136b6c880192036af71af5440d81fd21192210 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 5 Aug 2022 18:52:13 +0000 Subject: [PATCH 343/401] docs(owlbot-java): explaining why not using formatter in pom.xml (#1511) (#729) Fixes #1502 Source-Link: https://github.com/googleapis/synthtool/commit/26ea255791c019594c20d88a69b4f9fb8c00f13e Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:7a9a7eb50ca2af5bfffab3abd2f38d408735c990a74bacf9b7fde2af0a086a0b --- .github/.OwlBot.lock.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index f8b912ad..a20fd630 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:b47e411068ffc6e6990cb4e0802fbac9a4488dec7f5f424553518ba21abea208 -# created: 2022-07-26T16:25:31.033836225Z + digest: sha256:7a9a7eb50ca2af5bfffab3abd2f38d408735c990a74bacf9b7fde2af0a086a0b +# created: 2022-08-01T15:27:14.757266067Z From cdbc32b086784c5a153ade922d49bfcc99d26f39 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 9 Aug 2022 16:34:26 +0000 Subject: [PATCH 344/401] chore(main): release 2.3.6 (#736) :robot: I have created a release *beep* *boop* --- ## [2.3.6](https://github.com/googleapis/java-tasks/compare/v2.3.5...v2.3.6) (2022-08-05) ### Documentation * **owlbot-java:** explaining why not using formatter in pom.xml ([#1511](https://github.com/googleapis/java-tasks/issues/1511)) ([#729](https://github.com/googleapis/java-tasks/issues/729)) ([6e136b6](https://github.com/googleapis/java-tasks/commit/6e136b6c880192036af71af5440d81fd21192210)), closes [#1502](https://github.com/googleapis/java-tasks/issues/1502) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7187d3e4..f997ff47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.3.6](https://github.com/googleapis/java-tasks/compare/v2.3.5...v2.3.6) (2022-08-05) + + +### Documentation + +* **owlbot-java:** explaining why not using formatter in pom.xml ([#1511](https://github.com/googleapis/java-tasks/issues/1511)) ([#729](https://github.com/googleapis/java-tasks/issues/729)) ([6e136b6](https://github.com/googleapis/java-tasks/commit/6e136b6c880192036af71af5440d81fd21192210)), closes [#1502](https://github.com/googleapis/java-tasks/issues/1502) + ## [2.3.5](https://github.com/googleapis/java-tasks/compare/v2.3.4...v2.3.5) (2022-08-02) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index ee600f7a..53913e9e 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.6-SNAPSHOT + 2.3.6 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.6-SNAPSHOT + 2.3.6 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.6-SNAPSHOT + 0.93.6 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.6-SNAPSHOT + 0.93.6 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.6-SNAPSHOT + 2.3.6 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.6-SNAPSHOT + 0.93.6 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.6-SNAPSHOT + 0.93.6 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.6-SNAPSHOT + 2.3.6 diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 8985920e..41452c0c 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.6-SNAPSHOT + 2.3.6 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.6-SNAPSHOT + 2.3.6 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 64425d92..a96d3333 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.6-SNAPSHOT + 2.3.6 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.6-SNAPSHOT + 2.3.6 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 266faaa0..2f07675d 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.6-SNAPSHOT + 0.93.6 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.6-SNAPSHOT + 2.3.6 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index d3339a9e..7bc8d12a 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.6-SNAPSHOT + 0.93.6 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.6-SNAPSHOT + 2.3.6 diff --git a/pom.xml b/pom.xml index 2b358adb..384719d5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.6-SNAPSHOT + 2.3.6 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.6-SNAPSHOT + 0.93.6 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.6-SNAPSHOT + 0.93.6 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.6-SNAPSHOT + 2.3.6 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.6-SNAPSHOT + 0.93.6 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.6-SNAPSHOT + 0.93.6 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.6-SNAPSHOT + 2.3.6 com.google.cloud google-cloud-tasks - 2.3.6-SNAPSHOT + 2.3.6 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 93424a47..c8e57400 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.6-SNAPSHOT + 2.3.6 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.6-SNAPSHOT + 2.3.6 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index ced5528b..dc911bf9 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.6-SNAPSHOT + 0.93.6 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.6-SNAPSHOT + 2.3.6 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index c9a3c4d9..d521680e 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.6-SNAPSHOT + 0.93.6 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.6-SNAPSHOT + 2.3.6 diff --git a/versions.txt b/versions.txt index 10ca9cbc..d5c8dafa 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.5:2.3.6-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.93.5:0.93.6-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.93.5:0.93.6-SNAPSHOT -grpc-google-cloud-tasks-v2:2.3.5:2.3.6-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.93.5:0.93.6-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.93.5:0.93.6-SNAPSHOT -proto-google-cloud-tasks-v2:2.3.5:2.3.6-SNAPSHOT +google-cloud-tasks:2.3.6:2.3.6 +grpc-google-cloud-tasks-v2beta3:0.93.6:0.93.6 +grpc-google-cloud-tasks-v2beta2:0.93.6:0.93.6 +grpc-google-cloud-tasks-v2:2.3.6:2.3.6 +proto-google-cloud-tasks-v2beta3:0.93.6:0.93.6 +proto-google-cloud-tasks-v2beta2:0.93.6:0.93.6 +proto-google-cloud-tasks-v2:2.3.6:2.3.6 From acfe8e7451eb11a5f40a00da2268110bdd17c100 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Aug 2022 20:48:57 +0200 Subject: [PATCH 345/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.3.6 (#739) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.3.6 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6d41e5c2..d35094a3 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.3.5 + 2.3.6 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.3.5' +implementation 'com.google.cloud:google-cloud-tasks:2.3.6' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.5" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.6" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 82a16c9f..d593b9ff 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.3.5 + 2.3.6 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 54eb4395..5b1ef082 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.3.5 + 2.3.6 From 9929b085be37d9de8454b2d0da0622f64db386ba Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Aug 2022 20:32:12 +0200 Subject: [PATCH 346/401] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.4.1 (#742) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) | `3.4.0` -> `3.4.1` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.1/compatibility-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.1/confidence-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 384719d5..c63f2bda 100644 --- a/pom.xml +++ b/pom.xml @@ -144,7 +144,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.4.0 + 3.4.1 From c80ae8877c386e9cd135a2875f7fe6c662434e1d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Aug 2022 21:28:22 +0200 Subject: [PATCH 347/401] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.0 (#740) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.0.0` -> `26.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/compatibility-slim/26.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/confidence-slim/26.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 375f1b0e..484f157d 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -29,7 +29,7 @@ com.google.cloud libraries-bom - 26.0.0 + 26.1.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 7aaba932..3889124b 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.0.0 + 26.1.0 pom import From 7dff28a909fad1097e73d30279baa50077392259 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Aug 2022 21:56:14 +0200 Subject: [PATCH 348/401] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.4.1 (#741) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-javadoc-plugin](https://maven.apache.org/plugins/) | `3.4.0` -> `3.4.1` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/compatibility-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/confidence-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c63f2bda..2dad61e4 100644 --- a/pom.xml +++ b/pom.xml @@ -171,7 +171,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 html From 38b79ee0bb6bd591e994170e56c12ea6999be130 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 18 Aug 2022 11:57:08 -0700 Subject: [PATCH 349/401] chore(main): release 2.3.7-SNAPSHOT (#737) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 53913e9e..12d30366 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.6 + 2.3.7-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.6 + 2.3.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.6 + 0.93.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.6 + 0.93.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.6 + 2.3.7-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.6 + 0.93.7-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.6 + 0.93.7-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.6 + 2.3.7-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 41452c0c..fd743883 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.6 + 2.3.7-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.6 + 2.3.7-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index a96d3333..ff1ddbb5 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.6 + 2.3.7-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.6 + 2.3.7-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 2f07675d..92361726 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.6 + 0.93.7-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.6 + 2.3.7-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 7bc8d12a..49133a62 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.6 + 0.93.7-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.6 + 2.3.7-SNAPSHOT diff --git a/pom.xml b/pom.xml index 2dad61e4..62302710 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.6 + 2.3.7-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.6 + 0.93.7-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.6 + 0.93.7-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.6 + 2.3.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.6 + 0.93.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.6 + 0.93.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.6 + 2.3.7-SNAPSHOT com.google.cloud google-cloud-tasks - 2.3.6 + 2.3.7-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index c8e57400..7c8bb7d0 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.6 + 2.3.7-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.6 + 2.3.7-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index dc911bf9..79453253 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.6 + 0.93.7-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.6 + 2.3.7-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index d521680e..054574b0 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.6 + 0.93.7-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.6 + 2.3.7-SNAPSHOT diff --git a/versions.txt b/versions.txt index d5c8dafa..ad0d80c9 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.6:2.3.6 -grpc-google-cloud-tasks-v2beta3:0.93.6:0.93.6 -grpc-google-cloud-tasks-v2beta2:0.93.6:0.93.6 -grpc-google-cloud-tasks-v2:2.3.6:2.3.6 -proto-google-cloud-tasks-v2beta3:0.93.6:0.93.6 -proto-google-cloud-tasks-v2beta2:0.93.6:0.93.6 -proto-google-cloud-tasks-v2:2.3.6:2.3.6 +google-cloud-tasks:2.3.6:2.3.7-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.93.6:0.93.7-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.93.6:0.93.7-SNAPSHOT +grpc-google-cloud-tasks-v2:2.3.6:2.3.7-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.93.6:0.93.7-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.93.6:0.93.7-SNAPSHOT +proto-google-cloud-tasks-v2:2.3.6:2.3.7-SNAPSHOT From eb25484c0ca37b13d9cc42b656be1b1bdbba6a30 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 22 Aug 2022 14:18:17 +0000 Subject: [PATCH 350/401] chore: remove unused proto imports (#743) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 468735472 Source-Link: https://github.com/googleapis/googleapis/commit/cfa1b3782da7ccae31673d45401a0b79d2d4a84b Source-Link: https://github.com/googleapis/googleapis-gen/commit/09b7666656510f5b00b893f003a0ba5766f9e250 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDliNzY2NjY1NjUxMGY1YjAwYjg5M2YwMDNhMGJhNTc2NmY5ZTI1MCJ9 --- .../cloud/tasks/v2beta2/QueueProto.java | 79 +++++++++-------- .../cloud/tasks/v2beta2/TargetProto.java | 49 +++++------ .../google/cloud/tasks/v2beta2/TaskProto.java | 61 +++++++------ .../google/cloud/tasks/v2beta2/queue.proto | 1 - .../google/cloud/tasks/v2beta2/target.proto | 1 - .../google/cloud/tasks/v2beta2/task.proto | 1 - .../cloud/tasks/v2beta3/QueueProto.java | 85 +++++++++---------- .../cloud/tasks/v2beta3/TargetProto.java | 74 ++++++++-------- .../google/cloud/tasks/v2beta3/TaskProto.java | 61 +++++++------ .../google/cloud/tasks/v2beta3/queue.proto | 1 - .../google/cloud/tasks/v2beta3/target.proto | 1 - .../google/cloud/tasks/v2beta3/task.proto | 1 - .../SyncCreateSetCredentialsProvider.java | 41 +++++++++ .../SyncCreateSetCredentialsProvider1.java | 40 +++++++++ .../create/SyncCreateSetEndpoint.java | 38 +++++++++ .../createqueue/AsyncCreateQueue.java | 47 ++++++++++ .../createqueue/SyncCreateQueue.java | 44 ++++++++++ .../SyncCreateQueueLocationnameQueue.java | 40 +++++++++ .../SyncCreateQueueStringQueue.java | 40 +++++++++ .../createtask/AsyncCreateTask.java | 47 ++++++++++ .../createtask/SyncCreateTask.java | 44 ++++++++++ .../SyncCreateTaskQueuenameTask.java | 40 +++++++++ .../createtask/SyncCreateTaskStringTask.java | 40 +++++++++ .../deletequeue/AsyncDeleteQueue.java | 46 ++++++++++ .../deletequeue/SyncDeleteQueue.java | 43 ++++++++++ .../deletequeue/SyncDeleteQueueQueuename.java | 39 +++++++++ .../deletequeue/SyncDeleteQueueString.java | 39 +++++++++ .../deletetask/AsyncDeleteTask.java | 46 ++++++++++ .../deletetask/SyncDeleteTask.java | 43 ++++++++++ .../deletetask/SyncDeleteTaskString.java | 39 +++++++++ .../deletetask/SyncDeleteTaskTaskname.java | 39 +++++++++ .../getiampolicy/AsyncGetIamPolicy.java | 48 +++++++++++ .../getiampolicy/SyncGetIamPolicy.java | 45 ++++++++++ .../SyncGetIamPolicyResourcename.java | 40 +++++++++ .../getiampolicy/SyncGetIamPolicyString.java | 39 +++++++++ .../getqueue/AsyncGetQueue.java | 46 ++++++++++ .../getqueue/SyncGetQueue.java | 43 ++++++++++ .../getqueue/SyncGetQueueQueuename.java | 39 +++++++++ .../getqueue/SyncGetQueueString.java | 39 +++++++++ .../gettask/AsyncGetTask.java | 46 ++++++++++ .../cloudtasksclient/gettask/SyncGetTask.java | 43 ++++++++++ .../gettask/SyncGetTaskString.java | 39 +++++++++ .../gettask/SyncGetTaskTaskname.java | 39 +++++++++ .../listqueues/AsyncListQueues.java | 51 +++++++++++ .../listqueues/AsyncListQueuesPaged.java | 59 +++++++++++++ .../listqueues/SyncListQueues.java | 48 +++++++++++ .../SyncListQueuesLocationname.java | 41 +++++++++ .../listqueues/SyncListQueuesString.java | 41 +++++++++ .../listtasks/AsyncListTasks.java | 50 +++++++++++ .../listtasks/AsyncListTasksPaged.java | 58 +++++++++++++ .../listtasks/SyncListTasks.java | 47 ++++++++++ .../listtasks/SyncListTasksQueuename.java | 41 +++++++++ .../listtasks/SyncListTasksString.java | 41 +++++++++ .../pausequeue/AsyncPauseQueue.java | 46 ++++++++++ .../pausequeue/SyncPauseQueue.java | 43 ++++++++++ .../pausequeue/SyncPauseQueueQueuename.java | 39 +++++++++ .../pausequeue/SyncPauseQueueString.java | 39 +++++++++ .../purgequeue/AsyncPurgeQueue.java | 46 ++++++++++ .../purgequeue/SyncPurgeQueue.java | 43 ++++++++++ .../purgequeue/SyncPurgeQueueQueuename.java | 39 +++++++++ .../purgequeue/SyncPurgeQueueString.java | 39 +++++++++ .../resumequeue/AsyncResumeQueue.java | 46 ++++++++++ .../resumequeue/SyncResumeQueue.java | 43 ++++++++++ .../resumequeue/SyncResumeQueueQueuename.java | 39 +++++++++ .../resumequeue/SyncResumeQueueString.java | 39 +++++++++ .../runtask/AsyncRunTask.java | 46 ++++++++++ .../cloudtasksclient/runtask/SyncRunTask.java | 43 ++++++++++ .../runtask/SyncRunTaskString.java | 39 +++++++++ .../runtask/SyncRunTaskTaskname.java | 39 +++++++++ .../setiampolicy/AsyncSetIamPolicy.java | 49 +++++++++++ .../setiampolicy/SyncSetIamPolicy.java | 46 ++++++++++ .../SyncSetIamPolicyResourcenamePolicy.java | 41 +++++++++ .../SyncSetIamPolicyStringPolicy.java | 40 +++++++++ .../AsyncTestIamPermissions.java | 49 +++++++++++ .../SyncTestIamPermissions.java | 45 ++++++++++ ...tIamPermissionsResourcenameListstring.java | 44 ++++++++++ ...yncTestIamPermissionsStringListstring.java | 43 ++++++++++ .../updatequeue/AsyncUpdateQueue.java | 47 ++++++++++ .../updatequeue/SyncUpdateQueue.java | 44 ++++++++++ .../SyncUpdateQueueQueueFieldmask.java | 40 +++++++++ .../getqueue/SyncGetQueue.java | 45 ++++++++++ .../getqueue/SyncGetQueue.java | 45 ++++++++++ .../acknowledgetask/AsyncAcknowledgeTask.java | 48 +++++++++++ .../acknowledgetask/SyncAcknowledgeTask.java | 45 ++++++++++ .../SyncAcknowledgeTaskStringTimestamp.java | 41 +++++++++ .../SyncAcknowledgeTaskTasknameTimestamp.java | 41 +++++++++ .../cancellease/AsyncCancelLease.java | 48 +++++++++++ .../cancellease/SyncCancelLease.java | 45 ++++++++++ .../SyncCancelLeaseStringTimestamp.java | 41 +++++++++ .../SyncCancelLeaseTasknameTimestamp.java | 41 +++++++++ .../SyncCreateSetCredentialsProvider.java | 41 +++++++++ .../SyncCreateSetCredentialsProvider1.java | 40 +++++++++ .../create/SyncCreateSetEndpoint.java | 38 +++++++++ .../createqueue/AsyncCreateQueue.java | 47 ++++++++++ .../createqueue/SyncCreateQueue.java | 44 ++++++++++ .../SyncCreateQueueLocationnameQueue.java | 40 +++++++++ .../SyncCreateQueueStringQueue.java | 40 +++++++++ .../createtask/AsyncCreateTask.java | 47 ++++++++++ .../createtask/SyncCreateTask.java | 44 ++++++++++ .../SyncCreateTaskQueuenameTask.java | 40 +++++++++ .../createtask/SyncCreateTaskStringTask.java | 40 +++++++++ .../deletequeue/AsyncDeleteQueue.java | 46 ++++++++++ .../deletequeue/SyncDeleteQueue.java | 43 ++++++++++ .../deletequeue/SyncDeleteQueueQueuename.java | 39 +++++++++ .../deletequeue/SyncDeleteQueueString.java | 39 +++++++++ .../deletetask/AsyncDeleteTask.java | 46 ++++++++++ .../deletetask/SyncDeleteTask.java | 43 ++++++++++ .../deletetask/SyncDeleteTaskString.java | 39 +++++++++ .../deletetask/SyncDeleteTaskTaskname.java | 39 +++++++++ .../getiampolicy/AsyncGetIamPolicy.java | 48 +++++++++++ .../getiampolicy/SyncGetIamPolicy.java | 45 ++++++++++ .../SyncGetIamPolicyResourcename.java | 40 +++++++++ .../getiampolicy/SyncGetIamPolicyString.java | 39 +++++++++ .../getqueue/AsyncGetQueue.java | 48 +++++++++++ .../getqueue/SyncGetQueue.java | 45 ++++++++++ .../getqueue/SyncGetQueueQueuename.java | 39 +++++++++ .../getqueue/SyncGetQueueString.java | 39 +++++++++ .../gettask/AsyncGetTask.java | 46 ++++++++++ .../cloudtasksclient/gettask/SyncGetTask.java | 43 ++++++++++ .../gettask/SyncGetTaskString.java | 39 +++++++++ .../gettask/SyncGetTaskTaskname.java | 39 +++++++++ .../leasetasks/AsyncLeaseTasks.java | 51 +++++++++++ .../leasetasks/SyncLeaseTasks.java | 47 ++++++++++ .../SyncLeaseTasksQueuenameDuration.java | 41 +++++++++ .../SyncLeaseTasksStringDuration.java | 41 +++++++++ .../listqueues/AsyncListQueues.java | 53 ++++++++++++ .../listqueues/AsyncListQueuesPaged.java | 61 +++++++++++++ .../listqueues/SyncListQueues.java | 50 +++++++++++ .../SyncListQueuesLocationname.java | 41 +++++++++ .../listqueues/SyncListQueuesString.java | 41 +++++++++ .../listtasks/AsyncListTasks.java | 50 +++++++++++ .../listtasks/AsyncListTasksPaged.java | 58 +++++++++++++ .../listtasks/SyncListTasks.java | 47 ++++++++++ .../listtasks/SyncListTasksQueuename.java | 41 +++++++++ .../listtasks/SyncListTasksString.java | 41 +++++++++ .../pausequeue/AsyncPauseQueue.java | 46 ++++++++++ .../pausequeue/SyncPauseQueue.java | 43 ++++++++++ .../pausequeue/SyncPauseQueueQueuename.java | 39 +++++++++ .../pausequeue/SyncPauseQueueString.java | 39 +++++++++ .../purgequeue/AsyncPurgeQueue.java | 46 ++++++++++ .../purgequeue/SyncPurgeQueue.java | 43 ++++++++++ .../purgequeue/SyncPurgeQueueQueuename.java | 39 +++++++++ .../purgequeue/SyncPurgeQueueString.java | 39 +++++++++ .../renewlease/AsyncRenewLease.java | 50 +++++++++++ .../renewlease/SyncRenewLease.java | 47 ++++++++++ ...SyncRenewLeaseStringTimestampDuration.java | 43 ++++++++++ ...ncRenewLeaseTasknameTimestampDuration.java | 43 ++++++++++ .../resumequeue/AsyncResumeQueue.java | 46 ++++++++++ .../resumequeue/SyncResumeQueue.java | 43 ++++++++++ .../resumequeue/SyncResumeQueueQueuename.java | 39 +++++++++ .../resumequeue/SyncResumeQueueString.java | 39 +++++++++ .../runtask/AsyncRunTask.java | 46 ++++++++++ .../cloudtasksclient/runtask/SyncRunTask.java | 43 ++++++++++ .../runtask/SyncRunTaskString.java | 39 +++++++++ .../runtask/SyncRunTaskTaskname.java | 39 +++++++++ .../setiampolicy/AsyncSetIamPolicy.java | 49 +++++++++++ .../setiampolicy/SyncSetIamPolicy.java | 46 ++++++++++ .../SyncSetIamPolicyResourcenamePolicy.java | 41 +++++++++ .../SyncSetIamPolicyStringPolicy.java | 40 +++++++++ .../AsyncTestIamPermissions.java | 49 +++++++++++ .../SyncTestIamPermissions.java | 45 ++++++++++ ...tIamPermissionsResourcenameListstring.java | 44 ++++++++++ ...yncTestIamPermissionsStringListstring.java | 43 ++++++++++ .../updatequeue/AsyncUpdateQueue.java | 47 ++++++++++ .../updatequeue/SyncUpdateQueue.java | 44 ++++++++++ .../SyncUpdateQueueQueueFieldmask.java | 40 +++++++++ .../getqueue/SyncGetQueue.java | 45 ++++++++++ .../getqueue/SyncGetQueue.java | 45 ++++++++++ .../SyncCreateSetCredentialsProvider.java | 41 +++++++++ .../SyncCreateSetCredentialsProvider1.java | 40 +++++++++ .../create/SyncCreateSetEndpoint.java | 38 +++++++++ .../createqueue/AsyncCreateQueue.java | 47 ++++++++++ .../createqueue/SyncCreateQueue.java | 44 ++++++++++ .../SyncCreateQueueLocationnameQueue.java | 40 +++++++++ .../SyncCreateQueueStringQueue.java | 40 +++++++++ .../createtask/AsyncCreateTask.java | 47 ++++++++++ .../createtask/SyncCreateTask.java | 44 ++++++++++ .../SyncCreateTaskQueuenameTask.java | 40 +++++++++ .../createtask/SyncCreateTaskStringTask.java | 40 +++++++++ .../deletequeue/AsyncDeleteQueue.java | 46 ++++++++++ .../deletequeue/SyncDeleteQueue.java | 43 ++++++++++ .../deletequeue/SyncDeleteQueueQueuename.java | 39 +++++++++ .../deletequeue/SyncDeleteQueueString.java | 39 +++++++++ .../deletetask/AsyncDeleteTask.java | 46 ++++++++++ .../deletetask/SyncDeleteTask.java | 43 ++++++++++ .../deletetask/SyncDeleteTaskString.java | 39 +++++++++ .../deletetask/SyncDeleteTaskTaskname.java | 39 +++++++++ .../getiampolicy/AsyncGetIamPolicy.java | 48 +++++++++++ .../getiampolicy/SyncGetIamPolicy.java | 45 ++++++++++ .../SyncGetIamPolicyResourcename.java | 40 +++++++++ .../getiampolicy/SyncGetIamPolicyString.java | 39 +++++++++ .../getqueue/AsyncGetQueue.java | 48 +++++++++++ .../getqueue/SyncGetQueue.java | 45 ++++++++++ .../getqueue/SyncGetQueueQueuename.java | 39 +++++++++ .../getqueue/SyncGetQueueString.java | 39 +++++++++ .../gettask/AsyncGetTask.java | 46 ++++++++++ .../cloudtasksclient/gettask/SyncGetTask.java | 43 ++++++++++ .../gettask/SyncGetTaskString.java | 39 +++++++++ .../gettask/SyncGetTaskTaskname.java | 39 +++++++++ .../listqueues/AsyncListQueues.java | 53 ++++++++++++ .../listqueues/AsyncListQueuesPaged.java | 61 +++++++++++++ .../listqueues/SyncListQueues.java | 50 +++++++++++ .../SyncListQueuesLocationname.java | 41 +++++++++ .../listqueues/SyncListQueuesString.java | 41 +++++++++ .../listtasks/AsyncListTasks.java | 50 +++++++++++ .../listtasks/AsyncListTasksPaged.java | 58 +++++++++++++ .../listtasks/SyncListTasks.java | 47 ++++++++++ .../listtasks/SyncListTasksQueuename.java | 41 +++++++++ .../listtasks/SyncListTasksString.java | 41 +++++++++ .../pausequeue/AsyncPauseQueue.java | 46 ++++++++++ .../pausequeue/SyncPauseQueue.java | 43 ++++++++++ .../pausequeue/SyncPauseQueueQueuename.java | 39 +++++++++ .../pausequeue/SyncPauseQueueString.java | 39 +++++++++ .../purgequeue/AsyncPurgeQueue.java | 46 ++++++++++ .../purgequeue/SyncPurgeQueue.java | 43 ++++++++++ .../purgequeue/SyncPurgeQueueQueuename.java | 39 +++++++++ .../purgequeue/SyncPurgeQueueString.java | 39 +++++++++ .../resumequeue/AsyncResumeQueue.java | 46 ++++++++++ .../resumequeue/SyncResumeQueue.java | 43 ++++++++++ .../resumequeue/SyncResumeQueueQueuename.java | 39 +++++++++ .../resumequeue/SyncResumeQueueString.java | 39 +++++++++ .../runtask/AsyncRunTask.java | 46 ++++++++++ .../cloudtasksclient/runtask/SyncRunTask.java | 43 ++++++++++ .../runtask/SyncRunTaskString.java | 39 +++++++++ .../runtask/SyncRunTaskTaskname.java | 39 +++++++++ .../setiampolicy/AsyncSetIamPolicy.java | 49 +++++++++++ .../setiampolicy/SyncSetIamPolicy.java | 46 ++++++++++ .../SyncSetIamPolicyResourcenamePolicy.java | 41 +++++++++ .../SyncSetIamPolicyStringPolicy.java | 40 +++++++++ .../AsyncTestIamPermissions.java | 49 +++++++++++ .../SyncTestIamPermissions.java | 45 ++++++++++ ...tIamPermissionsResourcenameListstring.java | 44 ++++++++++ ...yncTestIamPermissionsStringListstring.java | 43 ++++++++++ .../updatequeue/AsyncUpdateQueue.java | 47 ++++++++++ .../updatequeue/SyncUpdateQueue.java | 44 ++++++++++ .../SyncUpdateQueueQueueFieldmask.java | 40 +++++++++ .../getqueue/SyncGetQueue.java | 45 ++++++++++ .../getqueue/SyncGetQueue.java | 45 ++++++++++ 238 files changed, 9999 insertions(+), 221 deletions(-) create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetEndpoint.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/AsyncCreateQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/AsyncCreateTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/AsyncDeleteTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/AsyncGetQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/AsyncGetTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskTaskname.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueues.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueues.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasks.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasksPaged.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasks.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksQueuename.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/AsyncPauseQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/AsyncResumeQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/AsyncRunTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskTaskname.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtaskssettings/getqueue/SyncGetQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/AsyncAcknowledgeTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskStringTimestamp.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskTasknameTimestamp.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/AsyncCancelLease.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLease.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseStringTimestamp.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseTasknameTimestamp.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetEndpoint.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/AsyncCreateQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/AsyncCreateTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/AsyncDeleteTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/AsyncGetQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/AsyncGetTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskTaskname.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/AsyncLeaseTasks.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasks.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksQueuenameDuration.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksStringDuration.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueues.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueues.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasks.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasksPaged.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasks.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksQueuename.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/AsyncPauseQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/AsyncRenewLease.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLease.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseStringTimestampDuration.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseTasknameTimestampDuration.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/AsyncResumeQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/AsyncRunTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskTaskname.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtaskssettings/getqueue/SyncGetQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetEndpoint.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/AsyncCreateQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/AsyncCreateTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskStringTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/AsyncDeleteQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/AsyncDeleteTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/AsyncGetQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueQueuename.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/AsyncGetTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskTaskname.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueues.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueuesPaged.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueues.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesLocationname.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasks.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasksPaged.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasks.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksQueuename.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/AsyncPauseQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/AsyncPurgeQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/AsyncResumeQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/AsyncRunTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskString.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskTaskname.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/AsyncUpdateQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtaskssettings/getqueue/SyncGetQueue.java create mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueProto.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueProto.java index 39c576fa..8d5cd837 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueProto.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueProto.java @@ -57,45 +57,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/field_behavior.proto\032\031google/api/resour" + "ce.proto\032\'google/cloud/tasks/v2beta2/tar" + "get.proto\032\036google/protobuf/duration.prot" - + "o\032\037google/protobuf/timestamp.proto\032\034goog" - + "le/api/annotations.proto\"\332\005\n\005Queue\022\014\n\004na" - + "me\030\001 \001(\t\022Q\n\026app_engine_http_target\030\003 \001(\013" - + "2/.google.cloud.tasks.v2beta2.AppEngineH" - + "ttpTargetH\000\022=\n\013pull_target\030\004 \001(\0132&.googl" - + "e.cloud.tasks.v2beta2.PullTargetH\000\022;\n\013ra" - + "te_limits\030\005 \001(\0132&.google.cloud.tasks.v2b" - + "eta2.RateLimits\022=\n\014retry_config\030\006 \001(\0132\'." - + "google.cloud.tasks.v2beta2.RetryConfig\0226" - + "\n\005state\030\007 \001(\0162\'.google.cloud.tasks.v2bet" - + "a2.Queue.State\022.\n\npurge_time\030\010 \001(\0132\032.goo" - + "gle.protobuf.Timestamp\022+\n\010task_ttl\030\t \001(\013" - + "2\031.google.protobuf.Duration\0220\n\rtombstone" - + "_ttl\030\n \001(\0132\031.google.protobuf.Duration\022:\n" - + "\005stats\030\020 \001(\0132&.google.cloud.tasks.v2beta" - + "2.QueueStatsB\003\340A\003\"E\n\005State\022\025\n\021STATE_UNSP" - + "ECIFIED\020\000\022\013\n\007RUNNING\020\001\022\n\n\006PAUSED\020\002\022\014\n\010DI" - + "SABLED\020\003:\\\352AY\n\037cloudtasks.googleapis.com" - + "/Queue\0226projects/{project}/locations/{lo" - + "cation}/queues/{queue}B\r\n\013target_type\"k\n" - + "\nRateLimits\022\'\n\037max_tasks_dispatched_per_" - + "second\030\001 \001(\001\022\026\n\016max_burst_size\030\002 \001(\005\022\034\n\024" - + "max_concurrent_tasks\030\003 \001(\005\"\201\002\n\013RetryConf" - + "ig\022\026\n\014max_attempts\030\001 \001(\005H\000\022\034\n\022unlimited_" - + "attempts\030\002 \001(\010H\000\0225\n\022max_retry_duration\030\003" - + " \001(\0132\031.google.protobuf.Duration\022.\n\013min_b" - + "ackoff\030\004 \001(\0132\031.google.protobuf.Duration\022" - + ".\n\013max_backoff\030\005 \001(\0132\031.google.protobuf.D" - + "uration\022\025\n\rmax_doublings\030\006 \001(\005B\016\n\014num_at" - + "tempts\"\350\001\n\nQueueStats\022\030\n\013tasks_count\030\001 \001" - + "(\003B\003\340A\003\022F\n\035oldest_estimated_arrival_time" - + "\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "\'\n\032executed_last_minute_count\030\003 \001(\003B\003\340A\003" - + "\022(\n\033concurrent_dispatches_count\030\004 \001(\003B\003\340" - + "A\003\022%\n\030effective_execution_rate\030\005 \001(\001B\003\340A" - + "\003Bo\n\036com.google.cloud.tasks.v2beta2B\nQue" - + "ueProtoP\001Z?google.golang.org/genproto/go" - + "ogleapis/cloud/tasks/v2beta2;tasksb\006prot" - + "o3" + + "o\032\037google/protobuf/timestamp.proto\"\332\005\n\005Q" + + "ueue\022\014\n\004name\030\001 \001(\t\022Q\n\026app_engine_http_ta" + + "rget\030\003 \001(\0132/.google.cloud.tasks.v2beta2." + + "AppEngineHttpTargetH\000\022=\n\013pull_target\030\004 \001" + + "(\0132&.google.cloud.tasks.v2beta2.PullTarg" + + "etH\000\022;\n\013rate_limits\030\005 \001(\0132&.google.cloud" + + ".tasks.v2beta2.RateLimits\022=\n\014retry_confi" + + "g\030\006 \001(\0132\'.google.cloud.tasks.v2beta2.Ret" + + "ryConfig\0226\n\005state\030\007 \001(\0162\'.google.cloud.t" + + "asks.v2beta2.Queue.State\022.\n\npurge_time\030\010" + + " \001(\0132\032.google.protobuf.Timestamp\022+\n\010task" + + "_ttl\030\t \001(\0132\031.google.protobuf.Duration\0220\n" + + "\rtombstone_ttl\030\n \001(\0132\031.google.protobuf.D" + + "uration\022:\n\005stats\030\020 \001(\0132&.google.cloud.ta" + + "sks.v2beta2.QueueStatsB\003\340A\003\"E\n\005State\022\025\n\021" + + "STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\n\n\006PAUS" + + "ED\020\002\022\014\n\010DISABLED\020\003:\\\352AY\n\037cloudtasks.goog" + + "leapis.com/Queue\0226projects/{project}/loc" + + "ations/{location}/queues/{queue}B\r\n\013targ" + + "et_type\"k\n\nRateLimits\022\'\n\037max_tasks_dispa" + + "tched_per_second\030\001 \001(\001\022\026\n\016max_burst_size" + + "\030\002 \001(\005\022\034\n\024max_concurrent_tasks\030\003 \001(\005\"\201\002\n" + + "\013RetryConfig\022\026\n\014max_attempts\030\001 \001(\005H\000\022\034\n\022" + + "unlimited_attempts\030\002 \001(\010H\000\0225\n\022max_retry_" + + "duration\030\003 \001(\0132\031.google.protobuf.Duratio" + + "n\022.\n\013min_backoff\030\004 \001(\0132\031.google.protobuf" + + ".Duration\022.\n\013max_backoff\030\005 \001(\0132\031.google." + + "protobuf.Duration\022\025\n\rmax_doublings\030\006 \001(\005" + + "B\016\n\014num_attempts\"\350\001\n\nQueueStats\022\030\n\013tasks" + + "_count\030\001 \001(\003B\003\340A\003\022F\n\035oldest_estimated_ar" + + "rival_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022\'\n\032executed_last_minute_count\030" + + "\003 \001(\003B\003\340A\003\022(\n\033concurrent_dispatches_coun" + + "t\030\004 \001(\003B\003\340A\003\022%\n\030effective_execution_rate" + + "\030\005 \001(\001B\003\340A\003Bo\n\036com.google.cloud.tasks.v2" + + "beta2B\nQueueProtoP\001Z?google.golang.org/g" + + "enproto/googleapis/cloud/tasks/v2beta2;t" + + "asksb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -106,7 +105,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.tasks.v2beta2.TargetProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_cloud_tasks_v2beta2_Queue_descriptor = getDescriptor().getMessageTypes().get(0); @@ -171,7 +169,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.tasks.v2beta2.TargetProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TargetProto.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TargetProto.java index 2ec60f36..7f55c35d 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TargetProto.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TargetProto.java @@ -61,35 +61,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n\'google/cloud/tasks/v2beta2/target.prot" - + "o\022\032google.cloud.tasks.v2beta2\032\034google/ap" - + "i/annotations.proto\"\014\n\nPullTarget\"+\n\013Pul" - + "lMessage\022\017\n\007payload\030\001 \001(\014\022\013\n\003tag\030\002 \001(\t\"h" - + "\n\023AppEngineHttpTarget\022Q\n\033app_engine_rout" - + "ing_override\030\001 \001(\0132,.google.cloud.tasks." - + "v2beta2.AppEngineRouting\"\304\002\n\024AppEngineHt" - + "tpRequest\022;\n\013http_method\030\001 \001(\0162&.google." - + "cloud.tasks.v2beta2.HttpMethod\022H\n\022app_en" - + "gine_routing\030\002 \001(\0132,.google.cloud.tasks." - + "v2beta2.AppEngineRouting\022\024\n\014relative_url" - + "\030\003 \001(\t\022N\n\007headers\030\004 \003(\0132=.google.cloud.t" - + "asks.v2beta2.AppEngineHttpRequest.Header" - + "sEntry\022\017\n\007payload\030\005 \001(\014\032.\n\014HeadersEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"T\n\020AppEn" - + "gineRouting\022\017\n\007service\030\001 \001(\t\022\017\n\007version\030" - + "\002 \001(\t\022\020\n\010instance\030\003 \001(\t\022\014\n\004host\030\004 \001(\t*[\n" - + "\nHttpMethod\022\033\n\027HTTP_METHOD_UNSPECIFIED\020\000" - + "\022\010\n\004POST\020\001\022\007\n\003GET\020\002\022\010\n\004HEAD\020\003\022\007\n\003PUT\020\004\022\n" - + "\n\006DELETE\020\005Bp\n\036com.google.cloud.tasks.v2b" - + "eta2B\013TargetProtoP\001Z?google.golang.org/g" - + "enproto/googleapis/cloud/tasks/v2beta2;t" - + "asksb\006proto3" + + "o\022\032google.cloud.tasks.v2beta2\"\014\n\nPullTar" + + "get\"+\n\013PullMessage\022\017\n\007payload\030\001 \001(\014\022\013\n\003t" + + "ag\030\002 \001(\t\"h\n\023AppEngineHttpTarget\022Q\n\033app_e" + + "ngine_routing_override\030\001 \001(\0132,.google.cl" + + "oud.tasks.v2beta2.AppEngineRouting\"\304\002\n\024A" + + "ppEngineHttpRequest\022;\n\013http_method\030\001 \001(\016" + + "2&.google.cloud.tasks.v2beta2.HttpMethod" + + "\022H\n\022app_engine_routing\030\002 \001(\0132,.google.cl" + + "oud.tasks.v2beta2.AppEngineRouting\022\024\n\014re" + + "lative_url\030\003 \001(\t\022N\n\007headers\030\004 \003(\0132=.goog" + + "le.cloud.tasks.v2beta2.AppEngineHttpRequ" + + "est.HeadersEntry\022\017\n\007payload\030\005 \001(\014\032.\n\014Hea" + + "dersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"T\n\020AppEngineRouting\022\017\n\007service\030\001 \001(\t\022\017" + + "\n\007version\030\002 \001(\t\022\020\n\010instance\030\003 \001(\t\022\014\n\004hos" + + "t\030\004 \001(\t*[\n\nHttpMethod\022\033\n\027HTTP_METHOD_UNS" + + "PECIFIED\020\000\022\010\n\004POST\020\001\022\007\n\003GET\020\002\022\010\n\004HEAD\020\003\022" + + "\007\n\003PUT\020\004\022\n\n\006DELETE\020\005Bp\n\036com.google.cloud" + + ".tasks.v2beta2B\013TargetProtoP\001Z?google.go" + + "lang.org/genproto/googleapis/cloud/tasks" + + "/v2beta2;tasksb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); internal_static_google_cloud_tasks_v2beta2_PullTarget_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_tasks_v2beta2_PullTarget_fieldAccessorTable = @@ -138,7 +134,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Service", "Version", "Instance", "Host", }); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskProto.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskProto.java index a0c50640..64bafdcd 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskProto.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskProto.java @@ -52,36 +52,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032google.cloud.tasks.v2beta2\032\031google/api/" + "resource.proto\032\'google/cloud/tasks/v2bet" + "a2/target.proto\032\037google/protobuf/timesta" - + "mp.proto\032\027google/rpc/status.proto\032\034googl" - + "e/api/annotations.proto\"\250\004\n\004Task\022\014\n\004name" - + "\030\001 \001(\t\022S\n\027app_engine_http_request\030\003 \001(\0132" - + "0.google.cloud.tasks.v2beta2.AppEngineHt" - + "tpRequestH\000\022?\n\014pull_message\030\004 \001(\0132\'.goog" - + "le.cloud.tasks.v2beta2.PullMessageH\000\0221\n\r" - + "schedule_time\030\005 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022/\n\013create_time\030\006 \001(\0132\032.google.pr" - + "otobuf.Timestamp\0226\n\006status\030\007 \001(\0132&.googl" - + "e.cloud.tasks.v2beta2.TaskStatus\0223\n\004view" - + "\030\010 \001(\0162%.google.cloud.tasks.v2beta2.Task" - + ".View\"1\n\004View\022\024\n\020VIEW_UNSPECIFIED\020\000\022\t\n\005B" - + "ASIC\020\001\022\010\n\004FULL\020\002:h\352Ae\n\036cloudtasks.google" - + "apis.com/Task\022Cprojects/{project}/locati" - + "ons/{location}/queues/{queue}/tasks/{tas" - + "k}B\016\n\014payload_type\"\335\001\n\nTaskStatus\022\036\n\026att" - + "empt_dispatch_count\030\001 \001(\005\022\036\n\026attempt_res" - + "ponse_count\030\002 \001(\005\022G\n\024first_attempt_statu" - + "s\030\003 \001(\0132).google.cloud.tasks.v2beta2.Att" - + "emptStatus\022F\n\023last_attempt_status\030\004 \001(\0132" - + ").google.cloud.tasks.v2beta2.AttemptStat" - + "us\"\325\001\n\rAttemptStatus\0221\n\rschedule_time\030\001 " - + "\001(\0132\032.google.protobuf.Timestamp\0221\n\rdispa" - + "tch_time\030\002 \001(\0132\032.google.protobuf.Timesta" - + "mp\0221\n\rresponse_time\030\003 \001(\0132\032.google.proto" - + "buf.Timestamp\022+\n\017response_status\030\004 \001(\0132\022" - + ".google.rpc.StatusBn\n\036com.google.cloud.t" - + "asks.v2beta2B\tTaskProtoP\001Z?google.golang" - + ".org/genproto/googleapis/cloud/tasks/v2b" - + "eta2;tasksb\006proto3" + + "mp.proto\032\027google/rpc/status.proto\"\250\004\n\004Ta" + + "sk\022\014\n\004name\030\001 \001(\t\022S\n\027app_engine_http_requ" + + "est\030\003 \001(\01320.google.cloud.tasks.v2beta2.A" + + "ppEngineHttpRequestH\000\022?\n\014pull_message\030\004 " + + "\001(\0132\'.google.cloud.tasks.v2beta2.PullMes" + + "sageH\000\0221\n\rschedule_time\030\005 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022/\n\013create_time\030\006 \001(\0132\032" + + ".google.protobuf.Timestamp\0226\n\006status\030\007 \001" + + "(\0132&.google.cloud.tasks.v2beta2.TaskStat" + + "us\0223\n\004view\030\010 \001(\0162%.google.cloud.tasks.v2" + + "beta2.Task.View\"1\n\004View\022\024\n\020VIEW_UNSPECIF" + + "IED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002:h\352Ae\n\036cloudta" + + "sks.googleapis.com/Task\022Cprojects/{proje" + + "ct}/locations/{location}/queues/{queue}/" + + "tasks/{task}B\016\n\014payload_type\"\335\001\n\nTaskSta" + + "tus\022\036\n\026attempt_dispatch_count\030\001 \001(\005\022\036\n\026a" + + "ttempt_response_count\030\002 \001(\005\022G\n\024first_att" + + "empt_status\030\003 \001(\0132).google.cloud.tasks.v" + + "2beta2.AttemptStatus\022F\n\023last_attempt_sta" + + "tus\030\004 \001(\0132).google.cloud.tasks.v2beta2.A" + + "ttemptStatus\"\325\001\n\rAttemptStatus\0221\n\rschedu" + + "le_time\030\001 \001(\0132\032.google.protobuf.Timestam" + + "p\0221\n\rdispatch_time\030\002 \001(\0132\032.google.protob" + + "uf.Timestamp\0221\n\rresponse_time\030\003 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022+\n\017response_stat" + + "us\030\004 \001(\0132\022.google.rpc.StatusBn\n\036com.goog" + + "le.cloud.tasks.v2beta2B\tTaskProtoP\001Z?goo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/tasks/v2beta2;tasksb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -91,7 +90,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.tasks.v2beta2.TargetProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_cloud_tasks_v2beta2_Task_descriptor = getDescriptor().getMessageTypes().get(0); @@ -136,7 +134,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.tasks.v2beta2.TargetProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/queue.proto b/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/queue.proto index f988d80c..2d6ba2e1 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/queue.proto +++ b/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/queue.proto @@ -21,7 +21,6 @@ import "google/api/resource.proto"; import "google/cloud/tasks/v2beta2/target.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks"; option java_multiple_files = true; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/target.proto b/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/target.proto index 09c8fd78..7ee837db 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/target.proto +++ b/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/target.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.tasks.v2beta2; -import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks"; option java_multiple_files = true; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/task.proto b/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/task.proto index 873a6f93..5e5c3575 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/task.proto +++ b/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/task.proto @@ -20,7 +20,6 @@ import "google/api/resource.proto"; import "google/cloud/tasks/v2beta2/target.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; -import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks"; option java_multiple_files = true; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueProto.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueProto.java index 6e32a784..6bee2e5e 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueProto.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueProto.java @@ -61,48 +61,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/field_behavior.proto\032\031google/api/resour" + "ce.proto\032\'google/cloud/tasks/v2beta3/tar" + "get.proto\032\036google/protobuf/duration.prot" - + "o\032\037google/protobuf/timestamp.proto\032\034goog" - + "le/api/annotations.proto\"\337\006\n\005Queue\022\014\n\004na" - + "me\030\001 \001(\t\022O\n\025app_engine_http_queue\030\003 \001(\0132" - + "..google.cloud.tasks.v2beta3.AppEngineHt" - + "tpQueueH\000\022;\n\013rate_limits\030\004 \001(\0132&.google." - + "cloud.tasks.v2beta3.RateLimits\022=\n\014retry_" - + "config\030\005 \001(\0132\'.google.cloud.tasks.v2beta" - + "3.RetryConfig\0226\n\005state\030\006 \001(\0162\'.google.cl" - + "oud.tasks.v2beta3.Queue.State\022.\n\npurge_t" - + "ime\030\007 \001(\0132\032.google.protobuf.Timestamp\022+\n" - + "\010task_ttl\030\010 \001(\0132\031.google.protobuf.Durati" - + "on\0220\n\rtombstone_ttl\030\t \001(\0132\031.google.proto" - + "buf.Duration\022X\n\032stackdriver_logging_conf" - + "ig\030\n \001(\01324.google.cloud.tasks.v2beta3.St" - + "ackdriverLoggingConfig\0229\n\004type\030\013 \001(\0162&.g" - + "oogle.cloud.tasks.v2beta3.Queue.TypeB\003\340A" - + "\005\022:\n\005stats\030\014 \001(\0132&.google.cloud.tasks.v2" - + "beta3.QueueStatsB\003\340A\003\"E\n\005State\022\025\n\021STATE_" - + "UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\n\n\006PAUSED\020\002\022\014" - + "\n\010DISABLED\020\003\"0\n\004Type\022\024\n\020TYPE_UNSPECIFIED" - + "\020\000\022\010\n\004PULL\020\001\022\010\n\004PUSH\020\002:\\\352AY\n\037cloudtasks." - + "googleapis.com/Queue\0226projects/{project}" - + "/locations/{location}/queues/{queue}B\014\n\n" - + "queue_type\"j\n\nRateLimits\022!\n\031max_dispatch" - + "es_per_second\030\001 \001(\001\022\026\n\016max_burst_size\030\002 " - + "\001(\005\022!\n\031max_concurrent_dispatches\030\003 \001(\005\"\321" - + "\001\n\013RetryConfig\022\024\n\014max_attempts\030\001 \001(\005\0225\n\022" - + "max_retry_duration\030\002 \001(\0132\031.google.protob" - + "uf.Duration\022.\n\013min_backoff\030\003 \001(\0132\031.googl" - + "e.protobuf.Duration\022.\n\013max_backoff\030\004 \001(\013" - + "2\031.google.protobuf.Duration\022\025\n\rmax_doubl" - + "ings\030\005 \001(\005\"2\n\030StackdriverLoggingConfig\022\026" - + "\n\016sampling_ratio\030\001 \001(\001\"\350\001\n\nQueueStats\022\030\n" - + "\013tasks_count\030\001 \001(\003B\003\340A\003\022F\n\035oldest_estima" - + "ted_arrival_time\030\002 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\022\'\n\032executed_last_minute_" - + "count\030\003 \001(\003B\003\340A\003\022(\n\033concurrent_dispatche" - + "s_count\030\004 \001(\003B\003\340A\003\022%\n\030effective_executio" - + "n_rate\030\005 \001(\001B\003\340A\003Bo\n\036com.google.cloud.ta" - + "sks.v2beta3B\nQueueProtoP\001Z?google.golang" - + ".org/genproto/googleapis/cloud/tasks/v2b" - + "eta3;tasksb\006proto3" + + "o\032\037google/protobuf/timestamp.proto\"\337\006\n\005Q" + + "ueue\022\014\n\004name\030\001 \001(\t\022O\n\025app_engine_http_qu" + + "eue\030\003 \001(\0132..google.cloud.tasks.v2beta3.A" + + "ppEngineHttpQueueH\000\022;\n\013rate_limits\030\004 \001(\013" + + "2&.google.cloud.tasks.v2beta3.RateLimits" + + "\022=\n\014retry_config\030\005 \001(\0132\'.google.cloud.ta" + + "sks.v2beta3.RetryConfig\0226\n\005state\030\006 \001(\0162\'" + + ".google.cloud.tasks.v2beta3.Queue.State\022" + + ".\n\npurge_time\030\007 \001(\0132\032.google.protobuf.Ti" + + "mestamp\022+\n\010task_ttl\030\010 \001(\0132\031.google.proto" + + "buf.Duration\0220\n\rtombstone_ttl\030\t \001(\0132\031.go" + + "ogle.protobuf.Duration\022X\n\032stackdriver_lo" + + "gging_config\030\n \001(\01324.google.cloud.tasks." + + "v2beta3.StackdriverLoggingConfig\0229\n\004type" + + "\030\013 \001(\0162&.google.cloud.tasks.v2beta3.Queu" + + "e.TypeB\003\340A\005\022:\n\005stats\030\014 \001(\0132&.google.clou" + + "d.tasks.v2beta3.QueueStatsB\003\340A\003\"E\n\005State" + + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\n\n\006" + + "PAUSED\020\002\022\014\n\010DISABLED\020\003\"0\n\004Type\022\024\n\020TYPE_U" + + "NSPECIFIED\020\000\022\010\n\004PULL\020\001\022\010\n\004PUSH\020\002:\\\352AY\n\037c" + + "loudtasks.googleapis.com/Queue\0226projects" + + "/{project}/locations/{location}/queues/{" + + "queue}B\014\n\nqueue_type\"j\n\nRateLimits\022!\n\031ma" + + "x_dispatches_per_second\030\001 \001(\001\022\026\n\016max_bur" + + "st_size\030\002 \001(\005\022!\n\031max_concurrent_dispatch" + + "es\030\003 \001(\005\"\321\001\n\013RetryConfig\022\024\n\014max_attempts" + + "\030\001 \001(\005\0225\n\022max_retry_duration\030\002 \001(\0132\031.goo" + + "gle.protobuf.Duration\022.\n\013min_backoff\030\003 \001" + + "(\0132\031.google.protobuf.Duration\022.\n\013max_bac" + + "koff\030\004 \001(\0132\031.google.protobuf.Duration\022\025\n" + + "\rmax_doublings\030\005 \001(\005\"2\n\030StackdriverLoggi" + + "ngConfig\022\026\n\016sampling_ratio\030\001 \001(\001\"\350\001\n\nQue" + + "ueStats\022\030\n\013tasks_count\030\001 \001(\003B\003\340A\003\022F\n\035old" + + "est_estimated_arrival_time\030\002 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\022\'\n\032executed_la" + + "st_minute_count\030\003 \001(\003B\003\340A\003\022(\n\033concurrent" + + "_dispatches_count\030\004 \001(\003B\003\340A\003\022%\n\030effectiv" + + "e_execution_rate\030\005 \001(\001B\003\340A\003Bo\n\036com.googl" + + "e.cloud.tasks.v2beta3B\nQueueProtoP\001Z?goo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/tasks/v2beta3;tasksb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -113,7 +112,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.tasks.v2beta3.TargetProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_cloud_tasks_v2beta3_Queue_descriptor = getDescriptor().getMessageTypes().get(0); @@ -181,7 +179,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.cloud.tasks.v2beta3.TargetProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TargetProto.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TargetProto.java index b76a8c8c..279f80b8 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TargetProto.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TargetProto.java @@ -73,47 +73,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n\'google/cloud/tasks/v2beta3/target.prot" - + "o\022\032google.cloud.tasks.v2beta3\032\034google/ap" - + "i/annotations.proto\"+\n\013PullMessage\022\017\n\007pa" - + "yload\030\001 \001(\014\022\013\n\003tag\030\002 \001(\t\"\360\002\n\013HttpRequest" - + "\022\013\n\003url\030\001 \001(\t\022;\n\013http_method\030\002 \001(\0162&.goo" - + "gle.cloud.tasks.v2beta3.HttpMethod\022E\n\007he" - + "aders\030\003 \003(\01324.google.cloud.tasks.v2beta3" - + ".HttpRequest.HeadersEntry\022\014\n\004body\030\004 \001(\014\022" - + "=\n\013oauth_token\030\005 \001(\0132&.google.cloud.task" - + "s.v2beta3.OAuthTokenH\000\022;\n\noidc_token\030\006 \001" - + "(\0132%.google.cloud.tasks.v2beta3.OidcToke" - + "nH\000\032.\n\014HeadersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001B\026\n\024authorization_header\"g\n\022A" - + "ppEngineHttpQueue\022Q\n\033app_engine_routing_" - + "override\030\001 \001(\0132,.google.cloud.tasks.v2be" - + "ta3.AppEngineRouting\"\301\002\n\024AppEngineHttpRe" - + "quest\022;\n\013http_method\030\001 \001(\0162&.google.clou" - + "d.tasks.v2beta3.HttpMethod\022H\n\022app_engine" - + "_routing\030\002 \001(\0132,.google.cloud.tasks.v2be" - + "ta3.AppEngineRouting\022\024\n\014relative_uri\030\003 \001" - + "(\t\022N\n\007headers\030\004 \003(\0132=.google.cloud.tasks" - + ".v2beta3.AppEngineHttpRequest.HeadersEnt" - + "ry\022\014\n\004body\030\005 \001(\014\032.\n\014HeadersEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"T\n\020AppEngineRou" - + "ting\022\017\n\007service\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022\020" - + "\n\010instance\030\003 \001(\t\022\014\n\004host\030\004 \001(\t\":\n\nOAuthT" - + "oken\022\035\n\025service_account_email\030\001 \001(\t\022\r\n\005s" - + "cope\030\002 \001(\t\"<\n\tOidcToken\022\035\n\025service_accou" - + "nt_email\030\001 \001(\t\022\020\n\010audience\030\002 \001(\t*s\n\nHttp" - + "Method\022\033\n\027HTTP_METHOD_UNSPECIFIED\020\000\022\010\n\004P" - + "OST\020\001\022\007\n\003GET\020\002\022\010\n\004HEAD\020\003\022\007\n\003PUT\020\004\022\n\n\006DEL" - + "ETE\020\005\022\t\n\005PATCH\020\006\022\013\n\007OPTIONS\020\007Bp\n\036com.goo" - + "gle.cloud.tasks.v2beta3B\013TargetProtoP\001Z?" - + "google.golang.org/genproto/googleapis/cl" - + "oud/tasks/v2beta3;tasksb\006proto3" + + "o\022\032google.cloud.tasks.v2beta3\"+\n\013PullMes" + + "sage\022\017\n\007payload\030\001 \001(\014\022\013\n\003tag\030\002 \001(\t\"\360\002\n\013H" + + "ttpRequest\022\013\n\003url\030\001 \001(\t\022;\n\013http_method\030\002" + + " \001(\0162&.google.cloud.tasks.v2beta3.HttpMe" + + "thod\022E\n\007headers\030\003 \003(\01324.google.cloud.tas" + + "ks.v2beta3.HttpRequest.HeadersEntry\022\014\n\004b" + + "ody\030\004 \001(\014\022=\n\013oauth_token\030\005 \001(\0132&.google." + + "cloud.tasks.v2beta3.OAuthTokenH\000\022;\n\noidc" + + "_token\030\006 \001(\0132%.google.cloud.tasks.v2beta" + + "3.OidcTokenH\000\032.\n\014HeadersEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\026\n\024authorization_h" + + "eader\"g\n\022AppEngineHttpQueue\022Q\n\033app_engin" + + "e_routing_override\030\001 \001(\0132,.google.cloud." + + "tasks.v2beta3.AppEngineRouting\"\301\002\n\024AppEn" + + "gineHttpRequest\022;\n\013http_method\030\001 \001(\0162&.g" + + "oogle.cloud.tasks.v2beta3.HttpMethod\022H\n\022" + + "app_engine_routing\030\002 \001(\0132,.google.cloud." + + "tasks.v2beta3.AppEngineRouting\022\024\n\014relati" + + "ve_uri\030\003 \001(\t\022N\n\007headers\030\004 \003(\0132=.google.c" + + "loud.tasks.v2beta3.AppEngineHttpRequest." + + "HeadersEntry\022\014\n\004body\030\005 \001(\014\032.\n\014HeadersEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"T\n\020Ap" + + "pEngineRouting\022\017\n\007service\030\001 \001(\t\022\017\n\007versi" + + "on\030\002 \001(\t\022\020\n\010instance\030\003 \001(\t\022\014\n\004host\030\004 \001(\t" + + "\":\n\nOAuthToken\022\035\n\025service_account_email\030" + + "\001 \001(\t\022\r\n\005scope\030\002 \001(\t\"<\n\tOidcToken\022\035\n\025ser" + + "vice_account_email\030\001 \001(\t\022\020\n\010audience\030\002 \001" + + "(\t*s\n\nHttpMethod\022\033\n\027HTTP_METHOD_UNSPECIF" + + "IED\020\000\022\010\n\004POST\020\001\022\007\n\003GET\020\002\022\010\n\004HEAD\020\003\022\007\n\003PU" + + "T\020\004\022\n\n\006DELETE\020\005\022\t\n\005PATCH\020\006\022\013\n\007OPTIONS\020\007B" + + "p\n\036com.google.cloud.tasks.v2beta3B\013Targe" + + "tProtoP\001Z?google.golang.org/genproto/goo" + + "gleapis/cloud/tasks/v2beta3;tasksb\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }); + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); internal_static_google_cloud_tasks_v2beta3_PullMessage_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_cloud_tasks_v2beta3_PullMessage_fieldAccessorTable = @@ -194,7 +191,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ServiceAccountEmail", "Audience", }); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskProto.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskProto.java index e57410e2..35a52e32 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskProto.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskProto.java @@ -49,36 +49,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "resource.proto\032\'google/cloud/tasks/v2bet" + "a3/target.proto\032\036google/protobuf/duratio" + "n.proto\032\037google/protobuf/timestamp.proto" - + "\032\027google/rpc/status.proto\032\034google/api/an" - + "notations.proto\"\216\006\n\004Task\022\014\n\004name\030\001 \001(\t\022S" - + "\n\027app_engine_http_request\030\003 \001(\01320.google" - + ".cloud.tasks.v2beta3.AppEngineHttpReques" - + "tH\000\022?\n\014http_request\030\013 \001(\0132\'.google.cloud" - + ".tasks.v2beta3.HttpRequestH\000\022?\n\014pull_mes" - + "sage\030\r \001(\0132\'.google.cloud.tasks.v2beta3." - + "PullMessageH\000\0221\n\rschedule_time\030\004 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\022/\n\013create_time\030" - + "\005 \001(\0132\032.google.protobuf.Timestamp\0224\n\021dis" - + "patch_deadline\030\014 \001(\0132\031.google.protobuf.D" - + "uration\022\026\n\016dispatch_count\030\006 \001(\005\022\026\n\016respo" - + "nse_count\030\007 \001(\005\022:\n\rfirst_attempt\030\010 \001(\0132#" - + ".google.cloud.tasks.v2beta3.Attempt\0229\n\014l" - + "ast_attempt\030\t \001(\0132#.google.cloud.tasks.v" - + "2beta3.Attempt\0223\n\004view\030\n \001(\0162%.google.cl" - + "oud.tasks.v2beta3.Task.View\"1\n\004View\022\024\n\020V" - + "IEW_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002:h" - + "\352Ae\n\036cloudtasks.googleapis.com/Task\022Cpro" - + "jects/{project}/locations/{location}/que" - + "ues/{queue}/tasks/{task}B\016\n\014payload_type" - + "\"\317\001\n\007Attempt\0221\n\rschedule_time\030\001 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\0221\n\rdispatch_time" - + "\030\002 \001(\0132\032.google.protobuf.Timestamp\0221\n\rre" - + "sponse_time\030\003 \001(\0132\032.google.protobuf.Time" - + "stamp\022+\n\017response_status\030\004 \001(\0132\022.google." - + "rpc.StatusBn\n\036com.google.cloud.tasks.v2b" - + "eta3B\tTaskProtoP\001Z?google.golang.org/gen" - + "proto/googleapis/cloud/tasks/v2beta3;tas" - + "ksb\006proto3" + + "\032\027google/rpc/status.proto\"\216\006\n\004Task\022\014\n\004na" + + "me\030\001 \001(\t\022S\n\027app_engine_http_request\030\003 \001(" + + "\01320.google.cloud.tasks.v2beta3.AppEngine" + + "HttpRequestH\000\022?\n\014http_request\030\013 \001(\0132\'.go" + + "ogle.cloud.tasks.v2beta3.HttpRequestH\000\022?" + + "\n\014pull_message\030\r \001(\0132\'.google.cloud.task" + + "s.v2beta3.PullMessageH\000\0221\n\rschedule_time" + + "\030\004 \001(\0132\032.google.protobuf.Timestamp\022/\n\013cr" + + "eate_time\030\005 \001(\0132\032.google.protobuf.Timest" + + "amp\0224\n\021dispatch_deadline\030\014 \001(\0132\031.google." + + "protobuf.Duration\022\026\n\016dispatch_count\030\006 \001(" + + "\005\022\026\n\016response_count\030\007 \001(\005\022:\n\rfirst_attem" + + "pt\030\010 \001(\0132#.google.cloud.tasks.v2beta3.At" + + "tempt\0229\n\014last_attempt\030\t \001(\0132#.google.clo" + + "ud.tasks.v2beta3.Attempt\0223\n\004view\030\n \001(\0162%" + + ".google.cloud.tasks.v2beta3.Task.View\"1\n" + + "\004View\022\024\n\020VIEW_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010" + + "\n\004FULL\020\002:h\352Ae\n\036cloudtasks.googleapis.com" + + "/Task\022Cprojects/{project}/locations/{loc" + + "ation}/queues/{queue}/tasks/{task}B\016\n\014pa" + + "yload_type\"\317\001\n\007Attempt\0221\n\rschedule_time\030" + + "\001 \001(\0132\032.google.protobuf.Timestamp\0221\n\rdis" + + "patch_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tamp\0221\n\rresponse_time\030\003 \001(\0132\032.google.pro" + + "tobuf.Timestamp\022+\n\017response_status\030\004 \001(\013" + + "2\022.google.rpc.StatusBn\n\036com.google.cloud" + + ".tasks.v2beta3B\tTaskProtoP\001Z?google.gola" + + "ng.org/genproto/googleapis/cloud/tasks/v" + + "2beta3;tasksb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -89,7 +88,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_cloud_tasks_v2beta3_Task_descriptor = getDescriptor().getMessageTypes().get(0); @@ -129,7 +127,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/queue.proto b/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/queue.proto index acf5a7f4..f892852b 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/queue.proto +++ b/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/queue.proto @@ -21,7 +21,6 @@ import "google/api/resource.proto"; import "google/cloud/tasks/v2beta3/target.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks"; option java_multiple_files = true; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/target.proto b/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/target.proto index 691cf97f..efebfedf 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/target.proto +++ b/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/target.proto @@ -16,7 +16,6 @@ syntax = "proto3"; package google.cloud.tasks.v2beta3; -import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks"; option java_multiple_files = true; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/task.proto b/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/task.proto index 8a652566..b491b5aa 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/task.proto +++ b/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/task.proto @@ -21,7 +21,6 @@ import "google/cloud/tasks/v2beta3/target.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; -import "google/api/annotations.proto"; option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks"; option java_multiple_files = true; diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..4e05d8c0 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.CloudTasksSettings; +import com.google.cloud.tasks.v2.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CloudTasksSettings cloudTasksSettings = + CloudTasksSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); + } +} +// [END tasks_v2_generated_cloudtasksclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..38514912 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_create_setcredentialsprovider1_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.CloudTasksSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CloudTasksSettings cloudTasksSettings = + CloudTasksSettings.newBuilder() + .setTransportChannelProvider( + CloudTasksSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); + } +} +// [END tasks_v2_generated_cloudtasksclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..9da8f9ea --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_create_setendpoint_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.CloudTasksSettings; +import com.google.cloud.tasks.v2.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CloudTasksSettings cloudTasksSettings = + CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build(); + CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); + } +} +// [END tasks_v2_generated_cloudtasksclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/AsyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/AsyncCreateQueue.java new file mode 100644 index 00000000..1b2db3dd --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/AsyncCreateQueue.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_createqueue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.CreateQueueRequest; +import com.google.cloud.tasks.v2.LocationName; +import com.google.cloud.tasks.v2.Queue; + +public class AsyncCreateQueue { + + public static void main(String[] args) throws Exception { + asyncCreateQueue(); + } + + public static void asyncCreateQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + CreateQueueRequest request = + CreateQueueRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setQueue(Queue.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.createQueueCallable().futureCall(request); + // Do something. + Queue response = future.get(); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_createqueue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueue.java new file mode 100644 index 00000000..11135004 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueue.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_createqueue_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.CreateQueueRequest; +import com.google.cloud.tasks.v2.LocationName; +import com.google.cloud.tasks.v2.Queue; + +public class SyncCreateQueue { + + public static void main(String[] args) throws Exception { + syncCreateQueue(); + } + + public static void syncCreateQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + CreateQueueRequest request = + CreateQueueRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setQueue(Queue.newBuilder().build()) + .build(); + Queue response = cloudTasksClient.createQueue(request); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_createqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java new file mode 100644 index 00000000..9c9fcc92 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_createqueue_locationnamequeue_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.LocationName; +import com.google.cloud.tasks.v2.Queue; + +public class SyncCreateQueueLocationnameQueue { + + public static void main(String[] args) throws Exception { + syncCreateQueueLocationnameQueue(); + } + + public static void syncCreateQueueLocationnameQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Queue queue = Queue.newBuilder().build(); + Queue response = cloudTasksClient.createQueue(parent, queue); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_createqueue_locationnamequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java new file mode 100644 index 00000000..721ffc9b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_createqueue_stringqueue_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.LocationName; +import com.google.cloud.tasks.v2.Queue; + +public class SyncCreateQueueStringQueue { + + public static void main(String[] args) throws Exception { + syncCreateQueueStringQueue(); + } + + public static void syncCreateQueueStringQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Queue queue = Queue.newBuilder().build(); + Queue response = cloudTasksClient.createQueue(parent, queue); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_createqueue_stringqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/AsyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/AsyncCreateTask.java new file mode 100644 index 00000000..ccf2a479 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/AsyncCreateTask.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_createtask_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.CreateTaskRequest; +import com.google.cloud.tasks.v2.QueueName; +import com.google.cloud.tasks.v2.Task; + +public class AsyncCreateTask { + + public static void main(String[] args) throws Exception { + asyncCreateTask(); + } + + public static void asyncCreateTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + CreateTaskRequest request = + CreateTaskRequest.newBuilder() + .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setTask(Task.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.createTaskCallable().futureCall(request); + // Do something. + Task response = future.get(); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_createtask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTask.java new file mode 100644 index 00000000..df58baee --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_createtask_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.CreateTaskRequest; +import com.google.cloud.tasks.v2.QueueName; +import com.google.cloud.tasks.v2.Task; + +public class SyncCreateTask { + + public static void main(String[] args) throws Exception { + syncCreateTask(); + } + + public static void syncCreateTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + CreateTaskRequest request = + CreateTaskRequest.newBuilder() + .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setTask(Task.newBuilder().build()) + .build(); + Task response = cloudTasksClient.createTask(request); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_createtask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java new file mode 100644 index 00000000..a84eb460 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_createtask_queuenametask_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.QueueName; +import com.google.cloud.tasks.v2.Task; + +public class SyncCreateTaskQueuenameTask { + + public static void main(String[] args) throws Exception { + syncCreateTaskQueuenameTask(); + } + + public static void syncCreateTaskQueuenameTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Task task = Task.newBuilder().build(); + Task response = cloudTasksClient.createTask(parent, task); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_createtask_queuenametask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java new file mode 100644 index 00000000..0860e295 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_createtask_stringtask_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.QueueName; +import com.google.cloud.tasks.v2.Task; + +public class SyncCreateTaskStringTask { + + public static void main(String[] args) throws Exception { + syncCreateTaskStringTask(); + } + + public static void syncCreateTaskStringTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Task task = Task.newBuilder().build(); + Task response = cloudTasksClient.createTask(parent, task); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_createtask_stringtask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java new file mode 100644 index 00000000..9762594b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_deletequeue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.DeleteQueueRequest; +import com.google.cloud.tasks.v2.QueueName; +import com.google.protobuf.Empty; + +public class AsyncDeleteQueue { + + public static void main(String[] args) throws Exception { + asyncDeleteQueue(); + } + + public static void asyncDeleteQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + DeleteQueueRequest request = + DeleteQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + ApiFuture future = cloudTasksClient.deleteQueueCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_deletequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueue.java new file mode 100644 index 00000000..da63071b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueue.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_deletequeue_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.DeleteQueueRequest; +import com.google.cloud.tasks.v2.QueueName; +import com.google.protobuf.Empty; + +public class SyncDeleteQueue { + + public static void main(String[] args) throws Exception { + syncDeleteQueue(); + } + + public static void syncDeleteQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + DeleteQueueRequest request = + DeleteQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + cloudTasksClient.deleteQueue(request); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_deletequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java new file mode 100644 index 00000000..694e60aa --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_deletequeue_queuename_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.QueueName; +import com.google.protobuf.Empty; + +public class SyncDeleteQueueQueuename { + + public static void main(String[] args) throws Exception { + syncDeleteQueueQueuename(); + } + + public static void syncDeleteQueueQueuename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + cloudTasksClient.deleteQueue(name); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_deletequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java new file mode 100644 index 00000000..8c7e82cf --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_deletequeue_string_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.QueueName; +import com.google.protobuf.Empty; + +public class SyncDeleteQueueString { + + public static void main(String[] args) throws Exception { + syncDeleteQueueString(); + } + + public static void syncDeleteQueueString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + cloudTasksClient.deleteQueue(name); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_deletequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/AsyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/AsyncDeleteTask.java new file mode 100644 index 00000000..632b3fab --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/AsyncDeleteTask.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_deletetask_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.DeleteTaskRequest; +import com.google.cloud.tasks.v2.TaskName; +import com.google.protobuf.Empty; + +public class AsyncDeleteTask { + + public static void main(String[] args) throws Exception { + asyncDeleteTask(); + } + + public static void asyncDeleteTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + DeleteTaskRequest request = + DeleteTaskRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .build(); + ApiFuture future = cloudTasksClient.deleteTaskCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_deletetask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTask.java new file mode 100644 index 00000000..fd2d3a75 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_deletetask_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.DeleteTaskRequest; +import com.google.cloud.tasks.v2.TaskName; +import com.google.protobuf.Empty; + +public class SyncDeleteTask { + + public static void main(String[] args) throws Exception { + syncDeleteTask(); + } + + public static void syncDeleteTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + DeleteTaskRequest request = + DeleteTaskRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .build(); + cloudTasksClient.deleteTask(request); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_deletetask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskString.java new file mode 100644 index 00000000..5871611c --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_deletetask_string_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.TaskName; +import com.google.protobuf.Empty; + +public class SyncDeleteTaskString { + + public static void main(String[] args) throws Exception { + syncDeleteTaskString(); + } + + public static void syncDeleteTaskString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); + cloudTasksClient.deleteTask(name); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_deletetask_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java new file mode 100644 index 00000000..189c71cf --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_deletetask_taskname_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.TaskName; +import com.google.protobuf.Empty; + +public class SyncDeleteTaskTaskname { + + public static void main(String[] args) throws Exception { + syncDeleteTaskTaskname(); + } + + public static void syncDeleteTaskTaskname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + cloudTasksClient.deleteTask(name); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_deletetask_taskname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 00000000..60880005 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_getiampolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.QueueName; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_getiampolicy_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 00000000..493482e2 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_getiampolicy_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.QueueName; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = cloudTasksClient.getIamPolicy(request); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_getiampolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java new file mode 100644 index 00000000..d463ab2e --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_getiampolicy_resourcename_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.QueueName; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyResourcename { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyResourcename(); + } + + public static void syncGetIamPolicyResourcename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Policy response = cloudTasksClient.getIamPolicy(resource); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_getiampolicy_resourcename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java new file mode 100644 index 00000000..979f61bc --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_getiampolicy_string_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.QueueName; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyString { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyString(); + } + + public static void syncGetIamPolicyString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Policy response = cloudTasksClient.getIamPolicy(resource); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_getiampolicy_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/AsyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/AsyncGetQueue.java new file mode 100644 index 00000000..0f432e89 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/AsyncGetQueue.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_getqueue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.GetQueueRequest; +import com.google.cloud.tasks.v2.Queue; +import com.google.cloud.tasks.v2.QueueName; + +public class AsyncGetQueue { + + public static void main(String[] args) throws Exception { + asyncGetQueue(); + } + + public static void asyncGetQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + GetQueueRequest request = + GetQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + ApiFuture future = cloudTasksClient.getQueueCallable().futureCall(request); + // Do something. + Queue response = future.get(); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_getqueue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueue.java new file mode 100644 index 00000000..0fc5586a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueue.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_getqueue_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.GetQueueRequest; +import com.google.cloud.tasks.v2.Queue; +import com.google.cloud.tasks.v2.QueueName; + +public class SyncGetQueue { + + public static void main(String[] args) throws Exception { + syncGetQueue(); + } + + public static void syncGetQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + GetQueueRequest request = + GetQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + Queue response = cloudTasksClient.getQueue(request); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_getqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java new file mode 100644 index 00000000..d080d45b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_getqueue_queuename_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.Queue; +import com.google.cloud.tasks.v2.QueueName; + +public class SyncGetQueueQueuename { + + public static void main(String[] args) throws Exception { + syncGetQueueQueuename(); + } + + public static void syncGetQueueQueuename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Queue response = cloudTasksClient.getQueue(name); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_getqueue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueString.java new file mode 100644 index 00000000..9ae88742 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_getqueue_string_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.Queue; +import com.google.cloud.tasks.v2.QueueName; + +public class SyncGetQueueString { + + public static void main(String[] args) throws Exception { + syncGetQueueString(); + } + + public static void syncGetQueueString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Queue response = cloudTasksClient.getQueue(name); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_getqueue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/AsyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/AsyncGetTask.java new file mode 100644 index 00000000..ffc0e660 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/AsyncGetTask.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_gettask_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.GetTaskRequest; +import com.google.cloud.tasks.v2.Task; +import com.google.cloud.tasks.v2.TaskName; + +public class AsyncGetTask { + + public static void main(String[] args) throws Exception { + asyncGetTask(); + } + + public static void asyncGetTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + GetTaskRequest request = + GetTaskRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .build(); + ApiFuture future = cloudTasksClient.getTaskCallable().futureCall(request); + // Do something. + Task response = future.get(); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_gettask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTask.java new file mode 100644 index 00000000..1d470d42 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_gettask_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.GetTaskRequest; +import com.google.cloud.tasks.v2.Task; +import com.google.cloud.tasks.v2.TaskName; + +public class SyncGetTask { + + public static void main(String[] args) throws Exception { + syncGetTask(); + } + + public static void syncGetTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + GetTaskRequest request = + GetTaskRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .build(); + Task response = cloudTasksClient.getTask(request); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_gettask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskString.java new file mode 100644 index 00000000..d571b3ec --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_gettask_string_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.Task; +import com.google.cloud.tasks.v2.TaskName; + +public class SyncGetTaskString { + + public static void main(String[] args) throws Exception { + syncGetTaskString(); + } + + public static void syncGetTaskString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); + Task response = cloudTasksClient.getTask(name); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_gettask_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskTaskname.java new file mode 100644 index 00000000..7047deb0 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskTaskname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_gettask_taskname_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.Task; +import com.google.cloud.tasks.v2.TaskName; + +public class SyncGetTaskTaskname { + + public static void main(String[] args) throws Exception { + syncGetTaskTaskname(); + } + + public static void syncGetTaskTaskname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + Task response = cloudTasksClient.getTask(name); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_gettask_taskname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueues.java new file mode 100644 index 00000000..e35753f3 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueues.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_listqueues_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.ListQueuesRequest; +import com.google.cloud.tasks.v2.LocationName; +import com.google.cloud.tasks.v2.Queue; + +public class AsyncListQueues { + + public static void main(String[] args) throws Exception { + asyncListQueues(); + } + + public static void asyncListQueues() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ListQueuesRequest request = + ListQueuesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = cloudTasksClient.listQueuesPagedCallable().futureCall(request); + // Do something. + for (Queue element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2_generated_cloudtasksclient_listqueues_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java new file mode 100644 index 00000000..be973228 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_listqueues_paged_async] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.ListQueuesRequest; +import com.google.cloud.tasks.v2.ListQueuesResponse; +import com.google.cloud.tasks.v2.LocationName; +import com.google.cloud.tasks.v2.Queue; +import com.google.common.base.Strings; + +public class AsyncListQueuesPaged { + + public static void main(String[] args) throws Exception { + asyncListQueuesPaged(); + } + + public static void asyncListQueuesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ListQueuesRequest request = + ListQueuesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListQueuesResponse response = cloudTasksClient.listQueuesCallable().call(request); + for (Queue element : response.getQueuesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END tasks_v2_generated_cloudtasksclient_listqueues_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueues.java new file mode 100644 index 00000000..2b403ced --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueues.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_listqueues_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.ListQueuesRequest; +import com.google.cloud.tasks.v2.LocationName; +import com.google.cloud.tasks.v2.Queue; + +public class SyncListQueues { + + public static void main(String[] args) throws Exception { + syncListQueues(); + } + + public static void syncListQueues() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ListQueuesRequest request = + ListQueuesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Queue element : cloudTasksClient.listQueues(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2_generated_cloudtasksclient_listqueues_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java new file mode 100644 index 00000000..306a8355 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_listqueues_locationname_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.LocationName; +import com.google.cloud.tasks.v2.Queue; + +public class SyncListQueuesLocationname { + + public static void main(String[] args) throws Exception { + syncListQueuesLocationname(); + } + + public static void syncListQueuesLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2_generated_cloudtasksclient_listqueues_locationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesString.java new file mode 100644 index 00000000..1ce53a05 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_listqueues_string_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.LocationName; +import com.google.cloud.tasks.v2.Queue; + +public class SyncListQueuesString { + + public static void main(String[] args) throws Exception { + syncListQueuesString(); + } + + public static void syncListQueuesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2_generated_cloudtasksclient_listqueues_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasks.java new file mode 100644 index 00000000..f2b39a83 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasks.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_listtasks_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.ListTasksRequest; +import com.google.cloud.tasks.v2.QueueName; +import com.google.cloud.tasks.v2.Task; + +public class AsyncListTasks { + + public static void main(String[] args) throws Exception { + asyncListTasks(); + } + + public static void asyncListTasks() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ListTasksRequest request = + ListTasksRequest.newBuilder() + .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = cloudTasksClient.listTasksPagedCallable().futureCall(request); + // Do something. + for (Task element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2_generated_cloudtasksclient_listtasks_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasksPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasksPaged.java new file mode 100644 index 00000000..95d3b4cb --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasksPaged.java @@ -0,0 +1,58 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_listtasks_paged_async] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.ListTasksRequest; +import com.google.cloud.tasks.v2.ListTasksResponse; +import com.google.cloud.tasks.v2.QueueName; +import com.google.cloud.tasks.v2.Task; +import com.google.common.base.Strings; + +public class AsyncListTasksPaged { + + public static void main(String[] args) throws Exception { + asyncListTasksPaged(); + } + + public static void asyncListTasksPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ListTasksRequest request = + ListTasksRequest.newBuilder() + .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListTasksResponse response = cloudTasksClient.listTasksCallable().call(request); + for (Task element : response.getTasksList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END tasks_v2_generated_cloudtasksclient_listtasks_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasks.java new file mode 100644 index 00000000..359dd06a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasks.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_listtasks_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.ListTasksRequest; +import com.google.cloud.tasks.v2.QueueName; +import com.google.cloud.tasks.v2.Task; + +public class SyncListTasks { + + public static void main(String[] args) throws Exception { + syncListTasks(); + } + + public static void syncListTasks() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ListTasksRequest request = + ListTasksRequest.newBuilder() + .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Task element : cloudTasksClient.listTasks(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2_generated_cloudtasksclient_listtasks_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksQueuename.java new file mode 100644 index 00000000..1c6ef375 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksQueuename.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_listtasks_queuename_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.QueueName; +import com.google.cloud.tasks.v2.Task; + +public class SyncListTasksQueuename { + + public static void main(String[] args) throws Exception { + syncListTasksQueuename(); + } + + public static void syncListTasksQueuename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2_generated_cloudtasksclient_listtasks_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksString.java new file mode 100644 index 00000000..ce21b319 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_listtasks_string_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.QueueName; +import com.google.cloud.tasks.v2.Task; + +public class SyncListTasksString { + + public static void main(String[] args) throws Exception { + syncListTasksString(); + } + + public static void syncListTasksString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2_generated_cloudtasksclient_listtasks_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/AsyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/AsyncPauseQueue.java new file mode 100644 index 00000000..ef03e3f9 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/AsyncPauseQueue.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_pausequeue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.PauseQueueRequest; +import com.google.cloud.tasks.v2.Queue; +import com.google.cloud.tasks.v2.QueueName; + +public class AsyncPauseQueue { + + public static void main(String[] args) throws Exception { + asyncPauseQueue(); + } + + public static void asyncPauseQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + PauseQueueRequest request = + PauseQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + ApiFuture future = cloudTasksClient.pauseQueueCallable().futureCall(request); + // Do something. + Queue response = future.get(); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_pausequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueue.java new file mode 100644 index 00000000..a3186b77 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueue.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_pausequeue_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.PauseQueueRequest; +import com.google.cloud.tasks.v2.Queue; +import com.google.cloud.tasks.v2.QueueName; + +public class SyncPauseQueue { + + public static void main(String[] args) throws Exception { + syncPauseQueue(); + } + + public static void syncPauseQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + PauseQueueRequest request = + PauseQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + Queue response = cloudTasksClient.pauseQueue(request); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_pausequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java new file mode 100644 index 00000000..218a3d59 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_pausequeue_queuename_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.Queue; +import com.google.cloud.tasks.v2.QueueName; + +public class SyncPauseQueueQueuename { + + public static void main(String[] args) throws Exception { + syncPauseQueueQueuename(); + } + + public static void syncPauseQueueQueuename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Queue response = cloudTasksClient.pauseQueue(name); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_pausequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueString.java new file mode 100644 index 00000000..0bfa1089 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_pausequeue_string_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.Queue; +import com.google.cloud.tasks.v2.QueueName; + +public class SyncPauseQueueString { + + public static void main(String[] args) throws Exception { + syncPauseQueueString(); + } + + public static void syncPauseQueueString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Queue response = cloudTasksClient.pauseQueue(name); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_pausequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java new file mode 100644 index 00000000..0f9e2f86 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_purgequeue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.PurgeQueueRequest; +import com.google.cloud.tasks.v2.Queue; +import com.google.cloud.tasks.v2.QueueName; + +public class AsyncPurgeQueue { + + public static void main(String[] args) throws Exception { + asyncPurgeQueue(); + } + + public static void asyncPurgeQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + PurgeQueueRequest request = + PurgeQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + ApiFuture future = cloudTasksClient.purgeQueueCallable().futureCall(request); + // Do something. + Queue response = future.get(); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_purgequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueue.java new file mode 100644 index 00000000..a16236a5 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueue.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_purgequeue_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.PurgeQueueRequest; +import com.google.cloud.tasks.v2.Queue; +import com.google.cloud.tasks.v2.QueueName; + +public class SyncPurgeQueue { + + public static void main(String[] args) throws Exception { + syncPurgeQueue(); + } + + public static void syncPurgeQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + PurgeQueueRequest request = + PurgeQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + Queue response = cloudTasksClient.purgeQueue(request); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_purgequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java new file mode 100644 index 00000000..3c864eaa --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_purgequeue_queuename_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.Queue; +import com.google.cloud.tasks.v2.QueueName; + +public class SyncPurgeQueueQueuename { + + public static void main(String[] args) throws Exception { + syncPurgeQueueQueuename(); + } + + public static void syncPurgeQueueQueuename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Queue response = cloudTasksClient.purgeQueue(name); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_purgequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java new file mode 100644 index 00000000..84007dc3 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_purgequeue_string_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.Queue; +import com.google.cloud.tasks.v2.QueueName; + +public class SyncPurgeQueueString { + + public static void main(String[] args) throws Exception { + syncPurgeQueueString(); + } + + public static void syncPurgeQueueString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Queue response = cloudTasksClient.purgeQueue(name); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_purgequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/AsyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/AsyncResumeQueue.java new file mode 100644 index 00000000..97db36cf --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/AsyncResumeQueue.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_resumequeue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.Queue; +import com.google.cloud.tasks.v2.QueueName; +import com.google.cloud.tasks.v2.ResumeQueueRequest; + +public class AsyncResumeQueue { + + public static void main(String[] args) throws Exception { + asyncResumeQueue(); + } + + public static void asyncResumeQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ResumeQueueRequest request = + ResumeQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + ApiFuture future = cloudTasksClient.resumeQueueCallable().futureCall(request); + // Do something. + Queue response = future.get(); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_resumequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueue.java new file mode 100644 index 00000000..acdb269d --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueue.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_resumequeue_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.Queue; +import com.google.cloud.tasks.v2.QueueName; +import com.google.cloud.tasks.v2.ResumeQueueRequest; + +public class SyncResumeQueue { + + public static void main(String[] args) throws Exception { + syncResumeQueue(); + } + + public static void syncResumeQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ResumeQueueRequest request = + ResumeQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + Queue response = cloudTasksClient.resumeQueue(request); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_resumequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java new file mode 100644 index 00000000..5526a4e8 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_resumequeue_queuename_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.Queue; +import com.google.cloud.tasks.v2.QueueName; + +public class SyncResumeQueueQueuename { + + public static void main(String[] args) throws Exception { + syncResumeQueueQueuename(); + } + + public static void syncResumeQueueQueuename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Queue response = cloudTasksClient.resumeQueue(name); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_resumequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueString.java new file mode 100644 index 00000000..0c29041f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_resumequeue_string_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.Queue; +import com.google.cloud.tasks.v2.QueueName; + +public class SyncResumeQueueString { + + public static void main(String[] args) throws Exception { + syncResumeQueueString(); + } + + public static void syncResumeQueueString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Queue response = cloudTasksClient.resumeQueue(name); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_resumequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/AsyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/AsyncRunTask.java new file mode 100644 index 00000000..cde80c1c --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/AsyncRunTask.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_runtask_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.RunTaskRequest; +import com.google.cloud.tasks.v2.Task; +import com.google.cloud.tasks.v2.TaskName; + +public class AsyncRunTask { + + public static void main(String[] args) throws Exception { + asyncRunTask(); + } + + public static void asyncRunTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + RunTaskRequest request = + RunTaskRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .build(); + ApiFuture future = cloudTasksClient.runTaskCallable().futureCall(request); + // Do something. + Task response = future.get(); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_runtask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTask.java new file mode 100644 index 00000000..ea176710 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_runtask_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.RunTaskRequest; +import com.google.cloud.tasks.v2.Task; +import com.google.cloud.tasks.v2.TaskName; + +public class SyncRunTask { + + public static void main(String[] args) throws Exception { + syncRunTask(); + } + + public static void syncRunTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + RunTaskRequest request = + RunTaskRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .build(); + Task response = cloudTasksClient.runTask(request); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_runtask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskString.java new file mode 100644 index 00000000..11b7fef8 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_runtask_string_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.Task; +import com.google.cloud.tasks.v2.TaskName; + +public class SyncRunTaskString { + + public static void main(String[] args) throws Exception { + syncRunTaskString(); + } + + public static void syncRunTaskString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); + Task response = cloudTasksClient.runTask(name); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_runtask_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskTaskname.java new file mode 100644 index 00000000..6e70b7b7 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskTaskname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_runtask_taskname_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.Task; +import com.google.cloud.tasks.v2.TaskName; + +public class SyncRunTaskTaskname { + + public static void main(String[] args) throws Exception { + syncRunTaskTaskname(); + } + + public static void syncRunTaskTaskname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + Task response = cloudTasksClient.runTask(name); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_runtask_taskname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 00000000..5a0e28fa --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_setiampolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.QueueName; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_setiampolicy_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 00000000..24d29467 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_setiampolicy_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.QueueName; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = cloudTasksClient.setIamPolicy(request); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_setiampolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java new file mode 100644 index 00000000..33cf4945 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_setiampolicy_resourcenamepolicy_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.QueueName; +import com.google.iam.v1.Policy; + +public class SyncSetIamPolicyResourcenamePolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyResourcenamePolicy(); + } + + public static void syncSetIamPolicyResourcenamePolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Policy policy = Policy.newBuilder().build(); + Policy response = cloudTasksClient.setIamPolicy(resource, policy); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_setiampolicy_resourcenamepolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java new file mode 100644 index 00000000..b12bbe3f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_setiampolicy_stringpolicy_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.QueueName; +import com.google.iam.v1.Policy; + +public class SyncSetIamPolicyStringPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyStringPolicy(); + } + + public static void syncSetIamPolicyStringPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Policy policy = Policy.newBuilder().build(); + Policy response = cloudTasksClient.setIamPolicy(resource, policy); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_setiampolicy_stringpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 00000000..0568b639 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_testiampermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.QueueName; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + cloudTasksClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_testiampermissions_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 00000000..f2f41700 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_testiampermissions_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.QueueName; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = cloudTasksClient.testIamPermissions(request); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_testiampermissions_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java new file mode 100644 index 00000000..38b1f4d1 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_testiampermissions_resourcenameliststring_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.QueueName; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; +import java.util.List; + +public class SyncTestIamPermissionsResourcenameListstring { + + public static void main(String[] args) throws Exception { + syncTestIamPermissionsResourcenameListstring(); + } + + public static void syncTestIamPermissionsResourcenameListstring() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + List permissions = new ArrayList<>(); + TestIamPermissionsResponse response = + cloudTasksClient.testIamPermissions(resource, permissions); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_testiampermissions_resourcenameliststring_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java new file mode 100644 index 00000000..381af0ce --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_testiampermissions_stringliststring_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.QueueName; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; +import java.util.List; + +public class SyncTestIamPermissionsStringListstring { + + public static void main(String[] args) throws Exception { + syncTestIamPermissionsStringListstring(); + } + + public static void syncTestIamPermissionsStringListstring() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + List permissions = new ArrayList<>(); + TestIamPermissionsResponse response = + cloudTasksClient.testIamPermissions(resource, permissions); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_testiampermissions_stringliststring_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java new file mode 100644 index 00000000..22494974 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_updatequeue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.Queue; +import com.google.cloud.tasks.v2.UpdateQueueRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateQueue { + + public static void main(String[] args) throws Exception { + asyncUpdateQueue(); + } + + public static void asyncUpdateQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + UpdateQueueRequest request = + UpdateQueueRequest.newBuilder() + .setQueue(Queue.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.updateQueueCallable().futureCall(request); + // Do something. + Queue response = future.get(); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_updatequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueue.java new file mode 100644 index 00000000..2038283e --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueue.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_updatequeue_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.Queue; +import com.google.cloud.tasks.v2.UpdateQueueRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateQueue { + + public static void main(String[] args) throws Exception { + syncUpdateQueue(); + } + + public static void syncUpdateQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + UpdateQueueRequest request = + UpdateQueueRequest.newBuilder() + .setQueue(Queue.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Queue response = cloudTasksClient.updateQueue(request); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_updatequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java new file mode 100644 index 00000000..4788dbb3 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtasksclient_updatequeue_queuefieldmask_sync] +import com.google.cloud.tasks.v2.CloudTasksClient; +import com.google.cloud.tasks.v2.Queue; +import com.google.protobuf.FieldMask; + +public class SyncUpdateQueueQueueFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateQueueQueueFieldmask(); + } + + public static void syncUpdateQueueQueueFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + Queue queue = Queue.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Queue response = cloudTasksClient.updateQueue(queue, updateMask); + } + } +} +// [END tasks_v2_generated_cloudtasksclient_updatequeue_queuefieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtaskssettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtaskssettings/getqueue/SyncGetQueue.java new file mode 100644 index 00000000..0ffb477c --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtaskssettings/getqueue/SyncGetQueue.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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.v2.samples; + +// [START tasks_v2_generated_cloudtaskssettings_getqueue_sync] +import com.google.cloud.tasks.v2.CloudTasksSettings; +import java.time.Duration; + +public class SyncGetQueue { + + public static void main(String[] args) throws Exception { + syncGetQueue(); + } + + public static void syncGetQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder(); + cloudTasksSettingsBuilder + .getQueueSettings() + .setRetrySettings( + cloudTasksSettingsBuilder + .getQueueSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build(); + } +} +// [END tasks_v2_generated_cloudtaskssettings_getqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java new file mode 100644 index 00000000..7f7bda8f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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.v2.stub.samples; + +// [START tasks_v2_generated_cloudtasksstubsettings_getqueue_sync] +import com.google.cloud.tasks.v2.stub.CloudTasksStubSettings; +import java.time.Duration; + +public class SyncGetQueue { + + public static void main(String[] args) throws Exception { + syncGetQueue(); + } + + public static void syncGetQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder(); + cloudTasksSettingsBuilder + .getQueueSettings() + .setRetrySettings( + cloudTasksSettingsBuilder + .getQueueSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build(); + } +} +// [END tasks_v2_generated_cloudtasksstubsettings_getqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/AsyncAcknowledgeTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/AsyncAcknowledgeTask.java new file mode 100644 index 00000000..ab1afa05 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/AsyncAcknowledgeTask.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_acknowledgetask_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.TaskName; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; + +public class AsyncAcknowledgeTask { + + public static void main(String[] args) throws Exception { + asyncAcknowledgeTask(); + } + + public static void asyncAcknowledgeTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + AcknowledgeTaskRequest request = + AcknowledgeTaskRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.acknowledgeTaskCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_acknowledgetask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTask.java new file mode 100644 index 00000000..3baa6f7e --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_acknowledgetask_sync] +import com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.TaskName; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; + +public class SyncAcknowledgeTask { + + public static void main(String[] args) throws Exception { + syncAcknowledgeTask(); + } + + public static void syncAcknowledgeTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + AcknowledgeTaskRequest request = + AcknowledgeTaskRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .build(); + cloudTasksClient.acknowledgeTask(request); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_acknowledgetask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskStringTimestamp.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskStringTimestamp.java new file mode 100644 index 00000000..92f2d61f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskStringTimestamp.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_acknowledgetask_stringtimestamp_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.TaskName; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; + +public class SyncAcknowledgeTaskStringTimestamp { + + public static void main(String[] args) throws Exception { + syncAcknowledgeTaskStringTimestamp(); + } + + public static void syncAcknowledgeTaskStringTimestamp() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + cloudTasksClient.acknowledgeTask(name, scheduleTime); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_acknowledgetask_stringtimestamp_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskTasknameTimestamp.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskTasknameTimestamp.java new file mode 100644 index 00000000..762125bd --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskTasknameTimestamp.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_acknowledgetask_tasknametimestamp_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.TaskName; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; + +public class SyncAcknowledgeTaskTasknameTimestamp { + + public static void main(String[] args) throws Exception { + syncAcknowledgeTaskTasknameTimestamp(); + } + + public static void syncAcknowledgeTaskTasknameTimestamp() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + cloudTasksClient.acknowledgeTask(name, scheduleTime); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_acknowledgetask_tasknametimestamp_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/AsyncCancelLease.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/AsyncCancelLease.java new file mode 100644 index 00000000..da94e453 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/AsyncCancelLease.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_cancellease_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta2.CancelLeaseRequest; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Task; +import com.google.cloud.tasks.v2beta2.TaskName; +import com.google.protobuf.Timestamp; + +public class AsyncCancelLease { + + public static void main(String[] args) throws Exception { + asyncCancelLease(); + } + + public static void asyncCancelLease() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + CancelLeaseRequest request = + CancelLeaseRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.cancelLeaseCallable().futureCall(request); + // Do something. + Task response = future.get(); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_cancellease_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLease.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLease.java new file mode 100644 index 00000000..5ed165c2 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLease.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_cancellease_sync] +import com.google.cloud.tasks.v2beta2.CancelLeaseRequest; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Task; +import com.google.cloud.tasks.v2beta2.TaskName; +import com.google.protobuf.Timestamp; + +public class SyncCancelLease { + + public static void main(String[] args) throws Exception { + syncCancelLease(); + } + + public static void syncCancelLease() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + CancelLeaseRequest request = + CancelLeaseRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .build(); + Task response = cloudTasksClient.cancelLease(request); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_cancellease_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseStringTimestamp.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseStringTimestamp.java new file mode 100644 index 00000000..d4f1f1c4 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseStringTimestamp.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_cancellease_stringtimestamp_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Task; +import com.google.cloud.tasks.v2beta2.TaskName; +import com.google.protobuf.Timestamp; + +public class SyncCancelLeaseStringTimestamp { + + public static void main(String[] args) throws Exception { + syncCancelLeaseStringTimestamp(); + } + + public static void syncCancelLeaseStringTimestamp() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + Task response = cloudTasksClient.cancelLease(name, scheduleTime); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_cancellease_stringtimestamp_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseTasknameTimestamp.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseTasknameTimestamp.java new file mode 100644 index 00000000..059088a1 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseTasknameTimestamp.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_cancellease_tasknametimestamp_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Task; +import com.google.cloud.tasks.v2beta2.TaskName; +import com.google.protobuf.Timestamp; + +public class SyncCancelLeaseTasknameTimestamp { + + public static void main(String[] args) throws Exception { + syncCancelLeaseTasknameTimestamp(); + } + + public static void syncCancelLeaseTasknameTimestamp() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + Task response = cloudTasksClient.cancelLease(name, scheduleTime); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_cancellease_tasknametimestamp_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..dbe6a904 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.CloudTasksSettings; +import com.google.cloud.tasks.v2beta2.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CloudTasksSettings cloudTasksSettings = + CloudTasksSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..abb4e687 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_create_setcredentialsprovider1_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.CloudTasksSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CloudTasksSettings cloudTasksSettings = + CloudTasksSettings.newBuilder() + .setTransportChannelProvider( + CloudTasksSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..4e47cdf5 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_create_setendpoint_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.CloudTasksSettings; +import com.google.cloud.tasks.v2beta2.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CloudTasksSettings cloudTasksSettings = + CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build(); + CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/AsyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/AsyncCreateQueue.java new file mode 100644 index 00000000..e9bfc5f9 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/AsyncCreateQueue.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_createqueue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.CreateQueueRequest; +import com.google.cloud.tasks.v2beta2.LocationName; +import com.google.cloud.tasks.v2beta2.Queue; + +public class AsyncCreateQueue { + + public static void main(String[] args) throws Exception { + asyncCreateQueue(); + } + + public static void asyncCreateQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + CreateQueueRequest request = + CreateQueueRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setQueue(Queue.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.createQueueCallable().futureCall(request); + // Do something. + Queue response = future.get(); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_createqueue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueue.java new file mode 100644 index 00000000..e34e8208 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueue.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_createqueue_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.CreateQueueRequest; +import com.google.cloud.tasks.v2beta2.LocationName; +import com.google.cloud.tasks.v2beta2.Queue; + +public class SyncCreateQueue { + + public static void main(String[] args) throws Exception { + syncCreateQueue(); + } + + public static void syncCreateQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + CreateQueueRequest request = + CreateQueueRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setQueue(Queue.newBuilder().build()) + .build(); + Queue response = cloudTasksClient.createQueue(request); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_createqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java new file mode 100644 index 00000000..b2327f59 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_createqueue_locationnamequeue_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.LocationName; +import com.google.cloud.tasks.v2beta2.Queue; + +public class SyncCreateQueueLocationnameQueue { + + public static void main(String[] args) throws Exception { + syncCreateQueueLocationnameQueue(); + } + + public static void syncCreateQueueLocationnameQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Queue queue = Queue.newBuilder().build(); + Queue response = cloudTasksClient.createQueue(parent, queue); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_createqueue_locationnamequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java new file mode 100644 index 00000000..2616093d --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_createqueue_stringqueue_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.LocationName; +import com.google.cloud.tasks.v2beta2.Queue; + +public class SyncCreateQueueStringQueue { + + public static void main(String[] args) throws Exception { + syncCreateQueueStringQueue(); + } + + public static void syncCreateQueueStringQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Queue queue = Queue.newBuilder().build(); + Queue response = cloudTasksClient.createQueue(parent, queue); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_createqueue_stringqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/AsyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/AsyncCreateTask.java new file mode 100644 index 00000000..e1b299a5 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/AsyncCreateTask.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_createtask_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.CreateTaskRequest; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.cloud.tasks.v2beta2.Task; + +public class AsyncCreateTask { + + public static void main(String[] args) throws Exception { + asyncCreateTask(); + } + + public static void asyncCreateTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + CreateTaskRequest request = + CreateTaskRequest.newBuilder() + .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setTask(Task.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.createTaskCallable().futureCall(request); + // Do something. + Task response = future.get(); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_createtask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTask.java new file mode 100644 index 00000000..390a437a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_createtask_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.CreateTaskRequest; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.cloud.tasks.v2beta2.Task; + +public class SyncCreateTask { + + public static void main(String[] args) throws Exception { + syncCreateTask(); + } + + public static void syncCreateTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + CreateTaskRequest request = + CreateTaskRequest.newBuilder() + .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setTask(Task.newBuilder().build()) + .build(); + Task response = cloudTasksClient.createTask(request); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_createtask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java new file mode 100644 index 00000000..62a070ae --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_createtask_queuenametask_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.cloud.tasks.v2beta2.Task; + +public class SyncCreateTaskQueuenameTask { + + public static void main(String[] args) throws Exception { + syncCreateTaskQueuenameTask(); + } + + public static void syncCreateTaskQueuenameTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Task task = Task.newBuilder().build(); + Task response = cloudTasksClient.createTask(parent, task); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_createtask_queuenametask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java new file mode 100644 index 00000000..73d350ce --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_createtask_stringtask_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.cloud.tasks.v2beta2.Task; + +public class SyncCreateTaskStringTask { + + public static void main(String[] args) throws Exception { + syncCreateTaskStringTask(); + } + + public static void syncCreateTaskStringTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Task task = Task.newBuilder().build(); + Task response = cloudTasksClient.createTask(parent, task); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_createtask_stringtask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java new file mode 100644 index 00000000..af835c27 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_deletequeue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.DeleteQueueRequest; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.protobuf.Empty; + +public class AsyncDeleteQueue { + + public static void main(String[] args) throws Exception { + asyncDeleteQueue(); + } + + public static void asyncDeleteQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + DeleteQueueRequest request = + DeleteQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + ApiFuture future = cloudTasksClient.deleteQueueCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_deletequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueue.java new file mode 100644 index 00000000..32678f61 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueue.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_deletequeue_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.DeleteQueueRequest; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.protobuf.Empty; + +public class SyncDeleteQueue { + + public static void main(String[] args) throws Exception { + syncDeleteQueue(); + } + + public static void syncDeleteQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + DeleteQueueRequest request = + DeleteQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + cloudTasksClient.deleteQueue(request); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_deletequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java new file mode 100644 index 00000000..951b6511 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_deletequeue_queuename_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.protobuf.Empty; + +public class SyncDeleteQueueQueuename { + + public static void main(String[] args) throws Exception { + syncDeleteQueueQueuename(); + } + + public static void syncDeleteQueueQueuename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + cloudTasksClient.deleteQueue(name); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_deletequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java new file mode 100644 index 00000000..43f176ba --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_deletequeue_string_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.protobuf.Empty; + +public class SyncDeleteQueueString { + + public static void main(String[] args) throws Exception { + syncDeleteQueueString(); + } + + public static void syncDeleteQueueString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + cloudTasksClient.deleteQueue(name); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_deletequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/AsyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/AsyncDeleteTask.java new file mode 100644 index 00000000..f9274df2 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/AsyncDeleteTask.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_deletetask_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.DeleteTaskRequest; +import com.google.cloud.tasks.v2beta2.TaskName; +import com.google.protobuf.Empty; + +public class AsyncDeleteTask { + + public static void main(String[] args) throws Exception { + asyncDeleteTask(); + } + + public static void asyncDeleteTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + DeleteTaskRequest request = + DeleteTaskRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .build(); + ApiFuture future = cloudTasksClient.deleteTaskCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_deletetask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTask.java new file mode 100644 index 00000000..36fe4ad3 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_deletetask_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.DeleteTaskRequest; +import com.google.cloud.tasks.v2beta2.TaskName; +import com.google.protobuf.Empty; + +public class SyncDeleteTask { + + public static void main(String[] args) throws Exception { + syncDeleteTask(); + } + + public static void syncDeleteTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + DeleteTaskRequest request = + DeleteTaskRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .build(); + cloudTasksClient.deleteTask(request); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_deletetask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskString.java new file mode 100644 index 00000000..0294a9a6 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_deletetask_string_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.TaskName; +import com.google.protobuf.Empty; + +public class SyncDeleteTaskString { + + public static void main(String[] args) throws Exception { + syncDeleteTaskString(); + } + + public static void syncDeleteTaskString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); + cloudTasksClient.deleteTask(name); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_deletetask_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java new file mode 100644 index 00000000..1f6b15ae --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_deletetask_taskname_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.TaskName; +import com.google.protobuf.Empty; + +public class SyncDeleteTaskTaskname { + + public static void main(String[] args) throws Exception { + syncDeleteTaskTaskname(); + } + + public static void syncDeleteTaskTaskname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + cloudTasksClient.deleteTask(name); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_deletetask_taskname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 00000000..d0f68b55 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_getiampolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_getiampolicy_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 00000000..ee3f1c67 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_getiampolicy_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = cloudTasksClient.getIamPolicy(request); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_getiampolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java new file mode 100644 index 00000000..a8002081 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_getiampolicy_resourcename_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyResourcename { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyResourcename(); + } + + public static void syncGetIamPolicyResourcename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Policy response = cloudTasksClient.getIamPolicy(resource); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_getiampolicy_resourcename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java new file mode 100644 index 00000000..6edf8501 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_getiampolicy_string_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyString { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyString(); + } + + public static void syncGetIamPolicyString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Policy response = cloudTasksClient.getIamPolicy(resource); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_getiampolicy_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/AsyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/AsyncGetQueue.java new file mode 100644 index 00000000..ae934132 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/AsyncGetQueue.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_getqueue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.GetQueueRequest; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.protobuf.FieldMask; + +public class AsyncGetQueue { + + public static void main(String[] args) throws Exception { + asyncGetQueue(); + } + + public static void asyncGetQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + GetQueueRequest request = + GetQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setReadMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.getQueueCallable().futureCall(request); + // Do something. + Queue response = future.get(); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_getqueue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueue.java new file mode 100644 index 00000000..58d8f86e --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueue.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_getqueue_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.GetQueueRequest; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.protobuf.FieldMask; + +public class SyncGetQueue { + + public static void main(String[] args) throws Exception { + syncGetQueue(); + } + + public static void syncGetQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + GetQueueRequest request = + GetQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setReadMask(FieldMask.newBuilder().build()) + .build(); + Queue response = cloudTasksClient.getQueue(request); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_getqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java new file mode 100644 index 00000000..06e7c5b8 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_getqueue_queuename_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.cloud.tasks.v2beta2.QueueName; + +public class SyncGetQueueQueuename { + + public static void main(String[] args) throws Exception { + syncGetQueueQueuename(); + } + + public static void syncGetQueueQueuename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Queue response = cloudTasksClient.getQueue(name); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_getqueue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueString.java new file mode 100644 index 00000000..8c83dbd4 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_getqueue_string_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.cloud.tasks.v2beta2.QueueName; + +public class SyncGetQueueString { + + public static void main(String[] args) throws Exception { + syncGetQueueString(); + } + + public static void syncGetQueueString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Queue response = cloudTasksClient.getQueue(name); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_getqueue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/AsyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/AsyncGetTask.java new file mode 100644 index 00000000..64cb85ce --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/AsyncGetTask.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_gettask_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.GetTaskRequest; +import com.google.cloud.tasks.v2beta2.Task; +import com.google.cloud.tasks.v2beta2.TaskName; + +public class AsyncGetTask { + + public static void main(String[] args) throws Exception { + asyncGetTask(); + } + + public static void asyncGetTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + GetTaskRequest request = + GetTaskRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .build(); + ApiFuture future = cloudTasksClient.getTaskCallable().futureCall(request); + // Do something. + Task response = future.get(); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_gettask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTask.java new file mode 100644 index 00000000..f7ae4a58 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_gettask_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.GetTaskRequest; +import com.google.cloud.tasks.v2beta2.Task; +import com.google.cloud.tasks.v2beta2.TaskName; + +public class SyncGetTask { + + public static void main(String[] args) throws Exception { + syncGetTask(); + } + + public static void syncGetTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + GetTaskRequest request = + GetTaskRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .build(); + Task response = cloudTasksClient.getTask(request); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_gettask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskString.java new file mode 100644 index 00000000..36fb1cf3 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_gettask_string_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Task; +import com.google.cloud.tasks.v2beta2.TaskName; + +public class SyncGetTaskString { + + public static void main(String[] args) throws Exception { + syncGetTaskString(); + } + + public static void syncGetTaskString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); + Task response = cloudTasksClient.getTask(name); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_gettask_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskTaskname.java new file mode 100644 index 00000000..517259c6 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskTaskname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_gettask_taskname_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Task; +import com.google.cloud.tasks.v2beta2.TaskName; + +public class SyncGetTaskTaskname { + + public static void main(String[] args) throws Exception { + syncGetTaskTaskname(); + } + + public static void syncGetTaskTaskname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + Task response = cloudTasksClient.getTask(name); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_gettask_taskname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/AsyncLeaseTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/AsyncLeaseTasks.java new file mode 100644 index 00000000..a712847f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/AsyncLeaseTasks.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_leasetasks_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.LeaseTasksRequest; +import com.google.cloud.tasks.v2beta2.LeaseTasksResponse; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.protobuf.Duration; + +public class AsyncLeaseTasks { + + public static void main(String[] args) throws Exception { + asyncLeaseTasks(); + } + + public static void asyncLeaseTasks() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + LeaseTasksRequest request = + LeaseTasksRequest.newBuilder() + .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setMaxTasks(-233969421) + .setLeaseDuration(Duration.newBuilder().build()) + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + cloudTasksClient.leaseTasksCallable().futureCall(request); + // Do something. + LeaseTasksResponse response = future.get(); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_leasetasks_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasks.java new file mode 100644 index 00000000..6f6a1b5e --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasks.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_leasetasks_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.LeaseTasksRequest; +import com.google.cloud.tasks.v2beta2.LeaseTasksResponse; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.protobuf.Duration; + +public class SyncLeaseTasks { + + public static void main(String[] args) throws Exception { + syncLeaseTasks(); + } + + public static void syncLeaseTasks() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + LeaseTasksRequest request = + LeaseTasksRequest.newBuilder() + .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setMaxTasks(-233969421) + .setLeaseDuration(Duration.newBuilder().build()) + .setFilter("filter-1274492040") + .build(); + LeaseTasksResponse response = cloudTasksClient.leaseTasks(request); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_leasetasks_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksQueuenameDuration.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksQueuenameDuration.java new file mode 100644 index 00000000..2a935d86 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksQueuenameDuration.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_leasetasks_queuenameduration_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.LeaseTasksResponse; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.protobuf.Duration; + +public class SyncLeaseTasksQueuenameDuration { + + public static void main(String[] args) throws Exception { + syncLeaseTasksQueuenameDuration(); + } + + public static void syncLeaseTasksQueuenameDuration() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Duration leaseDuration = Duration.newBuilder().build(); + LeaseTasksResponse response = cloudTasksClient.leaseTasks(parent, leaseDuration); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_leasetasks_queuenameduration_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksStringDuration.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksStringDuration.java new file mode 100644 index 00000000..a14af642 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksStringDuration.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_leasetasks_stringduration_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.LeaseTasksResponse; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.protobuf.Duration; + +public class SyncLeaseTasksStringDuration { + + public static void main(String[] args) throws Exception { + syncLeaseTasksStringDuration(); + } + + public static void syncLeaseTasksStringDuration() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Duration leaseDuration = Duration.newBuilder().build(); + LeaseTasksResponse response = cloudTasksClient.leaseTasks(parent, leaseDuration); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_leasetasks_stringduration_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueues.java new file mode 100644 index 00000000..0bd56057 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueues.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_listqueues_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.ListQueuesRequest; +import com.google.cloud.tasks.v2beta2.LocationName; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.protobuf.FieldMask; + +public class AsyncListQueues { + + public static void main(String[] args) throws Exception { + asyncListQueues(); + } + + public static void asyncListQueues() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ListQueuesRequest request = + ListQueuesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReadMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.listQueuesPagedCallable().futureCall(request); + // Do something. + for (Queue element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_listqueues_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java new file mode 100644 index 00000000..a7ab7e1a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_listqueues_paged_async] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.ListQueuesRequest; +import com.google.cloud.tasks.v2beta2.ListQueuesResponse; +import com.google.cloud.tasks.v2beta2.LocationName; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.common.base.Strings; +import com.google.protobuf.FieldMask; + +public class AsyncListQueuesPaged { + + public static void main(String[] args) throws Exception { + asyncListQueuesPaged(); + } + + public static void asyncListQueuesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ListQueuesRequest request = + ListQueuesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReadMask(FieldMask.newBuilder().build()) + .build(); + while (true) { + ListQueuesResponse response = cloudTasksClient.listQueuesCallable().call(request); + for (Queue element : response.getQueuesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_listqueues_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueues.java new file mode 100644 index 00000000..1572c738 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueues.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_listqueues_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.ListQueuesRequest; +import com.google.cloud.tasks.v2beta2.LocationName; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.protobuf.FieldMask; + +public class SyncListQueues { + + public static void main(String[] args) throws Exception { + syncListQueues(); + } + + public static void syncListQueues() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ListQueuesRequest request = + ListQueuesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReadMask(FieldMask.newBuilder().build()) + .build(); + for (Queue element : cloudTasksClient.listQueues(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_listqueues_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java new file mode 100644 index 00000000..b997ba49 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_listqueues_locationname_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.LocationName; +import com.google.cloud.tasks.v2beta2.Queue; + +public class SyncListQueuesLocationname { + + public static void main(String[] args) throws Exception { + syncListQueuesLocationname(); + } + + public static void syncListQueuesLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_listqueues_locationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesString.java new file mode 100644 index 00000000..ad6691a3 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_listqueues_string_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.LocationName; +import com.google.cloud.tasks.v2beta2.Queue; + +public class SyncListQueuesString { + + public static void main(String[] args) throws Exception { + syncListQueuesString(); + } + + public static void syncListQueuesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_listqueues_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasks.java new file mode 100644 index 00000000..894fc4df --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasks.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_listtasks_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.ListTasksRequest; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.cloud.tasks.v2beta2.Task; + +public class AsyncListTasks { + + public static void main(String[] args) throws Exception { + asyncListTasks(); + } + + public static void asyncListTasks() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ListTasksRequest request = + ListTasksRequest.newBuilder() + .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = cloudTasksClient.listTasksPagedCallable().futureCall(request); + // Do something. + for (Task element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_listtasks_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasksPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasksPaged.java new file mode 100644 index 00000000..b8612e2b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasksPaged.java @@ -0,0 +1,58 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_listtasks_paged_async] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.ListTasksRequest; +import com.google.cloud.tasks.v2beta2.ListTasksResponse; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.cloud.tasks.v2beta2.Task; +import com.google.common.base.Strings; + +public class AsyncListTasksPaged { + + public static void main(String[] args) throws Exception { + asyncListTasksPaged(); + } + + public static void asyncListTasksPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ListTasksRequest request = + ListTasksRequest.newBuilder() + .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListTasksResponse response = cloudTasksClient.listTasksCallable().call(request); + for (Task element : response.getTasksList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_listtasks_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasks.java new file mode 100644 index 00000000..558e80a5 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasks.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_listtasks_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.ListTasksRequest; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.cloud.tasks.v2beta2.Task; + +public class SyncListTasks { + + public static void main(String[] args) throws Exception { + syncListTasks(); + } + + public static void syncListTasks() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ListTasksRequest request = + ListTasksRequest.newBuilder() + .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Task element : cloudTasksClient.listTasks(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_listtasks_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksQueuename.java new file mode 100644 index 00000000..6877cc75 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksQueuename.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_listtasks_queuename_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.cloud.tasks.v2beta2.Task; + +public class SyncListTasksQueuename { + + public static void main(String[] args) throws Exception { + syncListTasksQueuename(); + } + + public static void syncListTasksQueuename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_listtasks_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksString.java new file mode 100644 index 00000000..48d68f82 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_listtasks_string_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.cloud.tasks.v2beta2.Task; + +public class SyncListTasksString { + + public static void main(String[] args) throws Exception { + syncListTasksString(); + } + + public static void syncListTasksString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_listtasks_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/AsyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/AsyncPauseQueue.java new file mode 100644 index 00000000..8d0f9560 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/AsyncPauseQueue.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_pausequeue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.PauseQueueRequest; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.cloud.tasks.v2beta2.QueueName; + +public class AsyncPauseQueue { + + public static void main(String[] args) throws Exception { + asyncPauseQueue(); + } + + public static void asyncPauseQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + PauseQueueRequest request = + PauseQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + ApiFuture future = cloudTasksClient.pauseQueueCallable().futureCall(request); + // Do something. + Queue response = future.get(); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_pausequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueue.java new file mode 100644 index 00000000..7fa8ca8f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueue.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_pausequeue_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.PauseQueueRequest; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.cloud.tasks.v2beta2.QueueName; + +public class SyncPauseQueue { + + public static void main(String[] args) throws Exception { + syncPauseQueue(); + } + + public static void syncPauseQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + PauseQueueRequest request = + PauseQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + Queue response = cloudTasksClient.pauseQueue(request); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_pausequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java new file mode 100644 index 00000000..86f55e8d --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_pausequeue_queuename_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.cloud.tasks.v2beta2.QueueName; + +public class SyncPauseQueueQueuename { + + public static void main(String[] args) throws Exception { + syncPauseQueueQueuename(); + } + + public static void syncPauseQueueQueuename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Queue response = cloudTasksClient.pauseQueue(name); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_pausequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueString.java new file mode 100644 index 00000000..b821a4d6 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_pausequeue_string_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.cloud.tasks.v2beta2.QueueName; + +public class SyncPauseQueueString { + + public static void main(String[] args) throws Exception { + syncPauseQueueString(); + } + + public static void syncPauseQueueString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Queue response = cloudTasksClient.pauseQueue(name); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_pausequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java new file mode 100644 index 00000000..515451a9 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_purgequeue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.PurgeQueueRequest; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.cloud.tasks.v2beta2.QueueName; + +public class AsyncPurgeQueue { + + public static void main(String[] args) throws Exception { + asyncPurgeQueue(); + } + + public static void asyncPurgeQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + PurgeQueueRequest request = + PurgeQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + ApiFuture future = cloudTasksClient.purgeQueueCallable().futureCall(request); + // Do something. + Queue response = future.get(); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_purgequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueue.java new file mode 100644 index 00000000..2a7019c1 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueue.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_purgequeue_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.PurgeQueueRequest; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.cloud.tasks.v2beta2.QueueName; + +public class SyncPurgeQueue { + + public static void main(String[] args) throws Exception { + syncPurgeQueue(); + } + + public static void syncPurgeQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + PurgeQueueRequest request = + PurgeQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + Queue response = cloudTasksClient.purgeQueue(request); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_purgequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java new file mode 100644 index 00000000..66b1e90a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_purgequeue_queuename_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.cloud.tasks.v2beta2.QueueName; + +public class SyncPurgeQueueQueuename { + + public static void main(String[] args) throws Exception { + syncPurgeQueueQueuename(); + } + + public static void syncPurgeQueueQueuename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Queue response = cloudTasksClient.purgeQueue(name); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_purgequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java new file mode 100644 index 00000000..9f932af0 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_purgequeue_string_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.cloud.tasks.v2beta2.QueueName; + +public class SyncPurgeQueueString { + + public static void main(String[] args) throws Exception { + syncPurgeQueueString(); + } + + public static void syncPurgeQueueString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Queue response = cloudTasksClient.purgeQueue(name); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_purgequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/AsyncRenewLease.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/AsyncRenewLease.java new file mode 100644 index 00000000..78690e08 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/AsyncRenewLease.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_renewlease_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.RenewLeaseRequest; +import com.google.cloud.tasks.v2beta2.Task; +import com.google.cloud.tasks.v2beta2.TaskName; +import com.google.protobuf.Duration; +import com.google.protobuf.Timestamp; + +public class AsyncRenewLease { + + public static void main(String[] args) throws Exception { + asyncRenewLease(); + } + + public static void asyncRenewLease() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + RenewLeaseRequest request = + RenewLeaseRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setLeaseDuration(Duration.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.renewLeaseCallable().futureCall(request); + // Do something. + Task response = future.get(); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_renewlease_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLease.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLease.java new file mode 100644 index 00000000..3645572a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLease.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_renewlease_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.RenewLeaseRequest; +import com.google.cloud.tasks.v2beta2.Task; +import com.google.cloud.tasks.v2beta2.TaskName; +import com.google.protobuf.Duration; +import com.google.protobuf.Timestamp; + +public class SyncRenewLease { + + public static void main(String[] args) throws Exception { + syncRenewLease(); + } + + public static void syncRenewLease() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + RenewLeaseRequest request = + RenewLeaseRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .setScheduleTime(Timestamp.newBuilder().build()) + .setLeaseDuration(Duration.newBuilder().build()) + .build(); + Task response = cloudTasksClient.renewLease(request); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_renewlease_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseStringTimestampDuration.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseStringTimestampDuration.java new file mode 100644 index 00000000..fcbc0c02 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseStringTimestampDuration.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_renewlease_stringtimestampduration_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Task; +import com.google.cloud.tasks.v2beta2.TaskName; +import com.google.protobuf.Duration; +import com.google.protobuf.Timestamp; + +public class SyncRenewLeaseStringTimestampDuration { + + public static void main(String[] args) throws Exception { + syncRenewLeaseStringTimestampDuration(); + } + + public static void syncRenewLeaseStringTimestampDuration() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + Duration leaseDuration = Duration.newBuilder().build(); + Task response = cloudTasksClient.renewLease(name, scheduleTime, leaseDuration); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_renewlease_stringtimestampduration_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseTasknameTimestampDuration.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseTasknameTimestampDuration.java new file mode 100644 index 00000000..9811a9ea --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseTasknameTimestampDuration.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_renewlease_tasknametimestampduration_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Task; +import com.google.cloud.tasks.v2beta2.TaskName; +import com.google.protobuf.Duration; +import com.google.protobuf.Timestamp; + +public class SyncRenewLeaseTasknameTimestampDuration { + + public static void main(String[] args) throws Exception { + syncRenewLeaseTasknameTimestampDuration(); + } + + public static void syncRenewLeaseTasknameTimestampDuration() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + Timestamp scheduleTime = Timestamp.newBuilder().build(); + Duration leaseDuration = Duration.newBuilder().build(); + Task response = cloudTasksClient.renewLease(name, scheduleTime, leaseDuration); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_renewlease_tasknametimestampduration_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/AsyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/AsyncResumeQueue.java new file mode 100644 index 00000000..14c6db59 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/AsyncResumeQueue.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_resumequeue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.cloud.tasks.v2beta2.ResumeQueueRequest; + +public class AsyncResumeQueue { + + public static void main(String[] args) throws Exception { + asyncResumeQueue(); + } + + public static void asyncResumeQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ResumeQueueRequest request = + ResumeQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + ApiFuture future = cloudTasksClient.resumeQueueCallable().futureCall(request); + // Do something. + Queue response = future.get(); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_resumequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueue.java new file mode 100644 index 00000000..998644e5 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueue.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_resumequeue_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.cloud.tasks.v2beta2.ResumeQueueRequest; + +public class SyncResumeQueue { + + public static void main(String[] args) throws Exception { + syncResumeQueue(); + } + + public static void syncResumeQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ResumeQueueRequest request = + ResumeQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + Queue response = cloudTasksClient.resumeQueue(request); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_resumequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java new file mode 100644 index 00000000..165e4017 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_resumequeue_queuename_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.cloud.tasks.v2beta2.QueueName; + +public class SyncResumeQueueQueuename { + + public static void main(String[] args) throws Exception { + syncResumeQueueQueuename(); + } + + public static void syncResumeQueueQueuename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Queue response = cloudTasksClient.resumeQueue(name); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_resumequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueString.java new file mode 100644 index 00000000..7e00ccec --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_resumequeue_string_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.cloud.tasks.v2beta2.QueueName; + +public class SyncResumeQueueString { + + public static void main(String[] args) throws Exception { + syncResumeQueueString(); + } + + public static void syncResumeQueueString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Queue response = cloudTasksClient.resumeQueue(name); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_resumequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/AsyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/AsyncRunTask.java new file mode 100644 index 00000000..7f31a5b6 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/AsyncRunTask.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_runtask_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.RunTaskRequest; +import com.google.cloud.tasks.v2beta2.Task; +import com.google.cloud.tasks.v2beta2.TaskName; + +public class AsyncRunTask { + + public static void main(String[] args) throws Exception { + asyncRunTask(); + } + + public static void asyncRunTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + RunTaskRequest request = + RunTaskRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .build(); + ApiFuture future = cloudTasksClient.runTaskCallable().futureCall(request); + // Do something. + Task response = future.get(); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_runtask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTask.java new file mode 100644 index 00000000..df779a69 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_runtask_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.RunTaskRequest; +import com.google.cloud.tasks.v2beta2.Task; +import com.google.cloud.tasks.v2beta2.TaskName; + +public class SyncRunTask { + + public static void main(String[] args) throws Exception { + syncRunTask(); + } + + public static void syncRunTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + RunTaskRequest request = + RunTaskRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .build(); + Task response = cloudTasksClient.runTask(request); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_runtask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskString.java new file mode 100644 index 00000000..64f30152 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_runtask_string_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Task; +import com.google.cloud.tasks.v2beta2.TaskName; + +public class SyncRunTaskString { + + public static void main(String[] args) throws Exception { + syncRunTaskString(); + } + + public static void syncRunTaskString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); + Task response = cloudTasksClient.runTask(name); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_runtask_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskTaskname.java new file mode 100644 index 00000000..68129a6b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskTaskname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_runtask_taskname_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Task; +import com.google.cloud.tasks.v2beta2.TaskName; + +public class SyncRunTaskTaskname { + + public static void main(String[] args) throws Exception { + syncRunTaskTaskname(); + } + + public static void syncRunTaskTaskname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + Task response = cloudTasksClient.runTask(name); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_runtask_taskname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 00000000..fd9321df --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_setiampolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_setiampolicy_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 00000000..9a844bdd --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_setiampolicy_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = cloudTasksClient.setIamPolicy(request); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_setiampolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java new file mode 100644 index 00000000..0fb2c9c1 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_setiampolicy_resourcenamepolicy_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.iam.v1.Policy; + +public class SyncSetIamPolicyResourcenamePolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyResourcenamePolicy(); + } + + public static void syncSetIamPolicyResourcenamePolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Policy policy = Policy.newBuilder().build(); + Policy response = cloudTasksClient.setIamPolicy(resource, policy); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_setiampolicy_resourcenamepolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java new file mode 100644 index 00000000..76d66482 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_setiampolicy_stringpolicy_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.iam.v1.Policy; + +public class SyncSetIamPolicyStringPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyStringPolicy(); + } + + public static void syncSetIamPolicyStringPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Policy policy = Policy.newBuilder().build(); + Policy response = cloudTasksClient.setIamPolicy(resource, policy); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_setiampolicy_stringpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 00000000..fb85bdfc --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_testiampermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + cloudTasksClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_testiampermissions_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 00000000..23e0592e --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_testiampermissions_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = cloudTasksClient.testIamPermissions(request); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_testiampermissions_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java new file mode 100644 index 00000000..a36a8bc6 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_testiampermissions_resourcenameliststring_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; +import java.util.List; + +public class SyncTestIamPermissionsResourcenameListstring { + + public static void main(String[] args) throws Exception { + syncTestIamPermissionsResourcenameListstring(); + } + + public static void syncTestIamPermissionsResourcenameListstring() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + List permissions = new ArrayList<>(); + TestIamPermissionsResponse response = + cloudTasksClient.testIamPermissions(resource, permissions); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_testiampermissions_resourcenameliststring_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java new file mode 100644 index 00000000..ca23ca6f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_testiampermissions_stringliststring_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.QueueName; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; +import java.util.List; + +public class SyncTestIamPermissionsStringListstring { + + public static void main(String[] args) throws Exception { + syncTestIamPermissionsStringListstring(); + } + + public static void syncTestIamPermissionsStringListstring() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + List permissions = new ArrayList<>(); + TestIamPermissionsResponse response = + cloudTasksClient.testIamPermissions(resource, permissions); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_testiampermissions_stringliststring_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java new file mode 100644 index 00000000..55067342 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_updatequeue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.cloud.tasks.v2beta2.UpdateQueueRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateQueue { + + public static void main(String[] args) throws Exception { + asyncUpdateQueue(); + } + + public static void asyncUpdateQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + UpdateQueueRequest request = + UpdateQueueRequest.newBuilder() + .setQueue(Queue.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.updateQueueCallable().futureCall(request); + // Do something. + Queue response = future.get(); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_updatequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueue.java new file mode 100644 index 00000000..efa507ef --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueue.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_updatequeue_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.cloud.tasks.v2beta2.UpdateQueueRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateQueue { + + public static void main(String[] args) throws Exception { + syncUpdateQueue(); + } + + public static void syncUpdateQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + UpdateQueueRequest request = + UpdateQueueRequest.newBuilder() + .setQueue(Queue.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Queue response = cloudTasksClient.updateQueue(request); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_updatequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java new file mode 100644 index 00000000..e4c8bd50 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_updatequeue_queuefieldmask_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksClient; +import com.google.cloud.tasks.v2beta2.Queue; +import com.google.protobuf.FieldMask; + +public class SyncUpdateQueueQueueFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateQueueQueueFieldmask(); + } + + public static void syncUpdateQueueQueueFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + Queue queue = Queue.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Queue response = cloudTasksClient.updateQueue(queue, updateMask); + } + } +} +// [END tasks_v2beta2_generated_cloudtasksclient_updatequeue_queuefieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtaskssettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtaskssettings/getqueue/SyncGetQueue.java new file mode 100644 index 00000000..1a243ce7 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtaskssettings/getqueue/SyncGetQueue.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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 tasks_v2beta2_generated_cloudtaskssettings_getqueue_sync] +import com.google.cloud.tasks.v2beta2.CloudTasksSettings; +import java.time.Duration; + +public class SyncGetQueue { + + public static void main(String[] args) throws Exception { + syncGetQueue(); + } + + public static void syncGetQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder(); + cloudTasksSettingsBuilder + .getQueueSettings() + .setRetrySettings( + cloudTasksSettingsBuilder + .getQueueSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build(); + } +} +// [END tasks_v2beta2_generated_cloudtaskssettings_getqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java new file mode 100644 index 00000000..4b3c654b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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.stub.samples; + +// [START tasks_v2beta2_generated_cloudtasksstubsettings_getqueue_sync] +import com.google.cloud.tasks.v2beta2.stub.CloudTasksStubSettings; +import java.time.Duration; + +public class SyncGetQueue { + + public static void main(String[] args) throws Exception { + syncGetQueue(); + } + + public static void syncGetQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder(); + cloudTasksSettingsBuilder + .getQueueSettings() + .setRetrySettings( + cloudTasksSettingsBuilder + .getQueueSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build(); + } +} +// [END tasks_v2beta2_generated_cloudtasksstubsettings_getqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 00000000..312b4383 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.CloudTasksSettings; +import com.google.cloud.tasks.v2beta3.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CloudTasksSettings cloudTasksSettings = + CloudTasksSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 00000000..85431e3e --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_create_setcredentialsprovider1_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.CloudTasksSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CloudTasksSettings cloudTasksSettings = + CloudTasksSettings.newBuilder() + .setTransportChannelProvider( + CloudTasksSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 00000000..d434e08d --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_create_setendpoint_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.CloudTasksSettings; +import com.google.cloud.tasks.v2beta3.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CloudTasksSettings cloudTasksSettings = + CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build(); + CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/AsyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/AsyncCreateQueue.java new file mode 100644 index 00000000..ca315705 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/AsyncCreateQueue.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_createqueue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.CreateQueueRequest; +import com.google.cloud.tasks.v2beta3.LocationName; +import com.google.cloud.tasks.v2beta3.Queue; + +public class AsyncCreateQueue { + + public static void main(String[] args) throws Exception { + asyncCreateQueue(); + } + + public static void asyncCreateQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + CreateQueueRequest request = + CreateQueueRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setQueue(Queue.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.createQueueCallable().futureCall(request); + // Do something. + Queue response = future.get(); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_createqueue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueue.java new file mode 100644 index 00000000..4d711ceb --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueue.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_createqueue_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.CreateQueueRequest; +import com.google.cloud.tasks.v2beta3.LocationName; +import com.google.cloud.tasks.v2beta3.Queue; + +public class SyncCreateQueue { + + public static void main(String[] args) throws Exception { + syncCreateQueue(); + } + + public static void syncCreateQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + CreateQueueRequest request = + CreateQueueRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setQueue(Queue.newBuilder().build()) + .build(); + Queue response = cloudTasksClient.createQueue(request); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_createqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java new file mode 100644 index 00000000..47be9793 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_createqueue_locationnamequeue_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.LocationName; +import com.google.cloud.tasks.v2beta3.Queue; + +public class SyncCreateQueueLocationnameQueue { + + public static void main(String[] args) throws Exception { + syncCreateQueueLocationnameQueue(); + } + + public static void syncCreateQueueLocationnameQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Queue queue = Queue.newBuilder().build(); + Queue response = cloudTasksClient.createQueue(parent, queue); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_createqueue_locationnamequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java new file mode 100644 index 00000000..0d613bc1 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_createqueue_stringqueue_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.LocationName; +import com.google.cloud.tasks.v2beta3.Queue; + +public class SyncCreateQueueStringQueue { + + public static void main(String[] args) throws Exception { + syncCreateQueueStringQueue(); + } + + public static void syncCreateQueueStringQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Queue queue = Queue.newBuilder().build(); + Queue response = cloudTasksClient.createQueue(parent, queue); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_createqueue_stringqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/AsyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/AsyncCreateTask.java new file mode 100644 index 00000000..6305ba81 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/AsyncCreateTask.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_createtask_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.CreateTaskRequest; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.cloud.tasks.v2beta3.Task; + +public class AsyncCreateTask { + + public static void main(String[] args) throws Exception { + asyncCreateTask(); + } + + public static void asyncCreateTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + CreateTaskRequest request = + CreateTaskRequest.newBuilder() + .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setTask(Task.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.createTaskCallable().futureCall(request); + // Do something. + Task response = future.get(); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_createtask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTask.java new file mode 100644 index 00000000..9e6e187a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_createtask_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.CreateTaskRequest; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.cloud.tasks.v2beta3.Task; + +public class SyncCreateTask { + + public static void main(String[] args) throws Exception { + syncCreateTask(); + } + + public static void syncCreateTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + CreateTaskRequest request = + CreateTaskRequest.newBuilder() + .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setTask(Task.newBuilder().build()) + .build(); + Task response = cloudTasksClient.createTask(request); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_createtask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java new file mode 100644 index 00000000..bed8b931 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_createtask_queuenametask_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.cloud.tasks.v2beta3.Task; + +public class SyncCreateTaskQueuenameTask { + + public static void main(String[] args) throws Exception { + syncCreateTaskQueuenameTask(); + } + + public static void syncCreateTaskQueuenameTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Task task = Task.newBuilder().build(); + Task response = cloudTasksClient.createTask(parent, task); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_createtask_queuenametask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskStringTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskStringTask.java new file mode 100644 index 00000000..b61f91aa --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskStringTask.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_createtask_stringtask_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.cloud.tasks.v2beta3.Task; + +public class SyncCreateTaskStringTask { + + public static void main(String[] args) throws Exception { + syncCreateTaskStringTask(); + } + + public static void syncCreateTaskStringTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Task task = Task.newBuilder().build(); + Task response = cloudTasksClient.createTask(parent, task); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_createtask_stringtask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/AsyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/AsyncDeleteQueue.java new file mode 100644 index 00000000..4f774533 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/AsyncDeleteQueue.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_deletequeue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.DeleteQueueRequest; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.protobuf.Empty; + +public class AsyncDeleteQueue { + + public static void main(String[] args) throws Exception { + asyncDeleteQueue(); + } + + public static void asyncDeleteQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + DeleteQueueRequest request = + DeleteQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + ApiFuture future = cloudTasksClient.deleteQueueCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_deletequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueue.java new file mode 100644 index 00000000..335fd8b9 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueue.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_deletequeue_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.DeleteQueueRequest; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.protobuf.Empty; + +public class SyncDeleteQueue { + + public static void main(String[] args) throws Exception { + syncDeleteQueue(); + } + + public static void syncDeleteQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + DeleteQueueRequest request = + DeleteQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + cloudTasksClient.deleteQueue(request); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_deletequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java new file mode 100644 index 00000000..b03ca7bd --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_deletequeue_queuename_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.protobuf.Empty; + +public class SyncDeleteQueueQueuename { + + public static void main(String[] args) throws Exception { + syncDeleteQueueQueuename(); + } + + public static void syncDeleteQueueQueuename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + cloudTasksClient.deleteQueue(name); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_deletequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueString.java new file mode 100644 index 00000000..a67c1cd7 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_deletequeue_string_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.protobuf.Empty; + +public class SyncDeleteQueueString { + + public static void main(String[] args) throws Exception { + syncDeleteQueueString(); + } + + public static void syncDeleteQueueString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + cloudTasksClient.deleteQueue(name); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_deletequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/AsyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/AsyncDeleteTask.java new file mode 100644 index 00000000..4c3d45d8 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/AsyncDeleteTask.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_deletetask_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.DeleteTaskRequest; +import com.google.cloud.tasks.v2beta3.TaskName; +import com.google.protobuf.Empty; + +public class AsyncDeleteTask { + + public static void main(String[] args) throws Exception { + asyncDeleteTask(); + } + + public static void asyncDeleteTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + DeleteTaskRequest request = + DeleteTaskRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .build(); + ApiFuture future = cloudTasksClient.deleteTaskCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_deletetask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTask.java new file mode 100644 index 00000000..db5646ff --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_deletetask_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.DeleteTaskRequest; +import com.google.cloud.tasks.v2beta3.TaskName; +import com.google.protobuf.Empty; + +public class SyncDeleteTask { + + public static void main(String[] args) throws Exception { + syncDeleteTask(); + } + + public static void syncDeleteTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + DeleteTaskRequest request = + DeleteTaskRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .build(); + cloudTasksClient.deleteTask(request); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_deletetask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskString.java new file mode 100644 index 00000000..00c42019 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_deletetask_string_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.TaskName; +import com.google.protobuf.Empty; + +public class SyncDeleteTaskString { + + public static void main(String[] args) throws Exception { + syncDeleteTaskString(); + } + + public static void syncDeleteTaskString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); + cloudTasksClient.deleteTask(name); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_deletetask_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java new file mode 100644 index 00000000..1c7f5c7f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_deletetask_taskname_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.TaskName; +import com.google.protobuf.Empty; + +public class SyncDeleteTaskTaskname { + + public static void main(String[] args) throws Exception { + syncDeleteTaskTaskname(); + } + + public static void syncDeleteTaskTaskname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + cloudTasksClient.deleteTask(name); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_deletetask_taskname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 00000000..049d109a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_getiampolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_getiampolicy_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 00000000..3b6c93d6 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_getiampolicy_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = cloudTasksClient.getIamPolicy(request); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_getiampolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java new file mode 100644 index 00000000..703b836f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_getiampolicy_resourcename_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyResourcename { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyResourcename(); + } + + public static void syncGetIamPolicyResourcename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Policy response = cloudTasksClient.getIamPolicy(resource); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_getiampolicy_resourcename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java new file mode 100644 index 00000000..598be27c --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_getiampolicy_string_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyString { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyString(); + } + + public static void syncGetIamPolicyString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Policy response = cloudTasksClient.getIamPolicy(resource); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_getiampolicy_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/AsyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/AsyncGetQueue.java new file mode 100644 index 00000000..beb5a0a3 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/AsyncGetQueue.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_getqueue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.GetQueueRequest; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.protobuf.FieldMask; + +public class AsyncGetQueue { + + public static void main(String[] args) throws Exception { + asyncGetQueue(); + } + + public static void asyncGetQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + GetQueueRequest request = + GetQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setReadMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.getQueueCallable().futureCall(request); + // Do something. + Queue response = future.get(); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_getqueue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueue.java new file mode 100644 index 00000000..b7c62e66 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueue.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_getqueue_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.GetQueueRequest; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.protobuf.FieldMask; + +public class SyncGetQueue { + + public static void main(String[] args) throws Exception { + syncGetQueue(); + } + + public static void syncGetQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + GetQueueRequest request = + GetQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setReadMask(FieldMask.newBuilder().build()) + .build(); + Queue response = cloudTasksClient.getQueue(request); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_getqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueQueuename.java new file mode 100644 index 00000000..bbae5407 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueQueuename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_getqueue_queuename_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.cloud.tasks.v2beta3.QueueName; + +public class SyncGetQueueQueuename { + + public static void main(String[] args) throws Exception { + syncGetQueueQueuename(); + } + + public static void syncGetQueueQueuename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Queue response = cloudTasksClient.getQueue(name); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_getqueue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueString.java new file mode 100644 index 00000000..c5df8b17 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_getqueue_string_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.cloud.tasks.v2beta3.QueueName; + +public class SyncGetQueueString { + + public static void main(String[] args) throws Exception { + syncGetQueueString(); + } + + public static void syncGetQueueString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Queue response = cloudTasksClient.getQueue(name); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_getqueue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/AsyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/AsyncGetTask.java new file mode 100644 index 00000000..b3ed26be --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/AsyncGetTask.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_gettask_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.GetTaskRequest; +import com.google.cloud.tasks.v2beta3.Task; +import com.google.cloud.tasks.v2beta3.TaskName; + +public class AsyncGetTask { + + public static void main(String[] args) throws Exception { + asyncGetTask(); + } + + public static void asyncGetTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + GetTaskRequest request = + GetTaskRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .build(); + ApiFuture future = cloudTasksClient.getTaskCallable().futureCall(request); + // Do something. + Task response = future.get(); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_gettask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTask.java new file mode 100644 index 00000000..836db60d --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_gettask_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.GetTaskRequest; +import com.google.cloud.tasks.v2beta3.Task; +import com.google.cloud.tasks.v2beta3.TaskName; + +public class SyncGetTask { + + public static void main(String[] args) throws Exception { + syncGetTask(); + } + + public static void syncGetTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + GetTaskRequest request = + GetTaskRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .build(); + Task response = cloudTasksClient.getTask(request); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_gettask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskString.java new file mode 100644 index 00000000..930c4419 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_gettask_string_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.Task; +import com.google.cloud.tasks.v2beta3.TaskName; + +public class SyncGetTaskString { + + public static void main(String[] args) throws Exception { + syncGetTaskString(); + } + + public static void syncGetTaskString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); + Task response = cloudTasksClient.getTask(name); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_gettask_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskTaskname.java new file mode 100644 index 00000000..868eefab --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskTaskname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_gettask_taskname_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.Task; +import com.google.cloud.tasks.v2beta3.TaskName; + +public class SyncGetTaskTaskname { + + public static void main(String[] args) throws Exception { + syncGetTaskTaskname(); + } + + public static void syncGetTaskTaskname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + Task response = cloudTasksClient.getTask(name); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_gettask_taskname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueues.java new file mode 100644 index 00000000..5ea1bbde --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueues.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_listqueues_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.ListQueuesRequest; +import com.google.cloud.tasks.v2beta3.LocationName; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.protobuf.FieldMask; + +public class AsyncListQueues { + + public static void main(String[] args) throws Exception { + asyncListQueues(); + } + + public static void asyncListQueues() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ListQueuesRequest request = + ListQueuesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReadMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.listQueuesPagedCallable().futureCall(request); + // Do something. + for (Queue element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_listqueues_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueuesPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueuesPaged.java new file mode 100644 index 00000000..d679ca18 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueuesPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_listqueues_paged_async] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.ListQueuesRequest; +import com.google.cloud.tasks.v2beta3.ListQueuesResponse; +import com.google.cloud.tasks.v2beta3.LocationName; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.common.base.Strings; +import com.google.protobuf.FieldMask; + +public class AsyncListQueuesPaged { + + public static void main(String[] args) throws Exception { + asyncListQueuesPaged(); + } + + public static void asyncListQueuesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ListQueuesRequest request = + ListQueuesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReadMask(FieldMask.newBuilder().build()) + .build(); + while (true) { + ListQueuesResponse response = cloudTasksClient.listQueuesCallable().call(request); + for (Queue element : response.getQueuesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_listqueues_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueues.java new file mode 100644 index 00000000..d7c5a7d8 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueues.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_listqueues_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.ListQueuesRequest; +import com.google.cloud.tasks.v2beta3.LocationName; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.protobuf.FieldMask; + +public class SyncListQueues { + + public static void main(String[] args) throws Exception { + syncListQueues(); + } + + public static void syncListQueues() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ListQueuesRequest request = + ListQueuesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReadMask(FieldMask.newBuilder().build()) + .build(); + for (Queue element : cloudTasksClient.listQueues(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_listqueues_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesLocationname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesLocationname.java new file mode 100644 index 00000000..9f129089 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesLocationname.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_listqueues_locationname_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.LocationName; +import com.google.cloud.tasks.v2beta3.Queue; + +public class SyncListQueuesLocationname { + + public static void main(String[] args) throws Exception { + syncListQueuesLocationname(); + } + + public static void syncListQueuesLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_listqueues_locationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesString.java new file mode 100644 index 00000000..60309c64 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_listqueues_string_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.LocationName; +import com.google.cloud.tasks.v2beta3.Queue; + +public class SyncListQueuesString { + + public static void main(String[] args) throws Exception { + syncListQueuesString(); + } + + public static void syncListQueuesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_listqueues_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasks.java new file mode 100644 index 00000000..c19f0208 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasks.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_listtasks_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.ListTasksRequest; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.cloud.tasks.v2beta3.Task; + +public class AsyncListTasks { + + public static void main(String[] args) throws Exception { + asyncListTasks(); + } + + public static void asyncListTasks() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ListTasksRequest request = + ListTasksRequest.newBuilder() + .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = cloudTasksClient.listTasksPagedCallable().futureCall(request); + // Do something. + for (Task element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_listtasks_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasksPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasksPaged.java new file mode 100644 index 00000000..17711db6 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasksPaged.java @@ -0,0 +1,58 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_listtasks_paged_async] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.ListTasksRequest; +import com.google.cloud.tasks.v2beta3.ListTasksResponse; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.cloud.tasks.v2beta3.Task; +import com.google.common.base.Strings; + +public class AsyncListTasksPaged { + + public static void main(String[] args) throws Exception { + asyncListTasksPaged(); + } + + public static void asyncListTasksPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ListTasksRequest request = + ListTasksRequest.newBuilder() + .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListTasksResponse response = cloudTasksClient.listTasksCallable().call(request); + for (Task element : response.getTasksList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_listtasks_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasks.java new file mode 100644 index 00000000..046d9477 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasks.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_listtasks_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.ListTasksRequest; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.cloud.tasks.v2beta3.Task; + +public class SyncListTasks { + + public static void main(String[] args) throws Exception { + syncListTasks(); + } + + public static void syncListTasks() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ListTasksRequest request = + ListTasksRequest.newBuilder() + .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Task element : cloudTasksClient.listTasks(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_listtasks_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksQueuename.java new file mode 100644 index 00000000..f67e5d81 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksQueuename.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_listtasks_queuename_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.cloud.tasks.v2beta3.Task; + +public class SyncListTasksQueuename { + + public static void main(String[] args) throws Exception { + syncListTasksQueuename(); + } + + public static void syncListTasksQueuename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_listtasks_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksString.java new file mode 100644 index 00000000..e8fcd18a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_listtasks_string_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.cloud.tasks.v2beta3.Task; + +public class SyncListTasksString { + + public static void main(String[] args) throws Exception { + syncListTasksString(); + } + + public static void syncListTasksString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_listtasks_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/AsyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/AsyncPauseQueue.java new file mode 100644 index 00000000..761b5166 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/AsyncPauseQueue.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_pausequeue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.PauseQueueRequest; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.cloud.tasks.v2beta3.QueueName; + +public class AsyncPauseQueue { + + public static void main(String[] args) throws Exception { + asyncPauseQueue(); + } + + public static void asyncPauseQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + PauseQueueRequest request = + PauseQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + ApiFuture future = cloudTasksClient.pauseQueueCallable().futureCall(request); + // Do something. + Queue response = future.get(); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_pausequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueue.java new file mode 100644 index 00000000..93394574 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueue.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_pausequeue_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.PauseQueueRequest; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.cloud.tasks.v2beta3.QueueName; + +public class SyncPauseQueue { + + public static void main(String[] args) throws Exception { + syncPauseQueue(); + } + + public static void syncPauseQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + PauseQueueRequest request = + PauseQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + Queue response = cloudTasksClient.pauseQueue(request); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_pausequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java new file mode 100644 index 00000000..ed9e59e2 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_pausequeue_queuename_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.cloud.tasks.v2beta3.QueueName; + +public class SyncPauseQueueQueuename { + + public static void main(String[] args) throws Exception { + syncPauseQueueQueuename(); + } + + public static void syncPauseQueueQueuename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Queue response = cloudTasksClient.pauseQueue(name); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_pausequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueString.java new file mode 100644 index 00000000..25a0cc0a --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_pausequeue_string_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.cloud.tasks.v2beta3.QueueName; + +public class SyncPauseQueueString { + + public static void main(String[] args) throws Exception { + syncPauseQueueString(); + } + + public static void syncPauseQueueString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Queue response = cloudTasksClient.pauseQueue(name); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_pausequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/AsyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/AsyncPurgeQueue.java new file mode 100644 index 00000000..b7d0108d --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/AsyncPurgeQueue.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_purgequeue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.PurgeQueueRequest; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.cloud.tasks.v2beta3.QueueName; + +public class AsyncPurgeQueue { + + public static void main(String[] args) throws Exception { + asyncPurgeQueue(); + } + + public static void asyncPurgeQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + PurgeQueueRequest request = + PurgeQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + ApiFuture future = cloudTasksClient.purgeQueueCallable().futureCall(request); + // Do something. + Queue response = future.get(); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_purgequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueue.java new file mode 100644 index 00000000..f555c736 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueue.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_purgequeue_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.PurgeQueueRequest; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.cloud.tasks.v2beta3.QueueName; + +public class SyncPurgeQueue { + + public static void main(String[] args) throws Exception { + syncPurgeQueue(); + } + + public static void syncPurgeQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + PurgeQueueRequest request = + PurgeQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + Queue response = cloudTasksClient.purgeQueue(request); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_purgequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java new file mode 100644 index 00000000..9a6f7d07 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_purgequeue_queuename_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.cloud.tasks.v2beta3.QueueName; + +public class SyncPurgeQueueQueuename { + + public static void main(String[] args) throws Exception { + syncPurgeQueueQueuename(); + } + + public static void syncPurgeQueueQueuename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Queue response = cloudTasksClient.purgeQueue(name); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_purgequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueString.java new file mode 100644 index 00000000..ba833f52 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_purgequeue_string_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.cloud.tasks.v2beta3.QueueName; + +public class SyncPurgeQueueString { + + public static void main(String[] args) throws Exception { + syncPurgeQueueString(); + } + + public static void syncPurgeQueueString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Queue response = cloudTasksClient.purgeQueue(name); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_purgequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/AsyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/AsyncResumeQueue.java new file mode 100644 index 00000000..8a522847 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/AsyncResumeQueue.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_resumequeue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.cloud.tasks.v2beta3.ResumeQueueRequest; + +public class AsyncResumeQueue { + + public static void main(String[] args) throws Exception { + asyncResumeQueue(); + } + + public static void asyncResumeQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ResumeQueueRequest request = + ResumeQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + ApiFuture future = cloudTasksClient.resumeQueueCallable().futureCall(request); + // Do something. + Queue response = future.get(); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_resumequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueue.java new file mode 100644 index 00000000..50348c46 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueue.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_resumequeue_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.cloud.tasks.v2beta3.ResumeQueueRequest; + +public class SyncResumeQueue { + + public static void main(String[] args) throws Exception { + syncResumeQueue(); + } + + public static void syncResumeQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ResumeQueueRequest request = + ResumeQueueRequest.newBuilder() + .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .build(); + Queue response = cloudTasksClient.resumeQueue(request); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_resumequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java new file mode 100644 index 00000000..df75ed99 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_resumequeue_queuename_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.cloud.tasks.v2beta3.QueueName; + +public class SyncResumeQueueQueuename { + + public static void main(String[] args) throws Exception { + syncResumeQueueQueuename(); + } + + public static void syncResumeQueueQueuename() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Queue response = cloudTasksClient.resumeQueue(name); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_resumequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueString.java new file mode 100644 index 00000000..bdfb0c01 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_resumequeue_string_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.cloud.tasks.v2beta3.QueueName; + +public class SyncResumeQueueString { + + public static void main(String[] args) throws Exception { + syncResumeQueueString(); + } + + public static void syncResumeQueueString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Queue response = cloudTasksClient.resumeQueue(name); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_resumequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/AsyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/AsyncRunTask.java new file mode 100644 index 00000000..8a392118 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/AsyncRunTask.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_runtask_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.RunTaskRequest; +import com.google.cloud.tasks.v2beta3.Task; +import com.google.cloud.tasks.v2beta3.TaskName; + +public class AsyncRunTask { + + public static void main(String[] args) throws Exception { + asyncRunTask(); + } + + public static void asyncRunTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + RunTaskRequest request = + RunTaskRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .build(); + ApiFuture future = cloudTasksClient.runTaskCallable().futureCall(request); + // Do something. + Task response = future.get(); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_runtask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTask.java new file mode 100644 index 00000000..8b73a70b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_runtask_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.RunTaskRequest; +import com.google.cloud.tasks.v2beta3.Task; +import com.google.cloud.tasks.v2beta3.TaskName; + +public class SyncRunTask { + + public static void main(String[] args) throws Exception { + syncRunTask(); + } + + public static void syncRunTask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + RunTaskRequest request = + RunTaskRequest.newBuilder() + .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) + .build(); + Task response = cloudTasksClient.runTask(request); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_runtask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskString.java new file mode 100644 index 00000000..d5da488b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_runtask_string_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.Task; +import com.google.cloud.tasks.v2beta3.TaskName; + +public class SyncRunTaskString { + + public static void main(String[] args) throws Exception { + syncRunTaskString(); + } + + public static void syncRunTaskString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); + Task response = cloudTasksClient.runTask(name); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_runtask_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskTaskname.java new file mode 100644 index 00000000..edd2d333 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskTaskname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_runtask_taskname_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.Task; +import com.google.cloud.tasks.v2beta3.TaskName; + +public class SyncRunTaskTaskname { + + public static void main(String[] args) throws Exception { + syncRunTaskTaskname(); + } + + public static void syncRunTaskTaskname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); + Task response = cloudTasksClient.runTask(name); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_runtask_taskname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 00000000..f1e7cd6e --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_setiampolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_setiampolicy_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 00000000..33d53f0f --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_setiampolicy_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = cloudTasksClient.setIamPolicy(request); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_setiampolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java new file mode 100644 index 00000000..1b0b0d92 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_setiampolicy_resourcenamepolicy_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.iam.v1.Policy; + +public class SyncSetIamPolicyResourcenamePolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyResourcenamePolicy(); + } + + public static void syncSetIamPolicyResourcenamePolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + Policy policy = Policy.newBuilder().build(); + Policy response = cloudTasksClient.setIamPolicy(resource, policy); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_setiampolicy_resourcenamepolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java new file mode 100644 index 00000000..2cbfddff --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_setiampolicy_stringpolicy_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.iam.v1.Policy; + +public class SyncSetIamPolicyStringPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyStringPolicy(); + } + + public static void syncSetIamPolicyStringPolicy() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + Policy policy = Policy.newBuilder().build(); + Policy response = cloudTasksClient.setIamPolicy(resource, policy); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_setiampolicy_stringpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 00000000..4bece0a9 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_testiampermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + cloudTasksClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_testiampermissions_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 00000000..9b6ec431 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_testiampermissions_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = cloudTasksClient.testIamPermissions(request); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_testiampermissions_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java new file mode 100644 index 00000000..b92bcce7 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_testiampermissions_resourcenameliststring_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; +import java.util.List; + +public class SyncTestIamPermissionsResourcenameListstring { + + public static void main(String[] args) throws Exception { + syncTestIamPermissionsResourcenameListstring(); + } + + public static void syncTestIamPermissionsResourcenameListstring() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); + List permissions = new ArrayList<>(); + TestIamPermissionsResponse response = + cloudTasksClient.testIamPermissions(resource, permissions); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_testiampermissions_resourcenameliststring_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java new file mode 100644 index 00000000..b144ff3b --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_testiampermissions_stringliststring_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.QueueName; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; +import java.util.List; + +public class SyncTestIamPermissionsStringListstring { + + public static void main(String[] args) throws Exception { + syncTestIamPermissionsStringListstring(); + } + + public static void syncTestIamPermissionsStringListstring() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); + List permissions = new ArrayList<>(); + TestIamPermissionsResponse response = + cloudTasksClient.testIamPermissions(resource, permissions); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_testiampermissions_stringliststring_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/AsyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/AsyncUpdateQueue.java new file mode 100644 index 00000000..310ec8a0 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/AsyncUpdateQueue.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_updatequeue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.cloud.tasks.v2beta3.UpdateQueueRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateQueue { + + public static void main(String[] args) throws Exception { + asyncUpdateQueue(); + } + + public static void asyncUpdateQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + UpdateQueueRequest request = + UpdateQueueRequest.newBuilder() + .setQueue(Queue.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = cloudTasksClient.updateQueueCallable().futureCall(request); + // Do something. + Queue response = future.get(); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_updatequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueue.java new file mode 100644 index 00000000..b9b4415c --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueue.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_updatequeue_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.cloud.tasks.v2beta3.UpdateQueueRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateQueue { + + public static void main(String[] args) throws Exception { + syncUpdateQueue(); + } + + public static void syncUpdateQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + UpdateQueueRequest request = + UpdateQueueRequest.newBuilder() + .setQueue(Queue.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Queue response = cloudTasksClient.updateQueue(request); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_updatequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java new file mode 100644 index 00000000..077ea6dc --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtasksclient_updatequeue_queuefieldmask_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksClient; +import com.google.cloud.tasks.v2beta3.Queue; +import com.google.protobuf.FieldMask; + +public class SyncUpdateQueueQueueFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateQueueQueueFieldmask(); + } + + public static void syncUpdateQueueQueueFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) { + Queue queue = Queue.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Queue response = cloudTasksClient.updateQueue(queue, updateMask); + } + } +} +// [END tasks_v2beta3_generated_cloudtasksclient_updatequeue_queuefieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtaskssettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtaskssettings/getqueue/SyncGetQueue.java new file mode 100644 index 00000000..3475de29 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtaskssettings/getqueue/SyncGetQueue.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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.v2beta3.samples; + +// [START tasks_v2beta3_generated_cloudtaskssettings_getqueue_sync] +import com.google.cloud.tasks.v2beta3.CloudTasksSettings; +import java.time.Duration; + +public class SyncGetQueue { + + public static void main(String[] args) throws Exception { + syncGetQueue(); + } + + public static void syncGetQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder(); + cloudTasksSettingsBuilder + .getQueueSettings() + .setRetrySettings( + cloudTasksSettingsBuilder + .getQueueSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build(); + } +} +// [END tasks_v2beta3_generated_cloudtaskssettings_getqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java new file mode 100644 index 00000000..60609678 --- /dev/null +++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 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.v2beta3.stub.samples; + +// [START tasks_v2beta3_generated_cloudtasksstubsettings_getqueue_sync] +import com.google.cloud.tasks.v2beta3.stub.CloudTasksStubSettings; +import java.time.Duration; + +public class SyncGetQueue { + + public static void main(String[] args) throws Exception { + syncGetQueue(); + } + + public static void syncGetQueue() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder(); + cloudTasksSettingsBuilder + .getQueueSettings() + .setRetrySettings( + cloudTasksSettingsBuilder + .getQueueSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build(); + } +} +// [END tasks_v2beta3_generated_cloudtasksstubsettings_getqueue_sync] From 69137d8baa9e1c718bdf7b648b90442877eca1af Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 31 Aug 2022 22:44:18 +0200 Subject: [PATCH 351/401] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.1 (#744) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.0` -> `26.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/compatibility-slim/26.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/confidence-slim/26.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 484f157d..ea0b8f55 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -29,7 +29,7 @@ com.google.cloud libraries-bom - 26.1.0 + 26.1.1 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 3889124b..be1eb61e 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.0 + 26.1.1 pom import From b39b0b374bc158401d33287f7e88cd2622e342ff Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Sep 2022 05:42:31 +0200 Subject: [PATCH 352/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 (#746) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.1` -> `3.0.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/compatibility-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/confidence-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v3.0.2`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​302-httpsgithubcomgoogleapisjava-shared-dependenciescomparev301v302-2022-09-08) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.1...v3.0.2) ##### Dependencies - Update dependency com.fasterxml.jackson:jackson-bom to v2.13.4 ([#​789](https://togithub.com/googleapis/java-shared-dependencies/issues/789)) ([6cf91a9](https://togithub.com/googleapis/java-shared-dependencies/commit/6cf91a96b9ea6af0fb845b50582dac7aa2892cab)) - Update dependency com.google.auth:google-auth-library-bom to v1.10.0 ([#​781](https://togithub.com/googleapis/java-shared-dependencies/issues/781)) ([8859e61](https://togithub.com/googleapis/java-shared-dependencies/commit/8859e61808bfc5cd9546e27e945fc855b36d2554)) - Update dependency com.google.auth:google-auth-library-bom to v1.11.0 ([#​790](https://togithub.com/googleapis/java-shared-dependencies/issues/790)) ([3431a47](https://togithub.com/googleapis/java-shared-dependencies/commit/3431a471cbf874a67a4f1a42e31f0ed891dedc92)) - Update dependency com.google.auth:google-auth-library-bom to v1.9.0 ([#​773](https://togithub.com/googleapis/java-shared-dependencies/issues/773)) ([27fc79f](https://togithub.com/googleapis/java-shared-dependencies/commit/27fc79f00ee70011df6a368bb8fcfad7f0ce41f0)) - Update dependency com.google.errorprone:error_prone_annotations to v2.15.0 ([#​776](https://togithub.com/googleapis/java-shared-dependencies/issues/776)) ([bf333b8](https://togithub.com/googleapis/java-shared-dependencies/commit/bf333b8c88072d21cb959db4d3328bbb55d9ef5c)) - Update dependency com.google.protobuf:protobuf-bom to v3.21.5 ([#​780](https://togithub.com/googleapis/java-shared-dependencies/issues/780)) ([da7f44d](https://togithub.com/googleapis/java-shared-dependencies/commit/da7f44d71d6d7f372b5313dab68ce220308614d4)) - Update dependency io.grpc:grpc-bom to v1.48.1 ([#​768](https://togithub.com/googleapis/java-shared-dependencies/issues/768)) ([5c7768d](https://togithub.com/googleapis/java-shared-dependencies/commit/5c7768d3c9665dd356de6c39c0a6a5fa6e992f2e)) - Update dependency io.grpc:grpc-bom to v1.49.0 ([#​786](https://togithub.com/googleapis/java-shared-dependencies/issues/786)) ([8734812](https://togithub.com/googleapis/java-shared-dependencies/commit/8734812f1b4e2faaa48caf41eff59a85892ae344)) - Update dependency org.checkerframework:checker-qual to v3.24.0 ([#​775](https://togithub.com/googleapis/java-shared-dependencies/issues/775)) ([df74b7b](https://togithub.com/googleapis/java-shared-dependencies/commit/df74b7b0dd5dd592523f302d9fb36adb5991cb0b)) - Update dependency org.checkerframework:checker-qual to v3.25.0 ([#​788](https://togithub.com/googleapis/java-shared-dependencies/issues/788)) ([207035b](https://togithub.com/googleapis/java-shared-dependencies/commit/207035bd04c9305899eea540acbefaf06a7b1ec9)) - Update dependency org.threeten:threetenbp to v1.6.1 ([#​782](https://togithub.com/googleapis/java-shared-dependencies/issues/782)) ([0f218ae](https://togithub.com/googleapis/java-shared-dependencies/commit/0f218aeb6aa33cf1da4a8b1d6c82bbf87946dab9)) - Update gax.version to v2.19.0 ([#​785](https://togithub.com/googleapis/java-shared-dependencies/issues/785)) ([4448331](https://togithub.com/googleapis/java-shared-dependencies/commit/4448331c4c6d88ea8076260776d1d47d24aa19fa)) - Update google.core.version to v2.8.10 ([#​787](https://togithub.com/googleapis/java-shared-dependencies/issues/787)) ([3c344d5](https://togithub.com/googleapis/java-shared-dependencies/commit/3c344d515e3b9215db5a1f8ef550d800d974e558)) - Update google.core.version to v2.8.7 ([#​774](https://togithub.com/googleapis/java-shared-dependencies/issues/774)) ([d0cd5e8](https://togithub.com/googleapis/java-shared-dependencies/commit/d0cd5e8f6ca88787fe0dbf7f30c849cb4c4fae5e)) - Update google.core.version to v2.8.8 ([#​777](https://togithub.com/googleapis/java-shared-dependencies/issues/777)) ([f00571c](https://togithub.com/googleapis/java-shared-dependencies/commit/f00571cd1e9f1c4e011fba4a1e1674c1d8d60200)) - Update google.core.version to v2.8.9 ([#​784](https://togithub.com/googleapis/java-shared-dependencies/issues/784)) ([aa8e505](https://togithub.com/googleapis/java-shared-dependencies/commit/aa8e505dbb1214b2239e55d5ac83b00c167d77e4))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 62302710..13b09682 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.1 + 3.0.2 pom import From e5b34a2d6565aa53649bdcbe8c05a15a7635fc9f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 04:20:14 +0000 Subject: [PATCH 353/401] chore(main): release 2.3.7 (#747) :robot: I have created a release *beep* *boop* --- ## [2.3.7](https://github.com/googleapis/java-tasks/compare/v2.3.6...v2.3.7) (2022-09-09) ### Dependencies * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#746](https://github.com/googleapis/java-tasks/issues/746)) ([b39b0b3](https://github.com/googleapis/java-tasks/commit/b39b0b374bc158401d33287f7e88cd2622e342ff)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f997ff47..65d7a9f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.3.7](https://github.com/googleapis/java-tasks/compare/v2.3.6...v2.3.7) (2022-09-09) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#746](https://github.com/googleapis/java-tasks/issues/746)) ([b39b0b3](https://github.com/googleapis/java-tasks/commit/b39b0b374bc158401d33287f7e88cd2622e342ff)) + ## [2.3.6](https://github.com/googleapis/java-tasks/compare/v2.3.5...v2.3.6) (2022-08-05) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 12d30366..04ebf785 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.7-SNAPSHOT + 2.3.7 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.7-SNAPSHOT + 2.3.7 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.7-SNAPSHOT + 0.93.7 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.7-SNAPSHOT + 0.93.7 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.7-SNAPSHOT + 2.3.7 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.7-SNAPSHOT + 0.93.7 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.7-SNAPSHOT + 0.93.7 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.7-SNAPSHOT + 2.3.7
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index fd743883..18089ab5 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.7-SNAPSHOT + 2.3.7 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.7-SNAPSHOT + 2.3.7 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index ff1ddbb5..841046df 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.7-SNAPSHOT + 2.3.7 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.7-SNAPSHOT + 2.3.7 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 92361726..55a9f3f5 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.7-SNAPSHOT + 0.93.7 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.7-SNAPSHOT + 2.3.7 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 49133a62..185da7b8 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.7-SNAPSHOT + 0.93.7 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.7-SNAPSHOT + 2.3.7 diff --git a/pom.xml b/pom.xml index 13b09682..843d6fc7 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.7-SNAPSHOT + 2.3.7 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.7-SNAPSHOT + 0.93.7 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.7-SNAPSHOT + 0.93.7 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.7-SNAPSHOT + 2.3.7 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.7-SNAPSHOT + 0.93.7 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.7-SNAPSHOT + 0.93.7 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.7-SNAPSHOT + 2.3.7 com.google.cloud google-cloud-tasks - 2.3.7-SNAPSHOT + 2.3.7 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 7c8bb7d0..4c38c556 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.7-SNAPSHOT + 2.3.7 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.7-SNAPSHOT + 2.3.7 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 79453253..8afae7e7 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.7-SNAPSHOT + 0.93.7 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.7-SNAPSHOT + 2.3.7 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 054574b0..bd63a630 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.7-SNAPSHOT + 0.93.7 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.7-SNAPSHOT + 2.3.7 diff --git a/versions.txt b/versions.txt index ad0d80c9..8eb90724 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.6:2.3.7-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.93.6:0.93.7-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.93.6:0.93.7-SNAPSHOT -grpc-google-cloud-tasks-v2:2.3.6:2.3.7-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.93.6:0.93.7-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.93.6:0.93.7-SNAPSHOT -proto-google-cloud-tasks-v2:2.3.6:2.3.7-SNAPSHOT +google-cloud-tasks:2.3.7:2.3.7 +grpc-google-cloud-tasks-v2beta3:0.93.7:0.93.7 +grpc-google-cloud-tasks-v2beta2:0.93.7:0.93.7 +grpc-google-cloud-tasks-v2:2.3.7:2.3.7 +proto-google-cloud-tasks-v2beta3:0.93.7:0.93.7 +proto-google-cloud-tasks-v2beta2:0.93.7:0.93.7 +proto-google-cloud-tasks-v2:2.3.7:2.3.7 From 326b2867b6d0815dbf34bf2bd8f39c82a2dcb49f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 14:44:21 +0000 Subject: [PATCH 354/401] chore(main): release 2.3.8-SNAPSHOT (#748) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 04ebf785..df260689 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.7 + 2.3.8-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.7 + 2.3.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.7 + 0.93.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.7 + 0.93.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.7 + 2.3.8-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.7 + 0.93.8-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.7 + 0.93.8-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.7 + 2.3.8-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 18089ab5..2c5ee640 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.7 + 2.3.8-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.7 + 2.3.8-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 841046df..2cb26075 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.7 + 2.3.8-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.7 + 2.3.8-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 55a9f3f5..202a1d16 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.7 + 0.93.8-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.7 + 2.3.8-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 185da7b8..9b310e61 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.7 + 0.93.8-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.7 + 2.3.8-SNAPSHOT diff --git a/pom.xml b/pom.xml index 843d6fc7..e0956236 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.7 + 2.3.8-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.7 + 0.93.8-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.7 + 0.93.8-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.7 + 2.3.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.7 + 0.93.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.7 + 0.93.8-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.7 + 2.3.8-SNAPSHOT com.google.cloud google-cloud-tasks - 2.3.7 + 2.3.8-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 4c38c556..eaf0dfe1 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.7 + 2.3.8-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.7 + 2.3.8-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 8afae7e7..1beae1c1 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.7 + 0.93.8-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.7 + 2.3.8-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index bd63a630..4f5d5339 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.7 + 0.93.8-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.7 + 2.3.8-SNAPSHOT diff --git a/versions.txt b/versions.txt index 8eb90724..207e8c35 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.7:2.3.7 -grpc-google-cloud-tasks-v2beta3:0.93.7:0.93.7 -grpc-google-cloud-tasks-v2beta2:0.93.7:0.93.7 -grpc-google-cloud-tasks-v2:2.3.7:2.3.7 -proto-google-cloud-tasks-v2beta3:0.93.7:0.93.7 -proto-google-cloud-tasks-v2beta2:0.93.7:0.93.7 -proto-google-cloud-tasks-v2:2.3.7:2.3.7 +google-cloud-tasks:2.3.7:2.3.8-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.93.7:0.93.8-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.93.7:0.93.8-SNAPSHOT +grpc-google-cloud-tasks-v2:2.3.7:2.3.8-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.93.7:0.93.8-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.93.7:0.93.8-SNAPSHOT +proto-google-cloud-tasks-v2:2.3.7:2.3.8-SNAPSHOT From 06b5769c05847976f4c91a943a226c1f259c45e7 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 15:08:43 +0000 Subject: [PATCH 355/401] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#745) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- .../cloud/tasks/v2/CloudTasksClient.java | 483 ++++++++++---- .../cloud/tasks/v2/CloudTasksSettings.java | 12 +- .../google/cloud/tasks/v2/package-info.java | 7 +- .../tasks/v2/stub/CloudTasksStubSettings.java | 12 +- .../tasks/v2/stub/HttpJsonCloudTasksStub.java | 22 +- .../cloud/tasks/v2beta2/CloudTasksClient.java | 595 +++++++++++++----- .../tasks/v2beta2/CloudTasksSettings.java | 12 +- .../cloud/tasks/v2beta2/package-info.java | 7 +- .../v2beta2/stub/CloudTasksStubSettings.java | 12 +- .../v2beta2/stub/HttpJsonCloudTasksStub.java | 30 +- .../cloud/tasks/v2beta3/CloudTasksClient.java | 483 ++++++++++---- .../tasks/v2beta3/CloudTasksSettings.java | 12 +- .../cloud/tasks/v2beta3/package-info.java | 7 +- .../v2beta3/stub/CloudTasksStubSettings.java | 12 +- .../v2beta3/stub/HttpJsonCloudTasksStub.java | 22 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createqueue/AsyncCreateQueue.java | 7 +- .../createqueue/SyncCreateQueue.java | 7 +- .../SyncCreateQueueLocationnameQueue.java | 7 +- .../SyncCreateQueueStringQueue.java | 7 +- .../createtask/AsyncCreateTask.java | 7 +- .../createtask/SyncCreateTask.java | 7 +- .../SyncCreateTaskQueuenameTask.java | 7 +- .../createtask/SyncCreateTaskStringTask.java | 7 +- .../deletequeue/AsyncDeleteQueue.java | 7 +- .../deletequeue/SyncDeleteQueue.java | 7 +- .../deletequeue/SyncDeleteQueueQueuename.java | 7 +- .../deletequeue/SyncDeleteQueueString.java | 7 +- .../deletetask/AsyncDeleteTask.java | 7 +- .../deletetask/SyncDeleteTask.java | 7 +- .../deletetask/SyncDeleteTaskString.java | 7 +- .../deletetask/SyncDeleteTaskTaskname.java | 7 +- .../getiampolicy/AsyncGetIamPolicy.java | 7 +- .../getiampolicy/SyncGetIamPolicy.java | 7 +- .../SyncGetIamPolicyResourcename.java | 7 +- .../getiampolicy/SyncGetIamPolicyString.java | 7 +- .../getqueue/AsyncGetQueue.java | 7 +- .../getqueue/SyncGetQueue.java | 7 +- .../getqueue/SyncGetQueueQueuename.java | 7 +- .../getqueue/SyncGetQueueString.java | 7 +- .../gettask/AsyncGetTask.java | 7 +- .../cloudtasksclient/gettask/SyncGetTask.java | 7 +- .../gettask/SyncGetTaskString.java | 7 +- .../gettask/SyncGetTaskTaskname.java | 7 +- .../listqueues/AsyncListQueues.java | 7 +- .../listqueues/AsyncListQueuesPaged.java | 7 +- .../listqueues/SyncListQueues.java | 7 +- .../SyncListQueuesLocationname.java | 7 +- .../listqueues/SyncListQueuesString.java | 7 +- .../listtasks/AsyncListTasks.java | 7 +- .../listtasks/AsyncListTasksPaged.java | 7 +- .../listtasks/SyncListTasks.java | 7 +- .../listtasks/SyncListTasksQueuename.java | 7 +- .../listtasks/SyncListTasksString.java | 7 +- .../pausequeue/AsyncPauseQueue.java | 7 +- .../pausequeue/SyncPauseQueue.java | 7 +- .../pausequeue/SyncPauseQueueQueuename.java | 7 +- .../pausequeue/SyncPauseQueueString.java | 7 +- .../purgequeue/AsyncPurgeQueue.java | 7 +- .../purgequeue/SyncPurgeQueue.java | 7 +- .../purgequeue/SyncPurgeQueueQueuename.java | 7 +- .../purgequeue/SyncPurgeQueueString.java | 7 +- .../resumequeue/AsyncResumeQueue.java | 7 +- .../resumequeue/SyncResumeQueue.java | 7 +- .../resumequeue/SyncResumeQueueQueuename.java | 7 +- .../resumequeue/SyncResumeQueueString.java | 7 +- .../runtask/AsyncRunTask.java | 7 +- .../cloudtasksclient/runtask/SyncRunTask.java | 7 +- .../runtask/SyncRunTaskString.java | 7 +- .../runtask/SyncRunTaskTaskname.java | 7 +- .../setiampolicy/AsyncSetIamPolicy.java | 7 +- .../setiampolicy/SyncSetIamPolicy.java | 7 +- .../SyncSetIamPolicyResourcenamePolicy.java | 7 +- .../SyncSetIamPolicyStringPolicy.java | 7 +- .../AsyncTestIamPermissions.java | 7 +- .../SyncTestIamPermissions.java | 7 +- ...tIamPermissionsResourcenameListstring.java | 7 +- ...yncTestIamPermissionsStringListstring.java | 7 +- .../updatequeue/AsyncUpdateQueue.java | 7 +- .../updatequeue/SyncUpdateQueue.java | 7 +- .../SyncUpdateQueueQueueFieldmask.java | 7 +- .../getqueue/SyncGetQueue.java | 12 +- .../getqueue/SyncGetQueue.java | 12 +- .../acknowledgetask/AsyncAcknowledgeTask.java | 7 +- .../acknowledgetask/SyncAcknowledgeTask.java | 7 +- .../SyncAcknowledgeTaskStringTimestamp.java | 7 +- .../SyncAcknowledgeTaskTasknameTimestamp.java | 7 +- .../cancellease/AsyncCancelLease.java | 7 +- .../cancellease/SyncCancelLease.java | 7 +- .../SyncCancelLeaseStringTimestamp.java | 7 +- .../SyncCancelLeaseTasknameTimestamp.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createqueue/AsyncCreateQueue.java | 7 +- .../createqueue/SyncCreateQueue.java | 7 +- .../SyncCreateQueueLocationnameQueue.java | 7 +- .../SyncCreateQueueStringQueue.java | 7 +- .../createtask/AsyncCreateTask.java | 7 +- .../createtask/SyncCreateTask.java | 7 +- .../SyncCreateTaskQueuenameTask.java | 7 +- .../createtask/SyncCreateTaskStringTask.java | 7 +- .../deletequeue/AsyncDeleteQueue.java | 7 +- .../deletequeue/SyncDeleteQueue.java | 7 +- .../deletequeue/SyncDeleteQueueQueuename.java | 7 +- .../deletequeue/SyncDeleteQueueString.java | 7 +- .../deletetask/AsyncDeleteTask.java | 7 +- .../deletetask/SyncDeleteTask.java | 7 +- .../deletetask/SyncDeleteTaskString.java | 7 +- .../deletetask/SyncDeleteTaskTaskname.java | 7 +- .../getiampolicy/AsyncGetIamPolicy.java | 7 +- .../getiampolicy/SyncGetIamPolicy.java | 7 +- .../SyncGetIamPolicyResourcename.java | 7 +- .../getiampolicy/SyncGetIamPolicyString.java | 7 +- .../getqueue/AsyncGetQueue.java | 7 +- .../getqueue/SyncGetQueue.java | 7 +- .../getqueue/SyncGetQueueQueuename.java | 7 +- .../getqueue/SyncGetQueueString.java | 7 +- .../gettask/AsyncGetTask.java | 7 +- .../cloudtasksclient/gettask/SyncGetTask.java | 7 +- .../gettask/SyncGetTaskString.java | 7 +- .../gettask/SyncGetTaskTaskname.java | 7 +- .../leasetasks/AsyncLeaseTasks.java | 7 +- .../leasetasks/SyncLeaseTasks.java | 7 +- .../SyncLeaseTasksQueuenameDuration.java | 7 +- .../SyncLeaseTasksStringDuration.java | 7 +- .../listqueues/AsyncListQueues.java | 7 +- .../listqueues/AsyncListQueuesPaged.java | 7 +- .../listqueues/SyncListQueues.java | 7 +- .../SyncListQueuesLocationname.java | 7 +- .../listqueues/SyncListQueuesString.java | 7 +- .../listtasks/AsyncListTasks.java | 7 +- .../listtasks/AsyncListTasksPaged.java | 7 +- .../listtasks/SyncListTasks.java | 7 +- .../listtasks/SyncListTasksQueuename.java | 7 +- .../listtasks/SyncListTasksString.java | 7 +- .../pausequeue/AsyncPauseQueue.java | 7 +- .../pausequeue/SyncPauseQueue.java | 7 +- .../pausequeue/SyncPauseQueueQueuename.java | 7 +- .../pausequeue/SyncPauseQueueString.java | 7 +- .../purgequeue/AsyncPurgeQueue.java | 7 +- .../purgequeue/SyncPurgeQueue.java | 7 +- .../purgequeue/SyncPurgeQueueQueuename.java | 7 +- .../purgequeue/SyncPurgeQueueString.java | 7 +- .../renewlease/AsyncRenewLease.java | 7 +- .../renewlease/SyncRenewLease.java | 7 +- ...SyncRenewLeaseStringTimestampDuration.java | 7 +- ...ncRenewLeaseTasknameTimestampDuration.java | 7 +- .../resumequeue/AsyncResumeQueue.java | 7 +- .../resumequeue/SyncResumeQueue.java | 7 +- .../resumequeue/SyncResumeQueueQueuename.java | 7 +- .../resumequeue/SyncResumeQueueString.java | 7 +- .../runtask/AsyncRunTask.java | 7 +- .../cloudtasksclient/runtask/SyncRunTask.java | 7 +- .../runtask/SyncRunTaskString.java | 7 +- .../runtask/SyncRunTaskTaskname.java | 7 +- .../setiampolicy/AsyncSetIamPolicy.java | 7 +- .../setiampolicy/SyncSetIamPolicy.java | 7 +- .../SyncSetIamPolicyResourcenamePolicy.java | 7 +- .../SyncSetIamPolicyStringPolicy.java | 7 +- .../AsyncTestIamPermissions.java | 7 +- .../SyncTestIamPermissions.java | 7 +- ...tIamPermissionsResourcenameListstring.java | 7 +- ...yncTestIamPermissionsStringListstring.java | 7 +- .../updatequeue/AsyncUpdateQueue.java | 7 +- .../updatequeue/SyncUpdateQueue.java | 7 +- .../SyncUpdateQueueQueueFieldmask.java | 7 +- .../getqueue/SyncGetQueue.java | 12 +- .../getqueue/SyncGetQueue.java | 12 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../createqueue/AsyncCreateQueue.java | 7 +- .../createqueue/SyncCreateQueue.java | 7 +- .../SyncCreateQueueLocationnameQueue.java | 7 +- .../SyncCreateQueueStringQueue.java | 7 +- .../createtask/AsyncCreateTask.java | 7 +- .../createtask/SyncCreateTask.java | 7 +- .../SyncCreateTaskQueuenameTask.java | 7 +- .../createtask/SyncCreateTaskStringTask.java | 7 +- .../deletequeue/AsyncDeleteQueue.java | 7 +- .../deletequeue/SyncDeleteQueue.java | 7 +- .../deletequeue/SyncDeleteQueueQueuename.java | 7 +- .../deletequeue/SyncDeleteQueueString.java | 7 +- .../deletetask/AsyncDeleteTask.java | 7 +- .../deletetask/SyncDeleteTask.java | 7 +- .../deletetask/SyncDeleteTaskString.java | 7 +- .../deletetask/SyncDeleteTaskTaskname.java | 7 +- .../getiampolicy/AsyncGetIamPolicy.java | 7 +- .../getiampolicy/SyncGetIamPolicy.java | 7 +- .../SyncGetIamPolicyResourcename.java | 7 +- .../getiampolicy/SyncGetIamPolicyString.java | 7 +- .../getqueue/AsyncGetQueue.java | 7 +- .../getqueue/SyncGetQueue.java | 7 +- .../getqueue/SyncGetQueueQueuename.java | 7 +- .../getqueue/SyncGetQueueString.java | 7 +- .../gettask/AsyncGetTask.java | 7 +- .../cloudtasksclient/gettask/SyncGetTask.java | 7 +- .../gettask/SyncGetTaskString.java | 7 +- .../gettask/SyncGetTaskTaskname.java | 7 +- .../listqueues/AsyncListQueues.java | 7 +- .../listqueues/AsyncListQueuesPaged.java | 7 +- .../listqueues/SyncListQueues.java | 7 +- .../SyncListQueuesLocationname.java | 7 +- .../listqueues/SyncListQueuesString.java | 7 +- .../listtasks/AsyncListTasks.java | 7 +- .../listtasks/AsyncListTasksPaged.java | 7 +- .../listtasks/SyncListTasks.java | 7 +- .../listtasks/SyncListTasksQueuename.java | 7 +- .../listtasks/SyncListTasksString.java | 7 +- .../pausequeue/AsyncPauseQueue.java | 7 +- .../pausequeue/SyncPauseQueue.java | 7 +- .../pausequeue/SyncPauseQueueQueuename.java | 7 +- .../pausequeue/SyncPauseQueueString.java | 7 +- .../purgequeue/AsyncPurgeQueue.java | 7 +- .../purgequeue/SyncPurgeQueue.java | 7 +- .../purgequeue/SyncPurgeQueueQueuename.java | 7 +- .../purgequeue/SyncPurgeQueueString.java | 7 +- .../resumequeue/AsyncResumeQueue.java | 7 +- .../resumequeue/SyncResumeQueue.java | 7 +- .../resumequeue/SyncResumeQueueQueuename.java | 7 +- .../resumequeue/SyncResumeQueueString.java | 7 +- .../runtask/AsyncRunTask.java | 7 +- .../cloudtasksclient/runtask/SyncRunTask.java | 7 +- .../runtask/SyncRunTaskString.java | 7 +- .../runtask/SyncRunTaskTaskname.java | 7 +- .../setiampolicy/AsyncSetIamPolicy.java | 7 +- .../setiampolicy/SyncSetIamPolicy.java | 7 +- .../SyncSetIamPolicyResourcenamePolicy.java | 7 +- .../SyncSetIamPolicyStringPolicy.java | 7 +- .../AsyncTestIamPermissions.java | 7 +- .../SyncTestIamPermissions.java | 7 +- ...tIamPermissionsResourcenameListstring.java | 7 +- ...yncTestIamPermissionsStringListstring.java | 7 +- .../updatequeue/AsyncUpdateQueue.java | 7 +- .../updatequeue/SyncUpdateQueue.java | 7 +- .../SyncUpdateQueueQueueFieldmask.java | 7 +- .../getqueue/SyncGetQueue.java | 12 +- .../getqueue/SyncGetQueue.java | 12 +- 241 files changed, 2342 insertions(+), 998 deletions(-) diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java index cf1c53d1..70f3fcdb 100644 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java +++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java @@ -49,8 +49,11 @@ * calls that map to API methods. Sample code to get started: * *
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  *   Queue response = cloudTasksClient.getQueue(name);
@@ -86,8 +89,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -98,8 +104,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build();
  * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
@@ -109,8 +118,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -178,8 +190,11 @@ public CloudTasksStub getStub() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
@@ -207,8 +222,11 @@ public final ListQueuesPagedResponse listQueues(LocationName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
@@ -235,8 +253,11 @@ public final ListQueuesPagedResponse listQueues(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -267,8 +288,11 @@ public final ListQueuesPagedResponse listQueues(ListQueuesRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -298,8 +322,11 @@ public final UnaryCallable listQueue
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -334,8 +361,11 @@ public final UnaryCallable listQueuesCall
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.getQueue(name);
@@ -359,8 +389,11 @@ public final Queue getQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.getQueue(name);
@@ -383,8 +416,11 @@ public final Queue getQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   GetQueueRequest request =
    *       GetQueueRequest.newBuilder()
@@ -408,8 +444,11 @@ public final Queue getQueue(GetQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   GetQueueRequest request =
    *       GetQueueRequest.newBuilder()
@@ -439,8 +478,11 @@ public final UnaryCallable getQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Queue queue = Queue.newBuilder().build();
@@ -480,8 +522,11 @@ public final Queue createQueue(LocationName parent, Queue queue) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Queue queue = Queue.newBuilder().build();
@@ -518,8 +563,11 @@ public final Queue createQueue(String parent, Queue queue) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
@@ -551,8 +599,11 @@ public final Queue createQueue(CreateQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
@@ -585,8 +636,11 @@ public final UnaryCallable createQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   Queue queue = Queue.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -625,8 +679,11 @@ public final Queue updateQueue(Queue queue, FieldMask updateMask) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   UpdateQueueRequest request =
    *       UpdateQueueRequest.newBuilder()
@@ -660,8 +717,11 @@ public final Queue updateQueue(UpdateQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   UpdateQueueRequest request =
    *       UpdateQueueRequest.newBuilder()
@@ -693,8 +753,11 @@ public final UnaryCallable updateQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   cloudTasksClient.deleteQueue(name);
@@ -726,8 +789,11 @@ public final void deleteQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   cloudTasksClient.deleteQueue(name);
@@ -758,8 +824,11 @@ public final void deleteQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   DeleteQueueRequest request =
    *       DeleteQueueRequest.newBuilder()
@@ -791,8 +860,11 @@ public final void deleteQueue(DeleteQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   DeleteQueueRequest request =
    *       DeleteQueueRequest.newBuilder()
@@ -820,8 +892,11 @@ public final UnaryCallable deleteQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.purgeQueue(name);
@@ -850,8 +925,11 @@ public final Queue purgeQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.purgeQueue(name);
@@ -879,8 +957,11 @@ public final Queue purgeQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   PurgeQueueRequest request =
    *       PurgeQueueRequest.newBuilder()
@@ -909,8 +990,11 @@ public final Queue purgeQueue(PurgeQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   PurgeQueueRequest request =
    *       PurgeQueueRequest.newBuilder()
@@ -938,8 +1022,11 @@ public final UnaryCallable purgeQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.pauseQueue(name);
@@ -968,8 +1055,11 @@ public final Queue pauseQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.pauseQueue(name);
@@ -997,8 +1087,11 @@ public final Queue pauseQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   PauseQueueRequest request =
    *       PauseQueueRequest.newBuilder()
@@ -1027,8 +1120,11 @@ public final Queue pauseQueue(PauseQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   PauseQueueRequest request =
    *       PauseQueueRequest.newBuilder()
@@ -1061,8 +1157,11 @@ public final UnaryCallable pauseQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.resumeQueue(name);
@@ -1096,8 +1195,11 @@ public final Queue resumeQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.resumeQueue(name);
@@ -1130,8 +1232,11 @@ public final Queue resumeQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ResumeQueueRequest request =
    *       ResumeQueueRequest.newBuilder()
@@ -1165,8 +1270,11 @@ public final Queue resumeQueue(ResumeQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ResumeQueueRequest request =
    *       ResumeQueueRequest.newBuilder()
@@ -1197,8 +1305,11 @@ public final UnaryCallable resumeQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
@@ -1232,8 +1343,11 @@ public final Policy getIamPolicy(ResourceName resource) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
@@ -1264,8 +1378,11 @@ public final Policy getIamPolicy(String resource) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1302,8 +1419,11 @@ public final Policy getIamPolicy(QueueName queueName) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1338,8 +1458,11 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy policy = Policy.newBuilder().build();
@@ -1381,8 +1504,11 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy policy = Policy.newBuilder().build();
@@ -1421,8 +1547,11 @@ public final Policy setIamPolicy(String resource, Policy policy) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -1463,8 +1592,11 @@ public final Policy setIamPolicy(QueueName queue, Policy policy) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -1495,8 +1627,11 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   List permissions = new ArrayList<>();
@@ -1535,8 +1670,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   List permissions = new ArrayList<>();
@@ -1575,8 +1713,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1612,8 +1753,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1646,8 +1790,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
@@ -1680,8 +1827,11 @@ public final ListTasksPagedResponse listTasks(QueueName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
@@ -1713,8 +1863,11 @@ public final ListTasksPagedResponse listTasks(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1749,8 +1902,11 @@ public final ListTasksPagedResponse listTasks(ListTasksRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1784,8 +1940,11 @@ public final UnaryCallable listTasksPa
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1819,8 +1978,11 @@ public final UnaryCallable listTasksCallabl
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Task response = cloudTasksClient.getTask(name);
@@ -1844,8 +2006,11 @@ public final Task getTask(TaskName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Task response = cloudTasksClient.getTask(name);
@@ -1868,8 +2033,11 @@ public final Task getTask(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   GetTaskRequest request =
    *       GetTaskRequest.newBuilder()
@@ -1893,8 +2061,11 @@ public final Task getTask(GetTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   GetTaskRequest request =
    *       GetTaskRequest.newBuilder()
@@ -1923,8 +2094,11 @@ public final UnaryCallable getTaskCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Task task = Task.newBuilder().build();
@@ -1982,8 +2156,11 @@ public final Task createTask(QueueName parent, Task task) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Task task = Task.newBuilder().build();
@@ -2038,8 +2215,11 @@ public final Task createTask(String parent, Task task) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
@@ -2070,8 +2250,11 @@ public final Task createTask(CreateTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
@@ -2098,8 +2281,11 @@ public final UnaryCallable createTaskCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   cloudTasksClient.deleteTask(name);
@@ -2126,8 +2312,11 @@ public final void deleteTask(TaskName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   cloudTasksClient.deleteTask(name);
@@ -2153,8 +2342,11 @@ public final void deleteTask(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   DeleteTaskRequest request =
    *       DeleteTaskRequest.newBuilder()
@@ -2181,8 +2373,11 @@ public final void deleteTask(DeleteTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   DeleteTaskRequest request =
    *       DeleteTaskRequest.newBuilder()
@@ -2226,8 +2421,11 @@ public final UnaryCallable deleteTaskCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Task response = cloudTasksClient.runTask(name);
@@ -2272,8 +2470,11 @@ public final Task runTask(TaskName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Task response = cloudTasksClient.runTask(name);
@@ -2317,8 +2518,11 @@ public final Task runTask(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   RunTaskRequest request =
    *       RunTaskRequest.newBuilder()
@@ -2363,8 +2567,11 @@ public final Task runTask(RunTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   RunTaskRequest request =
    *       RunTaskRequest.newBuilder()
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java
index 5ba02bdf..e0f88bea 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java
@@ -60,16 +60,16 @@
  * 

For example, to set the total timeout of getQueue to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder();
  * cloudTasksSettingsBuilder
  *     .getQueueSettings()
  *     .setRetrySettings(
- *         cloudTasksSettingsBuilder
- *             .getQueueSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java
index dc0f95a2..bea6f19b 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java
@@ -25,8 +25,11 @@
  * 

Sample for CloudTasksClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  *   Queue response = cloudTasksClient.getQueue(name);
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java
index 917761b9..e10e0178 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java
@@ -94,16 +94,16 @@
  * 

For example, to set the total timeout of getQueue to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder();
  * cloudTasksSettingsBuilder
  *     .getQueueSettings()
  *     .setRetrySettings(
- *         cloudTasksSettingsBuilder
- *             .getQueueSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksStub.java
index 79109ceb..1275be7a 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksStub.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksStub.java
@@ -166,7 +166,8 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                         return fields;
                       })
                   .setRequestBodyExtractor(
-                      request -> ProtoRestSerializer.create().toBody("queue", request.getQueue()))
+                      request ->
+                          ProtoRestSerializer.create().toBody("queue", request.getQueue(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -200,7 +201,8 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                         return fields;
                       })
                   .setRequestBodyExtractor(
-                      request -> ProtoRestSerializer.create().toBody("queue", request.getQueue()))
+                      request ->
+                          ProtoRestSerializer.create().toBody("queue", request.getQueue(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -267,7 +269,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -302,7 +304,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -337,7 +339,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -373,7 +375,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -409,7 +411,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -445,7 +447,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -550,7 +552,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearParent().build()))
+                              .toBody("*", request.toBuilder().clearParent().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -617,7 +619,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java
index 2fb0f905..50dc22dc 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java
@@ -52,8 +52,11 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  *   Queue response = cloudTasksClient.getQueue(name);
@@ -89,8 +92,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -101,8 +107,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build();
  * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
@@ -112,8 +121,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -182,8 +194,11 @@ public CloudTasksStub getStub() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
@@ -211,8 +226,11 @@ public final ListQueuesPagedResponse listQueues(LocationName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
@@ -239,8 +257,11 @@ public final ListQueuesPagedResponse listQueues(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -272,8 +293,11 @@ public final ListQueuesPagedResponse listQueues(ListQueuesRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -304,8 +328,11 @@ public final UnaryCallable listQueue
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -341,8 +368,11 @@ public final UnaryCallable listQueuesCall
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.getQueue(name);
@@ -366,8 +396,11 @@ public final Queue getQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.getQueue(name);
@@ -390,8 +423,11 @@ public final Queue getQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   GetQueueRequest request =
    *       GetQueueRequest.newBuilder()
@@ -416,8 +452,11 @@ public final Queue getQueue(GetQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   GetQueueRequest request =
    *       GetQueueRequest.newBuilder()
@@ -448,8 +487,11 @@ public final UnaryCallable getQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Queue queue = Queue.newBuilder().build();
@@ -489,8 +531,11 @@ public final Queue createQueue(LocationName parent, Queue queue) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Queue queue = Queue.newBuilder().build();
@@ -527,8 +572,11 @@ public final Queue createQueue(String parent, Queue queue) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
@@ -560,8 +608,11 @@ public final Queue createQueue(CreateQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
@@ -594,8 +645,11 @@ public final UnaryCallable createQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   Queue queue = Queue.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -634,8 +688,11 @@ public final Queue updateQueue(Queue queue, FieldMask updateMask) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   UpdateQueueRequest request =
    *       UpdateQueueRequest.newBuilder()
@@ -669,8 +726,11 @@ public final Queue updateQueue(UpdateQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   UpdateQueueRequest request =
    *       UpdateQueueRequest.newBuilder()
@@ -702,8 +762,11 @@ public final UnaryCallable updateQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   cloudTasksClient.deleteQueue(name);
@@ -735,8 +798,11 @@ public final void deleteQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   cloudTasksClient.deleteQueue(name);
@@ -767,8 +833,11 @@ public final void deleteQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   DeleteQueueRequest request =
    *       DeleteQueueRequest.newBuilder()
@@ -800,8 +869,11 @@ public final void deleteQueue(DeleteQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   DeleteQueueRequest request =
    *       DeleteQueueRequest.newBuilder()
@@ -829,8 +901,11 @@ public final UnaryCallable deleteQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.purgeQueue(name);
@@ -859,8 +934,11 @@ public final Queue purgeQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.purgeQueue(name);
@@ -888,8 +966,11 @@ public final Queue purgeQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   PurgeQueueRequest request =
    *       PurgeQueueRequest.newBuilder()
@@ -918,8 +999,11 @@ public final Queue purgeQueue(PurgeQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   PurgeQueueRequest request =
    *       PurgeQueueRequest.newBuilder()
@@ -948,8 +1032,11 @@ public final UnaryCallable purgeQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.pauseQueue(name);
@@ -979,8 +1066,11 @@ public final Queue pauseQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.pauseQueue(name);
@@ -1009,8 +1099,11 @@ public final Queue pauseQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   PauseQueueRequest request =
    *       PauseQueueRequest.newBuilder()
@@ -1040,8 +1133,11 @@ public final Queue pauseQueue(PauseQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   PauseQueueRequest request =
    *       PauseQueueRequest.newBuilder()
@@ -1074,8 +1170,11 @@ public final UnaryCallable pauseQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.resumeQueue(name);
@@ -1109,8 +1208,11 @@ public final Queue resumeQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.resumeQueue(name);
@@ -1143,8 +1245,11 @@ public final Queue resumeQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ResumeQueueRequest request =
    *       ResumeQueueRequest.newBuilder()
@@ -1178,8 +1283,11 @@ public final Queue resumeQueue(ResumeQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ResumeQueueRequest request =
    *       ResumeQueueRequest.newBuilder()
@@ -1210,8 +1318,11 @@ public final UnaryCallable resumeQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
@@ -1245,8 +1356,11 @@ public final Policy getIamPolicy(ResourceName resource) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
@@ -1277,8 +1391,11 @@ public final Policy getIamPolicy(String resource) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1315,8 +1432,11 @@ public final Policy getIamPolicy(QueueName queueName) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1351,8 +1471,11 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy policy = Policy.newBuilder().build();
@@ -1394,8 +1517,11 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy policy = Policy.newBuilder().build();
@@ -1434,8 +1560,11 @@ public final Policy setIamPolicy(String resource, Policy policy) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -1476,8 +1605,11 @@ public final Policy setIamPolicy(QueueName queue, Policy policy) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -1508,8 +1640,11 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   List permissions = new ArrayList<>();
@@ -1548,8 +1683,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   List permissions = new ArrayList<>();
@@ -1588,8 +1726,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1625,8 +1766,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1659,8 +1803,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
@@ -1693,8 +1840,11 @@ public final ListTasksPagedResponse listTasks(QueueName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
@@ -1726,8 +1876,11 @@ public final ListTasksPagedResponse listTasks(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1762,8 +1915,11 @@ public final ListTasksPagedResponse listTasks(ListTasksRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1797,8 +1953,11 @@ public final UnaryCallable listTasksPa
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1832,8 +1991,11 @@ public final UnaryCallable listTasksCallabl
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Task response = cloudTasksClient.getTask(name);
@@ -1857,8 +2019,11 @@ public final Task getTask(TaskName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Task response = cloudTasksClient.getTask(name);
@@ -1881,8 +2046,11 @@ public final Task getTask(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   GetTaskRequest request =
    *       GetTaskRequest.newBuilder()
@@ -1906,8 +2074,11 @@ public final Task getTask(GetTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   GetTaskRequest request =
    *       GetTaskRequest.newBuilder()
@@ -1938,8 +2109,11 @@ public final UnaryCallable getTaskCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Task task = Task.newBuilder().build();
@@ -1999,8 +2173,11 @@ public final Task createTask(QueueName parent, Task task) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Task task = Task.newBuilder().build();
@@ -2057,8 +2234,11 @@ public final Task createTask(String parent, Task task) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
@@ -2091,8 +2271,11 @@ public final Task createTask(CreateTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
@@ -2119,8 +2302,11 @@ public final UnaryCallable createTaskCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   cloudTasksClient.deleteTask(name);
@@ -2147,8 +2333,11 @@ public final void deleteTask(TaskName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   cloudTasksClient.deleteTask(name);
@@ -2174,8 +2363,11 @@ public final void deleteTask(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   DeleteTaskRequest request =
    *       DeleteTaskRequest.newBuilder()
@@ -2202,8 +2394,11 @@ public final void deleteTask(DeleteTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   DeleteTaskRequest request =
    *       DeleteTaskRequest.newBuilder()
@@ -2244,8 +2439,11 @@ public final UnaryCallable deleteTaskCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Duration leaseDuration = Duration.newBuilder().build();
@@ -2306,8 +2504,11 @@ public final LeaseTasksResponse leaseTasks(QueueName parent, Duration leaseDurat
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Duration leaseDuration = Duration.newBuilder().build();
@@ -2365,8 +2566,11 @@ public final LeaseTasksResponse leaseTasks(String parent, Duration leaseDuration
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   LeaseTasksRequest request =
    *       LeaseTasksRequest.newBuilder()
@@ -2411,8 +2615,11 @@ public final LeaseTasksResponse leaseTasks(LeaseTasksRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   LeaseTasksRequest request =
    *       LeaseTasksRequest.newBuilder()
@@ -2451,8 +2658,11 @@ public final UnaryCallable leaseTasksCall
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Timestamp scheduleTime = Timestamp.newBuilder().build();
@@ -2497,8 +2707,11 @@ public final void acknowledgeTask(TaskName name, Timestamp scheduleTime) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Timestamp scheduleTime = Timestamp.newBuilder().build();
@@ -2540,8 +2753,11 @@ public final void acknowledgeTask(String name, Timestamp scheduleTime) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   AcknowledgeTaskRequest request =
    *       AcknowledgeTaskRequest.newBuilder()
@@ -2578,8 +2794,11 @@ public final void acknowledgeTask(AcknowledgeTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   AcknowledgeTaskRequest request =
    *       AcknowledgeTaskRequest.newBuilder()
@@ -2607,8 +2826,11 @@ public final UnaryCallable acknowledgeTaskCallabl
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Timestamp scheduleTime = Timestamp.newBuilder().build();
@@ -2650,8 +2872,11 @@ public final Task renewLease(TaskName name, Timestamp scheduleTime, Duration lea
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Timestamp scheduleTime = Timestamp.newBuilder().build();
@@ -2693,8 +2918,11 @@ public final Task renewLease(String name, Timestamp scheduleTime, Duration lease
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   RenewLeaseRequest request =
    *       RenewLeaseRequest.newBuilder()
@@ -2724,8 +2952,11 @@ public final Task renewLease(RenewLeaseRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   RenewLeaseRequest request =
    *       RenewLeaseRequest.newBuilder()
@@ -2755,8 +2986,11 @@ public final UnaryCallable renewLeaseCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Timestamp scheduleTime = Timestamp.newBuilder().build();
@@ -2794,8 +3028,11 @@ public final Task cancelLease(TaskName name, Timestamp scheduleTime) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Timestamp scheduleTime = Timestamp.newBuilder().build();
@@ -2830,8 +3067,11 @@ public final Task cancelLease(String name, Timestamp scheduleTime) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   CancelLeaseRequest request =
    *       CancelLeaseRequest.newBuilder()
@@ -2861,8 +3101,11 @@ public final Task cancelLease(CancelLeaseRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   CancelLeaseRequest request =
    *       CancelLeaseRequest.newBuilder()
@@ -2911,8 +3154,11 @@ public final UnaryCallable cancelLeaseCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Task response = cloudTasksClient.runTask(name);
@@ -2961,8 +3207,11 @@ public final Task runTask(TaskName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Task response = cloudTasksClient.runTask(name);
@@ -3010,8 +3259,11 @@ public final Task runTask(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   RunTaskRequest request =
    *       RunTaskRequest.newBuilder()
@@ -3060,8 +3312,11 @@ public final Task runTask(RunTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   RunTaskRequest request =
    *       RunTaskRequest.newBuilder()
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java
index 88d405e7..5cb1330d 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java
@@ -60,16 +60,16 @@
  * 

For example, to set the total timeout of getQueue to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder();
  * cloudTasksSettingsBuilder
  *     .getQueueSettings()
  *     .setRetrySettings(
- *         cloudTasksSettingsBuilder
- *             .getQueueSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java
index 190255fe..40cf04a0 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java
@@ -25,8 +25,11 @@
  * 

Sample for CloudTasksClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  *   Queue response = cloudTasksClient.getQueue(name);
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java
index 27411d78..bac60daf 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java
@@ -99,16 +99,16 @@
  * 

For example, to set the total timeout of getQueue to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder();
  * cloudTasksSettingsBuilder
  *     .getQueueSettings()
  *     .setRetrySettings(
- *         cloudTasksSettingsBuilder
- *             .getQueueSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksStub.java
index 268878f2..1ccc3db0 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksStub.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksStub.java
@@ -173,7 +173,8 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                         return fields;
                       })
                   .setRequestBodyExtractor(
-                      request -> ProtoRestSerializer.create().toBody("queue", request.getQueue()))
+                      request ->
+                          ProtoRestSerializer.create().toBody("queue", request.getQueue(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -207,7 +208,8 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                         return fields;
                       })
                   .setRequestBodyExtractor(
-                      request -> ProtoRestSerializer.create().toBody("queue", request.getQueue()))
+                      request ->
+                          ProtoRestSerializer.create().toBody("queue", request.getQueue(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -274,7 +276,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -309,7 +311,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -344,7 +346,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -380,7 +382,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -416,7 +418,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -452,7 +454,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -557,7 +559,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearParent().build()))
+                              .toBody("*", request.toBuilder().clearParent().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -625,7 +627,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearParent().build()))
+                                  .toBody("*", request.toBuilder().clearParent().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -661,7 +663,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearName().build()))
+                                  .toBody("*", request.toBuilder().clearName().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -696,7 +698,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -731,7 +733,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -766,7 +768,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java
index 32fdf62d..48487c8f 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java
@@ -50,8 +50,11 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  *   Queue response = cloudTasksClient.getQueue(name);
@@ -87,8 +90,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -99,8 +105,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build();
  * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
@@ -110,8 +119,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * CloudTasksSettings cloudTasksSettings =
  *     CloudTasksSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -180,8 +192,11 @@ public CloudTasksStub getStub() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
@@ -209,8 +224,11 @@ public final ListQueuesPagedResponse listQueues(LocationName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
@@ -237,8 +255,11 @@ public final ListQueuesPagedResponse listQueues(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -270,8 +291,11 @@ public final ListQueuesPagedResponse listQueues(ListQueuesRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -302,8 +326,11 @@ public final UnaryCallable listQueue
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ListQueuesRequest request =
    *       ListQueuesRequest.newBuilder()
@@ -339,8 +366,11 @@ public final UnaryCallable listQueuesCall
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.getQueue(name);
@@ -364,8 +394,11 @@ public final Queue getQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.getQueue(name);
@@ -388,8 +421,11 @@ public final Queue getQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   GetQueueRequest request =
    *       GetQueueRequest.newBuilder()
@@ -414,8 +450,11 @@ public final Queue getQueue(GetQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   GetQueueRequest request =
    *       GetQueueRequest.newBuilder()
@@ -446,8 +485,11 @@ public final UnaryCallable getQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    *   Queue queue = Queue.newBuilder().build();
@@ -487,8 +529,11 @@ public final Queue createQueue(LocationName parent, Queue queue) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
    *   Queue queue = Queue.newBuilder().build();
@@ -525,8 +570,11 @@ public final Queue createQueue(String parent, Queue queue) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
@@ -558,8 +606,11 @@ public final Queue createQueue(CreateQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   CreateQueueRequest request =
    *       CreateQueueRequest.newBuilder()
@@ -592,8 +643,11 @@ public final UnaryCallable createQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   Queue queue = Queue.newBuilder().build();
    *   FieldMask updateMask = FieldMask.newBuilder().build();
@@ -632,8 +686,11 @@ public final Queue updateQueue(Queue queue, FieldMask updateMask) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   UpdateQueueRequest request =
    *       UpdateQueueRequest.newBuilder()
@@ -667,8 +724,11 @@ public final Queue updateQueue(UpdateQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   UpdateQueueRequest request =
    *       UpdateQueueRequest.newBuilder()
@@ -700,8 +760,11 @@ public final UnaryCallable updateQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   cloudTasksClient.deleteQueue(name);
@@ -733,8 +796,11 @@ public final void deleteQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   cloudTasksClient.deleteQueue(name);
@@ -765,8 +831,11 @@ public final void deleteQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   DeleteQueueRequest request =
    *       DeleteQueueRequest.newBuilder()
@@ -798,8 +867,11 @@ public final void deleteQueue(DeleteQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   DeleteQueueRequest request =
    *       DeleteQueueRequest.newBuilder()
@@ -827,8 +899,11 @@ public final UnaryCallable deleteQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.purgeQueue(name);
@@ -857,8 +932,11 @@ public final Queue purgeQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.purgeQueue(name);
@@ -886,8 +964,11 @@ public final Queue purgeQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   PurgeQueueRequest request =
    *       PurgeQueueRequest.newBuilder()
@@ -916,8 +997,11 @@ public final Queue purgeQueue(PurgeQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   PurgeQueueRequest request =
    *       PurgeQueueRequest.newBuilder()
@@ -946,8 +1030,11 @@ public final UnaryCallable purgeQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.pauseQueue(name);
@@ -977,8 +1064,11 @@ public final Queue pauseQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.pauseQueue(name);
@@ -1007,8 +1097,11 @@ public final Queue pauseQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   PauseQueueRequest request =
    *       PauseQueueRequest.newBuilder()
@@ -1038,8 +1131,11 @@ public final Queue pauseQueue(PauseQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   PauseQueueRequest request =
    *       PauseQueueRequest.newBuilder()
@@ -1072,8 +1168,11 @@ public final UnaryCallable pauseQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Queue response = cloudTasksClient.resumeQueue(name);
@@ -1107,8 +1206,11 @@ public final Queue resumeQueue(QueueName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Queue response = cloudTasksClient.resumeQueue(name);
@@ -1141,8 +1243,11 @@ public final Queue resumeQueue(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ResumeQueueRequest request =
    *       ResumeQueueRequest.newBuilder()
@@ -1176,8 +1281,11 @@ public final Queue resumeQueue(ResumeQueueRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ResumeQueueRequest request =
    *       ResumeQueueRequest.newBuilder()
@@ -1208,8 +1316,11 @@ public final UnaryCallable resumeQueueCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
@@ -1243,8 +1354,11 @@ public final Policy getIamPolicy(ResourceName resource) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy response = cloudTasksClient.getIamPolicy(resource);
@@ -1275,8 +1389,11 @@ public final Policy getIamPolicy(String resource) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1313,8 +1430,11 @@ public final Policy getIamPolicy(QueueName queueName) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   GetIamPolicyRequest request =
    *       GetIamPolicyRequest.newBuilder()
@@ -1349,8 +1469,11 @@ public final UnaryCallable getIamPolicyCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Policy policy = Policy.newBuilder().build();
@@ -1392,8 +1515,11 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Policy policy = Policy.newBuilder().build();
@@ -1432,8 +1558,11 @@ public final Policy setIamPolicy(String resource, Policy policy) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -1474,8 +1603,11 @@ public final Policy setIamPolicy(QueueName queue, Policy policy) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   SetIamPolicyRequest request =
    *       SetIamPolicyRequest.newBuilder()
@@ -1506,8 +1638,11 @@ public final UnaryCallable setIamPolicyCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   List permissions = new ArrayList<>();
@@ -1546,8 +1681,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   List permissions = new ArrayList<>();
@@ -1586,8 +1724,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1623,8 +1764,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   TestIamPermissionsRequest request =
    *       TestIamPermissionsRequest.newBuilder()
@@ -1657,8 +1801,11 @@ public final TestIamPermissionsResponse testIamPermissions(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
@@ -1691,8 +1838,11 @@ public final ListTasksPagedResponse listTasks(QueueName parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
@@ -1724,8 +1874,11 @@ public final ListTasksPagedResponse listTasks(String parent) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1760,8 +1913,11 @@ public final ListTasksPagedResponse listTasks(ListTasksRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1795,8 +1951,11 @@ public final UnaryCallable listTasksPa
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   ListTasksRequest request =
    *       ListTasksRequest.newBuilder()
@@ -1830,8 +1989,11 @@ public final UnaryCallable listTasksCallabl
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Task response = cloudTasksClient.getTask(name);
@@ -1855,8 +2017,11 @@ public final Task getTask(TaskName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Task response = cloudTasksClient.getTask(name);
@@ -1879,8 +2044,11 @@ public final Task getTask(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   GetTaskRequest request =
    *       GetTaskRequest.newBuilder()
@@ -1904,8 +2072,11 @@ public final Task getTask(GetTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   GetTaskRequest request =
    *       GetTaskRequest.newBuilder()
@@ -1934,8 +2105,11 @@ public final UnaryCallable getTaskCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
    *   Task task = Task.newBuilder().build();
@@ -1993,8 +2167,11 @@ public final Task createTask(QueueName parent, Task task) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
    *   Task task = Task.newBuilder().build();
@@ -2049,8 +2226,11 @@ public final Task createTask(String parent, Task task) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
@@ -2081,8 +2261,11 @@ public final Task createTask(CreateTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   CreateTaskRequest request =
    *       CreateTaskRequest.newBuilder()
@@ -2109,8 +2292,11 @@ public final UnaryCallable createTaskCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   cloudTasksClient.deleteTask(name);
@@ -2137,8 +2323,11 @@ public final void deleteTask(TaskName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   cloudTasksClient.deleteTask(name);
@@ -2164,8 +2353,11 @@ public final void deleteTask(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   DeleteTaskRequest request =
    *       DeleteTaskRequest.newBuilder()
@@ -2192,8 +2384,11 @@ public final void deleteTask(DeleteTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   DeleteTaskRequest request =
    *       DeleteTaskRequest.newBuilder()
@@ -2238,8 +2433,11 @@ public final UnaryCallable deleteTaskCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
    *   Task response = cloudTasksClient.runTask(name);
@@ -2285,8 +2483,11 @@ public final Task runTask(TaskName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
    *   Task response = cloudTasksClient.runTask(name);
@@ -2331,8 +2532,11 @@ public final Task runTask(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   RunTaskRequest request =
    *       RunTaskRequest.newBuilder()
@@ -2378,8 +2582,11 @@ public final Task runTask(RunTaskRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // 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()) {
    *   RunTaskRequest request =
    *       RunTaskRequest.newBuilder()
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java
index 027a308a..0faadd46 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java
@@ -60,16 +60,16 @@
  * 

For example, to set the total timeout of getQueue to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder();
  * cloudTasksSettingsBuilder
  *     .getQueueSettings()
  *     .setRetrySettings(
- *         cloudTasksSettingsBuilder
- *             .getQueueSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java
index b0103080..2db7d5c3 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java
@@ -25,8 +25,11 @@
  * 

Sample for CloudTasksClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  *   Queue response = cloudTasksClient.getQueue(name);
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java
index f932d379..8400acde 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java
@@ -94,16 +94,16 @@
  * 

For example, to set the total timeout of getQueue to 30 seconds: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // 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
  * CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder();
  * cloudTasksSettingsBuilder
  *     .getQueueSettings()
  *     .setRetrySettings(
- *         cloudTasksSettingsBuilder
- *             .getQueueSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksStub.java
index 9b9fdbd6..19987639 100644
--- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksStub.java
+++ b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksStub.java
@@ -168,7 +168,8 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                         return fields;
                       })
                   .setRequestBodyExtractor(
-                      request -> ProtoRestSerializer.create().toBody("queue", request.getQueue()))
+                      request ->
+                          ProtoRestSerializer.create().toBody("queue", request.getQueue(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -202,7 +203,8 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                         return fields;
                       })
                   .setRequestBodyExtractor(
-                      request -> ProtoRestSerializer.create().toBody("queue", request.getQueue()))
+                      request ->
+                          ProtoRestSerializer.create().toBody("queue", request.getQueue(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -269,7 +271,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -304,7 +306,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -339,7 +341,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -375,7 +377,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -411,7 +413,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -447,7 +449,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearResource().build()))
+                                  .toBody("*", request.toBuilder().clearResource().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -552,7 +554,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearParent().build()))
+                              .toBody("*", request.toBuilder().clearParent().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
@@ -619,7 +621,7 @@ public class HttpJsonCloudTasksStub extends CloudTasksStub {
                   .setRequestBodyExtractor(
                       request ->
                           ProtoRestSerializer.create()
-                              .toBody("*", request.toBuilder().clearName().build()))
+                              .toBody("*", request.toBuilder().clearName().build(), false))
                   .build())
           .setResponseParser(
               ProtoMessageResponseParser.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java
index 4e05d8c0..f097d66a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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
     CloudTasksSettings cloudTasksSettings =
         CloudTasksSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java
index 38514912..a5da0873 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider1() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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
     CloudTasksSettings cloudTasksSettings =
         CloudTasksSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetEndpoint.java
index 9da8f9ea..902d57d1 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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
     CloudTasksSettings cloudTasksSettings =
         CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build();
     CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/AsyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/AsyncCreateQueue.java
index 1b2db3dd..e1dd8293 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/AsyncCreateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/AsyncCreateQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       CreateQueueRequest request =
           CreateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueue.java
index 11135004..24ac21c7 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       CreateQueueRequest request =
           CreateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java
index 9c9fcc92..3dbc0328 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateQueueLocationnameQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       Queue queue = Queue.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java
index 721ffc9b..76afd65b 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateQueueStringQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       Queue queue = Queue.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/AsyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/AsyncCreateTask.java
index ccf2a479..34daa0ac 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/AsyncCreateTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/AsyncCreateTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       CreateTaskRequest request =
           CreateTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTask.java
index df58baee..73960c2b 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       CreateTaskRequest request =
           CreateTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java
index a84eb460..1baa3d2b 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateTaskQueuenameTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Task task = Task.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java
index 0860e295..560ab33b 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateTaskStringTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Task task = Task.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java
index 9762594b..ee8d9eae 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       DeleteQueueRequest request =
           DeleteQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueue.java
index da63071b..3f370b97 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       DeleteQueueRequest request =
           DeleteQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java
index 694e60aa..960c9456 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       cloudTasksClient.deleteQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java
index 8c7e82cf..b963df07 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       cloudTasksClient.deleteQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/AsyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/AsyncDeleteTask.java
index 632b3fab..e259fe10 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/AsyncDeleteTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/AsyncDeleteTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       DeleteTaskRequest request =
           DeleteTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTask.java
index fd2d3a75..bf4c5a4a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       DeleteTaskRequest request =
           DeleteTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskString.java
index 5871611c..aeae8ccf 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteTaskString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       cloudTasksClient.deleteTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java
index 189c71cf..092b0ef7 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteTaskTaskname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       cloudTasksClient.deleteTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java
index 60880005..454f77ad 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       GetIamPolicyRequest request =
           GetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java
index 493482e2..95f353d0 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       GetIamPolicyRequest request =
           GetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java
index d463ab2e..949f438f 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetIamPolicyResourcename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Policy response = cloudTasksClient.getIamPolicy(resource);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java
index 979f61bc..58a98b0d 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetIamPolicyString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Policy response = cloudTasksClient.getIamPolicy(resource);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/AsyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/AsyncGetQueue.java
index 0f432e89..950fc984 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/AsyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/AsyncGetQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       GetQueueRequest request =
           GetQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueue.java
index 0fc5586a..d8c186fb 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       GetQueueRequest request =
           GetQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java
index d080d45b..9963770c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.getQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueString.java
index 9ae88742..22dda68e 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.getQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/AsyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/AsyncGetTask.java
index ffc0e660..5e110eb6 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/AsyncGetTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/AsyncGetTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       GetTaskRequest request =
           GetTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTask.java
index 1d470d42..b99a00ff 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       GetTaskRequest request =
           GetTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskString.java
index d571b3ec..a1c9844c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetTaskString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       Task response = cloudTasksClient.getTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskTaskname.java
index 7047deb0..fc687b2c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskTaskname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskTaskname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetTaskTaskname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       Task response = cloudTasksClient.getTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueues.java
index e35753f3..31f07c0a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueues.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueues.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListQueues() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ListQueuesRequest request =
           ListQueuesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java
index be973228..6370aba4 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListQueuesPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ListQueuesRequest request =
           ListQueuesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueues.java
index 2b403ced..2d843256 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueues.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueues.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListQueues() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ListQueuesRequest request =
           ListQueuesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java
index 306a8355..93944890 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListQueuesLocationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesString.java
index 1ce53a05..21b0c380 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListQueuesString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasks.java
index f2b39a83..40c31e55 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasks.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasks.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListTasks() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ListTasksRequest request =
           ListTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasksPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasksPaged.java
index 95d3b4cb..518df7f0 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasksPaged.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasksPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListTasksPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ListTasksRequest request =
           ListTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasks.java
index 359dd06a..2972c9ea 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasks.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasks.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListTasks() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ListTasksRequest request =
           ListTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksQueuename.java
index 1c6ef375..a5c8d8cc 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListTasksQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksString.java
index ce21b319..c3338b8c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListTasksString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/AsyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/AsyncPauseQueue.java
index ef03e3f9..6f44153c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/AsyncPauseQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/AsyncPauseQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncPauseQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       PauseQueueRequest request =
           PauseQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueue.java
index a3186b77..3ca80bf4 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPauseQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       PauseQueueRequest request =
           PauseQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java
index 218a3d59..ebccf9d4 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPauseQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.pauseQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueString.java
index 0bfa1089..caba7348 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPauseQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.pauseQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java
index 0f9e2f86..23616da3 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncPurgeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       PurgeQueueRequest request =
           PurgeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueue.java
index a16236a5..30356ca7 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPurgeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       PurgeQueueRequest request =
           PurgeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java
index 3c864eaa..1996b5be 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPurgeQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.purgeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java
index 84007dc3..7161a99a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPurgeQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.purgeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/AsyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/AsyncResumeQueue.java
index 97db36cf..c63525a9 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/AsyncResumeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/AsyncResumeQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncResumeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ResumeQueueRequest request =
           ResumeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueue.java
index acdb269d..995c3435 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResumeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ResumeQueueRequest request =
           ResumeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java
index 5526a4e8..cbbc6986 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResumeQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.resumeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueString.java
index 0c29041f..f2c84a58 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResumeQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.resumeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/AsyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/AsyncRunTask.java
index cde80c1c..02ccf00e 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/AsyncRunTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/AsyncRunTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncRunTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       RunTaskRequest request =
           RunTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTask.java
index ea176710..5bce1fae 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRunTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       RunTaskRequest request =
           RunTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskString.java
index 11b7fef8..cbe96606 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRunTaskString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       Task response = cloudTasksClient.runTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskTaskname.java
index 6e70b7b7..3b22e063 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskTaskname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskTaskname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRunTaskTaskname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       Task response = cloudTasksClient.runTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java
index 5a0e28fa..5160c33a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       SetIamPolicyRequest request =
           SetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java
index 24d29467..789562e7 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       SetIamPolicyRequest request =
           SetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
index 33cf4945..3f24bd63 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetIamPolicyResourcenamePolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Policy policy = Policy.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
index b12bbe3f..b5badab6 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetIamPolicyStringPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Policy policy = Policy.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java
index 0568b639..c372a8d5 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncTestIamPermissions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       TestIamPermissionsRequest request =
           TestIamPermissionsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java
index f2f41700..34cf547a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncTestIamPermissions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       TestIamPermissionsRequest request =
           TestIamPermissionsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
index 38b1f4d1..c894eedc 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncTestIamPermissionsResourcenameListstring() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       List permissions = new ArrayList<>();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
index 381af0ce..1f757802 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncTestIamPermissionsStringListstring() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       List permissions = new ArrayList<>();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java
index 22494974..ceba1aa7 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       UpdateQueueRequest request =
           UpdateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueue.java
index 2038283e..85804280 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       UpdateQueueRequest request =
           UpdateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java
index 4788dbb3..c549376b 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateQueueQueueFieldmask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       Queue queue = Queue.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtaskssettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtaskssettings/getqueue/SyncGetQueue.java
index 0ffb477c..720367aa 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtaskssettings/getqueue/SyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtaskssettings/getqueue/SyncGetQueue.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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
     CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder();
     cloudTasksSettingsBuilder
         .getQueueSettings()
         .setRetrySettings(
-            cloudTasksSettingsBuilder
-                .getQueueSettings()
-                .getRetrySettings()
-                .toBuilder()
+            cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java
index 7f7bda8f..51115470 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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
     CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder();
     cloudTasksSettingsBuilder
         .getQueueSettings()
         .setRetrySettings(
-            cloudTasksSettingsBuilder
-                .getQueueSettings()
-                .getRetrySettings()
-                .toBuilder()
+            cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/AsyncAcknowledgeTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/AsyncAcknowledgeTask.java
index ab1afa05..fae03a61 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/AsyncAcknowledgeTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/AsyncAcknowledgeTask.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncAcknowledgeTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       AcknowledgeTaskRequest request =
           AcknowledgeTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTask.java
index 3baa6f7e..8302c280 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAcknowledgeTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       AcknowledgeTaskRequest request =
           AcknowledgeTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskStringTimestamp.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskStringTimestamp.java
index 92f2d61f..0a89d220 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskStringTimestamp.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskStringTimestamp.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAcknowledgeTaskStringTimestamp() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       Timestamp scheduleTime = Timestamp.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskTasknameTimestamp.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskTasknameTimestamp.java
index 762125bd..82e330c2 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskTasknameTimestamp.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskTasknameTimestamp.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncAcknowledgeTaskTasknameTimestamp() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       Timestamp scheduleTime = Timestamp.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/AsyncCancelLease.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/AsyncCancelLease.java
index da94e453..e618e1f0 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/AsyncCancelLease.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/AsyncCancelLease.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCancelLease() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       CancelLeaseRequest request =
           CancelLeaseRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLease.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLease.java
index 5ed165c2..9323041b 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLease.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLease.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCancelLease() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       CancelLeaseRequest request =
           CancelLeaseRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseStringTimestamp.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseStringTimestamp.java
index d4f1f1c4..b28a6da1 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseStringTimestamp.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseStringTimestamp.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCancelLeaseStringTimestamp() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       Timestamp scheduleTime = Timestamp.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseTasknameTimestamp.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseTasknameTimestamp.java
index 059088a1..8bf8ed7c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseTasknameTimestamp.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseTasknameTimestamp.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCancelLeaseTasknameTimestamp() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       Timestamp scheduleTime = Timestamp.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java
index dbe6a904..9adafb3a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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
     CloudTasksSettings cloudTasksSettings =
         CloudTasksSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java
index abb4e687..2970d6f9 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider1() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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
     CloudTasksSettings cloudTasksSettings =
         CloudTasksSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetEndpoint.java
index 4e47cdf5..0e87ed2e 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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
     CloudTasksSettings cloudTasksSettings =
         CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build();
     CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/AsyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/AsyncCreateQueue.java
index e9bfc5f9..107fdbc4 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/AsyncCreateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/AsyncCreateQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       CreateQueueRequest request =
           CreateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueue.java
index e34e8208..a2b1e635 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       CreateQueueRequest request =
           CreateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java
index b2327f59..6de0aff7 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateQueueLocationnameQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       Queue queue = Queue.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java
index 2616093d..56ce4232 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateQueueStringQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       Queue queue = Queue.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/AsyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/AsyncCreateTask.java
index e1b299a5..30be5be4 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/AsyncCreateTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/AsyncCreateTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       CreateTaskRequest request =
           CreateTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTask.java
index 390a437a..99aadb75 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       CreateTaskRequest request =
           CreateTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java
index 62a070ae..fbe38473 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateTaskQueuenameTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Task task = Task.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java
index 73d350ce..0cac0e33 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateTaskStringTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Task task = Task.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java
index af835c27..29d3c2cc 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       DeleteQueueRequest request =
           DeleteQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueue.java
index 32678f61..de067ffd 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       DeleteQueueRequest request =
           DeleteQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java
index 951b6511..5d3028aa 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       cloudTasksClient.deleteQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java
index 43f176ba..ea5f346e 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       cloudTasksClient.deleteQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/AsyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/AsyncDeleteTask.java
index f9274df2..e256d5aa 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/AsyncDeleteTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/AsyncDeleteTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       DeleteTaskRequest request =
           DeleteTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTask.java
index 36fe4ad3..856a0e16 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       DeleteTaskRequest request =
           DeleteTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskString.java
index 0294a9a6..3e654f62 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteTaskString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       cloudTasksClient.deleteTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java
index 1f6b15ae..3d12a3b0 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteTaskTaskname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       cloudTasksClient.deleteTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java
index d0f68b55..25212550 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       GetIamPolicyRequest request =
           GetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java
index ee3f1c67..47d0afd0 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       GetIamPolicyRequest request =
           GetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java
index a8002081..b773f9ad 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetIamPolicyResourcename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Policy response = cloudTasksClient.getIamPolicy(resource);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java
index 6edf8501..664e3ef2 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetIamPolicyString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Policy response = cloudTasksClient.getIamPolicy(resource);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/AsyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/AsyncGetQueue.java
index ae934132..3f91261c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/AsyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/AsyncGetQueue.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       GetQueueRequest request =
           GetQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueue.java
index 58d8f86e..5ffdcd88 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       GetQueueRequest request =
           GetQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java
index 06e7c5b8..8e26d72c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.getQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueString.java
index 8c83dbd4..644874bb 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.getQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/AsyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/AsyncGetTask.java
index 64cb85ce..075be549 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/AsyncGetTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/AsyncGetTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       GetTaskRequest request =
           GetTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTask.java
index f7ae4a58..f87863a9 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       GetTaskRequest request =
           GetTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskString.java
index 36fb1cf3..8937a692 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetTaskString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       Task response = cloudTasksClient.getTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskTaskname.java
index 517259c6..7defa994 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskTaskname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskTaskname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetTaskTaskname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       Task response = cloudTasksClient.getTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/AsyncLeaseTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/AsyncLeaseTasks.java
index a712847f..6e0a7d7f 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/AsyncLeaseTasks.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/AsyncLeaseTasks.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncLeaseTasks() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       LeaseTasksRequest request =
           LeaseTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasks.java
index 6f6a1b5e..f080538a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasks.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasks.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncLeaseTasks() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       LeaseTasksRequest request =
           LeaseTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksQueuenameDuration.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksQueuenameDuration.java
index 2a935d86..e54769b0 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksQueuenameDuration.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksQueuenameDuration.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncLeaseTasksQueuenameDuration() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Duration leaseDuration = Duration.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksStringDuration.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksStringDuration.java
index a14af642..66b6bf63 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksStringDuration.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksStringDuration.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncLeaseTasksStringDuration() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Duration leaseDuration = Duration.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueues.java
index 0bd56057..0fceeb02 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueues.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueues.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListQueues() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ListQueuesRequest request =
           ListQueuesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java
index a7ab7e1a..de86a5ed 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListQueuesPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ListQueuesRequest request =
           ListQueuesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueues.java
index 1572c738..a4fa0906 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueues.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueues.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListQueues() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ListQueuesRequest request =
           ListQueuesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java
index b997ba49..7bf61591 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListQueuesLocationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesString.java
index ad6691a3..bacae6ba 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListQueuesString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasks.java
index 894fc4df..79898982 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasks.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasks.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListTasks() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ListTasksRequest request =
           ListTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasksPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasksPaged.java
index b8612e2b..2cd906df 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasksPaged.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasksPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListTasksPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ListTasksRequest request =
           ListTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasks.java
index 558e80a5..e41dcb39 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasks.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasks.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListTasks() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ListTasksRequest request =
           ListTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksQueuename.java
index 6877cc75..befebcdc 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListTasksQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksString.java
index 48d68f82..299ff85a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListTasksString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/AsyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/AsyncPauseQueue.java
index 8d0f9560..047044b2 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/AsyncPauseQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/AsyncPauseQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncPauseQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       PauseQueueRequest request =
           PauseQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueue.java
index 7fa8ca8f..7615206a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPauseQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       PauseQueueRequest request =
           PauseQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java
index 86f55e8d..b8887ed3 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPauseQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.pauseQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueString.java
index b821a4d6..687bbde3 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPauseQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.pauseQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java
index 515451a9..1f2a71bb 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncPurgeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       PurgeQueueRequest request =
           PurgeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueue.java
index 2a7019c1..504ea5b1 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPurgeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       PurgeQueueRequest request =
           PurgeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java
index 66b1e90a..7bc29f3e 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPurgeQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.purgeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java
index 9f932af0..53c1b0ca 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPurgeQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.purgeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/AsyncRenewLease.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/AsyncRenewLease.java
index 78690e08..7b93b15d 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/AsyncRenewLease.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/AsyncRenewLease.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncRenewLease() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       RenewLeaseRequest request =
           RenewLeaseRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLease.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLease.java
index 3645572a..3493cea1 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLease.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLease.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRenewLease() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       RenewLeaseRequest request =
           RenewLeaseRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseStringTimestampDuration.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseStringTimestampDuration.java
index fcbc0c02..d52eeb68 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseStringTimestampDuration.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseStringTimestampDuration.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRenewLeaseStringTimestampDuration() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       Timestamp scheduleTime = Timestamp.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseTasknameTimestampDuration.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseTasknameTimestampDuration.java
index 9811a9ea..9e553755 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseTasknameTimestampDuration.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseTasknameTimestampDuration.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRenewLeaseTasknameTimestampDuration() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       Timestamp scheduleTime = Timestamp.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/AsyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/AsyncResumeQueue.java
index 14c6db59..a929b67e 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/AsyncResumeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/AsyncResumeQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncResumeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ResumeQueueRequest request =
           ResumeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueue.java
index 998644e5..44b55199 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResumeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ResumeQueueRequest request =
           ResumeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java
index 165e4017..c868c197 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResumeQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.resumeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueString.java
index 7e00ccec..c77f3a9d 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResumeQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.resumeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/AsyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/AsyncRunTask.java
index 7f31a5b6..927e71ab 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/AsyncRunTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/AsyncRunTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncRunTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       RunTaskRequest request =
           RunTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTask.java
index df779a69..83dfefb5 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRunTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       RunTaskRequest request =
           RunTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskString.java
index 64f30152..fb583c72 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRunTaskString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       Task response = cloudTasksClient.runTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskTaskname.java
index 68129a6b..54af3af7 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskTaskname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskTaskname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRunTaskTaskname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       Task response = cloudTasksClient.runTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java
index fd9321df..7564530c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       SetIamPolicyRequest request =
           SetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java
index 9a844bdd..390e72fa 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       SetIamPolicyRequest request =
           SetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
index 0fb2c9c1..c6cb131d 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetIamPolicyResourcenamePolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Policy policy = Policy.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
index 76d66482..c68a4241 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetIamPolicyStringPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Policy policy = Policy.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java
index fb85bdfc..9a608bf9 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncTestIamPermissions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       TestIamPermissionsRequest request =
           TestIamPermissionsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java
index 23e0592e..6e0f87a3 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncTestIamPermissions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       TestIamPermissionsRequest request =
           TestIamPermissionsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
index a36a8bc6..4b471894 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncTestIamPermissionsResourcenameListstring() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       List permissions = new ArrayList<>();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
index ca23ca6f..7329dca4 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncTestIamPermissionsStringListstring() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       List permissions = new ArrayList<>();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java
index 55067342..52ecbe9a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       UpdateQueueRequest request =
           UpdateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueue.java
index efa507ef..a44f3ef3 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       UpdateQueueRequest request =
           UpdateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java
index e4c8bd50..935decf7 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateQueueQueueFieldmask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       Queue queue = Queue.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtaskssettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtaskssettings/getqueue/SyncGetQueue.java
index 1a243ce7..dc1c35da 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtaskssettings/getqueue/SyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtaskssettings/getqueue/SyncGetQueue.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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
     CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder();
     cloudTasksSettingsBuilder
         .getQueueSettings()
         .setRetrySettings(
-            cloudTasksSettingsBuilder
-                .getQueueSettings()
-                .getRetrySettings()
-                .toBuilder()
+            cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java
index 4b3c654b..b652c10f 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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
     CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder();
     cloudTasksSettingsBuilder
         .getQueueSettings()
         .setRetrySettings(
-            cloudTasksSettingsBuilder
-                .getQueueSettings()
-                .getRetrySettings()
-                .toBuilder()
+            cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java
index 312b4383..1d909e16 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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
     CloudTasksSettings cloudTasksSettings =
         CloudTasksSettings.newBuilder()
             .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java
index 85431e3e..e62a6f6c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java
@@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetCredentialsProvider1() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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
     CloudTasksSettings cloudTasksSettings =
         CloudTasksSettings.newBuilder()
             .setTransportChannelProvider(
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetEndpoint.java
index d434e08d..0e9f6c71 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateSetEndpoint() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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
     CloudTasksSettings cloudTasksSettings =
         CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build();
     CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/AsyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/AsyncCreateQueue.java
index ca315705..50a1886e 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/AsyncCreateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/AsyncCreateQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       CreateQueueRequest request =
           CreateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueue.java
index 4d711ceb..33dd1518 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       CreateQueueRequest request =
           CreateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java
index 47be9793..6a2a56b1 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateQueueLocationnameQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       Queue queue = Queue.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java
index 0d613bc1..6fe3b0b0 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateQueueStringQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       Queue queue = Queue.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/AsyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/AsyncCreateTask.java
index 6305ba81..5958a903 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/AsyncCreateTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/AsyncCreateTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncCreateTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       CreateTaskRequest request =
           CreateTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTask.java
index 9e6e187a..872a00f3 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       CreateTaskRequest request =
           CreateTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java
index bed8b931..a1ff8829 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateTaskQueuenameTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Task task = Task.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskStringTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskStringTask.java
index b61f91aa..9185d530 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskStringTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskStringTask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncCreateTaskStringTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Task task = Task.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/AsyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/AsyncDeleteQueue.java
index 4f774533..709a14ba 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/AsyncDeleteQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/AsyncDeleteQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       DeleteQueueRequest request =
           DeleteQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueue.java
index 335fd8b9..cf2e3094 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       DeleteQueueRequest request =
           DeleteQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java
index b03ca7bd..2bbd1614 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       cloudTasksClient.deleteQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueString.java
index a67c1cd7..00515075 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       cloudTasksClient.deleteQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/AsyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/AsyncDeleteTask.java
index 4c3d45d8..bfb260f3 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/AsyncDeleteTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/AsyncDeleteTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncDeleteTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       DeleteTaskRequest request =
           DeleteTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTask.java
index db5646ff..75695d39 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       DeleteTaskRequest request =
           DeleteTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskString.java
index 00c42019..5c5189a5 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteTaskString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       cloudTasksClient.deleteTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java
index 1c7f5c7f..be33b8c5 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncDeleteTaskTaskname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       cloudTasksClient.deleteTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java
index 049d109a..08e2d88e 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       GetIamPolicyRequest request =
           GetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java
index 3b6c93d6..cf2bb0c0 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       GetIamPolicyRequest request =
           GetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java
index 703b836f..5c68d929 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetIamPolicyResourcename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Policy response = cloudTasksClient.getIamPolicy(resource);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java
index 598be27c..3556a288 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetIamPolicyString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Policy response = cloudTasksClient.getIamPolicy(resource);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/AsyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/AsyncGetQueue.java
index beb5a0a3..8db66b4a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/AsyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/AsyncGetQueue.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       GetQueueRequest request =
           GetQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueue.java
index b7c62e66..da4fb946 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       GetQueueRequest request =
           GetQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueQueuename.java
index bbae5407..37596206 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.getQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueString.java
index c5df8b17..7b1903f5 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.getQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/AsyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/AsyncGetTask.java
index b3ed26be..11afd445 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/AsyncGetTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/AsyncGetTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncGetTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       GetTaskRequest request =
           GetTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTask.java
index 836db60d..dc289704 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       GetTaskRequest request =
           GetTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskString.java
index 930c4419..07dba2e6 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetTaskString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       Task response = cloudTasksClient.getTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskTaskname.java
index 868eefab..1b067cf4 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskTaskname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskTaskname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetTaskTaskname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       Task response = cloudTasksClient.getTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueues.java
index 5ea1bbde..2bf90e0b 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueues.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueues.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListQueues() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ListQueuesRequest request =
           ListQueuesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueuesPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueuesPaged.java
index d679ca18..743ddbb6 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueuesPaged.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueuesPaged.java
@@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListQueuesPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ListQueuesRequest request =
           ListQueuesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueues.java
index d7c5a7d8..1c5049ac 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueues.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueues.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListQueues() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ListQueuesRequest request =
           ListQueuesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesLocationname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesLocationname.java
index 9f129089..383333be 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListQueuesLocationname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
       for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesString.java
index 60309c64..7fcf90f5 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListQueuesString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
       for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasks.java
index c19f0208..ceadcaaa 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasks.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasks.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListTasks() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ListTasksRequest request =
           ListTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasksPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasksPaged.java
index 17711db6..a789178e 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasksPaged.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasksPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncListTasksPaged() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ListTasksRequest request =
           ListTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasks.java
index 046d9477..fa50cc55 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasks.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasks.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListTasks() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ListTasksRequest request =
           ListTasksRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksQueuename.java
index f67e5d81..9ac21fab 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListTasksQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksString.java
index e8fcd18a..5b41d5ad 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncListTasksString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/AsyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/AsyncPauseQueue.java
index 761b5166..1851741d 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/AsyncPauseQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/AsyncPauseQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncPauseQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       PauseQueueRequest request =
           PauseQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueue.java
index 93394574..faac88d5 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPauseQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       PauseQueueRequest request =
           PauseQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java
index ed9e59e2..9c8ea5df 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPauseQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.pauseQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueString.java
index 25a0cc0a..c430267d 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPauseQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.pauseQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/AsyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/AsyncPurgeQueue.java
index b7d0108d..55d7ceed 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/AsyncPurgeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/AsyncPurgeQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncPurgeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       PurgeQueueRequest request =
           PurgeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueue.java
index f555c736..a361aa5f 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPurgeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       PurgeQueueRequest request =
           PurgeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java
index 9a6f7d07..8940cfb0 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPurgeQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.purgeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueString.java
index ba833f52..7133a864 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncPurgeQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.purgeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/AsyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/AsyncResumeQueue.java
index 8a522847..ea380afc 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/AsyncResumeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/AsyncResumeQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncResumeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ResumeQueueRequest request =
           ResumeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueue.java
index 50348c46..127b49fd 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResumeQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ResumeQueueRequest request =
           ResumeQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java
index df75ed99..a192c962 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResumeQueueQueuename() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Queue response = cloudTasksClient.resumeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueString.java
index bdfb0c01..01b4cb82 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncResumeQueueString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Queue response = cloudTasksClient.resumeQueue(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/AsyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/AsyncRunTask.java
index 8a392118..5f9e2e5e 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/AsyncRunTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/AsyncRunTask.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncRunTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       RunTaskRequest request =
           RunTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTask.java
index 8b73a70b..e12f1c3c 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTask.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRunTask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       RunTaskRequest request =
           RunTaskRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskString.java
index d5da488b..64fb38ac 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskString.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRunTaskString() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
       Task response = cloudTasksClient.runTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskTaskname.java
index edd2d333..09d2ea56 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskTaskname.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskTaskname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncRunTaskTaskname() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
       Task response = cloudTasksClient.runTask(name);
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java
index f1e7cd6e..c23eb249 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncSetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       SetIamPolicyRequest request =
           SetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java
index 33d53f0f..f0ddfaa5 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetIamPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       SetIamPolicyRequest request =
           SetIamPolicyRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
index 1b0b0d92..c2e17cd7 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetIamPolicyResourcenamePolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       Policy policy = Policy.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
index 2cbfddff..a3d1ca90 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncSetIamPolicyStringPolicy() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       Policy policy = Policy.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java
index 4bece0a9..34b12fad 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncTestIamPermissions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       TestIamPermissionsRequest request =
           TestIamPermissionsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java
index 9b6ec431..d55ce480 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncTestIamPermissions() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       TestIamPermissionsRequest request =
           TestIamPermissionsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
index b92bcce7..d9ec06c3 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncTestIamPermissionsResourcenameListstring() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
       List permissions = new ArrayList<>();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
index b144ff3b..a59396ab 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncTestIamPermissionsStringListstring() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
       List permissions = new ArrayList<>();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/AsyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/AsyncUpdateQueue.java
index 310ec8a0..2d705109 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/AsyncUpdateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/AsyncUpdateQueue.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void asyncUpdateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       UpdateQueueRequest request =
           UpdateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueue.java
index b9b4415c..86760baa 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueue.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       UpdateQueueRequest request =
           UpdateQueueRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java
index 077ea6dc..a971e25a 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncUpdateQueueQueueFieldmask() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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()) {
       Queue queue = Queue.newBuilder().build();
       FieldMask updateMask = FieldMask.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtaskssettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtaskssettings/getqueue/SyncGetQueue.java
index 3475de29..3b35dfe1 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtaskssettings/getqueue/SyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtaskssettings/getqueue/SyncGetQueue.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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
     CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder();
     cloudTasksSettingsBuilder
         .getQueueSettings()
         .setRetrySettings(
-            cloudTasksSettingsBuilder
-                .getQueueSettings()
-                .getRetrySettings()
-                .toBuilder()
+            cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java
index 60609678..89225654 100644
--- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java
+++ b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
   }
 
   public static void syncGetQueue() throws Exception {
-    // This snippet has been automatically generated for illustrative purposes only.
-    // It may require modifications to work in your environment.
+    // 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
     CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder();
     cloudTasksSettingsBuilder
         .getQueueSettings()
         .setRetrySettings(
-            cloudTasksSettingsBuilder
-                .getQueueSettings()
-                .getRetrySettings()
-                .toBuilder()
+            cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
                 .setTotalTimeout(Duration.ofSeconds(30))
                 .build());
     CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();

From 991d232f72037f540c9f02aab619ac076d77073e Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Sat, 10 Sep 2022 02:08:31 +0000
Subject: [PATCH 356/401] chore: Generated snippets should not be owned by
 samples reviewers (#1575) (#750)

Source-Link: https://github.com/googleapis/synthtool/commit/2e9ac19d5b8181af77cdc5337cf922517813cc49
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93
---
 .github/.OwlBot.lock.yaml | 3 +--
 .github/CODEOWNERS        | 3 +++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index a20fd630..62592923 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,5 +13,4 @@
 # limitations under the License.
 docker:
   image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
-  digest: sha256:7a9a7eb50ca2af5bfffab3abd2f38d408735c990a74bacf9b7fde2af0a086a0b
-# created: 2022-08-01T15:27:14.757266067Z
+  digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 1578dc2f..5232f38f 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -10,3 +10,6 @@
 
 # The java-samples-reviewers team is the default owner for samples changes
 samples/**/*.java       @googleapis/java-samples-reviewers
+
+# Generated snippets should not be owned by samples reviewers
+samples/snippets/generated/       @googleapis/yoshi-java

From 455a7a722c4b055c756877cebe6960a3569ff1f7 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate 
Date: Thu, 15 Sep 2022 15:40:21 +0200
Subject: [PATCH 357/401] deps: update dependency
 com.google.cloud:google-cloud-shared-dependencies to v3.0.3 (#751)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.2` -> `3.0.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/compatibility-slim/3.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/confidence-slim/3.0.2)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

googleapis/java-shared-dependencies ### [`v3.0.3`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​303-httpsgithubcomgoogleapisjava-shared-dependenciescomparev302v303-2022-09-14) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.2...v3.0.3) ##### Dependencies - Google-cloud-core 2.8.12 ([#​799](https://togithub.com/googleapis/java-shared-dependencies/issues/799)) ([1b3db8d](https://togithub.com/googleapis/java-shared-dependencies/commit/1b3db8d1e17c49ebae79fc96164fa9058e1df6e3)) - Moving gson to first-party-dependencies ([#​800](https://togithub.com/googleapis/java-shared-dependencies/issues/800)) ([a41fcc1](https://togithub.com/googleapis/java-shared-dependencies/commit/a41fcc11d32e02e5af2837561792e3919f6d4b3f)) - Update dependency com.google.protobuf:protobuf-bom to v3.21.6 ([#​797](https://togithub.com/googleapis/java-shared-dependencies/issues/797)) ([bc5fdc9](https://togithub.com/googleapis/java-shared-dependencies/commit/bc5fdc9b3af7973c28f063a9ac156fe2af562814)) - Update gax.version to v2.19.1 ([#​798](https://togithub.com/googleapis/java-shared-dependencies/issues/798)) ([84e5487](https://togithub.com/googleapis/java-shared-dependencies/commit/84e5487b2e3dce4bb60badecebde788c3cb702b8)) - Update google.core.version to v2.8.11 ([#​793](https://togithub.com/googleapis/java-shared-dependencies/issues/793)) ([63c1297](https://togithub.com/googleapis/java-shared-dependencies/commit/63c129722aa0b821031ff5b4c11004adf7b12044))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e0956236..9e8c5eb7 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.2 + 3.0.3 pom import From 10778d8b4be72e1b7e1a3ed5be605a6a26ce6004 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 15 Sep 2022 21:44:35 -0400 Subject: [PATCH 358/401] chore(main): release 2.3.8 (#752) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65d7a9f1..296352b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.3.8](https://github.com/googleapis/java-tasks/compare/v2.3.7...v2.3.8) (2022-09-15) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#751](https://github.com/googleapis/java-tasks/issues/751)) ([455a7a7](https://github.com/googleapis/java-tasks/commit/455a7a722c4b055c756877cebe6960a3569ff1f7)) + ## [2.3.7](https://github.com/googleapis/java-tasks/compare/v2.3.6...v2.3.7) (2022-09-09) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index df260689..be80cbbc 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.8-SNAPSHOT + 2.3.8 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.8-SNAPSHOT + 2.3.8 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.8-SNAPSHOT + 0.93.8 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.8-SNAPSHOT + 0.93.8 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.8-SNAPSHOT + 2.3.8 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.8-SNAPSHOT + 0.93.8 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.8-SNAPSHOT + 0.93.8 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.8-SNAPSHOT + 2.3.8 diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 2c5ee640..90e08873 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.8-SNAPSHOT + 2.3.8 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.8-SNAPSHOT + 2.3.8 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 2cb26075..998bd95d 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.8-SNAPSHOT + 2.3.8 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.8-SNAPSHOT + 2.3.8 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 202a1d16..d5c761d0 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.8-SNAPSHOT + 0.93.8 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.8-SNAPSHOT + 2.3.8 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 9b310e61..28cc243c 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.8-SNAPSHOT + 0.93.8 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.8-SNAPSHOT + 2.3.8 diff --git a/pom.xml b/pom.xml index 9e8c5eb7..0fd90b75 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.8-SNAPSHOT + 2.3.8 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.8-SNAPSHOT + 0.93.8 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.8-SNAPSHOT + 0.93.8 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.8-SNAPSHOT + 2.3.8 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.8-SNAPSHOT + 0.93.8 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.8-SNAPSHOT + 0.93.8 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.8-SNAPSHOT + 2.3.8 com.google.cloud google-cloud-tasks - 2.3.8-SNAPSHOT + 2.3.8 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index eaf0dfe1..6e46ca0d 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.8-SNAPSHOT + 2.3.8 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.8-SNAPSHOT + 2.3.8 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 1beae1c1..fb0542e9 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.8-SNAPSHOT + 0.93.8 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.8-SNAPSHOT + 2.3.8 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 4f5d5339..b597a30b 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.8-SNAPSHOT + 0.93.8 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.8-SNAPSHOT + 2.3.8 diff --git a/versions.txt b/versions.txt index 207e8c35..d6993033 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.7:2.3.8-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.93.7:0.93.8-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.93.7:0.93.8-SNAPSHOT -grpc-google-cloud-tasks-v2:2.3.7:2.3.8-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.93.7:0.93.8-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.93.7:0.93.8-SNAPSHOT -proto-google-cloud-tasks-v2:2.3.7:2.3.8-SNAPSHOT +google-cloud-tasks:2.3.8:2.3.8 +grpc-google-cloud-tasks-v2beta3:0.93.8:0.93.8 +grpc-google-cloud-tasks-v2beta2:0.93.8:0.93.8 +grpc-google-cloud-tasks-v2:2.3.8:2.3.8 +proto-google-cloud-tasks-v2beta3:0.93.8:0.93.8 +proto-google-cloud-tasks-v2beta2:0.93.8:0.93.8 +proto-google-cloud-tasks-v2:2.3.8:2.3.8 From 2ec69baae214960b2028d0fb6ce9f8c295b206a5 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 16 Sep 2022 01:52:11 +0000 Subject: [PATCH 359/401] chore(main): release 2.3.9-SNAPSHOT (#753) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index be80cbbc..001d9965 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.8 + 2.3.9-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.8 + 2.3.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.8 + 0.93.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.8 + 0.93.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.8 + 2.3.9-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.8 + 0.93.9-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.8 + 0.93.9-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.8 + 2.3.9-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 90e08873..afcff055 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.8 + 2.3.9-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.8 + 2.3.9-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 998bd95d..8b970133 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.8 + 2.3.9-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.8 + 2.3.9-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index d5c761d0..61c6bf7c 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.8 + 0.93.9-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.8 + 2.3.9-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 28cc243c..daa1102a 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.8 + 0.93.9-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.8 + 2.3.9-SNAPSHOT diff --git a/pom.xml b/pom.xml index 0fd90b75..2addcbbd 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.8 + 2.3.9-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.8 + 0.93.9-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.8 + 0.93.9-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.8 + 2.3.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.8 + 0.93.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.8 + 0.93.9-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.8 + 2.3.9-SNAPSHOT com.google.cloud google-cloud-tasks - 2.3.8 + 2.3.9-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 6e46ca0d..f064f582 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.8 + 2.3.9-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.8 + 2.3.9-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index fb0542e9..aa80cb0c 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.8 + 0.93.9-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.8 + 2.3.9-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index b597a30b..fe285fd1 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.8 + 0.93.9-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.8 + 2.3.9-SNAPSHOT diff --git a/versions.txt b/versions.txt index d6993033..4f88e442 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.8:2.3.8 -grpc-google-cloud-tasks-v2beta3:0.93.8:0.93.8 -grpc-google-cloud-tasks-v2beta2:0.93.8:0.93.8 -grpc-google-cloud-tasks-v2:2.3.8:2.3.8 -proto-google-cloud-tasks-v2beta3:0.93.8:0.93.8 -proto-google-cloud-tasks-v2beta2:0.93.8:0.93.8 -proto-google-cloud-tasks-v2:2.3.8:2.3.8 +google-cloud-tasks:2.3.8:2.3.9-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.93.8:0.93.9-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.93.8:0.93.9-SNAPSHOT +grpc-google-cloud-tasks-v2:2.3.8:2.3.9-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.93.8:0.93.9-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.93.8:0.93.9-SNAPSHOT +proto-google-cloud-tasks-v2:2.3.8:2.3.9-SNAPSHOT From d57809918cd9f0c3c0ca5e6c9443869a6cbe7fd8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 16:20:12 +0200 Subject: [PATCH 360/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.3.8 (#754) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.3.6` -> `2.3.8` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.8/compatibility-slim/2.3.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.8/confidence-slim/2.3.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d35094a3..da644927 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.3.6 + 2.3.8 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.3.6' +implementation 'com.google.cloud:google-cloud-tasks:2.3.8' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.6" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.8" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index d593b9ff..88acc121 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.3.6 + 2.3.8 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 5b1ef082..90de6c6f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.3.6 + 2.3.8 From 2e0fb6f469c4eb7bfb2a8f55669ac4a43a74a71d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 17:28:39 +0200 Subject: [PATCH 361/401] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.2 (#755) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.1` -> `26.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/compatibility-slim/26.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/confidence-slim/26.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index ea0b8f55..1fb97615 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -29,7 +29,7 @@ com.google.cloud libraries-bom - 26.1.1 + 26.1.2 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index be1eb61e..7fb3bff1 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.1 + 26.1.2 pom import From 261ae44c5a3acf26f7afe6d3f6727d4ccb55a56c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 21 Sep 2022 16:20:32 +0200 Subject: [PATCH 362/401] deps: update dependency org.junit.vintage:junit-vintage-engine to v5.9.1 (#756) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.junit.vintage:junit-vintage-engine](https://junit.org/junit5/) ([source](https://togithub.com/junit-team/junit5)) | `5.9.0` -> `5.9.1` | [![age](https://badges.renovateapi.com/packages/maven/org.junit.vintage:junit-vintage-engine/5.9.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.junit.vintage:junit-vintage-engine/5.9.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.junit.vintage:junit-vintage-engine/5.9.1/compatibility-slim/5.9.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.junit.vintage:junit-vintage-engine/5.9.1/confidence-slim/5.9.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index 1fb97615..ec2ce70e 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -83,7 +83,7 @@ org.junit.vintage junit-vintage-engine - 5.9.0 + 5.9.1 org.graalvm.buildtools From 84802d366a1c163ceafae81f4c89c8acb159bb8a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 21 Sep 2022 14:36:40 +0000 Subject: [PATCH 363/401] chore(main): release 2.3.9 (#757) :robot: I have created a release *beep* *boop* --- ## [2.3.9](https://github.com/googleapis/java-tasks/compare/v2.3.8...v2.3.9) (2022-09-21) ### Dependencies * Update dependency org.junit.vintage:junit-vintage-engine to v5.9.1 ([#756](https://github.com/googleapis/java-tasks/issues/756)) ([261ae44](https://github.com/googleapis/java-tasks/commit/261ae44c5a3acf26f7afe6d3f6727d4ccb55a56c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 44 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 296352b8..8c97c7b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.3.9](https://github.com/googleapis/java-tasks/compare/v2.3.8...v2.3.9) (2022-09-21) + + +### Dependencies + +* Update dependency org.junit.vintage:junit-vintage-engine to v5.9.1 ([#756](https://github.com/googleapis/java-tasks/issues/756)) ([261ae44](https://github.com/googleapis/java-tasks/commit/261ae44c5a3acf26f7afe6d3f6727d4ccb55a56c)) + ## [2.3.8](https://github.com/googleapis/java-tasks/compare/v2.3.7...v2.3.8) (2022-09-15) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 001d9965..53b7424c 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.9-SNAPSHOT + 2.3.9 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.9-SNAPSHOT + 2.3.9 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.9-SNAPSHOT + 0.93.9 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.9-SNAPSHOT + 0.93.9 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.9-SNAPSHOT + 2.3.9 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.9-SNAPSHOT + 0.93.9 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.9-SNAPSHOT + 0.93.9 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.9-SNAPSHOT + 2.3.9 diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index afcff055..982e5901 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.9-SNAPSHOT + 2.3.9 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.9-SNAPSHOT + 2.3.9 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 8b970133..8a2a4ce5 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.9-SNAPSHOT + 2.3.9 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.9-SNAPSHOT + 2.3.9 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 61c6bf7c..b532cc8f 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.9-SNAPSHOT + 0.93.9 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.9-SNAPSHOT + 2.3.9 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index daa1102a..1847ed45 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.9-SNAPSHOT + 0.93.9 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.9-SNAPSHOT + 2.3.9 diff --git a/pom.xml b/pom.xml index 2addcbbd..eeb79d3e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.9-SNAPSHOT + 2.3.9 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.9-SNAPSHOT + 0.93.9 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.9-SNAPSHOT + 0.93.9 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.9-SNAPSHOT + 2.3.9 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.9-SNAPSHOT + 0.93.9 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.9-SNAPSHOT + 0.93.9 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.9-SNAPSHOT + 2.3.9 com.google.cloud google-cloud-tasks - 2.3.9-SNAPSHOT + 2.3.9 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index f064f582..35ea617e 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.9-SNAPSHOT + 2.3.9 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.9-SNAPSHOT + 2.3.9 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index aa80cb0c..90b9dd1d 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.9-SNAPSHOT + 0.93.9 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.9-SNAPSHOT + 2.3.9 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index fe285fd1..37bcc68d 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.9-SNAPSHOT + 0.93.9 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.9-SNAPSHOT + 2.3.9 diff --git a/versions.txt b/versions.txt index 4f88e442..1c730db0 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.8:2.3.9-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.93.8:0.93.9-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.93.8:0.93.9-SNAPSHOT -grpc-google-cloud-tasks-v2:2.3.8:2.3.9-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.93.8:0.93.9-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.93.8:0.93.9-SNAPSHOT -proto-google-cloud-tasks-v2:2.3.8:2.3.9-SNAPSHOT +google-cloud-tasks:2.3.9:2.3.9 +grpc-google-cloud-tasks-v2beta3:0.93.9:0.93.9 +grpc-google-cloud-tasks-v2beta2:0.93.9:0.93.9 +grpc-google-cloud-tasks-v2:2.3.9:2.3.9 +proto-google-cloud-tasks-v2beta3:0.93.9:0.93.9 +proto-google-cloud-tasks-v2beta2:0.93.9:0.93.9 +proto-google-cloud-tasks-v2:2.3.9:2.3.9 From e604ac29030e070c34098195d83f8b88706ce275 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 21 Sep 2022 14:44:14 +0000 Subject: [PATCH 364/401] chore(main): release 2.3.10-SNAPSHOT (#758) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 53b7424c..9e0713b3 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.9 + 2.3.10-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.9 + 2.3.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.9 + 0.93.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.9 + 0.93.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.9 + 2.3.10-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.9 + 0.93.10-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.9 + 0.93.10-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.9 + 2.3.10-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 982e5901..bb399f09 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.9 + 2.3.10-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.9 + 2.3.10-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 8a2a4ce5..2152ba85 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.9 + 2.3.10-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.9 + 2.3.10-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index b532cc8f..229bdb28 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.9 + 0.93.10-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.9 + 2.3.10-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 1847ed45..94463bda 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.9 + 0.93.10-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.9 + 2.3.10-SNAPSHOT diff --git a/pom.xml b/pom.xml index eeb79d3e..64f0f5e9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.9 + 2.3.10-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.9 + 0.93.10-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.9 + 0.93.10-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.9 + 2.3.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.9 + 0.93.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.9 + 0.93.10-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.9 + 2.3.10-SNAPSHOT com.google.cloud google-cloud-tasks - 2.3.9 + 2.3.10-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 35ea617e..b78d5623 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.9 + 2.3.10-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.9 + 2.3.10-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 90b9dd1d..02e1ba6f 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.9 + 0.93.10-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.9 + 2.3.10-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 37bcc68d..19fccd7d 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.9 + 0.93.10-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.9 + 2.3.10-SNAPSHOT diff --git a/versions.txt b/versions.txt index 1c730db0..6ce679c9 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.9:2.3.9 -grpc-google-cloud-tasks-v2beta3:0.93.9:0.93.9 -grpc-google-cloud-tasks-v2beta2:0.93.9:0.93.9 -grpc-google-cloud-tasks-v2:2.3.9:2.3.9 -proto-google-cloud-tasks-v2beta3:0.93.9:0.93.9 -proto-google-cloud-tasks-v2beta2:0.93.9:0.93.9 -proto-google-cloud-tasks-v2:2.3.9:2.3.9 +google-cloud-tasks:2.3.9:2.3.10-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.93.9:0.93.10-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.93.9:0.93.10-SNAPSHOT +grpc-google-cloud-tasks-v2:2.3.9:2.3.10-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.93.9:0.93.10-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.93.9:0.93.10-SNAPSHOT +proto-google-cloud-tasks-v2:2.3.9:2.3.10-SNAPSHOT From 07f044a55f8b0d9bf674235f05424bb6427cdb45 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 22 Sep 2022 18:02:16 +0200 Subject: [PATCH 365/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.3.9 (#759) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.3.8` -> `2.3.9` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.9/compatibility-slim/2.3.8)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.9/confidence-slim/2.3.8)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index da644927..9401163c 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.3.8 + 2.3.9 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.3.8' +implementation 'com.google.cloud:google-cloud-tasks:2.3.9' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.8" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.9" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 88acc121..a2d6f86f 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.3.8 + 2.3.9 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 90de6c6f..26258c2e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.3.8 + 2.3.9 From d30809df1103191b839c75e877bf2771eafcac51 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 22 Sep 2022 18:04:20 +0200 Subject: [PATCH 366/401] deps: update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.14 (#761) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:native-maven-plugin](https://togithub.com/graalvm/native-build-tools) | `0.9.13` -> `0.9.14` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.14/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.14/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.14/compatibility-slim/0.9.13)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:native-maven-plugin/0.9.14/confidence-slim/0.9.13)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index ec2ce70e..bd496e74 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -108,7 +108,7 @@ org.graalvm.buildtools native-maven-plugin - 0.9.13 + 0.9.14 true com.example.tasks.TasksSampleApplication From 07561cfa3086e1c254bdb9fcca417f164cdeeeae Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 22 Sep 2022 18:08:18 +0200 Subject: [PATCH 367/401] deps: update dependency org.graalvm.buildtools:junit-platform-native to v0.9.14 (#760) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.graalvm.buildtools:junit-platform-native](https://togithub.com/graalvm/native-build-tools) | `0.9.13` -> `0.9.14` | [![age](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.14/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.14/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.14/compatibility-slim/0.9.13)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.graalvm.buildtools:junit-platform-native/0.9.14/confidence-slim/0.9.13)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index bd496e74..afc7ddc5 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -88,7 +88,7 @@ org.graalvm.buildtools junit-platform-native - 0.9.13 + 0.9.14 test From 1472e9548d2a8ee43c9b343525f57457b3efa981 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 22 Sep 2022 16:16:18 +0000 Subject: [PATCH 368/401] chore(main): release 2.3.10 (#762) :robot: I have created a release *beep* *boop* --- ## [2.3.10](https://github.com/googleapis/java-tasks/compare/v2.3.9...v2.3.10) (2022-09-22) ### Dependencies * Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.14 ([#760](https://github.com/googleapis/java-tasks/issues/760)) ([07561cf](https://github.com/googleapis/java-tasks/commit/07561cfa3086e1c254bdb9fcca417f164cdeeeae)) * Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.14 ([#761](https://github.com/googleapis/java-tasks/issues/761)) ([d30809d](https://github.com/googleapis/java-tasks/commit/d30809df1103191b839c75e877bf2771eafcac51)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 8 ++++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 45 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c97c7b2..960d2069 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [2.3.10](https://github.com/googleapis/java-tasks/compare/v2.3.9...v2.3.10) (2022-09-22) + + +### Dependencies + +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.14 ([#760](https://github.com/googleapis/java-tasks/issues/760)) ([07561cf](https://github.com/googleapis/java-tasks/commit/07561cfa3086e1c254bdb9fcca417f164cdeeeae)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.14 ([#761](https://github.com/googleapis/java-tasks/issues/761)) ([d30809d](https://github.com/googleapis/java-tasks/commit/d30809df1103191b839c75e877bf2771eafcac51)) + ## [2.3.9](https://github.com/googleapis/java-tasks/compare/v2.3.8...v2.3.9) (2022-09-21) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 9e0713b3..cf3333c9 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.10-SNAPSHOT + 2.3.10 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.10-SNAPSHOT + 2.3.10 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.10-SNAPSHOT + 0.93.10 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.10-SNAPSHOT + 0.93.10 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.10-SNAPSHOT + 2.3.10 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.10-SNAPSHOT + 0.93.10 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.10-SNAPSHOT + 0.93.10 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.10-SNAPSHOT + 2.3.10 diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index bb399f09..f3c632dd 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.10-SNAPSHOT + 2.3.10 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.10-SNAPSHOT + 2.3.10 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 2152ba85..8453f735 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.10-SNAPSHOT + 2.3.10 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.10-SNAPSHOT + 2.3.10 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 229bdb28..81363f87 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.10-SNAPSHOT + 0.93.10 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.10-SNAPSHOT + 2.3.10 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 94463bda..13845ace 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.10-SNAPSHOT + 0.93.10 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.10-SNAPSHOT + 2.3.10 diff --git a/pom.xml b/pom.xml index 64f0f5e9..42aa6a34 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.10-SNAPSHOT + 2.3.10 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.10-SNAPSHOT + 0.93.10 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.10-SNAPSHOT + 0.93.10 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.10-SNAPSHOT + 2.3.10 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.10-SNAPSHOT + 0.93.10 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.10-SNAPSHOT + 0.93.10 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.10-SNAPSHOT + 2.3.10 com.google.cloud google-cloud-tasks - 2.3.10-SNAPSHOT + 2.3.10 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index b78d5623..220e1bba 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.10-SNAPSHOT + 2.3.10 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.10-SNAPSHOT + 2.3.10 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 02e1ba6f..d126ce1e 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.10-SNAPSHOT + 0.93.10 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.10-SNAPSHOT + 2.3.10 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 19fccd7d..9c5e6bd7 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.10-SNAPSHOT + 0.93.10 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.10-SNAPSHOT + 2.3.10 diff --git a/versions.txt b/versions.txt index 6ce679c9..364ab86c 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.9:2.3.10-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.93.9:0.93.10-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.93.9:0.93.10-SNAPSHOT -grpc-google-cloud-tasks-v2:2.3.9:2.3.10-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.93.9:0.93.10-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.93.9:0.93.10-SNAPSHOT -proto-google-cloud-tasks-v2:2.3.9:2.3.10-SNAPSHOT +google-cloud-tasks:2.3.10:2.3.10 +grpc-google-cloud-tasks-v2beta3:0.93.10:0.93.10 +grpc-google-cloud-tasks-v2beta2:0.93.10:0.93.10 +grpc-google-cloud-tasks-v2:2.3.10:2.3.10 +proto-google-cloud-tasks-v2beta3:0.93.10:0.93.10 +proto-google-cloud-tasks-v2beta2:0.93.10:0.93.10 +proto-google-cloud-tasks-v2:2.3.10:2.3.10 From e11a80c8d1564883688039eb7f808dc803902f3e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 22 Sep 2022 16:22:18 +0000 Subject: [PATCH 369/401] chore(main): release 2.3.11-SNAPSHOT (#763) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index cf3333c9..2c2b31df 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.10 + 2.3.11-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.10 + 2.3.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.10 + 0.93.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.10 + 0.93.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.10 + 2.3.11-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.10 + 0.93.11-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.10 + 0.93.11-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.10 + 2.3.11-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index f3c632dd..5f585c60 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.10 + 2.3.11-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.10 + 2.3.11-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 8453f735..ca258174 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.10 + 2.3.11-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.10 + 2.3.11-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 81363f87..7d835387 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.10 + 0.93.11-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.10 + 2.3.11-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 13845ace..1c19e59d 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.10 + 0.93.11-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.10 + 2.3.11-SNAPSHOT diff --git a/pom.xml b/pom.xml index 42aa6a34..6e5cd5b3 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.10 + 2.3.11-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.10 + 0.93.11-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.10 + 0.93.11-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.10 + 2.3.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.10 + 0.93.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.10 + 0.93.11-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.10 + 2.3.11-SNAPSHOT com.google.cloud google-cloud-tasks - 2.3.10 + 2.3.11-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 220e1bba..95219be9 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.10 + 2.3.11-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.10 + 2.3.11-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index d126ce1e..332a5355 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.10 + 0.93.11-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.10 + 2.3.11-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 9c5e6bd7..9113dd88 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.10 + 0.93.11-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.10 + 2.3.11-SNAPSHOT diff --git a/versions.txt b/versions.txt index 364ab86c..1ec8f04c 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.10:2.3.10 -grpc-google-cloud-tasks-v2beta3:0.93.10:0.93.10 -grpc-google-cloud-tasks-v2beta2:0.93.10:0.93.10 -grpc-google-cloud-tasks-v2:2.3.10:2.3.10 -proto-google-cloud-tasks-v2beta3:0.93.10:0.93.10 -proto-google-cloud-tasks-v2beta2:0.93.10:0.93.10 -proto-google-cloud-tasks-v2:2.3.10:2.3.10 +google-cloud-tasks:2.3.10:2.3.11-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.93.10:0.93.11-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.93.10:0.93.11-SNAPSHOT +grpc-google-cloud-tasks-v2:2.3.10:2.3.11-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.93.10:0.93.11-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.93.10:0.93.11-SNAPSHOT +proto-google-cloud-tasks-v2:2.3.10:2.3.11-SNAPSHOT From 3a381f2cca293e2924861dddb2fa09e418ad5aef Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 23 Sep 2022 16:50:28 +0200 Subject: [PATCH 370/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.3.10 (#764) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.3.9` -> `2.3.10` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.10/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.10/compatibility-slim/2.3.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.10/confidence-slim/2.3.9)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 9401163c..25818f5a 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.3.9 + 2.3.10 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.3.9' +implementation 'com.google.cloud:google-cloud-tasks:2.3.10' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.9" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.10" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index a2d6f86f..bb6a377b 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.3.9 + 2.3.10 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 26258c2e..490f127d 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.3.9 + 2.3.10 From 81a0386a0dd6ccac005c615568ee157155239bb5 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 26 Sep 2022 21:56:30 +0000 Subject: [PATCH 371/401] chore: exclude requirements.txt file from renovate-bot (#1594) (#767) Source-Link: https://github.com/googleapis/synthtool/commit/f58d3135a2fab20e225d98741dbc06d57459b816 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:f14e3fefe8e361e85752bd9890c8e56f2fe25f1e89cbb9597e4e3c7a429203a3 --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/release/publish_javadoc.sh | 2 +- .kokoro/release/publish_javadoc11.sh | 2 +- .kokoro/release/stage.sh | 3 +- .kokoro/requirements.in | 31 ++ .kokoro/requirements.txt | 452 +++++++++++++++++++++++++++ renovate.json | 1 + 7 files changed, 489 insertions(+), 4 deletions(-) create mode 100644 .kokoro/requirements.in create mode 100644 .kokoro/requirements.txt diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 62592923..42327db5 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93 + digest: sha256:f14e3fefe8e361e85752bd9890c8e56f2fe25f1e89cbb9597e4e3c7a429203a3 diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh index a0b05aaf..f24f975e 100755 --- a/.kokoro/release/publish_javadoc.sh +++ b/.kokoro/release/publish_javadoc.sh @@ -28,7 +28,7 @@ fi pushd $(dirname "$0")/../../ # install docuploader package -python3 -m pip install gcp-docuploader +python3 -m pip install --require-hashes -r .kokoro/requirements.txt # compile all packages mvn clean install -B -q -DskipTests=true diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index 9ac50f85..f28b7116 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -28,7 +28,7 @@ fi pushd $(dirname "$0")/../../ # install docuploader package -python3 -m pip install gcp-docuploader +python3 -m pip install --require-hashes -r .kokoro/requirements.txt # compile all packages mvn clean install -B -q -DskipTests=true diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh index 1dba8de1..61e714d6 100755 --- a/.kokoro/release/stage.sh +++ b/.kokoro/release/stage.sh @@ -16,7 +16,8 @@ set -eo pipefail # Start the releasetool reporter -python3 -m pip install gcp-releasetool +requirementsFile=$(realpath $(dirname "${BASH_SOURCE[0]}")/../requirements.txt) +python3 -m pip install --require-hashes -r $requirementsFile python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script source $(dirname "$0")/common.sh diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in new file mode 100644 index 00000000..cfdc2e7e --- /dev/null +++ b/.kokoro/requirements.in @@ -0,0 +1,31 @@ +gcp-docuploader==0.6.3 +google-crc32c==1.3.0 +googleapis-common-protos==1.56.3 +gcp-releasetool==1.8.7 +cachetools==4.2.4 +cffi==1.15.1 +jeepney==0.7.1 +jinja2==3.0.3 +markupsafe==2.0.1 +keyring==23.4.1 +packaging==21.3 +protobuf==3.19.5 +pyjwt==2.4.0 +pyparsing==3.0.9 +pycparser==2.21 +pyperclip==1.8.2 +python-dateutil==2.8.2 +requests==2.27.1 +importlib-metadata==4.8.3 +zipp==3.6.0 +google_api_core==2.8.2 +google-cloud-storage==2.0.0 +google-cloud-core==2.3.1 +typing-extensions==4.1.1 +urllib3==1.26.12 +zipp==3.6.0 +rsa==4.9 +six==1.16.0 +attrs==22.1.0 +google-auth==2.11.0 +idna==3.4 \ No newline at end of file diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt new file mode 100644 index 00000000..170f1c63 --- /dev/null +++ b/.kokoro/requirements.txt @@ -0,0 +1,452 @@ +# +# This file is autogenerated by pip-compile with python 3.10 +# To update, run: +# +# pip-compile --allow-unsafe --generate-hashes requirements.in +# +attrs==22.1.0 \ + --hash=sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6 \ + --hash=sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c + # via + # -r requirements.in + # gcp-releasetool +cachetools==4.2.4 \ + --hash=sha256:89ea6f1b638d5a73a4f9226be57ac5e4f399d22770b92355f92dcb0f7f001693 \ + --hash=sha256:92971d3cb7d2a97efff7c7bb1657f21a8f5fb309a37530537c71b1774189f2d1 + # via + # -r requirements.in + # google-auth +certifi==2022.9.14 \ + --hash=sha256:36973885b9542e6bd01dea287b2b4b3b21236307c56324fcc3f1160f2d655ed5 \ + --hash=sha256:e232343de1ab72c2aa521b625c80f699e356830fd0e2c620b465b304b17b0516 + # via requests +cffi==1.15.1 \ + --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ + --hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef \ + --hash=sha256:04ed324bda3cda42b9b695d51bb7d54b680b9719cfab04227cdd1e04e5de3104 \ + --hash=sha256:0e2642fe3142e4cc4af0799748233ad6da94c62a8bec3a6648bf8ee68b1c7426 \ + --hash=sha256:173379135477dc8cac4bc58f45db08ab45d228b3363adb7af79436135d028405 \ + --hash=sha256:198caafb44239b60e252492445da556afafc7d1e3ab7a1fb3f0584ef6d742375 \ + --hash=sha256:1e74c6b51a9ed6589199c787bf5f9875612ca4a8a0785fb2d4a84429badaf22a \ + --hash=sha256:2012c72d854c2d03e45d06ae57f40d78e5770d252f195b93f581acf3ba44496e \ + --hash=sha256:21157295583fe8943475029ed5abdcf71eb3911894724e360acff1d61c1d54bc \ + --hash=sha256:2470043b93ff09bf8fb1d46d1cb756ce6132c54826661a32d4e4d132e1977adf \ + --hash=sha256:285d29981935eb726a4399badae8f0ffdff4f5050eaa6d0cfc3f64b857b77185 \ + --hash=sha256:30d78fbc8ebf9c92c9b7823ee18eb92f2e6ef79b45ac84db507f52fbe3ec4497 \ + --hash=sha256:320dab6e7cb2eacdf0e658569d2575c4dad258c0fcc794f46215e1e39f90f2c3 \ + --hash=sha256:33ab79603146aace82c2427da5ca6e58f2b3f2fb5da893ceac0c42218a40be35 \ + --hash=sha256:3548db281cd7d2561c9ad9984681c95f7b0e38881201e157833a2342c30d5e8c \ + --hash=sha256:3799aecf2e17cf585d977b780ce79ff0dc9b78d799fc694221ce814c2c19db83 \ + --hash=sha256:39d39875251ca8f612b6f33e6b1195af86d1b3e60086068be9cc053aa4376e21 \ + --hash=sha256:3b926aa83d1edb5aa5b427b4053dc420ec295a08e40911296b9eb1b6170f6cca \ + --hash=sha256:3bcde07039e586f91b45c88f8583ea7cf7a0770df3a1649627bf598332cb6984 \ + --hash=sha256:3d08afd128ddaa624a48cf2b859afef385b720bb4b43df214f85616922e6a5ac \ + --hash=sha256:3eb6971dcff08619f8d91607cfc726518b6fa2a9eba42856be181c6d0d9515fd \ + --hash=sha256:40f4774f5a9d4f5e344f31a32b5096977b5d48560c5592e2f3d2c4374bd543ee \ + --hash=sha256:4289fc34b2f5316fbb762d75362931e351941fa95fa18789191b33fc4cf9504a \ + --hash=sha256:470c103ae716238bbe698d67ad020e1db9d9dba34fa5a899b5e21577e6d52ed2 \ + --hash=sha256:4f2c9f67e9821cad2e5f480bc8d83b8742896f1242dba247911072d4fa94c192 \ + --hash=sha256:50a74364d85fd319352182ef59c5c790484a336f6db772c1a9231f1c3ed0cbd7 \ + --hash=sha256:54a2db7b78338edd780e7ef7f9f6c442500fb0d41a5a4ea24fff1c929d5af585 \ + --hash=sha256:5635bd9cb9731e6d4a1132a498dd34f764034a8ce60cef4f5319c0541159392f \ + --hash=sha256:59c0b02d0a6c384d453fece7566d1c7e6b7bae4fc5874ef2ef46d56776d61c9e \ + --hash=sha256:5d598b938678ebf3c67377cdd45e09d431369c3b1a5b331058c338e201f12b27 \ + --hash=sha256:5df2768244d19ab7f60546d0c7c63ce1581f7af8b5de3eb3004b9b6fc8a9f84b \ + --hash=sha256:5ef34d190326c3b1f822a5b7a45f6c4535e2f47ed06fec77d3d799c450b2651e \ + --hash=sha256:6975a3fac6bc83c4a65c9f9fcab9e47019a11d3d2cf7f3c0d03431bf145a941e \ + --hash=sha256:6c9a799e985904922a4d207a94eae35c78ebae90e128f0c4e521ce339396be9d \ + --hash=sha256:70df4e3b545a17496c9b3f41f5115e69a4f2e77e94e1d2a8e1070bc0c38c8a3c \ + --hash=sha256:7473e861101c9e72452f9bf8acb984947aa1661a7704553a9f6e4baa5ba64415 \ + --hash=sha256:8102eaf27e1e448db915d08afa8b41d6c7ca7a04b7d73af6514df10a3e74bd82 \ + --hash=sha256:87c450779d0914f2861b8526e035c5e6da0a3199d8f1add1a665e1cbc6fc6d02 \ + --hash=sha256:8b7ee99e510d7b66cdb6c593f21c043c248537a32e0bedf02e01e9553a172314 \ + --hash=sha256:91fc98adde3d7881af9b59ed0294046f3806221863722ba7d8d120c575314325 \ + --hash=sha256:94411f22c3985acaec6f83c6df553f2dbe17b698cc7f8ae751ff2237d96b9e3c \ + --hash=sha256:98d85c6a2bef81588d9227dde12db8a7f47f639f4a17c9ae08e773aa9c697bf3 \ + --hash=sha256:9ad5db27f9cabae298d151c85cf2bad1d359a1b9c686a275df03385758e2f914 \ + --hash=sha256:a0b71b1b8fbf2b96e41c4d990244165e2c9be83d54962a9a1d118fd8657d2045 \ + --hash=sha256:a0f100c8912c114ff53e1202d0078b425bee3649ae34d7b070e9697f93c5d52d \ + --hash=sha256:a591fe9e525846e4d154205572a029f653ada1a78b93697f3b5a8f1f2bc055b9 \ + --hash=sha256:a5c84c68147988265e60416b57fc83425a78058853509c1b0629c180094904a5 \ + --hash=sha256:a66d3508133af6e8548451b25058d5812812ec3798c886bf38ed24a98216fab2 \ + --hash=sha256:a8c4917bd7ad33e8eb21e9a5bbba979b49d9a97acb3a803092cbc1133e20343c \ + --hash=sha256:b3bbeb01c2b273cca1e1e0c5df57f12dce9a4dd331b4fa1635b8bec26350bde3 \ + --hash=sha256:cba9d6b9a7d64d4bd46167096fc9d2f835e25d7e4c121fb2ddfc6528fb0413b2 \ + --hash=sha256:cc4d65aeeaa04136a12677d3dd0b1c0c94dc43abac5860ab33cceb42b801c1e8 \ + --hash=sha256:ce4bcc037df4fc5e3d184794f27bdaab018943698f4ca31630bc7f84a7b69c6d \ + --hash=sha256:cec7d9412a9102bdc577382c3929b337320c4c4c4849f2c5cdd14d7368c5562d \ + --hash=sha256:d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9 \ + --hash=sha256:d61f4695e6c866a23a21acab0509af1cdfd2c013cf256bbf5b6b5e2695827162 \ + --hash=sha256:db0fbb9c62743ce59a9ff687eb5f4afbe77e5e8403d6697f7446e5f609976f76 \ + --hash=sha256:dd86c085fae2efd48ac91dd7ccffcfc0571387fe1193d33b6394db7ef31fe2a4 \ + --hash=sha256:e00b098126fd45523dd056d2efba6c5a63b71ffe9f2bbe1a4fe1716e1d0c331e \ + --hash=sha256:e229a521186c75c8ad9490854fd8bbdd9a0c9aa3a524326b55be83b54d4e0ad9 \ + --hash=sha256:e263d77ee3dd201c3a142934a086a4450861778baaeeb45db4591ef65550b0a6 \ + --hash=sha256:ed9cb427ba5504c1dc15ede7d516b84757c3e3d7868ccc85121d9310d27eed0b \ + --hash=sha256:fa6693661a4c91757f4412306191b6dc88c1703f780c8234035eac011922bc01 \ + --hash=sha256:fcd131dd944808b5bdb38e6f5b53013c5aa4f334c5cad0c72742f6eba4b73db0 + # via + # -r requirements.in + # cryptography +charset-normalizer==2.0.12 \ + --hash=sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597 \ + --hash=sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df + # via requests +click==8.0.4 \ + --hash=sha256:6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1 \ + --hash=sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb + # via + # gcp-docuploader + # gcp-releasetool +colorlog==6.7.0 \ + --hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \ + --hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5 + # via gcp-docuploader +cryptography==38.0.1 \ + --hash=sha256:0297ffc478bdd237f5ca3a7dc96fc0d315670bfa099c04dc3a4a2172008a405a \ + --hash=sha256:10d1f29d6292fc95acb597bacefd5b9e812099d75a6469004fd38ba5471a977f \ + --hash=sha256:16fa61e7481f4b77ef53991075de29fc5bacb582a1244046d2e8b4bb72ef66d0 \ + --hash=sha256:194044c6b89a2f9f169df475cc167f6157eb9151cc69af8a2a163481d45cc407 \ + --hash=sha256:1db3d807a14931fa317f96435695d9ec386be7b84b618cc61cfa5d08b0ae33d7 \ + --hash=sha256:3261725c0ef84e7592597606f6583385fed2a5ec3909f43bc475ade9729a41d6 \ + --hash=sha256:3b72c360427889b40f36dc214630e688c2fe03e16c162ef0aa41da7ab1455153 \ + --hash=sha256:3e3a2599e640927089f932295a9a247fc40a5bdf69b0484532f530471a382750 \ + --hash=sha256:3fc26e22840b77326a764ceb5f02ca2d342305fba08f002a8c1f139540cdfaad \ + --hash=sha256:5067ee7f2bce36b11d0e334abcd1ccf8c541fc0bbdaf57cdd511fdee53e879b6 \ + --hash=sha256:52e7bee800ec869b4031093875279f1ff2ed12c1e2f74923e8f49c916afd1d3b \ + --hash=sha256:64760ba5331e3f1794d0bcaabc0d0c39e8c60bf67d09c93dc0e54189dfd7cfe5 \ + --hash=sha256:765fa194a0f3372d83005ab83ab35d7c5526c4e22951e46059b8ac678b44fa5a \ + --hash=sha256:79473cf8a5cbc471979bd9378c9f425384980fcf2ab6534b18ed7d0d9843987d \ + --hash=sha256:896dd3a66959d3a5ddcfc140a53391f69ff1e8f25d93f0e2e7830c6de90ceb9d \ + --hash=sha256:89ed49784ba88c221756ff4d4755dbc03b3c8d2c5103f6d6b4f83a0fb1e85294 \ + --hash=sha256:ac7e48f7e7261207d750fa7e55eac2d45f720027d5703cd9007e9b37bbb59ac0 \ + --hash=sha256:ad7353f6ddf285aeadfaf79e5a6829110106ff8189391704c1d8801aa0bae45a \ + --hash=sha256:b0163a849b6f315bf52815e238bc2b2346604413fa7c1601eea84bcddb5fb9ac \ + --hash=sha256:b6c9b706316d7b5a137c35e14f4103e2115b088c412140fdbd5f87c73284df61 \ + --hash=sha256:c2e5856248a416767322c8668ef1845ad46ee62629266f84a8f007a317141013 \ + --hash=sha256:ca9f6784ea96b55ff41708b92c3f6aeaebde4c560308e5fbbd3173fbc466e94e \ + --hash=sha256:d1a5bd52d684e49a36582193e0b89ff267704cd4025abefb9e26803adeb3e5fb \ + --hash=sha256:d3971e2749a723e9084dd507584e2a2761f78ad2c638aa31e80bc7a15c9db4f9 \ + --hash=sha256:d4ef6cc305394ed669d4d9eebf10d3a101059bdcf2669c366ec1d14e4fb227bd \ + --hash=sha256:d9e69ae01f99abe6ad646947bba8941e896cb3aa805be2597a0400e0764b5818 + # via + # gcp-releasetool + # secretstorage +gcp-docuploader==0.6.3 \ + --hash=sha256:ba8c9d76b3bbac54b0311c503a373b00edc2dc02d6d54ea9507045adb8e870f7 \ + --hash=sha256:c0f5aaa82ce1854a386197e4e359b120ad6d4e57ae2c812fce42219a3288026b + # via -r requirements.in +gcp-releasetool==1.8.7 \ + --hash=sha256:3d2a67c9db39322194afb3b427e9cb0476ce8f2a04033695f0aeb63979fc2b37 \ + --hash=sha256:5e4d28f66e90780d77f3ecf1e9155852b0c3b13cbccb08ab07e66b2357c8da8d + # via -r requirements.in +google-api-core==2.8.2 \ + --hash=sha256:06f7244c640322b508b125903bb5701bebabce8832f85aba9335ec00b3d02edc \ + --hash=sha256:93c6a91ccac79079ac6bbf8b74ee75db970cc899278b97d53bc012f35908cf50 + # via + # -r requirements.in + # google-cloud-core + # google-cloud-storage +google-auth==2.11.0 \ + --hash=sha256:be62acaae38d0049c21ca90f27a23847245c9f161ff54ede13af2cb6afecbac9 \ + --hash=sha256:ed65ecf9f681832298e29328e1ef0a3676e3732b2e56f41532d45f70a22de0fb + # via + # -r requirements.in + # gcp-releasetool + # google-api-core + # google-cloud-core + # google-cloud-storage +google-cloud-core==2.3.1 \ + --hash=sha256:113ba4f492467d5bd442c8d724c1a25ad7384045c3178369038840ecdd19346c \ + --hash=sha256:34334359cb04187bdc80ddcf613e462dfd7a3aabbc3fe4d118517ab4b9303d53 + # via + # -r requirements.in + # google-cloud-storage +google-cloud-storage==2.0.0 \ + --hash=sha256:a57a15aead0f9dfbd4381f1bfdbe8bf89818a4bd75bab846cafcefb2db846c47 \ + --hash=sha256:ec4be60bb223a3a960f0d01697d849b86d91cad815a84915a32ed3635e93a5e7 + # via + # -r requirements.in + # gcp-docuploader +google-crc32c==1.3.0 \ + --hash=sha256:04e7c220798a72fd0f08242bc8d7a05986b2a08a0573396187fd32c1dcdd58b3 \ + --hash=sha256:05340b60bf05b574159e9bd940152a47d38af3fb43803ffe71f11d704b7696a6 \ + --hash=sha256:12674a4c3b56b706153a358eaa1018c4137a5a04635b92b4652440d3d7386206 \ + --hash=sha256:127f9cc3ac41b6a859bd9dc4321097b1a4f6aa7fdf71b4f9227b9e3ebffb4422 \ + --hash=sha256:13af315c3a0eec8bb8b8d80b8b128cb3fcd17d7e4edafc39647846345a3f003a \ + --hash=sha256:1926fd8de0acb9d15ee757175ce7242e235482a783cd4ec711cc999fc103c24e \ + --hash=sha256:226f2f9b8e128a6ca6a9af9b9e8384f7b53a801907425c9a292553a3a7218ce0 \ + --hash=sha256:276de6273eb074a35bc598f8efbc00c7869c5cf2e29c90748fccc8c898c244df \ + --hash=sha256:318f73f5484b5671f0c7f5f63741ab020a599504ed81d209b5c7129ee4667407 \ + --hash=sha256:3bbce1be3687bbfebe29abdb7631b83e6b25da3f4e1856a1611eb21854b689ea \ + --hash=sha256:42ae4781333e331a1743445931b08ebdad73e188fd554259e772556fc4937c48 \ + --hash=sha256:58be56ae0529c664cc04a9c76e68bb92b091e0194d6e3c50bea7e0f266f73713 \ + --hash=sha256:5da2c81575cc3ccf05d9830f9e8d3c70954819ca9a63828210498c0774fda1a3 \ + --hash=sha256:6311853aa2bba4064d0c28ca54e7b50c4d48e3de04f6770f6c60ebda1e975267 \ + --hash=sha256:650e2917660e696041ab3dcd7abac160b4121cd9a484c08406f24c5964099829 \ + --hash=sha256:6a4db36f9721fdf391646685ecffa404eb986cbe007a3289499020daf72e88a2 \ + --hash=sha256:779cbf1ce375b96111db98fca913c1f5ec11b1d870e529b1dc7354b2681a8c3a \ + --hash=sha256:7f6fe42536d9dcd3e2ffb9d3053f5d05221ae3bbcefbe472bdf2c71c793e3183 \ + --hash=sha256:891f712ce54e0d631370e1f4997b3f182f3368179198efc30d477c75d1f44942 \ + --hash=sha256:95c68a4b9b7828ba0428f8f7e3109c5d476ca44996ed9a5f8aac6269296e2d59 \ + --hash=sha256:96a8918a78d5d64e07c8ea4ed2bc44354e3f93f46a4866a40e8db934e4c0d74b \ + --hash=sha256:9c3cf890c3c0ecfe1510a452a165431b5831e24160c5fcf2071f0f85ca5a47cd \ + --hash=sha256:9f58099ad7affc0754ae42e6d87443299f15d739b0ce03c76f515153a5cda06c \ + --hash=sha256:a0b9e622c3b2b8d0ce32f77eba617ab0d6768b82836391e4f8f9e2074582bf02 \ + --hash=sha256:a7f9cbea4245ee36190f85fe1814e2d7b1e5f2186381b082f5d59f99b7f11328 \ + --hash=sha256:bab4aebd525218bab4ee615786c4581952eadc16b1ff031813a2fd51f0cc7b08 \ + --hash=sha256:c124b8c8779bf2d35d9b721e52d4adb41c9bfbde45e6a3f25f0820caa9aba73f \ + --hash=sha256:c9da0a39b53d2fab3e5467329ed50e951eb91386e9d0d5b12daf593973c3b168 \ + --hash=sha256:ca60076c388728d3b6ac3846842474f4250c91efbfe5afa872d3ffd69dd4b318 \ + --hash=sha256:cb6994fff247987c66a8a4e550ef374671c2b82e3c0d2115e689d21e511a652d \ + --hash=sha256:d1c1d6236feab51200272d79b3d3e0f12cf2cbb12b208c835b175a21efdb0a73 \ + --hash=sha256:dd7760a88a8d3d705ff562aa93f8445ead54f58fd482e4f9e2bafb7e177375d4 \ + --hash=sha256:dda4d8a3bb0b50f540f6ff4b6033f3a74e8bf0bd5320b70fab2c03e512a62812 \ + --hash=sha256:e0f1ff55dde0ebcfbef027edc21f71c205845585fffe30d4ec4979416613e9b3 \ + --hash=sha256:e7a539b9be7b9c00f11ef16b55486141bc2cdb0c54762f84e3c6fc091917436d \ + --hash=sha256:eb0b14523758e37802f27b7f8cd973f5f3d33be7613952c0df904b68c4842f0e \ + --hash=sha256:ed447680ff21c14aaceb6a9f99a5f639f583ccfe4ce1a5e1d48eb41c3d6b3217 \ + --hash=sha256:f52a4ad2568314ee713715b1e2d79ab55fab11e8b304fd1462ff5cccf4264b3e \ + --hash=sha256:fbd60c6aaa07c31d7754edbc2334aef50601b7f1ada67a96eb1eb57c7c72378f \ + --hash=sha256:fc28e0db232c62ca0c3600884933178f0825c99be4474cdd645e378a10588125 \ + --hash=sha256:fe31de3002e7b08eb20823b3735b97c86c5926dd0581c7710a680b418a8709d4 \ + --hash=sha256:fec221a051150eeddfdfcff162e6db92c65ecf46cb0f7bb1bf812a1520ec026b \ + --hash=sha256:ff71073ebf0e42258a42a0b34f2c09ec384977e7f6808999102eedd5b49920e3 + # via + # -r requirements.in + # google-resumable-media +google-resumable-media==2.3.3 \ + --hash=sha256:27c52620bd364d1c8116eaac4ea2afcbfb81ae9139fb3199652fcac1724bfb6c \ + --hash=sha256:5b52774ea7a829a8cdaa8bd2d4c3d4bc660c91b30857ab2668d0eb830f4ea8c5 + # via google-cloud-storage +googleapis-common-protos==1.56.3 \ + --hash=sha256:6f1369b58ed6cf3a4b7054a44ebe8d03b29c309257583a2bbdc064cd1e4a1442 \ + --hash=sha256:87955d7b3a73e6e803f2572a33179de23989ebba725e05ea42f24838b792e461 + # via + # -r requirements.in + # google-api-core +idna==3.4 \ + --hash=sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4 \ + --hash=sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2 + # via + # -r requirements.in + # requests +importlib-metadata==4.8.3 \ + --hash=sha256:65a9576a5b2d58ca44d133c42a241905cc45e34d2c06fd5ba2bafa221e5d7b5e \ + --hash=sha256:766abffff765960fcc18003801f7044eb6755ffae4521c8e8ce8e83b9c9b0668 + # via + # -r requirements.in + # keyring +jeepney==0.7.1 \ + --hash=sha256:1b5a0ea5c0e7b166b2f5895b91a08c14de8915afda4407fb5022a195224958ac \ + --hash=sha256:fa9e232dfa0c498bd0b8a3a73b8d8a31978304dcef0515adc859d4e096f96f4f + # via + # -r requirements.in + # keyring + # secretstorage +jinja2==3.0.3 \ + --hash=sha256:077ce6014f7b40d03b47d1f1ca4b0fc8328a692bd284016f806ed0eaca390ad8 \ + --hash=sha256:611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7 + # via + # -r requirements.in + # gcp-releasetool +keyring==23.4.1 \ + --hash=sha256:17e49fb0d6883c2b4445359434dba95aad84aabb29bbff044ad0ed7100232eca \ + --hash=sha256:89cbd74d4683ed164c8082fb38619341097741323b3786905c6dac04d6915a55 + # via + # -r requirements.in + # gcp-releasetool +markupsafe==2.0.1 \ + --hash=sha256:01a9b8ea66f1658938f65b93a85ebe8bc016e6769611be228d797c9d998dd298 \ + --hash=sha256:023cb26ec21ece8dc3907c0e8320058b2e0cb3c55cf9564da612bc325bed5e64 \ + --hash=sha256:0446679737af14f45767963a1a9ef7620189912317d095f2d9ffa183a4d25d2b \ + --hash=sha256:04635854b943835a6ea959e948d19dcd311762c5c0c6e1f0e16ee57022669194 \ + --hash=sha256:0717a7390a68be14b8c793ba258e075c6f4ca819f15edfc2a3a027c823718567 \ + --hash=sha256:0955295dd5eec6cb6cc2fe1698f4c6d84af2e92de33fbcac4111913cd100a6ff \ + --hash=sha256:0d4b31cc67ab36e3392bbf3862cfbadac3db12bdd8b02a2731f509ed5b829724 \ + --hash=sha256:10f82115e21dc0dfec9ab5c0223652f7197feb168c940f3ef61563fc2d6beb74 \ + --hash=sha256:168cd0a3642de83558a5153c8bd34f175a9a6e7f6dc6384b9655d2697312a646 \ + --hash=sha256:1d609f577dc6e1aa17d746f8bd3c31aa4d258f4070d61b2aa5c4166c1539de35 \ + --hash=sha256:1f2ade76b9903f39aa442b4aadd2177decb66525062db244b35d71d0ee8599b6 \ + --hash=sha256:20dca64a3ef2d6e4d5d615a3fd418ad3bde77a47ec8a23d984a12b5b4c74491a \ + --hash=sha256:2a7d351cbd8cfeb19ca00de495e224dea7e7d919659c2841bbb7f420ad03e2d6 \ + --hash=sha256:2d7d807855b419fc2ed3e631034685db6079889a1f01d5d9dac950f764da3dad \ + --hash=sha256:2ef54abee730b502252bcdf31b10dacb0a416229b72c18b19e24a4509f273d26 \ + --hash=sha256:36bc903cbb393720fad60fc28c10de6acf10dc6cc883f3e24ee4012371399a38 \ + --hash=sha256:37205cac2a79194e3750b0af2a5720d95f786a55ce7df90c3af697bfa100eaac \ + --hash=sha256:3c112550557578c26af18a1ccc9e090bfe03832ae994343cfdacd287db6a6ae7 \ + --hash=sha256:3dd007d54ee88b46be476e293f48c85048603f5f516008bee124ddd891398ed6 \ + --hash=sha256:4296f2b1ce8c86a6aea78613c34bb1a672ea0e3de9c6ba08a960efe0b0a09047 \ + --hash=sha256:47ab1e7b91c098ab893b828deafa1203de86d0bc6ab587b160f78fe6c4011f75 \ + --hash=sha256:49e3ceeabbfb9d66c3aef5af3a60cc43b85c33df25ce03d0031a608b0a8b2e3f \ + --hash=sha256:4dc8f9fb58f7364b63fd9f85013b780ef83c11857ae79f2feda41e270468dd9b \ + --hash=sha256:4efca8f86c54b22348a5467704e3fec767b2db12fc39c6d963168ab1d3fc9135 \ + --hash=sha256:53edb4da6925ad13c07b6d26c2a852bd81e364f95301c66e930ab2aef5b5ddd8 \ + --hash=sha256:5855f8438a7d1d458206a2466bf82b0f104a3724bf96a1c781ab731e4201731a \ + --hash=sha256:594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a \ + --hash=sha256:5b6d930f030f8ed98e3e6c98ffa0652bdb82601e7a016ec2ab5d7ff23baa78d1 \ + --hash=sha256:5bb28c636d87e840583ee3adeb78172efc47c8b26127267f54a9c0ec251d41a9 \ + --hash=sha256:60bf42e36abfaf9aff1f50f52644b336d4f0a3fd6d8a60ca0d054ac9f713a864 \ + --hash=sha256:611d1ad9a4288cf3e3c16014564df047fe08410e628f89805e475368bd304914 \ + --hash=sha256:6300b8454aa6930a24b9618fbb54b5a68135092bc666f7b06901f897fa5c2fee \ + --hash=sha256:63f3268ba69ace99cab4e3e3b5840b03340efed0948ab8f78d2fd87ee5442a4f \ + --hash=sha256:6557b31b5e2c9ddf0de32a691f2312a32f77cd7681d8af66c2692efdbef84c18 \ + --hash=sha256:693ce3f9e70a6cf7d2fb9e6c9d8b204b6b39897a2c4a1aa65728d5ac97dcc1d8 \ + --hash=sha256:6a7fae0dd14cf60ad5ff42baa2e95727c3d81ded453457771d02b7d2b3f9c0c2 \ + --hash=sha256:6c4ca60fa24e85fe25b912b01e62cb969d69a23a5d5867682dd3e80b5b02581d \ + --hash=sha256:6fcf051089389abe060c9cd7caa212c707e58153afa2c649f00346ce6d260f1b \ + --hash=sha256:7d91275b0245b1da4d4cfa07e0faedd5b0812efc15b702576d103293e252af1b \ + --hash=sha256:89c687013cb1cd489a0f0ac24febe8c7a666e6e221b783e53ac50ebf68e45d86 \ + --hash=sha256:8d206346619592c6200148b01a2142798c989edcb9c896f9ac9722a99d4e77e6 \ + --hash=sha256:905fec760bd2fa1388bb5b489ee8ee5f7291d692638ea5f67982d968366bef9f \ + --hash=sha256:97383d78eb34da7e1fa37dd273c20ad4320929af65d156e35a5e2d89566d9dfb \ + --hash=sha256:984d76483eb32f1bcb536dc27e4ad56bba4baa70be32fa87152832cdd9db0833 \ + --hash=sha256:99df47edb6bda1249d3e80fdabb1dab8c08ef3975f69aed437cb69d0a5de1e28 \ + --hash=sha256:9f02365d4e99430a12647f09b6cc8bab61a6564363f313126f775eb4f6ef798e \ + --hash=sha256:a30e67a65b53ea0a5e62fe23682cfe22712e01f453b95233b25502f7c61cb415 \ + --hash=sha256:ab3ef638ace319fa26553db0624c4699e31a28bb2a835c5faca8f8acf6a5a902 \ + --hash=sha256:aca6377c0cb8a8253e493c6b451565ac77e98c2951c45f913e0b52facdcff83f \ + --hash=sha256:add36cb2dbb8b736611303cd3bfcee00afd96471b09cda130da3581cbdc56a6d \ + --hash=sha256:b2f4bf27480f5e5e8ce285a8c8fd176c0b03e93dcc6646477d4630e83440c6a9 \ + --hash=sha256:b7f2d075102dc8c794cbde1947378051c4e5180d52d276987b8d28a3bd58c17d \ + --hash=sha256:baa1a4e8f868845af802979fcdbf0bb11f94f1cb7ced4c4b8a351bb60d108145 \ + --hash=sha256:be98f628055368795d818ebf93da628541e10b75b41c559fdf36d104c5787066 \ + --hash=sha256:bf5d821ffabf0ef3533c39c518f3357b171a1651c1ff6827325e4489b0e46c3c \ + --hash=sha256:c47adbc92fc1bb2b3274c4b3a43ae0e4573d9fbff4f54cd484555edbf030baf1 \ + --hash=sha256:cdfba22ea2f0029c9261a4bd07e830a8da012291fbe44dc794e488b6c9bb353a \ + --hash=sha256:d6c7ebd4e944c85e2c3421e612a7057a2f48d478d79e61800d81468a8d842207 \ + --hash=sha256:d7f9850398e85aba693bb640262d3611788b1f29a79f0c93c565694658f4071f \ + --hash=sha256:d8446c54dc28c01e5a2dbac5a25f071f6653e6e40f3a8818e8b45d790fe6ef53 \ + --hash=sha256:deb993cacb280823246a026e3b2d81c493c53de6acfd5e6bfe31ab3402bb37dd \ + --hash=sha256:e0f138900af21926a02425cf736db95be9f4af72ba1bb21453432a07f6082134 \ + --hash=sha256:e9936f0b261d4df76ad22f8fee3ae83b60d7c3e871292cd42f40b81b70afae85 \ + --hash=sha256:f0567c4dc99f264f49fe27da5f735f414c4e7e7dd850cfd8e69f0862d7c74ea9 \ + --hash=sha256:f5653a225f31e113b152e56f154ccbe59eeb1c7487b39b9d9f9cdb58e6c79dc5 \ + --hash=sha256:f826e31d18b516f653fe296d967d700fddad5901ae07c622bb3705955e1faa94 \ + --hash=sha256:f8ba0e8349a38d3001fae7eadded3f6606f0da5d748ee53cc1dab1d6527b9509 \ + --hash=sha256:f9081981fe268bd86831e5c75f7de206ef275defcb82bc70740ae6dc507aee51 \ + --hash=sha256:fa130dd50c57d53368c9d59395cb5526eda596d3ffe36666cd81a44d56e48872 + # via + # -r requirements.in + # jinja2 +packaging==21.3 \ + --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \ + --hash=sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522 + # via + # -r requirements.in + # gcp-releasetool +protobuf==3.19.5 \ + --hash=sha256:1867f93b06a183f87696871bb8d1e99ee71dbb69d468ce1f0cc8bf3d30f982f3 \ + --hash=sha256:3c4160b601220627f7e91154e572baf5e161a9c3f445a8242d536ee3d0b7b17c \ + --hash=sha256:4ee2af7051d3b10c8a4fe6fd1a2c69f201fea36aeee7086cf202a692e1b99ee1 \ + --hash=sha256:5266c36cc0af3bb3dbf44f199d225b33da66a9a5c3bdc2b14865ad10eddf0e37 \ + --hash=sha256:5470f892961af464ae6eaf0f3099e2c1190ae8c7f36f174b89491281341f79ca \ + --hash=sha256:66d14b5b90090353efe75c9fb1bf65ef7267383034688d255b500822e37d5c2f \ + --hash=sha256:67efb5d20618020aa9596e17bfc37ca068c28ec0c1507d9507f73c93d46c9855 \ + --hash=sha256:696e6cfab94cc15a14946f2bf72719dced087d437adbd994fff34f38986628bc \ + --hash=sha256:6a02172b9650f819d01fb8e224fc69b0706458fc1ab4f1c669281243c71c1a5e \ + --hash=sha256:6eca9ae238ba615d702387a2ddea635d535d769994a9968c09a4ca920c487ab9 \ + --hash=sha256:950abd6c00e7b51f87ae8b18a0ce4d69fea217f62f171426e77de5061f6d9850 \ + --hash=sha256:9e1d74032f56ff25f417cfe84c8147047732e5059137ca42efad20cbbd25f5e0 \ + --hash=sha256:9e42b1cf2ecd8a1bd161239e693f22035ba99905ae6d7efeac8a0546c7ec1a27 \ + --hash=sha256:9f957ef53e872d58a0afd3bf6d80d48535d28c99b40e75e6634cbc33ea42fd54 \ + --hash=sha256:a89aa0c042e61e11ade320b802d6db4ee5391d8d973e46d3a48172c1597789f8 \ + --hash=sha256:c0f80876a8ff0ae7064084ed094eb86497bd5a3812e6fc96a05318b92301674e \ + --hash=sha256:c44e3282cff74ad18c7e8a0375f407f69ee50c2116364b44492a196293e08b21 \ + --hash=sha256:d249519ba5ecf5dd6b18150c9b6bcde510b273714b696f3923ff8308fc11ae49 \ + --hash=sha256:d3973a2d58aefc7d1230725c2447ce7f86a71cbc094b86a77c6ee1505ac7cdb1 \ + --hash=sha256:dca2284378a5f2a86ffed35c6ac147d14c48b525eefcd1083e5a9ce28dfa8657 \ + --hash=sha256:e63b0b3c42e51c94add62b010366cd4979cb6d5f06158bcae8faac4c294f91e1 \ + --hash=sha256:f2b599a21c9a32e171ec29a2ac54e03297736c578698e11b099d031f79da114b \ + --hash=sha256:f2bde37667b18c2b5280df83bc799204394a5d2d774e4deaf9de0eb741df6833 \ + --hash=sha256:f4f909f4dde413dec435a44b0894956d55bb928ded7d6e3c726556ca4c796e84 \ + --hash=sha256:f976234e20ab2785f54224bcdafa027674e23663b132fa3ca0caa291a6cfbde7 \ + --hash=sha256:f9cebda093c2f6bfed88f1c17cdade09d4d96096421b344026feee236532d4de + # via + # -r requirements.in + # gcp-docuploader + # gcp-releasetool + # google-api-core + # google-cloud-storage + # googleapis-common-protos +pyasn1==0.4.8 \ + --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \ + --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba + # via + # pyasn1-modules + # rsa +pyasn1-modules==0.2.8 \ + --hash=sha256:905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e \ + --hash=sha256:a50b808ffeb97cb3601dd25981f6b016cbb3d31fbf57a8b8a87428e6158d0c74 + # via google-auth +pycparser==2.21 \ + --hash=sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9 \ + --hash=sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206 + # via + # -r requirements.in + # cffi +pyjwt==2.4.0 \ + --hash=sha256:72d1d253f32dbd4f5c88eaf1fdc62f3a19f676ccbadb9dbc5d07e951b2b26daf \ + --hash=sha256:d42908208c699b3b973cbeb01a969ba6a96c821eefb1c5bfe4c390c01d67abba + # via + # -r requirements.in + # gcp-releasetool +pyparsing==3.0.9 \ + --hash=sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb \ + --hash=sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc + # via + # -r requirements.in + # packaging +pyperclip==1.8.2 \ + --hash=sha256:105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57 + # via + # -r requirements.in + # gcp-releasetool +python-dateutil==2.8.2 \ + --hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \ + --hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9 + # via + # -r requirements.in + # gcp-releasetool +requests==2.27.1 \ + --hash=sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61 \ + --hash=sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d + # via + # -r requirements.in + # gcp-releasetool + # google-api-core + # google-cloud-storage +rsa==4.9 \ + --hash=sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7 \ + --hash=sha256:e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21 + # via + # -r requirements.in + # google-auth +secretstorage==3.3.3 \ + --hash=sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77 \ + --hash=sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99 + # via keyring +six==1.16.0 \ + --hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \ + --hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254 + # via + # -r requirements.in + # gcp-docuploader + # google-auth + # python-dateutil +typing-extensions==4.1.1 \ + --hash=sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42 \ + --hash=sha256:21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2 + # via -r requirements.in +urllib3==1.26.12 \ + --hash=sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e \ + --hash=sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997 + # via + # -r requirements.in + # requests +zipp==3.6.0 \ + --hash=sha256:71c644c5369f4a6e07636f0aa966270449561fcea2e3d6747b8d23efaa9d7832 \ + --hash=sha256:9fe5ea21568a0a70e50f273397638d39b03353731e6cbbb3fd8502a33fec40bc + # via + # -r requirements.in + # importlib-metadata diff --git a/renovate.json b/renovate.json index ca553e0f..bde1c7fd 100644 --- a/renovate.json +++ b/renovate.json @@ -10,6 +10,7 @@ ":maintainLockFilesDisabled", ":autodetectPinVersions" ], + "ignorePaths": [".kokoro/requirements.txt"], "packageRules": [ { "packagePatterns": [ From 1af4f681383288267a7c2de650d410c58fa2733a Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 28 Sep 2022 14:00:08 -0400 Subject: [PATCH 372/401] chore: pin versions of dependencies for compatibility with Python 3.6 (#1588) (#766) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: pin versions of dependencies for compatibility with Python 3.6 (#1588) * chore: pin versions of dependencies for compatibility with Python 3.6 * fix path of requirements file in synthtool Source-Link: https://github.com/googleapis/synthtool/commit/69cdb47824170d0b02bf694649ce66613c889040 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:6566dc8226f20993af18e5a4e7a2b1ba85a292b02dedb6a1634cf10e1b418fa5 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Diego Alonso Marquez Palacios --- .github/.OwlBot.lock.yaml | 3 ++- renovate.json | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 42327db5..0a5cae5a 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:f14e3fefe8e361e85752bd9890c8e56f2fe25f1e89cbb9597e4e3c7a429203a3 + digest: sha256:6566dc8226f20993af18e5a4e7a2b1ba85a292b02dedb6a1634cf10e1b418fa5 + diff --git a/renovate.json b/renovate.json index bde1c7fd..ca553e0f 100644 --- a/renovate.json +++ b/renovate.json @@ -10,7 +10,6 @@ ":maintainLockFilesDisabled", ":autodetectPinVersions" ], - "ignorePaths": [".kokoro/requirements.txt"], "packageRules": [ { "packagePatterns": [ From 8c15961d67c2bfcd0adb190d4db47cc3aad6d5a2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Sep 2022 16:28:27 +0200 Subject: [PATCH 373/401] deps: update dependency certifi to v2022.9.24 (#768) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [certifi](https://togithub.com/certifi/python-certifi) | `==2022.9.14` -> `==2022.9.24` | [![age](https://badges.renovateapi.com/packages/pypi/certifi/2022.9.24/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/certifi/2022.9.24/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/certifi/2022.9.24/compatibility-slim/2022.9.14)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/certifi/2022.9.24/confidence-slim/2022.9.14)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
certifi/python-certifi ### [`v2022.9.24`](https://togithub.com/certifi/python-certifi/compare/2022.09.14...2022.09.24) [Compare Source](https://togithub.com/certifi/python-certifi/compare/2022.09.14...2022.09.24)
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). From a2d084683252784b5a476f045ab6639cadc3bdb7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Sep 2022 16:30:20 +0200 Subject: [PATCH 374/401] deps: update dependency charset-normalizer to v2.1.1 (#772) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [charset-normalizer](https://togithub.com/ousret/charset_normalizer) | `==2.0.12` -> `==2.1.1` | [![age](https://badges.renovateapi.com/packages/pypi/charset-normalizer/2.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/charset-normalizer/2.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/charset-normalizer/2.1.1/compatibility-slim/2.0.12)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/charset-normalizer/2.1.1/confidence-slim/2.0.12)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). From 34059c23419a4b6d4b1b1b09f57c49b7234a336d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Sep 2022 16:34:31 +0200 Subject: [PATCH 375/401] deps: update dependency click to v8.1.3 (#773) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [click](https://palletsprojects.com/p/click/) ([changelog](https://click.palletsprojects.com/changes/)) | `==8.0.4` -> `==8.1.3` | [![age](https://badges.renovateapi.com/packages/pypi/click/8.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/click/8.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/click/8.1.3/compatibility-slim/8.0.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/click/8.1.3/confidence-slim/8.0.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). From 47d9a9ede1544cb586b022b759bb49810a4383d3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Sep 2022 16:36:36 +0200 Subject: [PATCH 376/401] deps: update dependency google-cloud-storage to v2.5.0 (#776) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-cloud-storage](https://togithub.com/googleapis/python-storage) | `==2.0.0` -> `==2.5.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/2.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/2.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/2.5.0/compatibility-slim/2.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/2.5.0/confidence-slim/2.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). From c78e26f3b3842db2af114ed1c53f4d8922acbf7b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Sep 2022 17:04:34 +0200 Subject: [PATCH 377/401] deps: update dependency gcp-releasetool to v1.8.8 (#769) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | gcp-releasetool | `==1.8.7` -> `==1.8.8` | [![age](https://badges.renovateapi.com/packages/pypi/gcp-releasetool/1.8.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/gcp-releasetool/1.8.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/gcp-releasetool/1.8.8/compatibility-slim/1.8.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/gcp-releasetool/1.8.8/confidence-slim/1.8.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). From 5b16d6e7c49aeb637885a166179411603b1c489d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Sep 2022 17:08:18 +0200 Subject: [PATCH 378/401] deps: update dependency requests to v2.28.1 (#781) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [requests](https://requests.readthedocs.io) ([source](https://togithub.com/psf/requests), [changelog](https://togithub.com/psf/requests/blob/master/HISTORY.md)) | `==2.27.1` -> `==2.28.1` | [![age](https://badges.renovateapi.com/packages/pypi/requests/2.28.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/requests/2.28.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/requests/2.28.1/compatibility-slim/2.27.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/requests/2.28.1/confidence-slim/2.27.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). From 3e3c456f40255ea56c0f89e0384c36adfaffd5e8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Sep 2022 17:10:55 +0200 Subject: [PATCH 379/401] deps: update dependency google-auth to v2.12.0 (#775) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-auth](https://togithub.com/googleapis/google-auth-library-python) | `==2.11.0` -> `==2.12.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-auth/2.12.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-auth/2.12.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-auth/2.12.0/compatibility-slim/2.11.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-auth/2.12.0/confidence-slim/2.11.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). From df82325fe78995b19b83b2cec96f8d4be45b3e9e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Sep 2022 17:22:34 +0200 Subject: [PATCH 380/401] deps: update dependency jinja2 to v3.1.2 (#788) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [jinja2](https://palletsprojects.com/p/jinja/) ([changelog](https://jinja.palletsprojects.com/changes/)) | `==3.0.3` -> `==3.1.2` | [![age](https://badges.renovateapi.com/packages/pypi/jinja2/3.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/jinja2/3.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/jinja2/3.1.2/compatibility-slim/3.0.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/jinja2/3.1.2/confidence-slim/3.0.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). From 83b65361a4e4f3a42c6383480acb7422c1db09c2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Sep 2022 17:26:32 +0200 Subject: [PATCH 381/401] deps: update dependency google-cloud-core to v2.3.2 (#770) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-cloud-core](https://togithub.com/googleapis/python-cloud-core) | `==2.3.1` -> `==2.3.2` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-core/2.3.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-core/2.3.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-core/2.3.2/compatibility-slim/2.3.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-core/2.3.2/confidence-slim/2.3.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). From 1df101599f59f9dc65769747dcfea4b6d6a3daec Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Sep 2022 17:34:15 +0200 Subject: [PATCH 382/401] deps: update dependency protobuf to v3.20.2 (#779) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [protobuf](https://developers.google.com/protocol-buffers/) | `==3.19.5` -> `==3.20.2` | [![age](https://badges.renovateapi.com/packages/pypi/protobuf/3.20.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/protobuf/3.20.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/protobuf/3.20.2/compatibility-slim/3.19.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/protobuf/3.20.2/confidence-slim/3.19.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). From 6722e834724d921e60e512d70f0d55790f81da07 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Sep 2022 17:40:13 +0200 Subject: [PATCH 383/401] deps: update dependency markupsafe to v2.1.1 (#778) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [markupsafe](https://palletsprojects.com/p/markupsafe/) ([changelog](https://markupsafe.palletsprojects.com/changes/)) | `==2.0.1` -> `==2.1.1` | [![age](https://badges.renovateapi.com/packages/pypi/markupsafe/2.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/markupsafe/2.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/markupsafe/2.1.1/compatibility-slim/2.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/markupsafe/2.1.1/confidence-slim/2.0.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). From 7b3580427996bca2748df1f8e8e3afeb2fae997c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Sep 2022 18:48:18 +0200 Subject: [PATCH 384/401] deps: update dependency google-api-core to v2.10.1 (#774) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-api-core](https://togithub.com/googleapis/python-api-core) | `==2.8.2` -> `==2.10.1` | [![age](https://badges.renovateapi.com/packages/pypi/google-api-core/2.10.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-api-core/2.10.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-api-core/2.10.1/compatibility-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-api-core/2.10.1/confidence-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). From 7967d321d0ed835bf79dcfec9894340ab9e658ac Mon Sep 17 00:00:00 2001 From: Diego Alonso Marquez Palacios Date: Thu, 29 Sep 2022 18:22:28 -0400 Subject: [PATCH 385/401] Revert "chore: pin versions of dependencies for compatibility with Python 3.6 (#1588)" (#791) Reverts googleapis/java-tasks#766 --- .github/.OwlBot.lock.yaml | 3 +-- renovate.json | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 0a5cae5a..42327db5 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:6566dc8226f20993af18e5a4e7a2b1ba85a292b02dedb6a1634cf10e1b418fa5 - + digest: sha256:f14e3fefe8e361e85752bd9890c8e56f2fe25f1e89cbb9597e4e3c7a429203a3 diff --git a/renovate.json b/renovate.json index ca553e0f..bde1c7fd 100644 --- a/renovate.json +++ b/renovate.json @@ -10,6 +10,7 @@ ":maintainLockFilesDisabled", ":autodetectPinVersions" ], + "ignorePaths": [".kokoro/requirements.txt"], "packageRules": [ { "packagePatterns": [ From ba4f11f2f6e7090d4a4627fc7b97cca0108e4580 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 3 Oct 2022 21:06:20 +0200 Subject: [PATCH 386/401] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 (#793) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.3` -> `3.0.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.4/compatibility-slim/3.0.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.4/confidence-slim/3.0.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v3.0.4`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​304-httpsgithubcomgoogleapisjava-shared-dependenciescomparev303v304-2022-10-03) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.3...v3.0.4) ##### Dependencies - Update dependency cachetools to v5 ([#​816](https://togithub.com/googleapis/java-shared-dependencies/issues/816)) ([3f6c408](https://togithub.com/googleapis/java-shared-dependencies/commit/3f6c408210c931c286235f61c7aadea5bf5cfe4d)) - Update dependency certifi to v2022.9.24 ([#​818](https://togithub.com/googleapis/java-shared-dependencies/issues/818)) ([5f04b97](https://togithub.com/googleapis/java-shared-dependencies/commit/5f04b97c2343146600e8c9ee65afdeb58f5743a6)) - Update dependency charset-normalizer to v2.1.1 ([#​822](https://togithub.com/googleapis/java-shared-dependencies/issues/822)) ([6997c5a](https://togithub.com/googleapis/java-shared-dependencies/commit/6997c5acad937ebe3594330de73261a424d42cf3)) - Update dependency click to v8.1.3 ([#​823](https://togithub.com/googleapis/java-shared-dependencies/issues/823)) ([42bf9f8](https://togithub.com/googleapis/java-shared-dependencies/commit/42bf9f834fdafea60f2be7ccbf7d363e058cd7c2)) - Update dependency com.google.protobuf:protobuf-bom to v3.21.7 ([#​837](https://togithub.com/googleapis/java-shared-dependencies/issues/837)) ([d31e507](https://togithub.com/googleapis/java-shared-dependencies/commit/d31e5077c7e036de5e238e9a611df7ced527574a)) - Update dependency gcp-releasetool to v1.8.8 ([#​819](https://togithub.com/googleapis/java-shared-dependencies/issues/819)) ([8245d97](https://togithub.com/googleapis/java-shared-dependencies/commit/8245d975fb12e81454ec7664f9a7c9809bbac697)) - Update dependency gcp-releasetool to v1.8.9 ([#​846](https://togithub.com/googleapis/java-shared-dependencies/issues/846)) ([04e3283](https://togithub.com/googleapis/java-shared-dependencies/commit/04e32831c6e87c372444901013a747d2d02ce38d)) - Update dependency google-api-core to v2.10.1 ([#​824](https://togithub.com/googleapis/java-shared-dependencies/issues/824)) ([818b9aa](https://togithub.com/googleapis/java-shared-dependencies/commit/818b9aa2ac99d8b1f9b39a74b626122aed5f1d94)) - Update dependency google-auth to v2.12.0 ([#​825](https://togithub.com/googleapis/java-shared-dependencies/issues/825)) ([07c544b](https://togithub.com/googleapis/java-shared-dependencies/commit/07c544b5e0fa9f7110bbc957570f7a405962072e)) - Update dependency google-cloud-core to v2.3.2 ([#​820](https://togithub.com/googleapis/java-shared-dependencies/issues/820)) ([2a219e8](https://togithub.com/googleapis/java-shared-dependencies/commit/2a219e86f187ba5ad72f2570bd58ca6100128c43)) - Update dependency google-cloud-storage to v2.5.0 ([#​826](https://togithub.com/googleapis/java-shared-dependencies/issues/826)) ([bb10d18](https://togithub.com/googleapis/java-shared-dependencies/commit/bb10d1858a515f09d365362ffa0110a5b362c96b)) - Update dependency google-crc32c to v1.5.0 ([#​827](https://togithub.com/googleapis/java-shared-dependencies/issues/827)) ([7e5dae6](https://togithub.com/googleapis/java-shared-dependencies/commit/7e5dae60d667cb84b9ee4f6c977bdc35e79e4cf6)) - Update dependency google-resumable-media to v2.4.0 ([#​838](https://togithub.com/googleapis/java-shared-dependencies/issues/838)) ([ad82d63](https://togithub.com/googleapis/java-shared-dependencies/commit/ad82d6378f64039da383509638fb4782908eb4bc)) - Update dependency googleapis-common-protos to v1.56.4 ([#​821](https://togithub.com/googleapis/java-shared-dependencies/issues/821)) ([93d7745](https://togithub.com/googleapis/java-shared-dependencies/commit/93d77458c9bbf84ec367cdb4caaa41e6f71675c6)) - Update dependency importlib-metadata to v4.12.0 ([#​832](https://togithub.com/googleapis/java-shared-dependencies/issues/832)) ([ee19fb1](https://togithub.com/googleapis/java-shared-dependencies/commit/ee19fb1ca5a2a2e1985297e3b72d44de68bc72e3)) - Update dependency importlib-metadata to v4.13.0 ([#​843](https://togithub.com/googleapis/java-shared-dependencies/issues/843)) ([d2ede60](https://togithub.com/googleapis/java-shared-dependencies/commit/d2ede601eee8c875780c7eb5924623537480c509)) - Update dependency importlib-metadata to v5 ([#​845](https://togithub.com/googleapis/java-shared-dependencies/issues/845)) ([03ac7e8](https://togithub.com/googleapis/java-shared-dependencies/commit/03ac7e800274c5f58d2bc4ddd0561bfcdea1bb27)) - Update dependency io.grpc:grpc-bom to v1.49.1 ([#​802](https://togithub.com/googleapis/java-shared-dependencies/issues/802)) ([b8c54bf](https://togithub.com/googleapis/java-shared-dependencies/commit/b8c54bf8f1ddecc788cee151f8afe42de45bdc9d)) - Update dependency io.grpc:grpc-bom to v1.49.2 ([#​842](https://togithub.com/googleapis/java-shared-dependencies/issues/842)) ([1b1cfa2](https://togithub.com/googleapis/java-shared-dependencies/commit/1b1cfa27d05f7732da12721305cf41dcbebda232)) - Update dependency jeepney to v0.8.0 ([#​833](https://togithub.com/googleapis/java-shared-dependencies/issues/833)) ([15d2f9f](https://togithub.com/googleapis/java-shared-dependencies/commit/15d2f9f52b5a3259db0813df3d2424e256ccb372)) - Update dependency jinja2 to v3.1.2 ([#​834](https://togithub.com/googleapis/java-shared-dependencies/issues/834)) ([c188f95](https://togithub.com/googleapis/java-shared-dependencies/commit/c188f95acdb3349f1c4b3ed56e5fffb75e8fbc8d)) - Update dependency keyring to v23.9.3 ([#​828](https://togithub.com/googleapis/java-shared-dependencies/issues/828)) ([b185aaa](https://togithub.com/googleapis/java-shared-dependencies/commit/b185aaae716d4d97cb64f0426cac0e778f11223d)) - Update dependency markupsafe to v2.1.1 ([#​829](https://togithub.com/googleapis/java-shared-dependencies/issues/829)) ([add2825](https://togithub.com/googleapis/java-shared-dependencies/commit/add2825bd34cd80f529dbe0dadb3c84219177916)) - Update dependency org.threeten:threetenbp to v1.6.2 ([#​808](https://togithub.com/googleapis/java-shared-dependencies/issues/808)) ([2d2eabd](https://togithub.com/googleapis/java-shared-dependencies/commit/2d2eabd14d8150207885ea47280c0f7ff3d2962f)) - Update dependency protobuf to v3.20.2 ([#​830](https://togithub.com/googleapis/java-shared-dependencies/issues/830)) ([5afa76f](https://togithub.com/googleapis/java-shared-dependencies/commit/5afa76f9ef4705aecba49abc7bb93982fb1ecf3e)) - Update dependency protobuf to v3.20.3 ([#​839](https://togithub.com/googleapis/java-shared-dependencies/issues/839)) ([d9fc7dd](https://togithub.com/googleapis/java-shared-dependencies/commit/d9fc7ddd3e663458e6ea3f78a3c6241377df0319)) - Update dependency protobuf to v4 ([#​817](https://togithub.com/googleapis/java-shared-dependencies/issues/817)) ([ee8d154](https://togithub.com/googleapis/java-shared-dependencies/commit/ee8d154287ccd256b4dcfa48f28f5ec61a91fe3e)) - Update dependency pyjwt to v2.5.0 ([#​812](https://togithub.com/googleapis/java-shared-dependencies/issues/812)) ([4d4528e](https://togithub.com/googleapis/java-shared-dependencies/commit/4d4528e8ce269d49b99d2dbc4fcda2dc37a058cb)) - Update dependency requests to v2.28.1 ([#​813](https://togithub.com/googleapis/java-shared-dependencies/issues/813)) ([a3a8d89](https://togithub.com/googleapis/java-shared-dependencies/commit/a3a8d89b0117007a7108553c70aa82dd289e1691)) - Update dependency typing-extensions to v4.3.0 ([#​814](https://togithub.com/googleapis/java-shared-dependencies/issues/814)) ([da875e5](https://togithub.com/googleapis/java-shared-dependencies/commit/da875e5e91fa9d8c177e6c3afc9e34242eb914b7)) - Update dependency zipp to v3.8.1 ([#​815](https://togithub.com/googleapis/java-shared-dependencies/issues/815)) ([15585fd](https://togithub.com/googleapis/java-shared-dependencies/commit/15585fd0216013fe93be011f93f391f6269aa777)) - Update gax.version to v2.19.2 ([#​847](https://togithub.com/googleapis/java-shared-dependencies/issues/847)) ([c4afe1f](https://togithub.com/googleapis/java-shared-dependencies/commit/c4afe1fdc88af29ab039cea618d52c15c90e43e9)) - Update google.common-protos.version to v2.9.3 ([#​803](https://togithub.com/googleapis/java-shared-dependencies/issues/803)) ([a3e8e5e](https://togithub.com/googleapis/java-shared-dependencies/commit/a3e8e5eb53a8da14abf3b8d81a4f34fbb2f3b8f9)) - Update google.common-protos.version to v2.9.5 ([#​831](https://togithub.com/googleapis/java-shared-dependencies/issues/831)) ([1c901db](https://togithub.com/googleapis/java-shared-dependencies/commit/1c901db8a7740afaec3e809e51d4d369fbf469c4)) - Update google.common-protos.version to v2.9.6 ([#​844](https://togithub.com/googleapis/java-shared-dependencies/issues/844)) ([9e156be](https://togithub.com/googleapis/java-shared-dependencies/commit/9e156be59bd89959f04252c3045b8cd7a8be8070)) - Update google.core.version to v2.8.13 ([#​804](https://togithub.com/googleapis/java-shared-dependencies/issues/804)) ([45ae571](https://togithub.com/googleapis/java-shared-dependencies/commit/45ae57142bd6d5334eedd46243736b200a459795)) - Update google.core.version to v2.8.14 ([#​805](https://togithub.com/googleapis/java-shared-dependencies/issues/805)) ([02c9397](https://togithub.com/googleapis/java-shared-dependencies/commit/02c9397a84bf3fcca8d04e4c9867cc47689abde2)) - Update google.core.version to v2.8.15 ([#​807](https://togithub.com/googleapis/java-shared-dependencies/issues/807)) ([980856c](https://togithub.com/googleapis/java-shared-dependencies/commit/980856c43981992a3d08f69eac83aeada752d244)) - Update google.core.version to v2.8.16 ([#​810](https://togithub.com/googleapis/java-shared-dependencies/issues/810)) ([c2b2c9a](https://togithub.com/googleapis/java-shared-dependencies/commit/c2b2c9a327fd588f69524bb93a17e5d4ae8f5a42)) - Update google.core.version to v2.8.17 ([#​835](https://togithub.com/googleapis/java-shared-dependencies/issues/835)) ([3def21d](https://togithub.com/googleapis/java-shared-dependencies/commit/3def21df2e4253e3df0da064b6c4e472df079d2b)) - Update google.core.version to v2.8.18 ([#​840](https://togithub.com/googleapis/java-shared-dependencies/issues/840)) ([46566dc](https://togithub.com/googleapis/java-shared-dependencies/commit/46566dc18c4b1ed41c482b4ce21b92651e2f9dc5)) - Update google.core.version to v2.8.19 ([#​841](https://togithub.com/googleapis/java-shared-dependencies/issues/841)) ([99afde9](https://togithub.com/googleapis/java-shared-dependencies/commit/99afde97ea498f549eb75cc58c4ed88edf81b20d)) - Update google.core.version to v2.8.20 ([#​848](https://togithub.com/googleapis/java-shared-dependencies/issues/848)) ([c980c4f](https://togithub.com/googleapis/java-shared-dependencies/commit/c980c4fdfc8890d812b4881ba5b87bfd21269a5f)) - Update iam.version to v1.6.1 ([#​806](https://togithub.com/googleapis/java-shared-dependencies/issues/806)) ([a50158d](https://togithub.com/googleapis/java-shared-dependencies/commit/a50158d3b83cf8e02d8ee08c94e512b5669a927b)) - Update iam.version to v1.6.2 ([#​849](https://togithub.com/googleapis/java-shared-dependencies/issues/849)) ([e43ac96](https://togithub.com/googleapis/java-shared-dependencies/commit/e43ac96bc189a096a9311c9b03e85c86bea07e99))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 6e5cd5b3..77ac2302 100644 --- a/pom.xml +++ b/pom.xml @@ -97,7 +97,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.3 + 3.0.4 pom import From 7367b31dee431baf67b5c332f5f32086ef3881e2 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 3 Oct 2022 19:18:27 +0000 Subject: [PATCH 387/401] chore(main): release 2.3.11 (#789) :robot: I have created a release *beep* *boop* --- ## [2.3.11](https://togithub.com/googleapis/java-tasks/compare/v2.3.10...v2.3.11) (2022-10-03) ### Dependencies * Update dependency certifi to v2022.9.24 ([#768](https://togithub.com/googleapis/java-tasks/issues/768)) ([8c15961](https://togithub.com/googleapis/java-tasks/commit/8c15961d67c2bfcd0adb190d4db47cc3aad6d5a2)) * Update dependency charset-normalizer to v2.1.1 ([#772](https://togithub.com/googleapis/java-tasks/issues/772)) ([a2d0846](https://togithub.com/googleapis/java-tasks/commit/a2d084683252784b5a476f045ab6639cadc3bdb7)) * Update dependency click to v8.1.3 ([#773](https://togithub.com/googleapis/java-tasks/issues/773)) ([34059c2](https://togithub.com/googleapis/java-tasks/commit/34059c23419a4b6d4b1b1b09f57c49b7234a336d)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#793](https://togithub.com/googleapis/java-tasks/issues/793)) ([ba4f11f](https://togithub.com/googleapis/java-tasks/commit/ba4f11f2f6e7090d4a4627fc7b97cca0108e4580)) * Update dependency gcp-releasetool to v1.8.8 ([#769](https://togithub.com/googleapis/java-tasks/issues/769)) ([c78e26f](https://togithub.com/googleapis/java-tasks/commit/c78e26f3b3842db2af114ed1c53f4d8922acbf7b)) * Update dependency google-api-core to v2.10.1 ([#774](https://togithub.com/googleapis/java-tasks/issues/774)) ([7b35804](https://togithub.com/googleapis/java-tasks/commit/7b3580427996bca2748df1f8e8e3afeb2fae997c)) * Update dependency google-auth to v2.12.0 ([#775](https://togithub.com/googleapis/java-tasks/issues/775)) ([3e3c456](https://togithub.com/googleapis/java-tasks/commit/3e3c456f40255ea56c0f89e0384c36adfaffd5e8)) * Update dependency google-cloud-core to v2.3.2 ([#770](https://togithub.com/googleapis/java-tasks/issues/770)) ([83b6536](https://togithub.com/googleapis/java-tasks/commit/83b65361a4e4f3a42c6383480acb7422c1db09c2)) * Update dependency google-cloud-storage to v2.5.0 ([#776](https://togithub.com/googleapis/java-tasks/issues/776)) ([47d9a9e](https://togithub.com/googleapis/java-tasks/commit/47d9a9ede1544cb586b022b759bb49810a4383d3)) * Update dependency jinja2 to v3.1.2 ([#788](https://togithub.com/googleapis/java-tasks/issues/788)) ([df82325](https://togithub.com/googleapis/java-tasks/commit/df82325fe78995b19b83b2cec96f8d4be45b3e9e)) * Update dependency markupsafe to v2.1.1 ([#778](https://togithub.com/googleapis/java-tasks/issues/778)) ([6722e83](https://togithub.com/googleapis/java-tasks/commit/6722e834724d921e60e512d70f0d55790f81da07)) * Update dependency protobuf to v3.20.2 ([#779](https://togithub.com/googleapis/java-tasks/issues/779)) ([1df1015](https://togithub.com/googleapis/java-tasks/commit/1df101599f59f9dc65769747dcfea4b6d6a3daec)) * Update dependency requests to v2.28.1 ([#781](https://togithub.com/googleapis/java-tasks/issues/781)) ([5b16d6e](https://togithub.com/googleapis/java-tasks/commit/5b16d6e7c49aeb637885a166179411603b1c489d)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 19 +++++++++++++++++++ google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 11 files changed, 56 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 960d2069..81cadccb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## [2.3.11](https://github.com/googleapis/java-tasks/compare/v2.3.10...v2.3.11) (2022-10-03) + + +### Dependencies + +* Update dependency certifi to v2022.9.24 ([#768](https://github.com/googleapis/java-tasks/issues/768)) ([8c15961](https://github.com/googleapis/java-tasks/commit/8c15961d67c2bfcd0adb190d4db47cc3aad6d5a2)) +* Update dependency charset-normalizer to v2.1.1 ([#772](https://github.com/googleapis/java-tasks/issues/772)) ([a2d0846](https://github.com/googleapis/java-tasks/commit/a2d084683252784b5a476f045ab6639cadc3bdb7)) +* Update dependency click to v8.1.3 ([#773](https://github.com/googleapis/java-tasks/issues/773)) ([34059c2](https://github.com/googleapis/java-tasks/commit/34059c23419a4b6d4b1b1b09f57c49b7234a336d)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#793](https://github.com/googleapis/java-tasks/issues/793)) ([ba4f11f](https://github.com/googleapis/java-tasks/commit/ba4f11f2f6e7090d4a4627fc7b97cca0108e4580)) +* Update dependency gcp-releasetool to v1.8.8 ([#769](https://github.com/googleapis/java-tasks/issues/769)) ([c78e26f](https://github.com/googleapis/java-tasks/commit/c78e26f3b3842db2af114ed1c53f4d8922acbf7b)) +* Update dependency google-api-core to v2.10.1 ([#774](https://github.com/googleapis/java-tasks/issues/774)) ([7b35804](https://github.com/googleapis/java-tasks/commit/7b3580427996bca2748df1f8e8e3afeb2fae997c)) +* Update dependency google-auth to v2.12.0 ([#775](https://github.com/googleapis/java-tasks/issues/775)) ([3e3c456](https://github.com/googleapis/java-tasks/commit/3e3c456f40255ea56c0f89e0384c36adfaffd5e8)) +* Update dependency google-cloud-core to v2.3.2 ([#770](https://github.com/googleapis/java-tasks/issues/770)) ([83b6536](https://github.com/googleapis/java-tasks/commit/83b65361a4e4f3a42c6383480acb7422c1db09c2)) +* Update dependency google-cloud-storage to v2.5.0 ([#776](https://github.com/googleapis/java-tasks/issues/776)) ([47d9a9e](https://github.com/googleapis/java-tasks/commit/47d9a9ede1544cb586b022b759bb49810a4383d3)) +* Update dependency jinja2 to v3.1.2 ([#788](https://github.com/googleapis/java-tasks/issues/788)) ([df82325](https://github.com/googleapis/java-tasks/commit/df82325fe78995b19b83b2cec96f8d4be45b3e9e)) +* Update dependency markupsafe to v2.1.1 ([#778](https://github.com/googleapis/java-tasks/issues/778)) ([6722e83](https://github.com/googleapis/java-tasks/commit/6722e834724d921e60e512d70f0d55790f81da07)) +* Update dependency protobuf to v3.20.2 ([#779](https://github.com/googleapis/java-tasks/issues/779)) ([1df1015](https://github.com/googleapis/java-tasks/commit/1df101599f59f9dc65769747dcfea4b6d6a3daec)) +* Update dependency requests to v2.28.1 ([#781](https://github.com/googleapis/java-tasks/issues/781)) ([5b16d6e](https://github.com/googleapis/java-tasks/commit/5b16d6e7c49aeb637885a166179411603b1c489d)) + ## [2.3.10](https://github.com/googleapis/java-tasks/compare/v2.3.9...v2.3.10) (2022-09-22) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index 2c2b31df..a1903d92 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.11-SNAPSHOT + 2.3.11 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.11-SNAPSHOT + 2.3.11 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.11-SNAPSHOT + 0.93.11 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.11-SNAPSHOT + 0.93.11 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.11-SNAPSHOT + 2.3.11 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.11-SNAPSHOT + 0.93.11 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.11-SNAPSHOT + 0.93.11 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.11-SNAPSHOT + 2.3.11
diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 5f585c60..85671cbf 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.11-SNAPSHOT + 2.3.11 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.11-SNAPSHOT + 2.3.11 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index ca258174..2381521f 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.11-SNAPSHOT + 2.3.11 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.11-SNAPSHOT + 2.3.11 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 7d835387..7ad1cdd1 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.11-SNAPSHOT + 0.93.11 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.11-SNAPSHOT + 2.3.11 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 1c19e59d..0ea53a5e 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.11-SNAPSHOT + 0.93.11 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.11-SNAPSHOT + 2.3.11 diff --git a/pom.xml b/pom.xml index 77ac2302..09dda26f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.11-SNAPSHOT + 2.3.11 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.11-SNAPSHOT + 0.93.11 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.11-SNAPSHOT + 0.93.11 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.11-SNAPSHOT + 2.3.11 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.11-SNAPSHOT + 0.93.11 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.11-SNAPSHOT + 0.93.11 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.11-SNAPSHOT + 2.3.11 com.google.cloud google-cloud-tasks - 2.3.11-SNAPSHOT + 2.3.11 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 95219be9..5299fe28 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.11-SNAPSHOT + 2.3.11 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.11-SNAPSHOT + 2.3.11 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 332a5355..3810a5e5 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.11-SNAPSHOT + 0.93.11 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.11-SNAPSHOT + 2.3.11 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 9113dd88..9d496644 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.11-SNAPSHOT + 0.93.11 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.11-SNAPSHOT + 2.3.11 diff --git a/versions.txt b/versions.txt index 1ec8f04c..a6fed259 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.10:2.3.11-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.93.10:0.93.11-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.93.10:0.93.11-SNAPSHOT -grpc-google-cloud-tasks-v2:2.3.10:2.3.11-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.93.10:0.93.11-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.93.10:0.93.11-SNAPSHOT -proto-google-cloud-tasks-v2:2.3.10:2.3.11-SNAPSHOT +google-cloud-tasks:2.3.11:2.3.11 +grpc-google-cloud-tasks-v2beta3:0.93.11:0.93.11 +grpc-google-cloud-tasks-v2beta2:0.93.11:0.93.11 +grpc-google-cloud-tasks-v2:2.3.11:2.3.11 +proto-google-cloud-tasks-v2beta3:0.93.11:0.93.11 +proto-google-cloud-tasks-v2beta2:0.93.11:0.93.11 +proto-google-cloud-tasks-v2:2.3.11:2.3.11 From 79d519c1d0970ed16b779be4015de0101971570e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 3 Oct 2022 19:36:23 +0000 Subject: [PATCH 388/401] chore(bazel): update protobuf to v3.21.7 (#792) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 477955264 Source-Link: https://togithub.com/googleapis/googleapis/commit/a724450af76d0001f23602684c49cd6a4b3a5654 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/4abcbcaec855e74a0b22a4988cf9e0eb61a83094 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGFiY2JjYWVjODU1ZTc0YTBiMjJhNDk4OGNmOWUwZWI2MWE4MzA5NCJ9 --- .../cloud/tasks/v2/AppEngineHttpRequest.java | 185 ++++------ .../cloud/tasks/v2/AppEngineRouting.java | 151 ++++---- .../com/google/cloud/tasks/v2/Attempt.java | 183 ++++------ .../cloud/tasks/v2/CreateQueueRequest.java | 133 +++---- .../cloud/tasks/v2/CreateTaskRequest.java | 145 +++----- .../cloud/tasks/v2/DeleteQueueRequest.java | 112 +++--- .../cloud/tasks/v2/DeleteTaskRequest.java | 112 +++--- .../cloud/tasks/v2/GetQueueRequest.java | 112 +++--- .../google/cloud/tasks/v2/GetTaskRequest.java | 125 +++---- .../google/cloud/tasks/v2/HttpRequest.java | 214 +++++------ .../cloud/tasks/v2/ListQueuesRequest.java | 149 ++++---- .../cloud/tasks/v2/ListQueuesResponse.java | 143 +++----- .../cloud/tasks/v2/ListTasksRequest.java | 149 ++++---- .../cloud/tasks/v2/ListTasksResponse.java | 143 +++----- .../com/google/cloud/tasks/v2/OAuthToken.java | 125 +++---- .../com/google/cloud/tasks/v2/OidcToken.java | 125 +++---- .../cloud/tasks/v2/PauseQueueRequest.java | 112 +++--- .../cloud/tasks/v2/PurgeQueueRequest.java | 112 +++--- .../java/com/google/cloud/tasks/v2/Queue.java | 237 +++++------- .../com/google/cloud/tasks/v2/RateLimits.java | 132 +++---- .../cloud/tasks/v2/ResumeQueueRequest.java | 112 +++--- .../google/cloud/tasks/v2/RetryConfig.java | 185 ++++------ .../google/cloud/tasks/v2/RunTaskRequest.java | 125 +++---- .../tasks/v2/StackdriverLoggingConfig.java | 111 +++--- .../java/com/google/cloud/tasks/v2/Task.java | 305 ++++++---------- .../cloud/tasks/v2/UpdateQueueRequest.java | 141 +++----- .../tasks/v2beta2/AcknowledgeTaskRequest.java | 134 +++---- .../tasks/v2beta2/AppEngineHttpRequest.java | 186 ++++------ .../tasks/v2beta2/AppEngineHttpTarget.java | 123 +++---- .../cloud/tasks/v2beta2/AppEngineRouting.java | 151 ++++---- .../cloud/tasks/v2beta2/AttemptStatus.java | 183 ++++------ .../tasks/v2beta2/CancelLeaseRequest.java | 147 +++----- .../tasks/v2beta2/CreateQueueRequest.java | 135 +++---- .../tasks/v2beta2/CreateTaskRequest.java | 147 +++----- .../tasks/v2beta2/DeleteQueueRequest.java | 113 +++--- .../tasks/v2beta2/DeleteTaskRequest.java | 112 +++--- .../cloud/tasks/v2beta2/GetQueueRequest.java | 133 +++---- .../cloud/tasks/v2beta2/GetTaskRequest.java | 125 +++---- .../tasks/v2beta2/LeaseTasksRequest.java | 170 ++++----- .../tasks/v2beta2/LeaseTasksResponse.java | 133 +++---- .../tasks/v2beta2/ListQueuesRequest.java | 170 ++++----- .../tasks/v2beta2/ListQueuesResponse.java | 146 ++++---- .../cloud/tasks/v2beta2/ListTasksRequest.java | 149 ++++---- .../tasks/v2beta2/ListTasksResponse.java | 145 ++++---- .../tasks/v2beta2/PauseQueueRequest.java | 112 +++--- .../cloud/tasks/v2beta2/PullMessage.java | 123 +++---- .../cloud/tasks/v2beta2/PullTarget.java | 99 ++--- .../tasks/v2beta2/PurgeQueueRequest.java | 112 +++--- .../com/google/cloud/tasks/v2beta2/Queue.java | 308 ++++++---------- .../cloud/tasks/v2beta2/QueueStats.java | 165 ++++----- .../cloud/tasks/v2beta2/RateLimits.java | 132 +++---- .../tasks/v2beta2/RenewLeaseRequest.java | 167 ++++----- .../tasks/v2beta2/ResumeQueueRequest.java | 113 +++--- .../cloud/tasks/v2beta2/RetryConfig.java | 198 ++++------ .../cloud/tasks/v2beta2/RunTaskRequest.java | 125 +++---- .../com/google/cloud/tasks/v2beta2/Task.java | 245 +++++-------- .../cloud/tasks/v2beta2/TaskStatus.java | 167 ++++----- .../tasks/v2beta2/UpdateQueueRequest.java | 143 +++----- .../tasks/v2beta3/AppEngineHttpQueue.java | 123 +++---- .../tasks/v2beta3/AppEngineHttpRequest.java | 186 ++++------ .../cloud/tasks/v2beta3/AppEngineRouting.java | 151 ++++---- .../google/cloud/tasks/v2beta3/Attempt.java | 183 ++++------ .../tasks/v2beta3/CreateQueueRequest.java | 135 +++---- .../tasks/v2beta3/CreateTaskRequest.java | 147 +++----- .../tasks/v2beta3/DeleteQueueRequest.java | 113 +++--- .../tasks/v2beta3/DeleteTaskRequest.java | 112 +++--- .../cloud/tasks/v2beta3/GetQueueRequest.java | 133 +++---- .../cloud/tasks/v2beta3/GetTaskRequest.java | 125 +++---- .../cloud/tasks/v2beta3/HttpRequest.java | 216 +++++------ .../tasks/v2beta3/ListQueuesRequest.java | 170 ++++----- .../tasks/v2beta3/ListQueuesResponse.java | 146 ++++---- .../cloud/tasks/v2beta3/ListTasksRequest.java | 149 ++++---- .../tasks/v2beta3/ListTasksResponse.java | 145 ++++---- .../cloud/tasks/v2beta3/OAuthToken.java | 125 +++---- .../google/cloud/tasks/v2beta3/OidcToken.java | 125 +++---- .../tasks/v2beta3/PauseQueueRequest.java | 112 +++--- .../cloud/tasks/v2beta3/PullMessage.java | 123 +++---- .../tasks/v2beta3/PurgeQueueRequest.java | 112 +++--- .../com/google/cloud/tasks/v2beta3/Queue.java | 320 ++++++----------- .../cloud/tasks/v2beta3/QueueStats.java | 165 ++++----- .../cloud/tasks/v2beta3/RateLimits.java | 132 +++---- .../tasks/v2beta3/ResumeQueueRequest.java | 113 +++--- .../cloud/tasks/v2beta3/RetryConfig.java | 185 ++++------ .../cloud/tasks/v2beta3/RunTaskRequest.java | 125 +++---- .../v2beta3/StackdriverLoggingConfig.java | 111 +++--- .../com/google/cloud/tasks/v2beta3/Task.java | 337 +++++++----------- .../tasks/v2beta3/UpdateQueueRequest.java | 143 +++----- 87 files changed, 5163 insertions(+), 7988 deletions(-) diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequest.java index bb0cf20e..a50df814 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequest.java @@ -102,95 +102,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AppEngineHttpRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - httpMethod_ = rawValue; - break; - } - case 18: - { - com.google.cloud.tasks.v2.AppEngineRouting.Builder subBuilder = null; - if (appEngineRouting_ != null) { - subBuilder = appEngineRouting_.toBuilder(); - } - appEngineRouting_ = - input.readMessage( - com.google.cloud.tasks.v2.AppEngineRouting.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(appEngineRouting_); - appEngineRouting_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - relativeUri_ = s; - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = - com.google.protobuf.MapField.newMapField( - HeadersDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry headers__ = - input.readMessage( - HeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - headers_.getMutableMap().put(headers__.getKey(), headers__.getValue()); - break; - } - case 42: - { - body_ = input.readBytes(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.TargetProto .internal_static_google_cloud_tasks_v2_AppEngineHttpRequest_descriptor; @@ -662,7 +573,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!body_.isEmpty()) { output.writeBytes(5, body_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -693,7 +604,7 @@ public int getSerializedSize() { if (!body_.isEmpty()) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, body_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -717,7 +628,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRelativeUri().equals(other.getRelativeUri())) return false; if (!internalGetHeaders().equals(other.internalGetHeaders())) return false; if (!getBody().equals(other.getBody())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -742,7 +653,7 @@ public int hashCode() { } hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -939,17 +850,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.tasks.v2.AppEngineHttpRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1069,7 +973,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.AppEngineHttpRequest other) { if (other.getBody() != com.google.protobuf.ByteString.EMPTY) { setBody(other.getBody()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1084,17 +988,67 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.AppEngineHttpRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + httpMethod_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + input.readMessage( + getAppEngineRoutingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + relativeUri_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry headers__ = + input.readMessage( + HeadersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableHeaders() + .getMutableMap() + .put(headers__.getKey(), headers__.getValue()); + break; + } // case 34 + case 42: + { + body_ = input.readBytes(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.AppEngineHttpRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2059,7 +2013,18 @@ public AppEngineHttpRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AppEngineHttpRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRouting.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRouting.java index 2a3556d6..88f0708b 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRouting.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRouting.java @@ -71,73 +71,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AppEngineRouting( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - service_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - instance_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - host_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.TargetProto .internal_static_google_cloud_tasks_v2_AppEngineRouting_descriptor; @@ -463,7 +396,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, host_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -484,7 +417,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, host_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -504,7 +437,7 @@ public boolean equals(final java.lang.Object obj) { if (!getVersion().equals(other.getVersion())) return false; if (!getInstance().equals(other.getInstance())) return false; if (!getHost().equals(other.getHost())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -523,7 +456,7 @@ public int hashCode() { hash = (53 * hash) + getInstance().hashCode(); hash = (37 * hash) + HOST_FIELD_NUMBER; hash = (53 * hash) + getHost().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -668,17 +601,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.AppEngineRouting.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -788,7 +714,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.AppEngineRouting other) { host_ = other.host_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -803,17 +729,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.AppEngineRouting parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + service_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + instance_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + host_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.AppEngineRouting) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1493,7 +1457,18 @@ public AppEngineRouting parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AppEngineRouting(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Attempt.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Attempt.java index 95c7a78e..50d28417 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Attempt.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Attempt.java @@ -50,105 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Attempt( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); - } - scheduleTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (dispatchTime_ != null) { - subBuilder = dispatchTime_.toBuilder(); - } - dispatchTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dispatchTime_); - dispatchTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (responseTime_ != null) { - subBuilder = responseTime_.toBuilder(); - } - responseTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(responseTime_); - responseTime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.rpc.Status.Builder subBuilder = null; - if (responseStatus_ != null) { - subBuilder = responseStatus_.toBuilder(); - } - responseStatus_ = - input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(responseStatus_); - responseStatus_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.TaskProto .internal_static_google_cloud_tasks_v2_Attempt_descriptor; @@ -395,7 +296,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (responseStatus_ != null) { output.writeMessage(4, getResponseStatus()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -416,7 +317,7 @@ public int getSerializedSize() { if (responseStatus_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResponseStatus()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -447,7 +348,7 @@ public boolean equals(final java.lang.Object obj) { if (hasResponseStatus()) { if (!getResponseStatus().equals(other.getResponseStatus())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -474,7 +375,7 @@ public int hashCode() { hash = (37 * hash) + RESPONSE_STATUS_FIELD_NUMBER; hash = (53 * hash) + getResponseStatus().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -602,17 +503,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.Attempt.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -749,7 +643,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.Attempt other) { if (other.hasResponseStatus()) { mergeResponseStatus(other.getResponseStatus()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -764,17 +658,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.Attempt parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getDispatchTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getResponseTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getResponseStatusFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.Attempt) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1589,7 +1521,18 @@ public Attempt parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Attempt(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequest.java index 3e89e7dc..a53dab61 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequest.java @@ -52,67 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateQueueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - com.google.cloud.tasks.v2.Queue.Builder subBuilder = null; - if (queue_ != null) { - subBuilder = queue_.toBuilder(); - } - queue_ = - input.readMessage(com.google.cloud.tasks.v2.Queue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(queue_); - queue_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.CloudTasksProto .internal_static_google_cloud_tasks_v2_CreateQueueRequest_descriptor; @@ -258,7 +197,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (queue_ != null) { output.writeMessage(2, getQueue()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -273,7 +212,7 @@ public int getSerializedSize() { if (queue_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQueue()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -294,7 +233,7 @@ public boolean equals(final java.lang.Object obj) { if (hasQueue()) { if (!getQueue().equals(other.getQueue())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -311,7 +250,7 @@ public int hashCode() { hash = (37 * hash) + QUEUE_FIELD_NUMBER; hash = (53 * hash) + getQueue().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -440,17 +379,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.CreateQueueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -553,7 +485,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.CreateQueueRequest other) { if (other.hasQueue()) { mergeQueue(other.getQueue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -568,17 +500,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.CreateQueueRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getQueueFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.CreateQueueRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -947,7 +905,18 @@ public CreateQueueRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateQueueRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequest.java index 10c558c1..83ac22c1 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequest.java @@ -53,73 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateTaskRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - com.google.cloud.tasks.v2.Task.Builder subBuilder = null; - if (task_ != null) { - subBuilder = task_.toBuilder(); - } - task_ = input.readMessage(com.google.cloud.tasks.v2.Task.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(task_); - task_ = subBuilder.buildPartial(); - } - - break; - } - case 24: - { - int rawValue = input.readEnum(); - - responseView_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.CloudTasksProto .internal_static_google_cloud_tasks_v2_CreateTaskRequest_descriptor; @@ -396,7 +329,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(3, responseView_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -414,7 +347,7 @@ public int getSerializedSize() { if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, responseView_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -436,7 +369,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTask().equals(other.getTask())) return false; } if (responseView_ != other.responseView_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -455,7 +388,7 @@ public int hashCode() { } hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; hash = (53 * hash) + responseView_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -584,17 +517,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.CreateTaskRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -703,7 +629,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.CreateTaskRequest other) { if (other.responseView_ != 0) { setResponseViewValue(other.getResponseViewValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -718,17 +644,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.CreateTaskRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getTaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 24: + { + responseView_ = input.readEnum(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.CreateTaskRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1447,7 +1405,18 @@ public CreateTaskRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateTaskRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequest.java index 40511a70..fa90ab88 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteQueueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.CloudTasksProto .internal_static_google_cloud_tasks_v2_DeleteQueueRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.tasks.v2.DeleteQueueRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.DeleteQueueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -455,7 +402,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.DeleteQueueRequest other) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -470,17 +417,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.DeleteQueueRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.DeleteQueueRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -637,7 +604,18 @@ public DeleteQueueRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteQueueRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequest.java index a62eb1e2..7efd2848 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequest.java @@ -53,52 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteTaskRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.CloudTasksProto .internal_static_google_cloud_tasks_v2_DeleteTaskRequest_descriptor; @@ -186,7 +140,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -198,7 +152,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -215,7 +169,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.tasks.v2.DeleteTaskRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -228,7 +182,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -358,17 +312,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.DeleteTaskRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -457,7 +404,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.DeleteTaskRequest other) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -472,17 +419,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.DeleteTaskRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.DeleteTaskRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -639,7 +606,18 @@ public DeleteTaskRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteTaskRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequest.java index 2e4dccd2..aefa898b 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetQueueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.CloudTasksProto .internal_static_google_cloud_tasks_v2_GetQueueRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.tasks.v2.GetQueueRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.GetQueueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -455,7 +402,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.GetQueueRequest other) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -470,17 +417,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.GetQueueRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.GetQueueRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -637,7 +604,18 @@ public GetQueueRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetQueueRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequest.java index 7e12b47b..9f90a198 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequest.java @@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetTaskRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - responseView_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.CloudTasksProto .internal_static_google_cloud_tasks_v2_GetTaskRequest_descriptor; @@ -250,7 +197,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(2, responseView_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -265,7 +212,7 @@ public int getSerializedSize() { if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, responseView_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -282,7 +229,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (responseView_ != other.responseView_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -297,7 +244,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; hash = (53 * hash) + responseView_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -426,17 +373,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.GetTaskRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -531,7 +471,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.GetTaskRequest other) { if (other.responseView_ != 0) { setResponseViewValue(other.getResponseViewValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -546,17 +486,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.GetTaskRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + responseView_ = input.readEnum(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.GetTaskRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -849,7 +815,18 @@ public GetTaskRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTaskRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequest.java index 84b5b41e..c51bc8bd 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequest.java @@ -75,113 +75,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private HttpRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - url_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - httpMethod_ = rawValue; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = - com.google.protobuf.MapField.newMapField( - HeadersDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry headers__ = - input.readMessage( - HeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - headers_.getMutableMap().put(headers__.getKey(), headers__.getValue()); - break; - } - case 34: - { - body_ = input.readBytes(); - break; - } - case 42: - { - com.google.cloud.tasks.v2.OAuthToken.Builder subBuilder = null; - if (authorizationHeaderCase_ == 5) { - subBuilder = - ((com.google.cloud.tasks.v2.OAuthToken) authorizationHeader_).toBuilder(); - } - authorizationHeader_ = - input.readMessage( - com.google.cloud.tasks.v2.OAuthToken.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.tasks.v2.OAuthToken) authorizationHeader_); - authorizationHeader_ = subBuilder.buildPartial(); - } - authorizationHeaderCase_ = 5; - break; - } - case 50: - { - com.google.cloud.tasks.v2.OidcToken.Builder subBuilder = null; - if (authorizationHeaderCase_ == 6) { - subBuilder = - ((com.google.cloud.tasks.v2.OidcToken) authorizationHeader_).toBuilder(); - } - authorizationHeader_ = - input.readMessage( - com.google.cloud.tasks.v2.OidcToken.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.tasks.v2.OidcToken) authorizationHeader_); - authorizationHeader_ = subBuilder.buildPartial(); - } - authorizationHeaderCase_ = 6; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.TargetProto .internal_static_google_cloud_tasks_v2_HttpRequest_descriptor; @@ -717,7 +610,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (authorizationHeaderCase_ == 6) { output.writeMessage(6, (com.google.cloud.tasks.v2.OidcToken) authorizationHeader_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -755,7 +648,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.cloud.tasks.v2.OidcToken) authorizationHeader_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -785,7 +678,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -818,7 +711,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -987,17 +880,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.tasks.v2.HttpRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1010,6 +896,12 @@ public Builder clear() { internalGetMutableHeaders().clear(); body_ = com.google.protobuf.ByteString.EMPTY; + if (oauthTokenBuilder_ != null) { + oauthTokenBuilder_.clear(); + } + if (oidcTokenBuilder_ != null) { + oidcTokenBuilder_.clear(); + } authorizationHeaderCase_ = 0; authorizationHeader_ = null; return this; @@ -1136,7 +1028,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.HttpRequest other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1151,17 +1043,72 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.HttpRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + url_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + httpMethod_ = input.readEnum(); + + break; + } // case 16 + case 26: + { + com.google.protobuf.MapEntry headers__ = + input.readMessage( + HeadersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableHeaders() + .getMutableMap() + .put(headers__.getKey(), headers__.getValue()); + break; + } // case 26 + case 34: + { + body_ = input.readBytes(); + + break; + } // case 34 + case 42: + { + input.readMessage(getOauthTokenFieldBuilder().getBuilder(), extensionRegistry); + authorizationHeaderCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getOidcTokenFieldBuilder().getBuilder(), extensionRegistry); + authorizationHeaderCase_ = 6; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.HttpRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2319,7 +2266,18 @@ public HttpRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new HttpRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequest.java index 9855ecb3..d7d26bba 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequest.java @@ -54,71 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListQueuesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.CloudTasksProto .internal_static_google_cloud_tasks_v2_ListQueuesRequest_descriptor; @@ -364,7 +299,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -385,7 +320,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -405,7 +340,7 @@ public boolean equals(final java.lang.Object obj) { if (!getFilter().equals(other.getFilter())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -424,7 +359,7 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -553,17 +488,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.ListQueuesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -672,7 +600,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.ListQueuesRequest other) { pageToken_ = other.pageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -687,17 +615,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.ListQueuesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.ListQueuesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1203,7 +1169,18 @@ public ListQueuesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListQueuesRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponse.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponse.java index 7adf33da..0d9fbf0a 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponse.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponse.java @@ -53,66 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListQueuesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - queues_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - queues_.add( - input.readMessage(com.google.cloud.tasks.v2.Queue.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - queues_ = java.util.Collections.unmodifiableList(queues_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.CloudTasksProto .internal_static_google_cloud_tasks_v2_ListQueuesResponse_descriptor; @@ -276,7 +216,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -291,7 +231,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -309,7 +249,7 @@ public boolean equals(final java.lang.Object obj) { if (!getQueuesList().equals(other.getQueuesList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -326,7 +266,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -455,19 +395,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.ListQueuesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getQueuesFieldBuilder(); - } } @java.lang.Override @@ -475,10 +406,11 @@ public Builder clear() { super.clear(); if (queuesBuilder_ == null) { queues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + queues_ = null; queuesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -599,7 +531,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.ListQueuesResponse other) { nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -614,17 +546,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.ListQueuesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.tasks.v2.Queue m = + input.readMessage(com.google.cloud.tasks.v2.Queue.parser(), extensionRegistry); + if (queuesBuilder_ == null) { + ensureQueuesIsMutable(); + queues_.add(m); + } else { + queuesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.ListQueuesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1139,7 +1103,18 @@ public ListQueuesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListQueuesResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequest.java index 595074bb..b7d6f21b 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequest.java @@ -54,71 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListTasksRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - responseView_ = rawValue; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.CloudTasksProto .internal_static_google_cloud_tasks_v2_ListTasksRequest_descriptor; @@ -353,7 +288,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -374,7 +309,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -394,7 +329,7 @@ public boolean equals(final java.lang.Object obj) { if (responseView_ != other.responseView_) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -413,7 +348,7 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -542,17 +477,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.ListTasksRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -660,7 +588,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.ListTasksRequest other) { pageToken_ = other.pageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -675,17 +603,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.ListTasksRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + responseView_ = input.readEnum(); + + break; + } // case 16 + case 24: + { + pageSize_ = input.readInt32(); + + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.ListTasksRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1181,7 +1147,18 @@ public ListTasksRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTasksRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponse.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponse.java index 8bcc41f0..17551c01 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponse.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponse.java @@ -53,66 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListTasksResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - tasks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - tasks_.add( - input.readMessage(com.google.cloud.tasks.v2.Task.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.CloudTasksProto .internal_static_google_cloud_tasks_v2_ListTasksResponse_descriptor; @@ -273,7 +213,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -288,7 +228,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -306,7 +246,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTasksList().equals(other.getTasksList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -323,7 +263,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -452,19 +392,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.ListTasksResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getTasksFieldBuilder(); - } } @java.lang.Override @@ -472,10 +403,11 @@ public Builder clear() { super.clear(); if (tasksBuilder_ == null) { tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + tasks_ = null; tasksBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -596,7 +528,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.ListTasksResponse other) { nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -611,17 +543,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.ListTasksResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.tasks.v2.Task m = + input.readMessage(com.google.cloud.tasks.v2.Task.parser(), extensionRegistry); + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(m); + } else { + tasksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.ListTasksResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1130,7 +1094,18 @@ public ListTasksResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTasksResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthToken.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthToken.java index 1d13e2be..768be6ba 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthToken.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthToken.java @@ -56,59 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private OAuthToken( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - serviceAccountEmail_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - scope_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.TargetProto .internal_static_google_cloud_tasks_v2_OAuthToken_descriptor; @@ -254,7 +201,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scope_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -269,7 +216,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scope_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -286,7 +233,7 @@ public boolean equals(final java.lang.Object obj) { if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; if (!getScope().equals(other.getScope())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -301,7 +248,7 @@ public int hashCode() { hash = (53 * hash) + getServiceAccountEmail().hashCode(); hash = (37 * hash) + SCOPE_FIELD_NUMBER; hash = (53 * hash) + getScope().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -432,17 +379,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.OAuthToken.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -537,7 +477,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.OAuthToken other) { scope_ = other.scope_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -552,17 +492,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.OAuthToken parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + serviceAccountEmail_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + scope_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.OAuthToken) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -840,7 +806,18 @@ public OAuthToken parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new OAuthToken(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcToken.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcToken.java index 982de06e..b63bbe6c 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcToken.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcToken.java @@ -58,59 +58,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private OidcToken( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - serviceAccountEmail_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - audience_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.TargetProto .internal_static_google_cloud_tasks_v2_OidcToken_descriptor; @@ -254,7 +201,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audience_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -269,7 +216,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, audience_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -286,7 +233,7 @@ public boolean equals(final java.lang.Object obj) { if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; if (!getAudience().equals(other.getAudience())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -301,7 +248,7 @@ public int hashCode() { hash = (53 * hash) + getServiceAccountEmail().hashCode(); hash = (37 * hash) + AUDIENCE_FIELD_NUMBER; hash = (53 * hash) + getAudience().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -434,17 +381,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.OidcToken.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -539,7 +479,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.OidcToken other) { audience_ = other.audience_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -554,17 +494,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.OidcToken parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + serviceAccountEmail_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + audience_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.OidcToken) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -837,7 +803,18 @@ public OidcToken parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new OidcToken(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequest.java index 756d588f..e593e80d 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private PauseQueueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.CloudTasksProto .internal_static_google_cloud_tasks_v2_PauseQueueRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.tasks.v2.PauseQueueRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.PauseQueueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -455,7 +402,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.PauseQueueRequest other) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -470,17 +417,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.PauseQueueRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.PauseQueueRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -637,7 +604,18 @@ public PauseQueueRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PauseQueueRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequest.java index ec7b1df4..e902c8e2 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private PurgeQueueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.CloudTasksProto .internal_static_google_cloud_tasks_v2_PurgeQueueRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.tasks.v2.PurgeQueueRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.PurgeQueueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -455,7 +402,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.PurgeQueueRequest other) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -470,17 +417,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.PurgeQueueRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.PurgeQueueRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -637,7 +604,18 @@ public PurgeQueueRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PurgeQueueRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Queue.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Queue.java index 7bbe29d9..5442d3ad 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Queue.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Queue.java @@ -55,139 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Queue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.cloud.tasks.v2.AppEngineRouting.Builder subBuilder = null; - if (appEngineRoutingOverride_ != null) { - subBuilder = appEngineRoutingOverride_.toBuilder(); - } - appEngineRoutingOverride_ = - input.readMessage( - com.google.cloud.tasks.v2.AppEngineRouting.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(appEngineRoutingOverride_); - appEngineRoutingOverride_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.cloud.tasks.v2.RateLimits.Builder subBuilder = null; - if (rateLimits_ != null) { - subBuilder = rateLimits_.toBuilder(); - } - rateLimits_ = - input.readMessage( - com.google.cloud.tasks.v2.RateLimits.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rateLimits_); - rateLimits_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.cloud.tasks.v2.RetryConfig.Builder subBuilder = null; - if (retryConfig_ != null) { - subBuilder = retryConfig_.toBuilder(); - } - retryConfig_ = - input.readMessage( - com.google.cloud.tasks.v2.RetryConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(retryConfig_); - retryConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 40: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 50: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (purgeTime_ != null) { - subBuilder = purgeTime_.toBuilder(); - } - purgeTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(purgeTime_); - purgeTime_ = subBuilder.buildPartial(); - } - - break; - } - case 74: - { - com.google.cloud.tasks.v2.StackdriverLoggingConfig.Builder subBuilder = null; - if (stackdriverLoggingConfig_ != null) { - subBuilder = stackdriverLoggingConfig_.toBuilder(); - } - stackdriverLoggingConfig_ = - input.readMessage( - com.google.cloud.tasks.v2.StackdriverLoggingConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stackdriverLoggingConfig_); - stackdriverLoggingConfig_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.QueueProto .internal_static_google_cloud_tasks_v2_Queue_descriptor; @@ -949,7 +816,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (stackdriverLoggingConfig_ != null) { output.writeMessage(9, getStackdriverLoggingConfig()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -983,7 +850,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 9, getStackdriverLoggingConfig()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1020,7 +887,7 @@ public boolean equals(final java.lang.Object obj) { if (hasStackdriverLoggingConfig()) { if (!getStackdriverLoggingConfig().equals(other.getStackdriverLoggingConfig())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1055,7 +922,7 @@ public int hashCode() { hash = (37 * hash) + STACKDRIVER_LOGGING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getStackdriverLoggingConfig().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1184,17 +1051,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.Queue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1358,7 +1218,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.Queue other) { if (other.hasStackdriverLoggingConfig()) { mergeStackdriverLoggingConfig(other.getStackdriverLoggingConfig()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1373,17 +1233,75 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.Queue parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage( + getAppEngineRoutingOverrideFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getRateLimitsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getRetryConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 40: + { + state_ = input.readEnum(); + + break; + } // case 40 + case 50: + { + input.readMessage(getPurgeTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 74: + { + input.readMessage( + getStackdriverLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.Queue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3039,7 +2957,18 @@ public Queue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Queue(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RateLimits.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RateLimits.java index ecc9472c..fe6fd530 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RateLimits.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RateLimits.java @@ -54,60 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RateLimits( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 9: - { - maxDispatchesPerSecond_ = input.readDouble(); - break; - } - case 16: - { - maxBurstSize_ = input.readInt32(); - break; - } - case 24: - { - maxConcurrentDispatches_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.QueueProto .internal_static_google_cloud_tasks_v2_RateLimits_descriptor; @@ -242,7 +188,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxConcurrentDispatches_ != 0) { output.writeInt32(3, maxConcurrentDispatches_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -260,7 +206,7 @@ public int getSerializedSize() { if (maxConcurrentDispatches_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxConcurrentDispatches_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -279,7 +225,7 @@ public boolean equals(final java.lang.Object obj) { != java.lang.Double.doubleToLongBits(other.getMaxDispatchesPerSecond())) return false; if (getMaxBurstSize() != other.getMaxBurstSize()) return false; if (getMaxConcurrentDispatches() != other.getMaxConcurrentDispatches()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -299,7 +245,7 @@ public int hashCode() { hash = (53 * hash) + getMaxBurstSize(); hash = (37 * hash) + MAX_CONCURRENT_DISPATCHES_FIELD_NUMBER; hash = (53 * hash) + getMaxConcurrentDispatches(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -431,17 +377,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.RateLimits.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -540,7 +479,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.RateLimits other) { if (other.getMaxConcurrentDispatches() != 0) { setMaxConcurrentDispatches(other.getMaxConcurrentDispatches()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -555,17 +494,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.RateLimits parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + maxDispatchesPerSecond_ = input.readDouble(); + + break; + } // case 9 + case 16: + { + maxBurstSize_ = input.readInt32(); + + break; + } // case 16 + case 24: + { + maxConcurrentDispatches_ = input.readInt32(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.RateLimits) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -883,7 +854,18 @@ public RateLimits parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RateLimits(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequest.java index 619044c3..aef02304 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ResumeQueueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.CloudTasksProto .internal_static_google_cloud_tasks_v2_ResumeQueueRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.tasks.v2.ResumeQueueRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.ResumeQueueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -455,7 +402,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.ResumeQueueRequest other) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -470,17 +417,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.ResumeQueueRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.ResumeQueueRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -637,7 +604,18 @@ public ResumeQueueRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ResumeQueueRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RetryConfig.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RetryConfig.java index 27cfb35c..ae3f5693 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RetryConfig.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RetryConfig.java @@ -51,100 +51,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RetryConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - maxAttempts_ = input.readInt32(); - break; - } - case 18: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (maxRetryDuration_ != null) { - subBuilder = maxRetryDuration_.toBuilder(); - } - maxRetryDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxRetryDuration_); - maxRetryDuration_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (minBackoff_ != null) { - subBuilder = minBackoff_.toBuilder(); - } - minBackoff_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(minBackoff_); - minBackoff_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (maxBackoff_ != null) { - subBuilder = maxBackoff_.toBuilder(); - } - maxBackoff_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxBackoff_); - maxBackoff_ = subBuilder.buildPartial(); - } - - break; - } - case 40: - { - maxDoublings_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.QueueProto .internal_static_google_cloud_tasks_v2_RetryConfig_descriptor; @@ -490,7 +396,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxDoublings_ != 0) { output.writeInt32(5, maxDoublings_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -514,7 +420,7 @@ public int getSerializedSize() { if (maxDoublings_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxDoublings_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -543,7 +449,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMaxBackoff().equals(other.getMaxBackoff())) return false; } if (getMaxDoublings() != other.getMaxDoublings()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -570,7 +476,7 @@ public int hashCode() { } hash = (37 * hash) + MAX_DOUBLINGS_FIELD_NUMBER; hash = (53 * hash) + getMaxDoublings(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -699,17 +605,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.RetryConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -845,7 +744,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.RetryConfig other) { if (other.getMaxDoublings() != 0) { setMaxDoublings(other.getMaxDoublings()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -860,17 +759,62 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.RetryConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + maxAttempts_ = input.readInt32(); + + break; + } // case 8 + case 18: + { + input.readMessage( + getMaxRetryDurationFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getMinBackoffFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getMaxBackoffFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 40: + { + maxDoublings_ = input.readInt32(); + + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.RetryConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1936,7 +1880,18 @@ public RetryConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RetryConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequest.java index 27d0ddda..ce5175e6 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequest.java @@ -54,59 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RunTaskRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - responseView_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.CloudTasksProto .internal_static_google_cloud_tasks_v2_RunTaskRequest_descriptor; @@ -251,7 +198,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(2, responseView_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -266,7 +213,7 @@ public int getSerializedSize() { if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, responseView_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -283,7 +230,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (responseView_ != other.responseView_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -298,7 +245,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; hash = (53 * hash) + responseView_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -428,17 +375,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.RunTaskRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -533,7 +473,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.RunTaskRequest other) { if (other.responseView_ != 0) { setResponseViewValue(other.getResponseViewValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -548,17 +488,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.RunTaskRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + responseView_ = input.readEnum(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.RunTaskRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -851,7 +817,18 @@ public RunTaskRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RunTaskRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/StackdriverLoggingConfig.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/StackdriverLoggingConfig.java index 112d7577..79f375ea 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/StackdriverLoggingConfig.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/StackdriverLoggingConfig.java @@ -51,50 +51,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private StackdriverLoggingConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 9: - { - samplingRatio_ = input.readDouble(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.QueueProto .internal_static_google_cloud_tasks_v2_StackdriverLoggingConfig_descriptor; @@ -148,7 +104,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (java.lang.Double.doubleToRawLongBits(samplingRatio_) != 0) { output.writeDouble(1, samplingRatio_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -160,7 +116,7 @@ public int getSerializedSize() { if (java.lang.Double.doubleToRawLongBits(samplingRatio_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, samplingRatio_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -178,7 +134,7 @@ public boolean equals(final java.lang.Object obj) { if (java.lang.Double.doubleToLongBits(getSamplingRatio()) != java.lang.Double.doubleToLongBits(other.getSamplingRatio())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -194,7 +150,7 @@ public int hashCode() { (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getSamplingRatio())); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -324,17 +280,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.StackdriverLoggingConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -423,7 +372,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.StackdriverLoggingConfig othe if (other.getSamplingRatio() != 0D) { setSamplingRatio(other.getSamplingRatio()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -438,18 +387,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.StackdriverLoggingConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + samplingRatio_ = input.readDouble(); + + break; + } // case 9 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.tasks.v2.StackdriverLoggingConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -546,7 +514,18 @@ public StackdriverLoggingConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StackdriverLoggingConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Task.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Task.java index 62fb0dd0..0ea5a5a4 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Task.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Task.java @@ -53,177 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Task( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.cloud.tasks.v2.AppEngineHttpRequest.Builder subBuilder = null; - if (messageTypeCase_ == 2) { - subBuilder = - ((com.google.cloud.tasks.v2.AppEngineHttpRequest) messageType_).toBuilder(); - } - messageType_ = - input.readMessage( - com.google.cloud.tasks.v2.AppEngineHttpRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.tasks.v2.AppEngineHttpRequest) messageType_); - messageType_ = subBuilder.buildPartial(); - } - messageTypeCase_ = 2; - break; - } - case 26: - { - com.google.cloud.tasks.v2.HttpRequest.Builder subBuilder = null; - if (messageTypeCase_ == 3) { - subBuilder = ((com.google.cloud.tasks.v2.HttpRequest) messageType_).toBuilder(); - } - messageType_ = - input.readMessage( - com.google.cloud.tasks.v2.HttpRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.tasks.v2.HttpRequest) messageType_); - messageType_ = subBuilder.buildPartial(); - } - messageTypeCase_ = 3; - break; - } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); - } - scheduleTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (dispatchDeadline_ != null) { - subBuilder = dispatchDeadline_.toBuilder(); - } - dispatchDeadline_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dispatchDeadline_); - dispatchDeadline_ = subBuilder.buildPartial(); - } - - break; - } - case 56: - { - dispatchCount_ = input.readInt32(); - break; - } - case 64: - { - responseCount_ = input.readInt32(); - break; - } - case 74: - { - com.google.cloud.tasks.v2.Attempt.Builder subBuilder = null; - if (firstAttempt_ != null) { - subBuilder = firstAttempt_.toBuilder(); - } - firstAttempt_ = - input.readMessage(com.google.cloud.tasks.v2.Attempt.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(firstAttempt_); - firstAttempt_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - com.google.cloud.tasks.v2.Attempt.Builder subBuilder = null; - if (lastAttempt_ != null) { - subBuilder = lastAttempt_.toBuilder(); - } - lastAttempt_ = - input.readMessage(com.google.cloud.tasks.v2.Attempt.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastAttempt_); - lastAttempt_ = subBuilder.buildPartial(); - } - - break; - } - case 88: - { - int rawValue = input.readEnum(); - - view_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.TaskProto .internal_static_google_cloud_tasks_v2_Task_descriptor; @@ -1102,7 +931,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (view_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(11, view_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1148,7 +977,7 @@ public int getSerializedSize() { if (view_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, view_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1198,7 +1027,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1249,7 +1078,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1376,17 +1205,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.Task.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1394,6 +1216,12 @@ public Builder clear() { super.clear(); name_ = ""; + if (appEngineHttpRequestBuilder_ != null) { + appEngineHttpRequestBuilder_.clear(); + } + if (httpRequestBuilder_ != null) { + httpRequestBuilder_.clear(); + } if (scheduleTimeBuilder_ == null) { scheduleTime_ = null; } else { @@ -1595,7 +1423,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.Task other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1610,17 +1438,99 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.Task parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage( + getAppEngineHttpRequestFieldBuilder().getBuilder(), extensionRegistry); + messageTypeCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getHttpRequestFieldBuilder().getBuilder(), extensionRegistry); + messageTypeCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + input.readMessage( + getDispatchDeadlineFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 56: + { + dispatchCount_ = input.readInt32(); + + break; + } // case 56 + case 64: + { + responseCount_ = input.readInt32(); + + break; + } // case 64 + case 74: + { + input.readMessage(getFirstAttemptFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 82: + { + input.readMessage(getLastAttemptFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + case 88: + { + view_ = input.readEnum(); + + break; + } // case 88 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.Task) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3685,7 +3595,18 @@ public Task parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Task(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/UpdateQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/UpdateQueueRequest.java index efa8f447..33c74f9a 100644 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/UpdateQueueRequest.java +++ b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/UpdateQueueRequest.java @@ -50,75 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpdateQueueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.tasks.v2.Queue.Builder subBuilder = null; - if (queue_ != null) { - subBuilder = queue_.toBuilder(); - } - queue_ = - input.readMessage(com.google.cloud.tasks.v2.Queue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(queue_); - queue_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2.CloudTasksProto .internal_static_google_cloud_tasks_v2_UpdateQueueRequest_descriptor; @@ -261,7 +192,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -276,7 +207,7 @@ public int getSerializedSize() { if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -300,7 +231,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateMask()) { if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -319,7 +250,7 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -448,17 +379,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2.UpdateQueueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -568,7 +492,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2.UpdateQueueRequest other) { if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -583,17 +507,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2.UpdateQueueRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getQueueFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2.UpdateQueueRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1045,7 +995,18 @@ public UpdateQueueRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateQueueRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequest.java index ea776bea..b406754a 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequest.java @@ -53,67 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AcknowledgeTaskRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); - } - scheduleTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.CloudTasksProto .internal_static_google_cloud_tasks_v2beta2_AcknowledgeTaskRequest_descriptor; @@ -267,7 +206,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (scheduleTime_ != null) { output.writeMessage(2, getScheduleTime()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -282,7 +221,7 @@ public int getSerializedSize() { if (scheduleTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScheduleTime()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -303,7 +242,7 @@ public boolean equals(final java.lang.Object obj) { if (hasScheduleTime()) { if (!getScheduleTime().equals(other.getScheduleTime())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -320,7 +259,7 @@ public int hashCode() { hash = (37 * hash) + SCHEDULE_TIME_FIELD_NUMBER; hash = (53 * hash) + getScheduleTime().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -451,17 +390,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -565,7 +497,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest o if (other.hasScheduleTime()) { mergeScheduleTime(other.getScheduleTime()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -580,18 +512,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -978,7 +935,18 @@ public AcknowledgeTaskRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AcknowledgeTaskRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequest.java index bda8fe19..7855dea5 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequest.java @@ -105,95 +105,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AppEngineHttpRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - httpMethod_ = rawValue; - break; - } - case 18: - { - com.google.cloud.tasks.v2beta2.AppEngineRouting.Builder subBuilder = null; - if (appEngineRouting_ != null) { - subBuilder = appEngineRouting_.toBuilder(); - } - appEngineRouting_ = - input.readMessage( - com.google.cloud.tasks.v2beta2.AppEngineRouting.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(appEngineRouting_); - appEngineRouting_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - relativeUrl_ = s; - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = - com.google.protobuf.MapField.newMapField( - HeadersDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry headers__ = - input.readMessage( - HeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - headers_.getMutableMap().put(headers__.getKey(), headers__.getValue()); - break; - } - case 42: - { - payload_ = input.readBytes(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.TargetProto .internal_static_google_cloud_tasks_v2beta2_AppEngineHttpRequest_descriptor; @@ -662,7 +573,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!payload_.isEmpty()) { output.writeBytes(5, payload_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -694,7 +605,7 @@ public int getSerializedSize() { if (!payload_.isEmpty()) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, payload_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -718,7 +629,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRelativeUrl().equals(other.getRelativeUrl())) return false; if (!internalGetHeaders().equals(other.internalGetHeaders())) return false; if (!getPayload().equals(other.getPayload())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -743,7 +654,7 @@ public int hashCode() { } hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -943,17 +854,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1074,7 +978,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.AppEngineHttpRequest oth if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { setPayload(other.getPayload()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1089,18 +993,67 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.AppEngineHttpRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + httpMethod_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + input.readMessage( + getAppEngineRoutingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + relativeUrl_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry headers__ = + input.readMessage( + HeadersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableHeaders() + .getMutableMap() + .put(headers__.getKey(), headers__.getValue()); + break; + } // case 34 + case 42: + { + payload_ = input.readBytes(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.tasks.v2beta2.AppEngineHttpRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2056,7 +2009,18 @@ public AppEngineHttpRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AppEngineHttpRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpTarget.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpTarget.java index 3633a62d..770cc7cb 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpTarget.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpTarget.java @@ -59,61 +59,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AppEngineHttpTarget( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.tasks.v2beta2.AppEngineRouting.Builder subBuilder = null; - if (appEngineRoutingOverride_ != null) { - subBuilder = appEngineRoutingOverride_.toBuilder(); - } - appEngineRoutingOverride_ = - input.readMessage( - com.google.cloud.tasks.v2beta2.AppEngineRouting.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(appEngineRoutingOverride_); - appEngineRoutingOverride_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.TargetProto .internal_static_google_cloud_tasks_v2beta2_AppEngineHttpTarget_descriptor; @@ -207,7 +152,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (appEngineRoutingOverride_ != null) { output.writeMessage(1, getAppEngineRoutingOverride()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -221,7 +166,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, getAppEngineRoutingOverride()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -241,7 +186,7 @@ public boolean equals(final java.lang.Object obj) { if (hasAppEngineRoutingOverride()) { if (!getAppEngineRoutingOverride().equals(other.getAppEngineRoutingOverride())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -256,7 +201,7 @@ public int hashCode() { hash = (37 * hash) + APP_ENGINE_ROUTING_OVERRIDE_FIELD_NUMBER; hash = (53 * hash) + getAppEngineRoutingOverride().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -394,17 +339,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -501,7 +439,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.AppEngineHttpTarget othe if (other.hasAppEngineRoutingOverride()) { mergeAppEngineRoutingOverride(other.getAppEngineRoutingOverride()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -516,18 +454,38 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.AppEngineHttpTarget parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getAppEngineRoutingOverrideFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.tasks.v2beta2.AppEngineHttpTarget) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -789,7 +747,18 @@ public AppEngineHttpTarget parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AppEngineHttpTarget(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRouting.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRouting.java index ad2acdb0..e7392c84 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRouting.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRouting.java @@ -66,73 +66,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AppEngineRouting( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - service_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - instance_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - host_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.TargetProto .internal_static_google_cloud_tasks_v2beta2_AppEngineRouting_descriptor; @@ -530,7 +463,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, host_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -551,7 +484,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, host_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -571,7 +504,7 @@ public boolean equals(final java.lang.Object obj) { if (!getVersion().equals(other.getVersion())) return false; if (!getInstance().equals(other.getInstance())) return false; if (!getHost().equals(other.getHost())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -590,7 +523,7 @@ public int hashCode() { hash = (53 * hash) + getInstance().hashCode(); hash = (37 * hash) + HOST_FIELD_NUMBER; hash = (53 * hash) + getHost().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -730,17 +663,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.AppEngineRouting.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -851,7 +777,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.AppEngineRouting other) host_ = other.host_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -866,17 +792,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.AppEngineRouting parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + service_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + instance_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + host_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.AppEngineRouting) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1736,7 +1700,18 @@ public AppEngineRouting parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AppEngineRouting(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AttemptStatus.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AttemptStatus.java index 28cd82db..4d2e3e6c 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AttemptStatus.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AttemptStatus.java @@ -50,105 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AttemptStatus( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); - } - scheduleTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (dispatchTime_ != null) { - subBuilder = dispatchTime_.toBuilder(); - } - dispatchTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dispatchTime_); - dispatchTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (responseTime_ != null) { - subBuilder = responseTime_.toBuilder(); - } - responseTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(responseTime_); - responseTime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.rpc.Status.Builder subBuilder = null; - if (responseStatus_ != null) { - subBuilder = responseStatus_.toBuilder(); - } - responseStatus_ = - input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(responseStatus_); - responseStatus_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.TaskProto .internal_static_google_cloud_tasks_v2beta2_AttemptStatus_descriptor; @@ -395,7 +296,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (responseStatus_ != null) { output.writeMessage(4, getResponseStatus()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -416,7 +317,7 @@ public int getSerializedSize() { if (responseStatus_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResponseStatus()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -448,7 +349,7 @@ public boolean equals(final java.lang.Object obj) { if (hasResponseStatus()) { if (!getResponseStatus().equals(other.getResponseStatus())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -475,7 +376,7 @@ public int hashCode() { hash = (37 * hash) + RESPONSE_STATUS_FIELD_NUMBER; hash = (53 * hash) + getResponseStatus().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -604,17 +505,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.AttemptStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -752,7 +646,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.AttemptStatus other) { if (other.hasResponseStatus()) { mergeResponseStatus(other.getResponseStatus()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -767,17 +661,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.AttemptStatus parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getDispatchTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getResponseTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getResponseStatusFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.AttemptStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1592,7 +1524,18 @@ public AttemptStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AttemptStatus(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequest.java index 4f0d227b..1735f6e2 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequest.java @@ -54,74 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CancelLeaseRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); - } - scheduleTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); - } - - break; - } - case 24: - { - int rawValue = input.readEnum(); - - responseView_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.CloudTasksProto .internal_static_google_cloud_tasks_v2beta2_CancelLeaseRequest_descriptor; @@ -332,7 +264,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(3, responseView_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -350,7 +282,7 @@ public int getSerializedSize() { if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, responseView_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -372,7 +304,7 @@ public boolean equals(final java.lang.Object obj) { if (!getScheduleTime().equals(other.getScheduleTime())) return false; } if (responseView_ != other.responseView_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -391,7 +323,7 @@ public int hashCode() { } hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; hash = (53 * hash) + responseView_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -521,17 +453,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.CancelLeaseRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -641,7 +566,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.CancelLeaseRequest other if (other.responseView_ != 0) { setResponseViewValue(other.getResponseViewValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -656,18 +581,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.CancelLeaseRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 24: + { + responseView_ = input.readEnum(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.tasks.v2beta2.CancelLeaseRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1190,7 +1146,18 @@ public CancelLeaseRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CancelLeaseRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequest.java index 2fff1143..f17052b1 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequest.java @@ -52,68 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateQueueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - com.google.cloud.tasks.v2beta2.Queue.Builder subBuilder = null; - if (queue_ != null) { - subBuilder = queue_.toBuilder(); - } - queue_ = - input.readMessage( - com.google.cloud.tasks.v2beta2.Queue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(queue_); - queue_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.CloudTasksProto .internal_static_google_cloud_tasks_v2beta2_CreateQueueRequest_descriptor; @@ -262,7 +200,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (queue_ != null) { output.writeMessage(2, getQueue()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -277,7 +215,7 @@ public int getSerializedSize() { if (queue_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQueue()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -298,7 +236,7 @@ public boolean equals(final java.lang.Object obj) { if (hasQueue()) { if (!getQueue().equals(other.getQueue())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -315,7 +253,7 @@ public int hashCode() { hash = (37 * hash) + QUEUE_FIELD_NUMBER; hash = (53 * hash) + getQueue().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -444,17 +382,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.CreateQueueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -558,7 +489,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.CreateQueueRequest other if (other.hasQueue()) { mergeQueue(other.getQueue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -573,18 +504,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.CreateQueueRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getQueueFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.tasks.v2beta2.CreateQueueRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -955,7 +911,18 @@ public CreateQueueRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateQueueRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequest.java index 5b08ffe3..3e284482 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequest.java @@ -53,75 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateTaskRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - com.google.cloud.tasks.v2beta2.Task.Builder subBuilder = null; - if (task_ != null) { - subBuilder = task_.toBuilder(); - } - task_ = - input.readMessage( - com.google.cloud.tasks.v2beta2.Task.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(task_); - task_ = subBuilder.buildPartial(); - } - - break; - } - case 24: - { - int rawValue = input.readEnum(); - - responseView_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.CloudTasksProto .internal_static_google_cloud_tasks_v2beta2_CreateTaskRequest_descriptor; @@ -401,7 +332,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(3, responseView_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -419,7 +350,7 @@ public int getSerializedSize() { if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, responseView_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -441,7 +372,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTask().equals(other.getTask())) return false; } if (responseView_ != other.responseView_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -460,7 +391,7 @@ public int hashCode() { } hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; hash = (53 * hash) + responseView_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -589,17 +520,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.CreateTaskRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -709,7 +633,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.CreateTaskRequest other) if (other.responseView_ != 0) { setResponseViewValue(other.getResponseViewValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -724,17 +648,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.CreateTaskRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getTaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 24: + { + responseView_ = input.readEnum(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.CreateTaskRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1463,7 +1419,18 @@ public CreateTaskRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateTaskRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequest.java index be30b05b..e0ce6a86 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteQueueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.CloudTasksProto .internal_static_google_cloud_tasks_v2beta2_DeleteQueueRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.tasks.v2beta2.DeleteQueueRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.DeleteQueueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -456,7 +403,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.DeleteQueueRequest other name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -471,18 +418,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.DeleteQueueRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.tasks.v2beta2.DeleteQueueRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -639,7 +605,18 @@ public DeleteQueueRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteQueueRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequest.java index d8cdf272..dfc9f8fd 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequest.java @@ -53,52 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteTaskRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.CloudTasksProto .internal_static_google_cloud_tasks_v2beta2_DeleteTaskRequest_descriptor; @@ -186,7 +140,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -198,7 +152,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -215,7 +169,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.tasks.v2beta2.DeleteTaskRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -228,7 +182,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -358,17 +312,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.DeleteTaskRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -458,7 +405,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.DeleteTaskRequest other) name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -473,17 +420,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.DeleteTaskRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.DeleteTaskRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -640,7 +607,18 @@ public DeleteTaskRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteTaskRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequest.java index 098da970..304e10c7 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequest.java @@ -52,67 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetQueueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (readMask_ != null) { - subBuilder = readMask_.toBuilder(); - } - readMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readMask_); - readMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.CloudTasksProto .internal_static_google_cloud_tasks_v2beta2_GetQueueRequest_descriptor; @@ -261,7 +200,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (readMask_ != null) { output.writeMessage(2, getReadMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -276,7 +215,7 @@ public int getSerializedSize() { if (readMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -297,7 +236,7 @@ public boolean equals(final java.lang.Object obj) { if (hasReadMask()) { if (!getReadMask().equals(other.getReadMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -314,7 +253,7 @@ public int hashCode() { hash = (37 * hash) + READ_MASK_FIELD_NUMBER; hash = (53 * hash) + getReadMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -443,17 +382,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.GetQueueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -556,7 +488,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.GetQueueRequest other) { if (other.hasReadMask()) { mergeReadMask(other.getReadMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -571,17 +503,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.GetQueueRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.GetQueueRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -953,7 +911,18 @@ public GetQueueRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetQueueRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequest.java index 555bd07a..f066d064 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequest.java @@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetTaskRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - responseView_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.CloudTasksProto .internal_static_google_cloud_tasks_v2beta2_GetTaskRequest_descriptor; @@ -250,7 +197,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(2, responseView_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -265,7 +212,7 @@ public int getSerializedSize() { if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, responseView_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -283,7 +230,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (responseView_ != other.responseView_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -298,7 +245,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; hash = (53 * hash) + responseView_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -427,17 +374,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.GetTaskRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -532,7 +472,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.GetTaskRequest other) { if (other.responseView_ != 0) { setResponseViewValue(other.getResponseViewValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -547,17 +487,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.GetTaskRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + responseView_ = input.readEnum(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.GetTaskRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -850,7 +816,18 @@ public GetTaskRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTaskRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequest.java index baf42571..4800eb16 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequest.java @@ -54,86 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private LeaseTasksRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - maxTasks_ = input.readInt32(); - break; - } - case 26: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (leaseDuration_ != null) { - subBuilder = leaseDuration_.toBuilder(); - } - leaseDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(leaseDuration_); - leaseDuration_ = subBuilder.buildPartial(); - } - - break; - } - case 32: - { - int rawValue = input.readEnum(); - - responseView_ = rawValue; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.CloudTasksProto .internal_static_google_cloud_tasks_v2beta2_LeaseTasksRequest_descriptor; @@ -493,7 +413,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -517,7 +437,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -541,7 +461,7 @@ public boolean equals(final java.lang.Object obj) { } if (responseView_ != other.responseView_) return false; if (!getFilter().equals(other.getFilter())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -564,7 +484,7 @@ public int hashCode() { hash = (53 * hash) + responseView_; hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -693,17 +613,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.LeaseTasksRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -826,7 +739,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.LeaseTasksRequest other) filter_ = other.filter_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -841,17 +754,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.LeaseTasksRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + maxTasks_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + input.readMessage(getLeaseDurationFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 32: + { + responseView_ = input.readEnum(); + + break; + } // case 32 + case 42: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.LeaseTasksRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1740,7 +1697,18 @@ public LeaseTasksRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new LeaseTasksRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksResponse.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksResponse.java index db622add..b70c2331 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksResponse.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksResponse.java @@ -52,60 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private LeaseTasksResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - tasks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - tasks_.add( - input.readMessage( - com.google.cloud.tasks.v2beta2.Task.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.CloudTasksProto .internal_static_google_cloud_tasks_v2beta2_LeaseTasksResponse_descriptor; @@ -207,7 +153,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < tasks_.size(); i++) { output.writeMessage(1, tasks_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -219,7 +165,7 @@ public int getSerializedSize() { for (int i = 0; i < tasks_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tasks_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -236,7 +182,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.tasks.v2beta2.LeaseTasksResponse) obj; if (!getTasksList().equals(other.getTasksList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -251,7 +197,7 @@ public int hashCode() { hash = (37 * hash) + TASKS_FIELD_NUMBER; hash = (53 * hash) + getTasksList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -380,19 +326,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.LeaseTasksResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getTasksFieldBuilder(); - } } @java.lang.Override @@ -400,10 +337,11 @@ public Builder clear() { super.clear(); if (tasksBuilder_ == null) { tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + tasks_ = null; tasksBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -518,7 +456,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.LeaseTasksResponse other } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -533,18 +471,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.LeaseTasksResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.tasks.v2beta2.Task m = + input.readMessage( + com.google.cloud.tasks.v2beta2.Task.parser(), extensionRegistry); + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(m); + } else { + tasksBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.tasks.v2beta2.LeaseTasksResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -930,7 +894,18 @@ public LeaseTasksResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new LeaseTasksResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequest.java index e54a748b..67bc72dd 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequest.java @@ -54,86 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListQueuesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 42: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (readMask_ != null) { - subBuilder = readMask_.toBuilder(); - } - readMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readMask_); - readMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.CloudTasksProto .internal_static_google_cloud_tasks_v2beta2_ListQueuesRequest_descriptor; @@ -440,7 +360,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (readMask_ != null) { output.writeMessage(5, getReadMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -464,7 +384,7 @@ public int getSerializedSize() { if (readMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -488,7 +408,7 @@ public boolean equals(final java.lang.Object obj) { if (hasReadMask()) { if (!getReadMask().equals(other.getReadMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -511,7 +431,7 @@ public int hashCode() { hash = (37 * hash) + READ_MASK_FIELD_NUMBER; hash = (53 * hash) + getReadMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -640,17 +560,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.ListQueuesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -774,7 +687,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.ListQueuesRequest other) if (other.hasReadMask()) { mergeReadMask(other.getReadMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -789,17 +702,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.ListQueuesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.ListQueuesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1520,7 +1477,18 @@ public ListQueuesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListQueuesRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponse.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponse.java index b939f1fb..b4ce4d24 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponse.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponse.java @@ -53,67 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListQueuesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - queues_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - queues_.add( - input.readMessage( - com.google.cloud.tasks.v2beta2.Queue.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - queues_ = java.util.Collections.unmodifiableList(queues_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.CloudTasksProto .internal_static_google_cloud_tasks_v2beta2_ListQueuesResponse_descriptor; @@ -277,7 +216,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -292,7 +231,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -310,7 +249,7 @@ public boolean equals(final java.lang.Object obj) { if (!getQueuesList().equals(other.getQueuesList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -327,7 +266,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -456,19 +395,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.ListQueuesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getQueuesFieldBuilder(); - } } @java.lang.Override @@ -476,10 +406,11 @@ public Builder clear() { super.clear(); if (queuesBuilder_ == null) { queues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + queues_ = null; queuesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -601,7 +532,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.ListQueuesResponse other nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -616,18 +547,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.ListQueuesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.tasks.v2beta2.Queue m = + input.readMessage( + com.google.cloud.tasks.v2beta2.Queue.parser(), extensionRegistry); + if (queuesBuilder_ == null) { + ensureQueuesIsMutable(); + queues_.add(m); + } else { + queuesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.tasks.v2beta2.ListQueuesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1144,7 +1107,18 @@ public ListQueuesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListQueuesResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequest.java index 7c714d8e..d44324b7 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequest.java @@ -54,71 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListTasksRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - responseView_ = rawValue; - break; - } - case 32: - { - pageSize_ = input.readInt32(); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.CloudTasksProto .internal_static_google_cloud_tasks_v2beta2_ListTasksRequest_descriptor; @@ -353,7 +288,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -374,7 +309,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -394,7 +329,7 @@ public boolean equals(final java.lang.Object obj) { if (responseView_ != other.responseView_) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -413,7 +348,7 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -542,17 +477,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.ListTasksRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -661,7 +589,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.ListTasksRequest other) pageToken_ = other.pageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -676,17 +604,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.ListTasksRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + responseView_ = input.readEnum(); + + break; + } // case 16 + case 32: + { + pageSize_ = input.readInt32(); + + break; + } // case 32 + case 42: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.ListTasksRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1182,7 +1148,18 @@ public ListTasksRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTasksRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponse.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponse.java index 02a9e4ef..6cab33c0 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponse.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponse.java @@ -53,67 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListTasksResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - tasks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - tasks_.add( - input.readMessage( - com.google.cloud.tasks.v2beta2.Task.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.CloudTasksProto .internal_static_google_cloud_tasks_v2beta2_ListTasksResponse_descriptor; @@ -275,7 +214,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -290,7 +229,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -308,7 +247,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTasksList().equals(other.getTasksList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -325,7 +264,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -454,19 +393,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.ListTasksResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getTasksFieldBuilder(); - } } @java.lang.Override @@ -474,10 +404,11 @@ public Builder clear() { super.clear(); if (tasksBuilder_ == null) { tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + tasks_ = null; tasksBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -599,7 +530,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.ListTasksResponse other) nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -614,17 +545,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.ListTasksResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.tasks.v2beta2.Task m = + input.readMessage( + com.google.cloud.tasks.v2beta2.Task.parser(), extensionRegistry); + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(m); + } else { + tasksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.ListTasksResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1136,7 +1100,18 @@ public ListTasksResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTasksResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequest.java index d0889429..174df8d5 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private PauseQueueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.CloudTasksProto .internal_static_google_cloud_tasks_v2beta2_PauseQueueRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.tasks.v2beta2.PauseQueueRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.PauseQueueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -456,7 +403,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.PauseQueueRequest other) name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -471,17 +418,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.PauseQueueRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.PauseQueueRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -638,7 +605,18 @@ public PauseQueueRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PauseQueueRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessage.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessage.java index 68114f46..823d76dd 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessage.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessage.java @@ -56,57 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private PullMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - payload_ = input.readBytes(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - tag_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.TargetProto .internal_static_google_cloud_tasks_v2beta2_PullMessage_descriptor; @@ -237,7 +186,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -252,7 +201,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -270,7 +219,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPayload().equals(other.getPayload())) return false; if (!getTag().equals(other.getTag())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,7 +234,7 @@ public int hashCode() { hash = (53 * hash) + getPayload().hashCode(); hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + getTag().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -417,17 +366,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.PullMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -522,7 +464,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.PullMessage other) { tag_ = other.tag_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -537,17 +479,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.PullMessage parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + payload_ = input.readBytes(); + + break; + } // case 10 + case 18: + { + tag_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.PullMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -814,7 +782,18 @@ public PullMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PullMessage(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullTarget.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullTarget.java index ac577696..73aded97 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullTarget.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullTarget.java @@ -50,45 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private PullTarget( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.TargetProto .internal_static_google_cloud_tasks_v2beta2_PullTarget_descriptor; @@ -118,7 +79,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -127,7 +88,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -143,7 +104,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.tasks.v2beta2.PullTarget other = (com.google.cloud.tasks.v2beta2.PullTarget) obj; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -154,7 +115,7 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -283,17 +244,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.PullTarget.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -375,7 +329,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.tasks.v2beta2.PullTarget other) { if (other == com.google.cloud.tasks.v2beta2.PullTarget.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -390,17 +344,31 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.PullTarget parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.PullTarget) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -436,7 +404,18 @@ public PullTarget parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PullTarget(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequest.java index ffb1a8e6..a0909e87 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private PurgeQueueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.CloudTasksProto .internal_static_google_cloud_tasks_v2beta2_PurgeQueueRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.tasks.v2beta2.PurgeQueueRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.PurgeQueueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -456,7 +403,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.PurgeQueueRequest other) name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -471,17 +418,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.PurgeQueueRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.PurgeQueueRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -638,7 +605,18 @@ public PurgeQueueRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PurgeQueueRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java index 31f4d38a..9af7d0ee 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java @@ -55,187 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Queue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: - { - com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.Builder subBuilder = null; - if (targetTypeCase_ == 3) { - subBuilder = - ((com.google.cloud.tasks.v2beta2.AppEngineHttpTarget) targetType_).toBuilder(); - } - targetType_ = - input.readMessage( - com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.tasks.v2beta2.AppEngineHttpTarget) targetType_); - targetType_ = subBuilder.buildPartial(); - } - targetTypeCase_ = 3; - break; - } - case 34: - { - com.google.cloud.tasks.v2beta2.PullTarget.Builder subBuilder = null; - if (targetTypeCase_ == 4) { - subBuilder = ((com.google.cloud.tasks.v2beta2.PullTarget) targetType_).toBuilder(); - } - targetType_ = - input.readMessage( - com.google.cloud.tasks.v2beta2.PullTarget.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.tasks.v2beta2.PullTarget) targetType_); - targetType_ = subBuilder.buildPartial(); - } - targetTypeCase_ = 4; - break; - } - case 42: - { - com.google.cloud.tasks.v2beta2.RateLimits.Builder subBuilder = null; - if (rateLimits_ != null) { - subBuilder = rateLimits_.toBuilder(); - } - rateLimits_ = - input.readMessage( - com.google.cloud.tasks.v2beta2.RateLimits.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rateLimits_); - rateLimits_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - com.google.cloud.tasks.v2beta2.RetryConfig.Builder subBuilder = null; - if (retryConfig_ != null) { - subBuilder = retryConfig_.toBuilder(); - } - retryConfig_ = - input.readMessage( - com.google.cloud.tasks.v2beta2.RetryConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(retryConfig_); - retryConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 56: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 66: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (purgeTime_ != null) { - subBuilder = purgeTime_.toBuilder(); - } - purgeTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(purgeTime_); - purgeTime_ = subBuilder.buildPartial(); - } - - break; - } - case 74: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (taskTtl_ != null) { - subBuilder = taskTtl_.toBuilder(); - } - taskTtl_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(taskTtl_); - taskTtl_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (tombstoneTtl_ != null) { - subBuilder = tombstoneTtl_.toBuilder(); - } - tombstoneTtl_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tombstoneTtl_); - tombstoneTtl_ = subBuilder.buildPartial(); - } - - break; - } - case 130: - { - com.google.cloud.tasks.v2beta2.QueueStats.Builder subBuilder = null; - if (stats_ != null) { - subBuilder = stats_.toBuilder(); - } - stats_ = - input.readMessage( - com.google.cloud.tasks.v2beta2.QueueStats.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stats_); - stats_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.QueueProto .internal_static_google_cloud_tasks_v2beta2_Queue_descriptor; @@ -1222,7 +1041,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (stats_ != null) { output.writeMessage(16, getStats()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1265,7 +1084,7 @@ public int getSerializedSize() { if (stats_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getStats()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1317,7 +1136,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1368,7 +1187,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1498,17 +1317,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.Queue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1516,6 +1328,12 @@ public Builder clear() { super.clear(); name_ = ""; + if (appEngineHttpTargetBuilder_ != null) { + appEngineHttpTargetBuilder_.clear(); + } + if (pullTargetBuilder_ != null) { + pullTargetBuilder_.clear(); + } if (rateLimitsBuilder_ == null) { rateLimits_ = null; } else { @@ -1719,7 +1537,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.Queue other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1734,17 +1552,92 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.Queue parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 26: + { + input.readMessage( + getAppEngineHttpTargetFieldBuilder().getBuilder(), extensionRegistry); + targetTypeCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getPullTargetFieldBuilder().getBuilder(), extensionRegistry); + targetTypeCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getRateLimitsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + input.readMessage(getRetryConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + + break; + } // case 56 + case 66: + { + input.readMessage(getPurgeTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 74: + { + input.readMessage(getTaskTtlFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 82: + { + input.readMessage(getTombstoneTtlFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + case 130: + { + input.readMessage(getStatsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 130 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.Queue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4057,7 +3950,18 @@ public Queue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Queue(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueStats.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueStats.java index 851774bb..dfae58f8 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueStats.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueStats.java @@ -50,80 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private QueueStats( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - tasksCount_ = input.readInt64(); - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (oldestEstimatedArrivalTime_ != null) { - subBuilder = oldestEstimatedArrivalTime_.toBuilder(); - } - oldestEstimatedArrivalTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(oldestEstimatedArrivalTime_); - oldestEstimatedArrivalTime_ = subBuilder.buildPartial(); - } - - break; - } - case 24: - { - executedLastMinuteCount_ = input.readInt64(); - break; - } - case 32: - { - concurrentDispatchesCount_ = input.readInt64(); - break; - } - case 41: - { - effectiveExecutionRate_ = input.readDouble(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.QueueProto .internal_static_google_cloud_tasks_v2beta2_QueueStats_descriptor; @@ -307,7 +233,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (java.lang.Double.doubleToRawLongBits(effectiveExecutionRate_) != 0) { output.writeDouble(5, effectiveExecutionRate_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -333,7 +259,7 @@ public int getSerializedSize() { if (java.lang.Double.doubleToRawLongBits(effectiveExecutionRate_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, effectiveExecutionRate_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -359,7 +285,7 @@ public boolean equals(final java.lang.Object obj) { if (getConcurrentDispatchesCount() != other.getConcurrentDispatchesCount()) return false; if (java.lang.Double.doubleToLongBits(getEffectiveExecutionRate()) != java.lang.Double.doubleToLongBits(other.getEffectiveExecutionRate())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -385,7 +311,7 @@ public int hashCode() { (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getEffectiveExecutionRate())); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -514,17 +440,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.QueueStats.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -644,7 +563,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.QueueStats other) { if (other.getEffectiveExecutionRate() != 0D) { setEffectiveExecutionRate(other.getEffectiveExecutionRate()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -659,17 +578,62 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.QueueStats parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + tasksCount_ = input.readInt64(); + + break; + } // case 8 + case 18: + { + input.readMessage( + getOldestEstimatedArrivalTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 24: + { + executedLastMinuteCount_ = input.readInt64(); + + break; + } // case 24 + case 32: + { + concurrentDispatchesCount_ = input.readInt64(); + + break; + } // case 32 + case 41: + { + effectiveExecutionRate_ = input.readDouble(); + + break; + } // case 41 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.QueueStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1162,7 +1126,18 @@ public QueueStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new QueueStats(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RateLimits.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RateLimits.java index ba22e1ca..864023dd 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RateLimits.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RateLimits.java @@ -54,60 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RateLimits( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 9: - { - maxTasksDispatchedPerSecond_ = input.readDouble(); - break; - } - case 16: - { - maxBurstSize_ = input.readInt32(); - break; - } - case 24: - { - maxConcurrentTasks_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.QueueProto .internal_static_google_cloud_tasks_v2beta2_RateLimits_descriptor; @@ -248,7 +194,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxConcurrentTasks_ != 0) { output.writeInt32(3, maxConcurrentTasks_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -267,7 +213,7 @@ public int getSerializedSize() { if (maxConcurrentTasks_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxConcurrentTasks_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -287,7 +233,7 @@ public boolean equals(final java.lang.Object obj) { != java.lang.Double.doubleToLongBits(other.getMaxTasksDispatchedPerSecond())) return false; if (getMaxBurstSize() != other.getMaxBurstSize()) return false; if (getMaxConcurrentTasks() != other.getMaxConcurrentTasks()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -307,7 +253,7 @@ public int hashCode() { hash = (53 * hash) + getMaxBurstSize(); hash = (37 * hash) + MAX_CONCURRENT_TASKS_FIELD_NUMBER; hash = (53 * hash) + getMaxConcurrentTasks(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -440,17 +386,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.RateLimits.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -550,7 +489,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.RateLimits other) { if (other.getMaxConcurrentTasks() != 0) { setMaxConcurrentTasks(other.getMaxConcurrentTasks()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -565,17 +504,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.RateLimits parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + maxTasksDispatchedPerSecond_ = input.readDouble(); + + break; + } // case 9 + case 16: + { + maxBurstSize_ = input.readInt32(); + + break; + } // case 16 + case 24: + { + maxConcurrentTasks_ = input.readInt32(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.RateLimits) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -911,7 +882,18 @@ public RateLimits parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RateLimits(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequest.java index 91ce7c71..f0794d11 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequest.java @@ -54,89 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RenewLeaseRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); - } - scheduleTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (leaseDuration_ != null) { - subBuilder = leaseDuration_.toBuilder(); - } - leaseDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(leaseDuration_); - leaseDuration_ = subBuilder.buildPartial(); - } - - break; - } - case 32: - { - int rawValue = input.readEnum(); - - responseView_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.CloudTasksProto .internal_static_google_cloud_tasks_v2beta2_RenewLeaseRequest_descriptor; @@ -407,7 +324,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(4, responseView_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -428,7 +345,7 @@ public int getSerializedSize() { if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, responseView_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -454,7 +371,7 @@ public boolean equals(final java.lang.Object obj) { if (!getLeaseDuration().equals(other.getLeaseDuration())) return false; } if (responseView_ != other.responseView_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -477,7 +394,7 @@ public int hashCode() { } hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; hash = (53 * hash) + responseView_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -607,17 +524,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.RenewLeaseRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -741,7 +651,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.RenewLeaseRequest other) if (other.responseView_ != 0) { setResponseViewValue(other.getResponseViewValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -756,17 +666,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.RenewLeaseRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getLeaseDurationFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 32: + { + responseView_ = input.readEnum(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.RenewLeaseRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1501,7 +1449,18 @@ public RenewLeaseRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RenewLeaseRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequest.java index 66717318..649b8156 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ResumeQueueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.CloudTasksProto .internal_static_google_cloud_tasks_v2beta2_ResumeQueueRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.tasks.v2beta2.ResumeQueueRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.ResumeQueueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -456,7 +403,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.ResumeQueueRequest other name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -471,18 +418,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.ResumeQueueRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.tasks.v2beta2.ResumeQueueRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -639,7 +605,18 @@ public ResumeQueueRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ResumeQueueRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java index 9a966fb3..f1c1e2bf 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java @@ -51,107 +51,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RetryConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - numAttempts_ = input.readInt32(); - numAttemptsCase_ = 1; - break; - } - case 16: - { - numAttempts_ = input.readBool(); - numAttemptsCase_ = 2; - break; - } - case 26: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (maxRetryDuration_ != null) { - subBuilder = maxRetryDuration_.toBuilder(); - } - maxRetryDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxRetryDuration_); - maxRetryDuration_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (minBackoff_ != null) { - subBuilder = minBackoff_.toBuilder(); - } - minBackoff_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(minBackoff_); - minBackoff_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (maxBackoff_ != null) { - subBuilder = maxBackoff_.toBuilder(); - } - maxBackoff_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxBackoff_); - maxBackoff_ = subBuilder.buildPartial(); - } - - break; - } - case 48: - { - maxDoublings_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.QueueProto .internal_static_google_cloud_tasks_v2beta2_RetryConfig_descriptor; @@ -606,7 +505,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxDoublings_ != 0) { output.writeInt32(6, maxDoublings_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -637,7 +536,7 @@ public int getSerializedSize() { if (maxDoublings_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, maxDoublings_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -677,7 +576,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -714,7 +613,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -844,17 +743,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.RetryConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1009,7 +901,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.RetryConfig other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1024,17 +916,68 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.RetryConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + numAttempts_ = input.readInt32(); + numAttemptsCase_ = 1; + break; + } // case 8 + case 16: + { + numAttempts_ = input.readBool(); + numAttemptsCase_ = 2; + break; + } // case 16 + case 26: + { + input.readMessage( + getMaxRetryDurationFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getMinBackoffFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getMaxBackoffFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 48: + { + maxDoublings_ = input.readInt32(); + + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.RetryConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2215,7 +2158,18 @@ public RetryConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RetryConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequest.java index a8d244e6..829cd9e0 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequest.java @@ -54,59 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RunTaskRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - responseView_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.CloudTasksProto .internal_static_google_cloud_tasks_v2beta2_RunTaskRequest_descriptor; @@ -251,7 +198,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(2, responseView_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -266,7 +213,7 @@ public int getSerializedSize() { if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, responseView_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -284,7 +231,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (responseView_ != other.responseView_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -299,7 +246,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; hash = (53 * hash) + responseView_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -429,17 +376,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.RunTaskRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -534,7 +474,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.RunTaskRequest other) { if (other.responseView_ != 0) { setResponseViewValue(other.getResponseViewValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -549,17 +489,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.RunTaskRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + responseView_ = input.readEnum(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.RunTaskRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -852,7 +818,18 @@ public RunTaskRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RunTaskRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Task.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Task.java index b4b9a701..c824c8ab 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Task.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Task.java @@ -53,142 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Task( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: - { - com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.Builder subBuilder = null; - if (payloadTypeCase_ == 3) { - subBuilder = - ((com.google.cloud.tasks.v2beta2.AppEngineHttpRequest) payloadType_) - .toBuilder(); - } - payloadType_ = - input.readMessage( - com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.tasks.v2beta2.AppEngineHttpRequest) payloadType_); - payloadType_ = subBuilder.buildPartial(); - } - payloadTypeCase_ = 3; - break; - } - case 34: - { - com.google.cloud.tasks.v2beta2.PullMessage.Builder subBuilder = null; - if (payloadTypeCase_ == 4) { - subBuilder = - ((com.google.cloud.tasks.v2beta2.PullMessage) payloadType_).toBuilder(); - } - payloadType_ = - input.readMessage( - com.google.cloud.tasks.v2beta2.PullMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.tasks.v2beta2.PullMessage) payloadType_); - payloadType_ = subBuilder.buildPartial(); - } - payloadTypeCase_ = 4; - break; - } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); - } - scheduleTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 58: - { - com.google.cloud.tasks.v2beta2.TaskStatus.Builder subBuilder = null; - if (status_ != null) { - subBuilder = status_.toBuilder(); - } - status_ = - input.readMessage( - com.google.cloud.tasks.v2beta2.TaskStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); - } - - break; - } - case 64: - { - int rawValue = input.readEnum(); - - view_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.TaskProto .internal_static_google_cloud_tasks_v2beta2_Task_descriptor; @@ -871,7 +735,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (view_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(8, view_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -905,7 +769,7 @@ public int getSerializedSize() { if (view_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, view_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -945,7 +809,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -984,7 +848,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1112,17 +976,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.Task.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1130,6 +987,12 @@ public Builder clear() { super.clear(); name_ = ""; + if (appEngineHttpRequestBuilder_ != null) { + appEngineHttpRequestBuilder_.clear(); + } + if (pullMessageBuilder_ != null) { + pullMessageBuilder_.clear(); + } if (scheduleTimeBuilder_ == null) { scheduleTime_ = null; } else { @@ -1291,7 +1154,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.Task other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1306,17 +1169,74 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.Task parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 26: + { + input.readMessage( + getAppEngineHttpRequestFieldBuilder().getBuilder(), extensionRegistry); + payloadTypeCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getPullMessageFieldBuilder().getBuilder(), extensionRegistry); + payloadTypeCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 58: + { + input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 64: + { + view_ = input.readEnum(); + + break; + } // case 64 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.Task) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2743,7 +2663,18 @@ public Task parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Task(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskStatus.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskStatus.java index 361386df..63ba0883 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskStatus.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskStatus.java @@ -50,87 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private TaskStatus( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - attemptDispatchCount_ = input.readInt32(); - break; - } - case 16: - { - attemptResponseCount_ = input.readInt32(); - break; - } - case 26: - { - com.google.cloud.tasks.v2beta2.AttemptStatus.Builder subBuilder = null; - if (firstAttemptStatus_ != null) { - subBuilder = firstAttemptStatus_.toBuilder(); - } - firstAttemptStatus_ = - input.readMessage( - com.google.cloud.tasks.v2beta2.AttemptStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(firstAttemptStatus_); - firstAttemptStatus_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.cloud.tasks.v2beta2.AttemptStatus.Builder subBuilder = null; - if (lastAttemptStatus_ != null) { - subBuilder = lastAttemptStatus_.toBuilder(); - } - lastAttemptStatus_ = - input.readMessage( - com.google.cloud.tasks.v2beta2.AttemptStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastAttemptStatus_); - lastAttemptStatus_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.TaskProto .internal_static_google_cloud_tasks_v2beta2_TaskStatus_descriptor; @@ -319,7 +238,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (lastAttemptStatus_ != null) { output.writeMessage(4, getLastAttemptStatus()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -340,7 +259,7 @@ public int getSerializedSize() { if (lastAttemptStatus_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastAttemptStatus()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -366,7 +285,7 @@ public boolean equals(final java.lang.Object obj) { if (hasLastAttemptStatus()) { if (!getLastAttemptStatus().equals(other.getLastAttemptStatus())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -389,7 +308,7 @@ public int hashCode() { hash = (37 * hash) + LAST_ATTEMPT_STATUS_FIELD_NUMBER; hash = (53 * hash) + getLastAttemptStatus().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -518,17 +437,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.TaskStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -650,7 +562,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.TaskStatus other) { if (other.hasLastAttemptStatus()) { mergeLastAttemptStatus(other.getLastAttemptStatus()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -665,17 +577,57 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.TaskStatus parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + attemptDispatchCount_ = input.readInt32(); + + break; + } // case 8 + case 16: + { + attemptResponseCount_ = input.readInt32(); + + break; + } // case 16 + case 26: + { + input.readMessage( + getFirstAttemptStatusFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage( + getLastAttemptStatusFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta2.TaskStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1232,7 +1184,18 @@ public TaskStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskStatus(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/UpdateQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/UpdateQueueRequest.java index c862f9eb..c269c0b0 100644 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/UpdateQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/UpdateQueueRequest.java @@ -50,76 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpdateQueueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.tasks.v2beta2.Queue.Builder subBuilder = null; - if (queue_ != null) { - subBuilder = queue_.toBuilder(); - } - queue_ = - input.readMessage( - com.google.cloud.tasks.v2beta2.Queue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(queue_); - queue_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta2.CloudTasksProto .internal_static_google_cloud_tasks_v2beta2_UpdateQueueRequest_descriptor; @@ -265,7 +195,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -280,7 +210,7 @@ public int getSerializedSize() { if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -304,7 +234,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateMask()) { if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -323,7 +253,7 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -452,17 +382,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta2.UpdateQueueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -573,7 +496,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta2.UpdateQueueRequest other if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -588,18 +511,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta2.UpdateQueueRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getQueueFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.tasks.v2beta2.UpdateQueueRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1053,7 +1001,18 @@ public UpdateQueueRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateQueueRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpQueue.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpQueue.java index 2443b42f..72a07080 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpQueue.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpQueue.java @@ -59,61 +59,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AppEngineHttpQueue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.tasks.v2beta3.AppEngineRouting.Builder subBuilder = null; - if (appEngineRoutingOverride_ != null) { - subBuilder = appEngineRoutingOverride_.toBuilder(); - } - appEngineRoutingOverride_ = - input.readMessage( - com.google.cloud.tasks.v2beta3.AppEngineRouting.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(appEngineRoutingOverride_); - appEngineRoutingOverride_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.TargetProto .internal_static_google_cloud_tasks_v2beta3_AppEngineHttpQueue_descriptor; @@ -207,7 +152,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (appEngineRoutingOverride_ != null) { output.writeMessage(1, getAppEngineRoutingOverride()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -221,7 +166,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, getAppEngineRoutingOverride()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -241,7 +186,7 @@ public boolean equals(final java.lang.Object obj) { if (hasAppEngineRoutingOverride()) { if (!getAppEngineRoutingOverride().equals(other.getAppEngineRoutingOverride())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -256,7 +201,7 @@ public int hashCode() { hash = (37 * hash) + APP_ENGINE_ROUTING_OVERRIDE_FIELD_NUMBER; hash = (53 * hash) + getAppEngineRoutingOverride().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -394,17 +339,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -501,7 +439,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.AppEngineHttpQueue other if (other.hasAppEngineRoutingOverride()) { mergeAppEngineRoutingOverride(other.getAppEngineRoutingOverride()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -516,18 +454,38 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.AppEngineHttpQueue parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getAppEngineRoutingOverrideFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.tasks.v2beta3.AppEngineHttpQueue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -789,7 +747,18 @@ public AppEngineHttpQueue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AppEngineHttpQueue(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequest.java index c4f1b564..5abb6ed7 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequest.java @@ -103,95 +103,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AppEngineHttpRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - httpMethod_ = rawValue; - break; - } - case 18: - { - com.google.cloud.tasks.v2beta3.AppEngineRouting.Builder subBuilder = null; - if (appEngineRouting_ != null) { - subBuilder = appEngineRouting_.toBuilder(); - } - appEngineRouting_ = - input.readMessage( - com.google.cloud.tasks.v2beta3.AppEngineRouting.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(appEngineRouting_); - appEngineRouting_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - relativeUri_ = s; - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = - com.google.protobuf.MapField.newMapField( - HeadersDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry headers__ = - input.readMessage( - HeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - headers_.getMutableMap().put(headers__.getKey(), headers__.getValue()); - break; - } - case 42: - { - body_ = input.readBytes(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.TargetProto .internal_static_google_cloud_tasks_v2beta3_AppEngineHttpRequest_descriptor; @@ -658,7 +569,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!body_.isEmpty()) { output.writeBytes(5, body_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -690,7 +601,7 @@ public int getSerializedSize() { if (!body_.isEmpty()) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, body_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -714,7 +625,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRelativeUri().equals(other.getRelativeUri())) return false; if (!internalGetHeaders().equals(other.internalGetHeaders())) return false; if (!getBody().equals(other.getBody())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -739,7 +650,7 @@ public int hashCode() { } hash = (37 * hash) + BODY_FIELD_NUMBER; hash = (53 * hash) + getBody().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -937,17 +848,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1068,7 +972,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.AppEngineHttpRequest oth if (other.getBody() != com.google.protobuf.ByteString.EMPTY) { setBody(other.getBody()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1083,18 +987,67 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.AppEngineHttpRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + httpMethod_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + input.readMessage( + getAppEngineRoutingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + relativeUri_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry headers__ = + input.readMessage( + HeadersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableHeaders() + .getMutableMap() + .put(headers__.getKey(), headers__.getValue()); + break; + } // case 34 + case 42: + { + body_ = input.readBytes(); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2044,7 +1997,18 @@ public AppEngineHttpRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AppEngineHttpRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRouting.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRouting.java index 99d0cc4b..82cb48cf 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRouting.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRouting.java @@ -66,73 +66,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private AppEngineRouting( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - service_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - instance_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - host_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.TargetProto .internal_static_google_cloud_tasks_v2beta3_AppEngineRouting_descriptor; @@ -458,7 +391,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, host_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -479,7 +412,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, host_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -499,7 +432,7 @@ public boolean equals(final java.lang.Object obj) { if (!getVersion().equals(other.getVersion())) return false; if (!getInstance().equals(other.getInstance())) return false; if (!getHost().equals(other.getHost())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -518,7 +451,7 @@ public int hashCode() { hash = (53 * hash) + getInstance().hashCode(); hash = (37 * hash) + HOST_FIELD_NUMBER; hash = (53 * hash) + getHost().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -658,17 +591,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.AppEngineRouting.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -779,7 +705,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.AppEngineRouting other) host_ = other.host_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -794,17 +720,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.AppEngineRouting parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + service_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + version_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + instance_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + host_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta3.AppEngineRouting) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1484,7 +1448,18 @@ public AppEngineRouting parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AppEngineRouting(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Attempt.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Attempt.java index 178ff60f..b64e85dc 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Attempt.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Attempt.java @@ -50,105 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Attempt( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); - } - scheduleTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (dispatchTime_ != null) { - subBuilder = dispatchTime_.toBuilder(); - } - dispatchTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dispatchTime_); - dispatchTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (responseTime_ != null) { - subBuilder = responseTime_.toBuilder(); - } - responseTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(responseTime_); - responseTime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.rpc.Status.Builder subBuilder = null; - if (responseStatus_ != null) { - subBuilder = responseStatus_.toBuilder(); - } - responseStatus_ = - input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(responseStatus_); - responseStatus_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.TaskProto .internal_static_google_cloud_tasks_v2beta3_Attempt_descriptor; @@ -395,7 +296,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (responseStatus_ != null) { output.writeMessage(4, getResponseStatus()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -416,7 +317,7 @@ public int getSerializedSize() { if (responseStatus_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResponseStatus()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -447,7 +348,7 @@ public boolean equals(final java.lang.Object obj) { if (hasResponseStatus()) { if (!getResponseStatus().equals(other.getResponseStatus())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -474,7 +375,7 @@ public int hashCode() { hash = (37 * hash) + RESPONSE_STATUS_FIELD_NUMBER; hash = (53 * hash) + getResponseStatus().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -603,17 +504,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.Attempt.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -751,7 +645,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.Attempt other) { if (other.hasResponseStatus()) { mergeResponseStatus(other.getResponseStatus()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -766,17 +660,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.Attempt parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getDispatchTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getResponseTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getResponseStatusFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta3.Attempt) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1591,7 +1523,18 @@ public Attempt parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Attempt(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequest.java index 91bd1d65..c749b577 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequest.java @@ -52,68 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateQueueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - com.google.cloud.tasks.v2beta3.Queue.Builder subBuilder = null; - if (queue_ != null) { - subBuilder = queue_.toBuilder(); - } - queue_ = - input.readMessage( - com.google.cloud.tasks.v2beta3.Queue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(queue_); - queue_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.CloudTasksProto .internal_static_google_cloud_tasks_v2beta3_CreateQueueRequest_descriptor; @@ -262,7 +200,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (queue_ != null) { output.writeMessage(2, getQueue()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -277,7 +215,7 @@ public int getSerializedSize() { if (queue_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQueue()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -298,7 +236,7 @@ public boolean equals(final java.lang.Object obj) { if (hasQueue()) { if (!getQueue().equals(other.getQueue())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -315,7 +253,7 @@ public int hashCode() { hash = (37 * hash) + QUEUE_FIELD_NUMBER; hash = (53 * hash) + getQueue().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -444,17 +382,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.CreateQueueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -558,7 +489,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.CreateQueueRequest other if (other.hasQueue()) { mergeQueue(other.getQueue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -573,18 +504,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.CreateQueueRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getQueueFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.tasks.v2beta3.CreateQueueRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -955,7 +911,18 @@ public CreateQueueRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateQueueRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequest.java index 07fe1038..10d3b5e8 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequest.java @@ -53,75 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private CreateTaskRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - com.google.cloud.tasks.v2beta3.Task.Builder subBuilder = null; - if (task_ != null) { - subBuilder = task_.toBuilder(); - } - task_ = - input.readMessage( - com.google.cloud.tasks.v2beta3.Task.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(task_); - task_ = subBuilder.buildPartial(); - } - - break; - } - case 24: - { - int rawValue = input.readEnum(); - - responseView_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.CloudTasksProto .internal_static_google_cloud_tasks_v2beta3_CreateTaskRequest_descriptor; @@ -401,7 +332,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (responseView_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(3, responseView_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -419,7 +350,7 @@ public int getSerializedSize() { if (responseView_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, responseView_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -441,7 +372,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTask().equals(other.getTask())) return false; } if (responseView_ != other.responseView_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -460,7 +391,7 @@ public int hashCode() { } hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; hash = (53 * hash) + responseView_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -589,17 +520,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.CreateTaskRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -709,7 +633,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.CreateTaskRequest other) if (other.responseView_ != 0) { setResponseViewValue(other.getResponseViewValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -724,17 +648,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.CreateTaskRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getTaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 24: + { + responseView_ = input.readEnum(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta3.CreateTaskRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1463,7 +1419,18 @@ public CreateTaskRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateTaskRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequest.java index 1be3d865..a9d87d3a 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteQueueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.CloudTasksProto .internal_static_google_cloud_tasks_v2beta3_DeleteQueueRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.tasks.v2beta3.DeleteQueueRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.DeleteQueueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -456,7 +403,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.DeleteQueueRequest other name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -471,18 +418,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.DeleteQueueRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.tasks.v2beta3.DeleteQueueRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -639,7 +605,18 @@ public DeleteQueueRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteQueueRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequest.java index 23d7d974..10b454e5 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequest.java @@ -53,52 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private DeleteTaskRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.CloudTasksProto .internal_static_google_cloud_tasks_v2beta3_DeleteTaskRequest_descriptor; @@ -186,7 +140,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -198,7 +152,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -215,7 +169,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.tasks.v2beta3.DeleteTaskRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -228,7 +182,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -358,17 +312,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.DeleteTaskRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -458,7 +405,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.DeleteTaskRequest other) name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -473,17 +420,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.DeleteTaskRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta3.DeleteTaskRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -640,7 +607,18 @@ public DeleteTaskRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteTaskRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequest.java index 22f86ccf..d6860354 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequest.java @@ -52,67 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetQueueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (readMask_ != null) { - subBuilder = readMask_.toBuilder(); - } - readMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readMask_); - readMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.CloudTasksProto .internal_static_google_cloud_tasks_v2beta3_GetQueueRequest_descriptor; @@ -261,7 +200,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (readMask_ != null) { output.writeMessage(2, getReadMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -276,7 +215,7 @@ public int getSerializedSize() { if (readMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -297,7 +236,7 @@ public boolean equals(final java.lang.Object obj) { if (hasReadMask()) { if (!getReadMask().equals(other.getReadMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -314,7 +253,7 @@ public int hashCode() { hash = (37 * hash) + READ_MASK_FIELD_NUMBER; hash = (53 * hash) + getReadMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -443,17 +382,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.GetQueueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -556,7 +488,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.GetQueueRequest other) { if (other.hasReadMask()) { mergeReadMask(other.getReadMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -571,17 +503,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.GetQueueRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta3.GetQueueRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -953,7 +911,18 @@ public GetQueueRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetQueueRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequest.java index 4042daaa..1d60cbbb 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequest.java @@ -53,59 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private GetTaskRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - responseView_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.CloudTasksProto .internal_static_google_cloud_tasks_v2beta3_GetTaskRequest_descriptor; @@ -250,7 +197,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (responseView_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(2, responseView_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -265,7 +212,7 @@ public int getSerializedSize() { if (responseView_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, responseView_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -283,7 +230,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (responseView_ != other.responseView_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -298,7 +245,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; hash = (53 * hash) + responseView_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -427,17 +374,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.GetTaskRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -532,7 +472,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.GetTaskRequest other) { if (other.responseView_ != 0) { setResponseViewValue(other.getResponseViewValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -547,17 +487,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.GetTaskRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + responseView_ = input.readEnum(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta3.GetTaskRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -850,7 +816,18 @@ public GetTaskRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTaskRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequest.java index 55ca2408..9823b6a4 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequest.java @@ -75,115 +75,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private HttpRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - url_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - httpMethod_ = rawValue; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = - com.google.protobuf.MapField.newMapField( - HeadersDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry headers__ = - input.readMessage( - HeadersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - headers_.getMutableMap().put(headers__.getKey(), headers__.getValue()); - break; - } - case 34: - { - body_ = input.readBytes(); - break; - } - case 42: - { - com.google.cloud.tasks.v2beta3.OAuthToken.Builder subBuilder = null; - if (authorizationHeaderCase_ == 5) { - subBuilder = - ((com.google.cloud.tasks.v2beta3.OAuthToken) authorizationHeader_).toBuilder(); - } - authorizationHeader_ = - input.readMessage( - com.google.cloud.tasks.v2beta3.OAuthToken.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.tasks.v2beta3.OAuthToken) authorizationHeader_); - authorizationHeader_ = subBuilder.buildPartial(); - } - authorizationHeaderCase_ = 5; - break; - } - case 50: - { - com.google.cloud.tasks.v2beta3.OidcToken.Builder subBuilder = null; - if (authorizationHeaderCase_ == 6) { - subBuilder = - ((com.google.cloud.tasks.v2beta3.OidcToken) authorizationHeader_).toBuilder(); - } - authorizationHeader_ = - input.readMessage( - com.google.cloud.tasks.v2beta3.OidcToken.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.tasks.v2beta3.OidcToken) authorizationHeader_); - authorizationHeader_ = subBuilder.buildPartial(); - } - authorizationHeaderCase_ = 6; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.TargetProto .internal_static_google_cloud_tasks_v2beta3_HttpRequest_descriptor; @@ -720,7 +611,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (authorizationHeaderCase_ == 6) { output.writeMessage(6, (com.google.cloud.tasks.v2beta3.OidcToken) authorizationHeader_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -759,7 +650,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.cloud.tasks.v2beta3.OidcToken) authorizationHeader_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -790,7 +681,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -823,7 +714,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -993,17 +884,10 @@ protected com.google.protobuf.MapField internalGetMutableMapField(int number) { } // Construct using com.google.cloud.tasks.v2beta3.HttpRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1016,6 +900,12 @@ public Builder clear() { internalGetMutableHeaders().clear(); body_ = com.google.protobuf.ByteString.EMPTY; + if (oauthTokenBuilder_ != null) { + oauthTokenBuilder_.clear(); + } + if (oidcTokenBuilder_ != null) { + oidcTokenBuilder_.clear(); + } authorizationHeaderCase_ = 0; authorizationHeader_ = null; return this; @@ -1142,7 +1032,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.HttpRequest other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1157,17 +1047,72 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.HttpRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + url_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + httpMethod_ = input.readEnum(); + + break; + } // case 16 + case 26: + { + com.google.protobuf.MapEntry headers__ = + input.readMessage( + HeadersDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableHeaders() + .getMutableMap() + .put(headers__.getKey(), headers__.getValue()); + break; + } // case 26 + case 34: + { + body_ = input.readBytes(); + + break; + } // case 34 + case 42: + { + input.readMessage(getOauthTokenFieldBuilder().getBuilder(), extensionRegistry); + authorizationHeaderCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getOidcTokenFieldBuilder().getBuilder(), extensionRegistry); + authorizationHeaderCase_ = 6; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta3.HttpRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2328,7 +2273,18 @@ public HttpRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new HttpRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequest.java index c08ca2b9..3c6b5bf5 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequest.java @@ -54,86 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListQueuesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 42: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (readMask_ != null) { - subBuilder = readMask_.toBuilder(); - } - readMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(readMask_); - readMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.CloudTasksProto .internal_static_google_cloud_tasks_v2beta3_ListQueuesRequest_descriptor; @@ -440,7 +360,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (readMask_ != null) { output.writeMessage(5, getReadMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -464,7 +384,7 @@ public int getSerializedSize() { if (readMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -488,7 +408,7 @@ public boolean equals(final java.lang.Object obj) { if (hasReadMask()) { if (!getReadMask().equals(other.getReadMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -511,7 +431,7 @@ public int hashCode() { hash = (37 * hash) + READ_MASK_FIELD_NUMBER; hash = (53 * hash) + getReadMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -640,17 +560,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.ListQueuesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -774,7 +687,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.ListQueuesRequest other) if (other.hasReadMask()) { mergeReadMask(other.getReadMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -789,17 +702,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.ListQueuesRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 34 + case 42: + { + input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta3.ListQueuesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1520,7 +1477,18 @@ public ListQueuesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListQueuesRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponse.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponse.java index fdbf3dd3..8089b53a 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponse.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponse.java @@ -53,67 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListQueuesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - queues_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - queues_.add( - input.readMessage( - com.google.cloud.tasks.v2beta3.Queue.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - queues_ = java.util.Collections.unmodifiableList(queues_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.CloudTasksProto .internal_static_google_cloud_tasks_v2beta3_ListQueuesResponse_descriptor; @@ -277,7 +216,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -292,7 +231,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -310,7 +249,7 @@ public boolean equals(final java.lang.Object obj) { if (!getQueuesList().equals(other.getQueuesList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -327,7 +266,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -456,19 +395,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.ListQueuesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getQueuesFieldBuilder(); - } } @java.lang.Override @@ -476,10 +406,11 @@ public Builder clear() { super.clear(); if (queuesBuilder_ == null) { queues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + queues_ = null; queuesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -601,7 +532,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.ListQueuesResponse other nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -616,18 +547,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.ListQueuesResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.tasks.v2beta3.Queue m = + input.readMessage( + com.google.cloud.tasks.v2beta3.Queue.parser(), extensionRegistry); + if (queuesBuilder_ == null) { + ensureQueuesIsMutable(); + queues_.add(m); + } else { + queuesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.tasks.v2beta3.ListQueuesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1144,7 +1107,18 @@ public ListQueuesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListQueuesResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequest.java index 44cfe1ea..6cc72803 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequest.java @@ -54,71 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListTasksRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - responseView_ = rawValue; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.CloudTasksProto .internal_static_google_cloud_tasks_v2beta3_ListTasksRequest_descriptor; @@ -353,7 +288,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -374,7 +309,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -394,7 +329,7 @@ public boolean equals(final java.lang.Object obj) { if (responseView_ != other.responseView_) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -413,7 +348,7 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -542,17 +477,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.ListTasksRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -661,7 +589,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.ListTasksRequest other) pageToken_ = other.pageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -676,17 +604,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.ListTasksRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + responseView_ = input.readEnum(); + + break; + } // case 16 + case 24: + { + pageSize_ = input.readInt32(); + + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta3.ListTasksRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1182,7 +1148,18 @@ public ListTasksRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTasksRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponse.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponse.java index 09f702ea..c70c9156 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponse.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponse.java @@ -53,67 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ListTasksResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - tasks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - tasks_.add( - input.readMessage( - com.google.cloud.tasks.v2beta3.Task.parser(), extensionRegistry)); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.CloudTasksProto .internal_static_google_cloud_tasks_v2beta3_ListTasksResponse_descriptor; @@ -275,7 +214,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -290,7 +229,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -308,7 +247,7 @@ public boolean equals(final java.lang.Object obj) { if (!getTasksList().equals(other.getTasksList())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -325,7 +264,7 @@ public int hashCode() { } hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -454,19 +393,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.ListTasksResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getTasksFieldBuilder(); - } } @java.lang.Override @@ -474,10 +404,11 @@ public Builder clear() { super.clear(); if (tasksBuilder_ == null) { tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + tasks_ = null; tasksBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; return this; @@ -599,7 +530,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.ListTasksResponse other) nextPageToken_ = other.nextPageToken_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -614,17 +545,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.ListTasksResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.tasks.v2beta3.Task m = + input.readMessage( + com.google.cloud.tasks.v2beta3.Task.parser(), extensionRegistry); + if (tasksBuilder_ == null) { + ensureTasksIsMutable(); + tasks_.add(m); + } else { + tasksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta3.ListTasksResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1136,7 +1100,18 @@ public ListTasksResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTasksResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthToken.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthToken.java index f4b3966c..c130d855 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthToken.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthToken.java @@ -56,59 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private OAuthToken( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - serviceAccountEmail_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - scope_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.TargetProto .internal_static_google_cloud_tasks_v2beta3_OAuthToken_descriptor; @@ -254,7 +201,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scope_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -269,7 +216,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scope_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -287,7 +234,7 @@ public boolean equals(final java.lang.Object obj) { if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; if (!getScope().equals(other.getScope())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -302,7 +249,7 @@ public int hashCode() { hash = (53 * hash) + getServiceAccountEmail().hashCode(); hash = (37 * hash) + SCOPE_FIELD_NUMBER; hash = (53 * hash) + getScope().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -434,17 +381,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.OAuthToken.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -540,7 +480,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.OAuthToken other) { scope_ = other.scope_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -555,17 +495,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.OAuthToken parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + serviceAccountEmail_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + scope_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta3.OAuthToken) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -843,7 +809,18 @@ public OAuthToken parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new OAuthToken(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcToken.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcToken.java index d8ef8572..3bfed40f 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcToken.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcToken.java @@ -58,59 +58,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private OidcToken( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - serviceAccountEmail_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - audience_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.TargetProto .internal_static_google_cloud_tasks_v2beta3_OidcToken_descriptor; @@ -254,7 +201,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audience_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -269,7 +216,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, audience_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -286,7 +233,7 @@ public boolean equals(final java.lang.Object obj) { if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; if (!getAudience().equals(other.getAudience())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -301,7 +248,7 @@ public int hashCode() { hash = (53 * hash) + getServiceAccountEmail().hashCode(); hash = (37 * hash) + AUDIENCE_FIELD_NUMBER; hash = (53 * hash) + getAudience().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -435,17 +382,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.OidcToken.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -541,7 +481,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.OidcToken other) { audience_ = other.audience_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -556,17 +496,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.OidcToken parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + serviceAccountEmail_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + audience_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta3.OidcToken) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -839,7 +805,18 @@ public OidcToken parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new OidcToken(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequest.java index ddd155f1..fbd6579c 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private PauseQueueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.CloudTasksProto .internal_static_google_cloud_tasks_v2beta3_PauseQueueRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.tasks.v2beta3.PauseQueueRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.PauseQueueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -456,7 +403,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.PauseQueueRequest other) name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -471,17 +418,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.PauseQueueRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta3.PauseQueueRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -638,7 +605,18 @@ public PauseQueueRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PauseQueueRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessage.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessage.java index 845fa92d..b022bc6f 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessage.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessage.java @@ -59,57 +59,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private PullMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - payload_ = input.readBytes(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - tag_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.TargetProto .internal_static_google_cloud_tasks_v2beta3_PullMessage_descriptor; @@ -224,7 +173,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -239,7 +188,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -257,7 +206,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPayload().equals(other.getPayload())) return false; if (!getTag().equals(other.getTag())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -272,7 +221,7 @@ public int hashCode() { hash = (53 * hash) + getPayload().hashCode(); hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + getTag().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -407,17 +356,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.PullMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -512,7 +454,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.PullMessage other) { tag_ = other.tag_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -527,17 +469,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.PullMessage parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + payload_ = input.readBytes(); + + break; + } // case 10 + case 18: + { + tag_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta3.PullMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -764,7 +732,18 @@ public PullMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PullMessage(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequest.java index 78c3ead3..4b71cf16 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private PurgeQueueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.CloudTasksProto .internal_static_google_cloud_tasks_v2beta3_PurgeQueueRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.tasks.v2beta3.PurgeQueueRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.PurgeQueueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -456,7 +403,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.PurgeQueueRequest other) name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -471,17 +418,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.PurgeQueueRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta3.PurgeQueueRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -638,7 +605,18 @@ public PurgeQueueRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PurgeQueueRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Queue.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Queue.java index 45c41179..ab51cc5a 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Queue.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Queue.java @@ -56,195 +56,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Queue( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: - { - com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.Builder subBuilder = null; - if (queueTypeCase_ == 3) { - subBuilder = - ((com.google.cloud.tasks.v2beta3.AppEngineHttpQueue) queueType_).toBuilder(); - } - queueType_ = - input.readMessage( - com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.tasks.v2beta3.AppEngineHttpQueue) queueType_); - queueType_ = subBuilder.buildPartial(); - } - queueTypeCase_ = 3; - break; - } - case 34: - { - com.google.cloud.tasks.v2beta3.RateLimits.Builder subBuilder = null; - if (rateLimits_ != null) { - subBuilder = rateLimits_.toBuilder(); - } - rateLimits_ = - input.readMessage( - com.google.cloud.tasks.v2beta3.RateLimits.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rateLimits_); - rateLimits_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.cloud.tasks.v2beta3.RetryConfig.Builder subBuilder = null; - if (retryConfig_ != null) { - subBuilder = retryConfig_.toBuilder(); - } - retryConfig_ = - input.readMessage( - com.google.cloud.tasks.v2beta3.RetryConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(retryConfig_); - retryConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 48: - { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 58: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (purgeTime_ != null) { - subBuilder = purgeTime_.toBuilder(); - } - purgeTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(purgeTime_); - purgeTime_ = subBuilder.buildPartial(); - } - - break; - } - case 66: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (taskTtl_ != null) { - subBuilder = taskTtl_.toBuilder(); - } - taskTtl_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(taskTtl_); - taskTtl_ = subBuilder.buildPartial(); - } - - break; - } - case 74: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (tombstoneTtl_ != null) { - subBuilder = tombstoneTtl_.toBuilder(); - } - tombstoneTtl_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tombstoneTtl_); - tombstoneTtl_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig.Builder subBuilder = null; - if (stackdriverLoggingConfig_ != null) { - subBuilder = stackdriverLoggingConfig_.toBuilder(); - } - stackdriverLoggingConfig_ = - input.readMessage( - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stackdriverLoggingConfig_); - stackdriverLoggingConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 88: - { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 98: - { - com.google.cloud.tasks.v2beta3.QueueStats.Builder subBuilder = null; - if (stats_ != null) { - subBuilder = stats_.toBuilder(); - } - stats_ = - input.readMessage( - com.google.cloud.tasks.v2beta3.QueueStats.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stats_); - stats_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.QueueProto .internal_static_google_cloud_tasks_v2beta3_Queue_descriptor; @@ -1454,7 +1265,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (stats_ != null) { output.writeMessage(12, getStats()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1500,7 +1311,7 @@ public int getSerializedSize() { if (stats_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getStats()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1554,7 +1365,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1607,7 +1418,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1737,17 +1548,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.Queue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1755,6 +1559,9 @@ public Builder clear() { super.clear(); name_ = ""; + if (appEngineHttpQueueBuilder_ != null) { + appEngineHttpQueueBuilder_.clear(); + } if (rateLimitsBuilder_ == null) { rateLimits_ = null; } else { @@ -1966,7 +1773,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.Queue other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1981,17 +1788,99 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.Queue parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 26: + { + input.readMessage( + getAppEngineHttpQueueFieldBuilder().getBuilder(), extensionRegistry); + queueTypeCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getRateLimitsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getRetryConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 48: + { + state_ = input.readEnum(); + + break; + } // case 48 + case 58: + { + input.readMessage(getPurgeTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 66: + { + input.readMessage(getTaskTtlFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 74: + { + input.readMessage(getTombstoneTtlFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 82: + { + input.readMessage( + getStackdriverLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + case 88: + { + type_ = input.readEnum(); + + break; + } // case 88 + case 98: + { + input.readMessage(getStatsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 98 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta3.Queue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4490,7 +4379,18 @@ public Queue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Queue(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueStats.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueStats.java index 978a5c1e..6cb655d1 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueStats.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueStats.java @@ -50,80 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private QueueStats( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - tasksCount_ = input.readInt64(); - break; - } - case 18: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (oldestEstimatedArrivalTime_ != null) { - subBuilder = oldestEstimatedArrivalTime_.toBuilder(); - } - oldestEstimatedArrivalTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(oldestEstimatedArrivalTime_); - oldestEstimatedArrivalTime_ = subBuilder.buildPartial(); - } - - break; - } - case 24: - { - executedLastMinuteCount_ = input.readInt64(); - break; - } - case 32: - { - concurrentDispatchesCount_ = input.readInt64(); - break; - } - case 41: - { - effectiveExecutionRate_ = input.readDouble(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.QueueProto .internal_static_google_cloud_tasks_v2beta3_QueueStats_descriptor; @@ -307,7 +233,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (java.lang.Double.doubleToRawLongBits(effectiveExecutionRate_) != 0) { output.writeDouble(5, effectiveExecutionRate_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -333,7 +259,7 @@ public int getSerializedSize() { if (java.lang.Double.doubleToRawLongBits(effectiveExecutionRate_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, effectiveExecutionRate_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -359,7 +285,7 @@ public boolean equals(final java.lang.Object obj) { if (getConcurrentDispatchesCount() != other.getConcurrentDispatchesCount()) return false; if (java.lang.Double.doubleToLongBits(getEffectiveExecutionRate()) != java.lang.Double.doubleToLongBits(other.getEffectiveExecutionRate())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -385,7 +311,7 @@ public int hashCode() { (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getEffectiveExecutionRate())); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -514,17 +440,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.QueueStats.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -644,7 +563,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.QueueStats other) { if (other.getEffectiveExecutionRate() != 0D) { setEffectiveExecutionRate(other.getEffectiveExecutionRate()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -659,17 +578,62 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.QueueStats parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + tasksCount_ = input.readInt64(); + + break; + } // case 8 + case 18: + { + input.readMessage( + getOldestEstimatedArrivalTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 24: + { + executedLastMinuteCount_ = input.readInt64(); + + break; + } // case 24 + case 32: + { + concurrentDispatchesCount_ = input.readInt64(); + + break; + } // case 32 + case 41: + { + effectiveExecutionRate_ = input.readDouble(); + + break; + } // case 41 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta3.QueueStats) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1162,7 +1126,18 @@ public QueueStats parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new QueueStats(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RateLimits.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RateLimits.java index dad67fef..740504d7 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RateLimits.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RateLimits.java @@ -54,60 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RateLimits( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 9: - { - maxDispatchesPerSecond_ = input.readDouble(); - break; - } - case 16: - { - maxBurstSize_ = input.readInt32(); - break; - } - case 24: - { - maxConcurrentDispatches_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.QueueProto .internal_static_google_cloud_tasks_v2beta3_RateLimits_descriptor; @@ -242,7 +188,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxConcurrentDispatches_ != 0) { output.writeInt32(3, maxConcurrentDispatches_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -260,7 +206,7 @@ public int getSerializedSize() { if (maxConcurrentDispatches_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxConcurrentDispatches_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -280,7 +226,7 @@ public boolean equals(final java.lang.Object obj) { != java.lang.Double.doubleToLongBits(other.getMaxDispatchesPerSecond())) return false; if (getMaxBurstSize() != other.getMaxBurstSize()) return false; if (getMaxConcurrentDispatches() != other.getMaxConcurrentDispatches()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -300,7 +246,7 @@ public int hashCode() { hash = (53 * hash) + getMaxBurstSize(); hash = (37 * hash) + MAX_CONCURRENT_DISPATCHES_FIELD_NUMBER; hash = (53 * hash) + getMaxConcurrentDispatches(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -433,17 +379,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.RateLimits.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -543,7 +482,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.RateLimits other) { if (other.getMaxConcurrentDispatches() != 0) { setMaxConcurrentDispatches(other.getMaxConcurrentDispatches()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -558,17 +497,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.RateLimits parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + maxDispatchesPerSecond_ = input.readDouble(); + + break; + } // case 9 + case 16: + { + maxBurstSize_ = input.readInt32(); + + break; + } // case 16 + case 24: + { + maxConcurrentDispatches_ = input.readInt32(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta3.RateLimits) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -886,7 +857,18 @@ public RateLimits parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RateLimits(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequest.java index 7b20829a..19e944ba 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequest.java @@ -52,52 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private ResumeQueueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.CloudTasksProto .internal_static_google_cloud_tasks_v2beta3_ResumeQueueRequest_descriptor; @@ -185,7 +139,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +151,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -214,7 +168,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.tasks.v2beta3.ResumeQueueRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -227,7 +181,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.ResumeQueueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -456,7 +403,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.ResumeQueueRequest other name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -471,18 +418,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.ResumeQueueRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.tasks.v2beta3.ResumeQueueRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -639,7 +605,18 @@ public ResumeQueueRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ResumeQueueRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RetryConfig.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RetryConfig.java index dda88aec..ac210739 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RetryConfig.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RetryConfig.java @@ -51,100 +51,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RetryConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - maxAttempts_ = input.readInt32(); - break; - } - case 18: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (maxRetryDuration_ != null) { - subBuilder = maxRetryDuration_.toBuilder(); - } - maxRetryDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxRetryDuration_); - maxRetryDuration_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (minBackoff_ != null) { - subBuilder = minBackoff_.toBuilder(); - } - minBackoff_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(minBackoff_); - minBackoff_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (maxBackoff_ != null) { - subBuilder = maxBackoff_.toBuilder(); - } - maxBackoff_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(maxBackoff_); - maxBackoff_ = subBuilder.buildPartial(); - } - - break; - } - case 40: - { - maxDoublings_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.QueueProto .internal_static_google_cloud_tasks_v2beta3_RetryConfig_descriptor; @@ -490,7 +396,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxDoublings_ != 0) { output.writeInt32(5, maxDoublings_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -514,7 +420,7 @@ public int getSerializedSize() { if (maxDoublings_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxDoublings_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -544,7 +450,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMaxBackoff().equals(other.getMaxBackoff())) return false; } if (getMaxDoublings() != other.getMaxDoublings()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -571,7 +477,7 @@ public int hashCode() { } hash = (37 * hash) + MAX_DOUBLINGS_FIELD_NUMBER; hash = (53 * hash) + getMaxDoublings(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -701,17 +607,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.RetryConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -847,7 +746,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.RetryConfig other) { if (other.getMaxDoublings() != 0) { setMaxDoublings(other.getMaxDoublings()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -862,17 +761,62 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.RetryConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + maxAttempts_ = input.readInt32(); + + break; + } // case 8 + case 18: + { + input.readMessage( + getMaxRetryDurationFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getMinBackoffFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getMaxBackoffFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 40: + { + maxDoublings_ = input.readInt32(); + + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta3.RetryConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1938,7 +1882,18 @@ public RetryConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RetryConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequest.java index 8e7d1959..b653c1d8 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequest.java @@ -54,59 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RunTaskRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - responseView_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.CloudTasksProto .internal_static_google_cloud_tasks_v2beta3_RunTaskRequest_descriptor; @@ -251,7 +198,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (responseView_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(2, responseView_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -266,7 +213,7 @@ public int getSerializedSize() { if (responseView_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, responseView_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -284,7 +231,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (responseView_ != other.responseView_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -299,7 +246,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; hash = (53 * hash) + responseView_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -429,17 +376,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.RunTaskRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -534,7 +474,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.RunTaskRequest other) { if (other.responseView_ != 0) { setResponseViewValue(other.getResponseViewValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -549,17 +489,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.RunTaskRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + responseView_ = input.readEnum(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta3.RunTaskRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -852,7 +818,18 @@ public RunTaskRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RunTaskRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/StackdriverLoggingConfig.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/StackdriverLoggingConfig.java index d80fab89..ee8ec2cf 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/StackdriverLoggingConfig.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/StackdriverLoggingConfig.java @@ -51,50 +51,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private StackdriverLoggingConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 9: - { - samplingRatio_ = input.readDouble(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.QueueProto .internal_static_google_cloud_tasks_v2beta3_StackdriverLoggingConfig_descriptor; @@ -148,7 +104,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (java.lang.Double.doubleToRawLongBits(samplingRatio_) != 0) { output.writeDouble(1, samplingRatio_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -160,7 +116,7 @@ public int getSerializedSize() { if (java.lang.Double.doubleToRawLongBits(samplingRatio_) != 0) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, samplingRatio_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -178,7 +134,7 @@ public boolean equals(final java.lang.Object obj) { if (java.lang.Double.doubleToLongBits(getSamplingRatio()) != java.lang.Double.doubleToLongBits(other.getSamplingRatio())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -194,7 +150,7 @@ public int hashCode() { (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getSamplingRatio())); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -325,17 +281,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -424,7 +373,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig if (other.getSamplingRatio() != 0D) { setSamplingRatio(other.getSamplingRatio()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -439,18 +388,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 9: + { + samplingRatio_ = input.readDouble(); + + break; + } // case 9 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -547,7 +515,18 @@ public StackdriverLoggingConfig parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StackdriverLoggingConfig(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Task.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Task.java index 03927a4e..93575b62 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Task.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Task.java @@ -53,200 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Task( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: - { - com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.Builder subBuilder = null; - if (payloadTypeCase_ == 3) { - subBuilder = - ((com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) payloadType_) - .toBuilder(); - } - payloadType_ = - input.readMessage( - com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) payloadType_); - payloadType_ = subBuilder.buildPartial(); - } - payloadTypeCase_ = 3; - break; - } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduleTime_ != null) { - subBuilder = scheduleTime_.toBuilder(); - } - scheduleTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduleTime_); - scheduleTime_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 48: - { - dispatchCount_ = input.readInt32(); - break; - } - case 56: - { - responseCount_ = input.readInt32(); - break; - } - case 66: - { - com.google.cloud.tasks.v2beta3.Attempt.Builder subBuilder = null; - if (firstAttempt_ != null) { - subBuilder = firstAttempt_.toBuilder(); - } - firstAttempt_ = - input.readMessage( - com.google.cloud.tasks.v2beta3.Attempt.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(firstAttempt_); - firstAttempt_ = subBuilder.buildPartial(); - } - - break; - } - case 74: - { - com.google.cloud.tasks.v2beta3.Attempt.Builder subBuilder = null; - if (lastAttempt_ != null) { - subBuilder = lastAttempt_.toBuilder(); - } - lastAttempt_ = - input.readMessage( - com.google.cloud.tasks.v2beta3.Attempt.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastAttempt_); - lastAttempt_ = subBuilder.buildPartial(); - } - - break; - } - case 80: - { - int rawValue = input.readEnum(); - - view_ = rawValue; - break; - } - case 90: - { - com.google.cloud.tasks.v2beta3.HttpRequest.Builder subBuilder = null; - if (payloadTypeCase_ == 11) { - subBuilder = - ((com.google.cloud.tasks.v2beta3.HttpRequest) payloadType_).toBuilder(); - } - payloadType_ = - input.readMessage( - com.google.cloud.tasks.v2beta3.HttpRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.tasks.v2beta3.HttpRequest) payloadType_); - payloadType_ = subBuilder.buildPartial(); - } - payloadTypeCase_ = 11; - break; - } - case 98: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (dispatchDeadline_ != null) { - subBuilder = dispatchDeadline_.toBuilder(); - } - dispatchDeadline_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dispatchDeadline_); - dispatchDeadline_ = subBuilder.buildPartial(); - } - - break; - } - case 106: - { - com.google.cloud.tasks.v2beta3.PullMessage.Builder subBuilder = null; - if (payloadTypeCase_ == 13) { - subBuilder = - ((com.google.cloud.tasks.v2beta3.PullMessage) payloadType_).toBuilder(); - } - payloadType_ = - input.readMessage( - com.google.cloud.tasks.v2beta3.PullMessage.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.tasks.v2beta3.PullMessage) payloadType_); - payloadType_ = subBuilder.buildPartial(); - } - payloadTypeCase_ = 13; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.TaskProto .internal_static_google_cloud_tasks_v2beta3_Task_descriptor; @@ -1205,7 +1011,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (payloadTypeCase_ == 13) { output.writeMessage(13, (com.google.cloud.tasks.v2beta3.PullMessage) payloadType_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1256,7 +1062,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 13, (com.google.cloud.tasks.v2beta3.PullMessage) payloadType_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1309,7 +1115,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1364,7 +1170,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1492,17 +1298,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.Task.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1510,6 +1309,15 @@ public Builder clear() { super.clear(); name_ = ""; + if (appEngineHttpRequestBuilder_ != null) { + appEngineHttpRequestBuilder_.clear(); + } + if (httpRequestBuilder_ != null) { + httpRequestBuilder_.clear(); + } + if (pullMessageBuilder_ != null) { + pullMessageBuilder_.clear(); + } if (scheduleTimeBuilder_ == null) { scheduleTime_ = null; } else { @@ -1723,7 +1531,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.Task other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1738,17 +1546,105 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.Task parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 26: + { + input.readMessage( + getAppEngineHttpRequestFieldBuilder().getBuilder(), extensionRegistry); + payloadTypeCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 48: + { + dispatchCount_ = input.readInt32(); + + break; + } // case 48 + case 56: + { + responseCount_ = input.readInt32(); + + break; + } // case 56 + case 66: + { + input.readMessage(getFirstAttemptFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 74: + { + input.readMessage(getLastAttemptFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 80: + { + view_ = input.readEnum(); + + break; + } // case 80 + case 90: + { + input.readMessage(getHttpRequestFieldBuilder().getBuilder(), extensionRegistry); + payloadTypeCase_ = 11; + break; + } // case 90 + case 98: + { + input.readMessage( + getDispatchDeadlineFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 98 + case 106: + { + input.readMessage(getPullMessageFieldBuilder().getBuilder(), extensionRegistry); + payloadTypeCase_ = 13; + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.tasks.v2beta3.Task) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4090,7 +3986,18 @@ public Task parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Task(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/UpdateQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/UpdateQueueRequest.java index 0721b5ef..bf068dff 100644 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/UpdateQueueRequest.java +++ b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/UpdateQueueRequest.java @@ -50,76 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpdateQueueRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.tasks.v2beta3.Queue.Builder subBuilder = null; - if (queue_ != null) { - subBuilder = queue_.toBuilder(); - } - queue_ = - input.readMessage( - com.google.cloud.tasks.v2beta3.Queue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(queue_); - queue_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.tasks.v2beta3.CloudTasksProto .internal_static_google_cloud_tasks_v2beta3_UpdateQueueRequest_descriptor; @@ -265,7 +195,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -280,7 +210,7 @@ public int getSerializedSize() { if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -304,7 +234,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateMask()) { if (!getUpdateMask().equals(other.getUpdateMask())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -323,7 +253,7 @@ public int hashCode() { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; hash = (53 * hash) + getUpdateMask().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -452,17 +382,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.tasks.v2beta3.UpdateQueueRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -573,7 +496,7 @@ public Builder mergeFrom(com.google.cloud.tasks.v2beta3.UpdateQueueRequest other if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -588,18 +511,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.tasks.v2beta3.UpdateQueueRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getQueueFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.tasks.v2beta3.UpdateQueueRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1053,7 +1001,18 @@ public UpdateQueueRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateQueueRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; From 53a74c358217285e852a80e70b63f86c04a04ad8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 3 Oct 2022 19:38:24 +0000 Subject: [PATCH 389/401] chore(main): release 2.3.12-SNAPSHOT (#794) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 10 files changed, 37 insertions(+), 37 deletions(-) diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index a1903d92..f3c68233 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.11 + 2.3.12-SNAPSHOT pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.11 + 2.3.12-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.11 + 0.93.12-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.11 + 0.93.12-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.11 + 2.3.12-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.11 + 0.93.12-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.11 + 0.93.12-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.11 + 2.3.12-SNAPSHOT diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index 85671cbf..fcd8b5b1 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.11 + 2.3.12-SNAPSHOT jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.11 + 2.3.12-SNAPSHOT google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 2381521f..5b691061 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.11 + 2.3.12-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.11 + 2.3.12-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 7ad1cdd1..66c3403a 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.11 + 0.93.12-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.11 + 2.3.12-SNAPSHOT diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 0ea53a5e..792fe19a 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.11 + 0.93.12-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.11 + 2.3.12-SNAPSHOT diff --git a/pom.xml b/pom.xml index 09dda26f..c240b58c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.11 + 2.3.12-SNAPSHOT Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.11 + 0.93.12-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.11 + 0.93.12-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.11 + 2.3.12-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.11 + 0.93.12-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.11 + 0.93.12-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.11 + 2.3.12-SNAPSHOT com.google.cloud google-cloud-tasks - 2.3.11 + 2.3.12-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 5299fe28..9399c547 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.11 + 2.3.12-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.11 + 2.3.12-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 3810a5e5..38232bfa 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.11 + 0.93.12-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.11 + 2.3.12-SNAPSHOT diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index 9d496644..eb1b5dbe 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.11 + 0.93.12-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.11 + 2.3.12-SNAPSHOT diff --git a/versions.txt b/versions.txt index a6fed259..4fcd4ca4 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.11:2.3.11 -grpc-google-cloud-tasks-v2beta3:0.93.11:0.93.11 -grpc-google-cloud-tasks-v2beta2:0.93.11:0.93.11 -grpc-google-cloud-tasks-v2:2.3.11:2.3.11 -proto-google-cloud-tasks-v2beta3:0.93.11:0.93.11 -proto-google-cloud-tasks-v2beta2:0.93.11:0.93.11 -proto-google-cloud-tasks-v2:2.3.11:2.3.11 +google-cloud-tasks:2.3.11:2.3.12-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:0.93.11:0.93.12-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:0.93.11:0.93.12-SNAPSHOT +grpc-google-cloud-tasks-v2:2.3.11:2.3.12-SNAPSHOT +proto-google-cloud-tasks-v2beta3:0.93.11:0.93.12-SNAPSHOT +proto-google-cloud-tasks-v2beta2:0.93.11:0.93.12-SNAPSHOT +proto-google-cloud-tasks-v2:2.3.11:2.3.12-SNAPSHOT From d59590bb36eb55043248bedc686e84315ab18494 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 5 Oct 2022 19:12:16 +0000 Subject: [PATCH 390/401] chore(main): release 2.3.12 (#797) :robot: I have created a release *beep* *boop* --- ## [2.3.12](https://togithub.com/googleapis/java-tasks/compare/v2.3.11...v2.3.12) (2022-10-05) ### Bug Fixes * update protobuf to v3.21.7 ([79d519c](https://togithub.com/googleapis/java-tasks/commit/79d519c1d0970ed16b779be4015de0101971570e)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ README.md | 6 +++--- google-cloud-tasks-bom/pom.xml | 16 ++++++++-------- google-cloud-tasks/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- grpc-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- pom.xml | 16 ++++++++-------- proto-google-cloud-tasks-v2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta2/pom.xml | 4 ++-- proto-google-cloud-tasks-v2beta3/pom.xml | 4 ++-- versions.txt | 14 +++++++------- 12 files changed, 47 insertions(+), 40 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81cadccb..8c3630d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [2.3.12](https://github.com/googleapis/java-tasks/compare/v2.3.11...v2.3.12) (2022-10-05) + + +### Bug Fixes + +* update protobuf to v3.21.7 ([79d519c](https://github.com/googleapis/java-tasks/commit/79d519c1d0970ed16b779be4015de0101971570e)) + ## [2.3.11](https://github.com/googleapis/java-tasks/compare/v2.3.10...v2.3.11) (2022-10-03) diff --git a/README.md b/README.md index 25818f5a..13c63970 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.3.10 + 2.3.11 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.3.10' +implementation 'com.google.cloud:google-cloud-tasks:2.3.11' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.10" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.11" ``` ## Authentication diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml index f3c68233..7fedf07b 100644 --- a/google-cloud-tasks-bom/pom.xml +++ b/google-cloud-tasks-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.3.12-SNAPSHOT + 2.3.12 pom com.google.cloud @@ -52,37 +52,37 @@ com.google.cloud google-cloud-tasks - 2.3.12-SNAPSHOT + 2.3.12 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.12-SNAPSHOT + 0.93.12 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.12-SNAPSHOT + 0.93.12 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.12-SNAPSHOT + 2.3.12 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.12-SNAPSHOT + 0.93.12 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.12-SNAPSHOT + 0.93.12 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.12-SNAPSHOT + 2.3.12 diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml index fcd8b5b1..e2574409 100644 --- a/google-cloud-tasks/pom.xml +++ b/google-cloud-tasks/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.3.12-SNAPSHOT + 2.3.12 jar Google Cloud Tasks https://github.com/googleapis/java-tasks @@ -11,7 +11,7 @@ com.google.cloud google-cloud-tasks-parent - 2.3.12-SNAPSHOT + 2.3.12 google-cloud-tasks diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml index 5b691061..f430b8cb 100644 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ b/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.12-SNAPSHOT + 2.3.12 grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.12-SNAPSHOT + 2.3.12 diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml index 66c3403a..a4d4714e 100644 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.12-SNAPSHOT + 0.93.12 grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.12-SNAPSHOT + 2.3.12 diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml index 792fe19a..dc9d55de 100644 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.12-SNAPSHOT + 0.93.12 grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.12-SNAPSHOT + 2.3.12 diff --git a/pom.xml b/pom.xml index c240b58c..5833e84c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.3.12-SNAPSHOT + 2.3.12 Google Cloud Tasks Parent https://github.com/googleapis/java-tasks @@ -61,37 +61,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.12-SNAPSHOT + 0.93.12 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.12-SNAPSHOT + 0.93.12 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.12-SNAPSHOT + 2.3.12 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 0.93.12-SNAPSHOT + 0.93.12 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 0.93.12-SNAPSHOT + 0.93.12 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.3.12-SNAPSHOT + 2.3.12 com.google.cloud google-cloud-tasks - 2.3.12-SNAPSHOT + 2.3.12 diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml index 9399c547..0b7d88a4 100644 --- a/proto-google-cloud-tasks-v2/pom.xml +++ b/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.3.12-SNAPSHOT + 2.3.12 proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.3.12-SNAPSHOT + 2.3.12 diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml index 38232bfa..c3ed14c6 100644 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 0.93.12-SNAPSHOT + 0.93.12 proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.3.12-SNAPSHOT + 2.3.12 diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml index eb1b5dbe..2a93c6d2 100644 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 0.93.12-SNAPSHOT + 0.93.12 proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.3.12-SNAPSHOT + 2.3.12 diff --git a/versions.txt b/versions.txt index 4fcd4ca4..ad03e22a 100644 --- a/versions.txt +++ b/versions.txt @@ -1,10 +1,10 @@ # Format: # module:released-version:current-version -google-cloud-tasks:2.3.11:2.3.12-SNAPSHOT -grpc-google-cloud-tasks-v2beta3:0.93.11:0.93.12-SNAPSHOT -grpc-google-cloud-tasks-v2beta2:0.93.11:0.93.12-SNAPSHOT -grpc-google-cloud-tasks-v2:2.3.11:2.3.12-SNAPSHOT -proto-google-cloud-tasks-v2beta3:0.93.11:0.93.12-SNAPSHOT -proto-google-cloud-tasks-v2beta2:0.93.11:0.93.12-SNAPSHOT -proto-google-cloud-tasks-v2:2.3.11:2.3.12-SNAPSHOT +google-cloud-tasks:2.3.12:2.3.12 +grpc-google-cloud-tasks-v2beta3:0.93.12:0.93.12 +grpc-google-cloud-tasks-v2beta2:0.93.12:0.93.12 +grpc-google-cloud-tasks-v2:2.3.12:2.3.12 +proto-google-cloud-tasks-v2beta3:0.93.12:0.93.12 +proto-google-cloud-tasks-v2beta2:0.93.12:0.93.12 +proto-google-cloud-tasks-v2:2.3.12:2.3.12 From 0952e44cd7abf457304e4f073845b2a4f3bcc56d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 6 Oct 2022 03:18:25 +0200 Subject: [PATCH 391/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.3.11 (#795) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.3.10` -> `2.3.12` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.12/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.12/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.12/compatibility-slim/2.3.10)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.12/confidence-slim/2.3.10)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index bb6a377b..33fb9a05 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.3.10 + 2.3.11 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 490f127d..75bcfe71 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.3.10 + 2.3.11 From 16ac6a08288201c93b5a921aa1a1d5cc41ee55c5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 6 Oct 2022 17:20:13 +0200 Subject: [PATCH 392/401] chore(deps): update dependency com.google.cloud:google-cloud-tasks to v2.3.12 (#799) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-tasks](https://togithub.com/googleapis/java-tasks) | `2.3.11` -> `2.3.12` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.12/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.12/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.12/compatibility-slim/2.3.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-tasks/2.3.12/confidence-slim/2.3.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 13c63970..50e71e8d 100644 --- a/README.md +++ b/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.3.11 + 2.3.12 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.3.11' +implementation 'com.google.cloud:google-cloud-tasks:2.3.12' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.11" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.12" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 33fb9a05..a681df49 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-tasks - 2.3.11 + 2.3.12 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 75bcfe71..97cf4485 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-tasks - 2.3.11 + 2.3.12 From 6d57f6581ef68b85ff6e6daa67757452e2a4f9f1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Oct 2022 20:06:19 +0200 Subject: [PATCH 393/401] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.3 (#800) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.2` -> `26.1.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/compatibility-slim/26.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/confidence-slim/26.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index afc7ddc5..ad8b1e2c 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -29,7 +29,7 @@ com.google.cloud libraries-bom - 26.1.2 + 26.1.3 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 7fb3bff1..a8bf8633 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.2 + 26.1.3 pom import From 057aa2815d42e15158114a8714ca86c06dc553c3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 10 Oct 2022 14:40:26 +0000 Subject: [PATCH 394/401] chore: [java] generation with shared deps 3.0.4 (#1641) (#796) * chore: [java] generation with shared deps 3.0.4 * fix for tests Source-Link: https://togithub.com/googleapis/synthtool/commit/c3ad3cc9d876a3dd897cc511cf5ef921784851ae Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:5643a4e1b729803e67ddceee450e87052527b37cac394bf900b4f8e3d1bb3e9b --- .github/.OwlBot.lock.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 42327db5..a4f31d13 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:f14e3fefe8e361e85752bd9890c8e56f2fe25f1e89cbb9597e4e3c7a429203a3 + digest: sha256:5643a4e1b729803e67ddceee450e87052527b37cac394bf900b4f8e3d1bb3e9b From d0d2e5a765f4d13e44faa3ff391f7f44ea13594f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 7 Nov 2022 22:04:29 +0000 Subject: [PATCH 395/401] chore(java): add a note in README for migrated split repos (#1687) (#825) * chore(java): add a note in README for migrated split repos Disable renovate bot and flaky bot for split repositories that have moved to the Java monorepo. The Java monorepo will pass the "monorepo=True" parameter to java.common_templates method in its owlbot.py files so that the migration note will not appear in the README in the monorepo. Co-authored-by: Jeff Ching Source-Link: https://togithub.com/googleapis/synthtool/commit/d4b291604f148cde065838c498bc8aa79b8dc10e Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:edae91ccdd2dded2f572ec341a768ad180305a3e8fbfd93064b28e237d35920a --- .github/.OwlBot.lock.yaml | 2 +- .github/ISSUE_TEMPLATE/bug_report.md | 5 +++ .github/ISSUE_TEMPLATE/feature_request.md | 5 +++ .kokoro/dependencies.sh | 51 ----------------------- .kokoro/nightly/integration.cfg | 2 +- .kokoro/nightly/java11-integration.cfg | 2 +- .kokoro/nightly/samples.cfg | 2 +- .kokoro/requirements.in | 2 + .kokoro/requirements.txt | 14 ++++--- README.md | 13 ++++-- renovate.json | 1 + 11 files changed, 36 insertions(+), 63 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index a4f31d13..77cf6087 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:5643a4e1b729803e67ddceee450e87052527b37cac394bf900b4f8e3d1bb3e9b + digest: sha256:edae91ccdd2dded2f572ec341a768ad180305a3e8fbfd93064b28e237d35920a diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index f3b68fdf..42f7bcff 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -4,6 +4,11 @@ about: Create a report to help us improve --- +:bus: This library has moved to +[google-cloud-java/java-tasks]( +https://github.com/googleapis/google-cloud-java/tree/main/java-tasks). +This repository will be archived in the future. + Thanks for stopping by to let us know something could be better! **PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 754e30c6..96e2557d 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -4,6 +4,11 @@ about: Suggest an idea for this library --- +:bus: This library has moved to +[google-cloud-java/java-tasks]( +https://github.com/googleapis/google-cloud-java/tree/main/java-tasks). +This repository will be archived in the future. + Thanks for stopping by to let us know something could be better! **PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index d7476cfe..bd896024 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -57,54 +57,3 @@ retry_with_backoff 3 10 \ -Dclirr.skip=true mvn -B dependency:analyze -DfailOnWarning=true - -echo "****************** DEPENDENCY LIST COMPLETENESS CHECK *******************" -## Run dependency list completeness check -function completenessCheck() { - # Output dep list with compile scope generated using the original pom - # Running mvn dependency:list on Java versions that support modules will also include the module of the dependency. - # This is stripped from the output as it is not present in the flattened pom. - # Only dependencies with 'compile' or 'runtime' scope are included from original dependency list. - msg "Generating dependency list using original pom..." - mvn dependency:list -f pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e 's/ --.*//' >.org-list.txt - - # Output dep list generated using the flattened pom (only 'compile' and 'runtime' scopes) - msg "Generating dependency list using flattened pom..." - mvn dependency:list -f .flattened-pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' >.new-list.txt - - # Compare two dependency lists - msg "Comparing dependency lists..." - diff .org-list.txt .new-list.txt >.diff.txt - if [[ $? == 0 ]] - then - msg "Success. No diff!" - else - msg "Diff found. See below: " - msg "You can also check .diff.txt file located in $1." - cat .diff.txt - return 1 - fi -} - -# Allow failures to continue running the script -set +e - -error_count=0 -for path in **/.flattened-pom.xml -do - # Check flattened pom in each dir that contains it for completeness - dir=$(dirname "$path") - pushd "$dir" - completenessCheck "$dir" - error_count=$(($error_count + $?)) - popd -done - -if [[ $error_count == 0 ]] -then - msg "All checks passed." - exit 0 -else - msg "Errors found. See log statements above." - exit 1 -fi diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg index a2907a25..bd0297a3 100644 --- a/.kokoro/nightly/integration.cfg +++ b/.kokoro/nightly/integration.cfg @@ -23,7 +23,7 @@ env_vars: { env_vars: { key: "ENABLE_FLAKYBOT" - value: "true" + value: "false" } env_vars: { diff --git a/.kokoro/nightly/java11-integration.cfg b/.kokoro/nightly/java11-integration.cfg index 58049cc3..dc51b65e 100644 --- a/.kokoro/nightly/java11-integration.cfg +++ b/.kokoro/nightly/java11-integration.cfg @@ -23,7 +23,7 @@ env_vars: { env_vars: { key: "ENABLE_FLAKYBOT" - value: "true" + value: "false" } env_vars: { diff --git a/.kokoro/nightly/samples.cfg b/.kokoro/nightly/samples.cfg index 9761fd86..fee6a838 100644 --- a/.kokoro/nightly/samples.cfg +++ b/.kokoro/nightly/samples.cfg @@ -34,5 +34,5 @@ env_vars: { env_vars: { key: "ENABLE_FLAKYBOT" - value: "true" + value: "false" } diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in index cfdc2e7e..6aa7cf2b 100644 --- a/.kokoro/requirements.in +++ b/.kokoro/requirements.in @@ -16,10 +16,12 @@ pycparser==2.21 pyperclip==1.8.2 python-dateutil==2.8.2 requests==2.27.1 +certifi==2022.9.24 importlib-metadata==4.8.3 zipp==3.6.0 google_api_core==2.8.2 google-cloud-storage==2.0.0 +google-resumable-media==2.3.3 google-cloud-core==2.3.1 typing-extensions==4.1.1 urllib3==1.26.12 diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt index 170f1c63..02ae42bb 100644 --- a/.kokoro/requirements.txt +++ b/.kokoro/requirements.txt @@ -16,10 +16,12 @@ cachetools==4.2.4 \ # via # -r requirements.in # google-auth -certifi==2022.9.14 \ - --hash=sha256:36973885b9542e6bd01dea287b2b4b3b21236307c56324fcc3f1160f2d655ed5 \ - --hash=sha256:e232343de1ab72c2aa521b625c80f699e356830fd0e2c620b465b304b17b0516 - # via requests +certifi==2022.9.24 \ + --hash=sha256:0d9c601124e5a6ba9712dbc60d9c53c21e34f5f641fe83002317394311bdce14 \ + --hash=sha256:90c1a32f1d68f940488354e36370f6cca89f0f106db09518524c88d6ed83f382 + # via + # -r requirements.in + # requests cffi==1.15.1 \ --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ --hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef \ @@ -218,7 +220,9 @@ google-crc32c==1.3.0 \ google-resumable-media==2.3.3 \ --hash=sha256:27c52620bd364d1c8116eaac4ea2afcbfb81ae9139fb3199652fcac1724bfb6c \ --hash=sha256:5b52774ea7a829a8cdaa8bd2d4c3d4bc660c91b30857ab2668d0eb830f4ea8c5 - # via google-cloud-storage + # via + # -r requirements.in + # google-cloud-storage googleapis-common-protos==1.56.3 \ --hash=sha256:6f1369b58ed6cf3a4b7054a44ebe8d03b29c309257583a2bbdc064cd1e4a1442 \ --hash=sha256:87955d7b3a73e6e803f2572a33179de23989ebba725e05ea42f24838b792e461 diff --git a/README.md b/README.md index 50e71e8d..38a735ac 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,13 @@ Java idiomatic client for [Cloud Tasks][product-docs]. - [Client Library Documentation][javadocs] +:bus: In October 2022, this library has moved to +[google-cloud-java/java-tasks]( +https://github.com/googleapis/google-cloud-java/tree/main/java-tasks). +This repository will be archived in the future. +Future releases will appear in the new repository (https://github.com/googleapis/google-cloud-java/releases). +The Maven artifact coordinates (`com.google.cloud:google-cloud-tasks`) remain the same. + ## Quickstart @@ -19,20 +26,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-tasks - 2.3.12 + 2.5.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.3.12' +implementation 'com.google.cloud:google-cloud-tasks:2.5.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.3.12" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.5.0" ``` ## Authentication diff --git a/renovate.json b/renovate.json index bde1c7fd..60f70eae 100644 --- a/renovate.json +++ b/renovate.json @@ -1,4 +1,5 @@ { + "enabled": false, "extends": [ ":separateMajorReleases", ":combinePatchMinorReleases", From a1a59c69b7af04b5d79507a621ef3d76f8feb29d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 8 Nov 2022 17:56:33 +0100 Subject: [PATCH 396/401] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.4 (#822) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.3` -> `26.1.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.4/compatibility-slim/26.1.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.4/confidence-slim/26.1.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-tasks). --- samples/native-image-sample/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml index ad8b1e2c..8c2dea68 100644 --- a/samples/native-image-sample/pom.xml +++ b/samples/native-image-sample/pom.xml @@ -29,7 +29,7 @@ com.google.cloud libraries-bom - 26.1.3 + 26.1.4 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index a8bf8633..246eb82c 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.3 + 26.1.4 pom import From 14dfb7356b76a09690e16aa082b2671331391c23 Mon Sep 17 00:00:00 2001 From: Averi Kitsch Date: Wed, 9 Nov 2022 10:14:52 -0800 Subject: [PATCH 397/401] chore: delete deprecated samples (#827) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: delete deprecated samples Samples have moved to https://github.com/GoogleCloudPlatform/java-docs-samples/tree/main/tasks * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- README.md | 5 - .../java/com/example/task/CreateHttpTask.java | 67 -------------- .../example/task/CreateHttpTaskWithToken.java | 78 ---------------- .../java/com/example/task/CreateQueue.java | 54 ----------- .../java/com/example/task/DeleteQueue.java | 49 ---------- .../java/com/example/task/ListQueues.java | 57 ------------ .../com/example/task/CreateHttpTaskIT.java | 87 ------------------ .../java/com/example/task/CreateQueueIT.java | 78 ---------------- .../java/com/example/task/DeleteQueueIT.java | 92 ------------------- .../java/com/example/task/ListQueuesIT.java | 89 ------------------ 10 files changed, 656 deletions(-) delete mode 100644 samples/snippets/src/main/java/com/example/task/CreateHttpTask.java delete mode 100644 samples/snippets/src/main/java/com/example/task/CreateHttpTaskWithToken.java delete mode 100644 samples/snippets/src/main/java/com/example/task/CreateQueue.java delete mode 100644 samples/snippets/src/main/java/com/example/task/DeleteQueue.java delete mode 100644 samples/snippets/src/main/java/com/example/task/ListQueues.java delete mode 100644 samples/snippets/src/test/java/com/example/task/CreateHttpTaskIT.java delete mode 100644 samples/snippets/src/test/java/com/example/task/CreateQueueIT.java delete mode 100644 samples/snippets/src/test/java/com/example/task/DeleteQueueIT.java delete mode 100644 samples/snippets/src/test/java/com/example/task/ListQueuesIT.java diff --git a/README.md b/README.md index 38a735ac..e11bdef1 100644 --- a/README.md +++ b/README.md @@ -84,11 +84,6 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-tasks/tree/ma | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | | Tasks Sample Application | [source code](https://github.com/googleapis/java-tasks/blob/main/samples/native-image-sample/src/main/java/com/example/tasks/TasksSampleApplication.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/native-image-sample/src/main/java/com/example/tasks/TasksSampleApplication.java) | -| Create Http Task | [source code](https://github.com/googleapis/java-tasks/blob/main/samples/snippets/src/main/java/com/example/task/CreateHttpTask.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/CreateHttpTask.java) | -| Create Http Task With Token | [source code](https://github.com/googleapis/java-tasks/blob/main/samples/snippets/src/main/java/com/example/task/CreateHttpTaskWithToken.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/CreateHttpTaskWithToken.java) | -| Create Queue | [source code](https://github.com/googleapis/java-tasks/blob/main/samples/snippets/src/main/java/com/example/task/CreateQueue.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/CreateQueue.java) | -| Delete Queue | [source code](https://github.com/googleapis/java-tasks/blob/main/samples/snippets/src/main/java/com/example/task/DeleteQueue.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/DeleteQueue.java) | -| List Queues | [source code](https://github.com/googleapis/java-tasks/blob/main/samples/snippets/src/main/java/com/example/task/ListQueues.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-tasks&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/task/ListQueues.java) | diff --git a/samples/snippets/src/main/java/com/example/task/CreateHttpTask.java b/samples/snippets/src/main/java/com/example/task/CreateHttpTask.java deleted file mode 100644 index e86636bb..00000000 --- a/samples/snippets/src/main/java/com/example/task/CreateHttpTask.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2018 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.task; - -// [START cloud_tasks_create_http_task] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.HttpMethod; -import com.google.cloud.tasks.v2.HttpRequest; -import com.google.cloud.tasks.v2.QueueName; -import com.google.cloud.tasks.v2.Task; -import com.google.protobuf.ByteString; -import java.io.IOException; -import java.nio.charset.Charset; - -public class CreateHttpTask { - - public static void main(String[] args) throws IOException { - // TODO(developer): Replace these variables before running the sample. - String projectId = "my-project-id"; - String locationId = "us-central1"; - String queueId = "my-queue"; - createTask(projectId, locationId, queueId); - } - - // Create a task with a HTTP target using the Cloud Tasks client. - public static void createTask(String projectId, String locationId, String queueId) - throws IOException { - - // Instantiates a client. - try (CloudTasksClient client = CloudTasksClient.create()) { - String url = "https://example.com/taskhandler"; - String payload = "Hello, World!"; - - // Construct the fully qualified queue name. - String queuePath = QueueName.of(projectId, locationId, queueId).toString(); - - // Construct the task body. - Task.Builder taskBuilder = - Task.newBuilder() - .setHttpRequest( - HttpRequest.newBuilder() - .setBody(ByteString.copyFrom(payload, Charset.defaultCharset())) - .setUrl(url) - .setHttpMethod(HttpMethod.POST) - .build()); - - // Send create task request. - Task task = client.createTask(queuePath, taskBuilder.build()); - System.out.println("Task created: " + task.getName()); - } - } -} -// [END cloud_tasks_create_http_task] diff --git a/samples/snippets/src/main/java/com/example/task/CreateHttpTaskWithToken.java b/samples/snippets/src/main/java/com/example/task/CreateHttpTaskWithToken.java deleted file mode 100644 index 91cd8c22..00000000 --- a/samples/snippets/src/main/java/com/example/task/CreateHttpTaskWithToken.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.task; - -// [START cloud_tasks_create_http_task_with_token] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.HttpMethod; -import com.google.cloud.tasks.v2.HttpRequest; -import com.google.cloud.tasks.v2.OidcToken; -import com.google.cloud.tasks.v2.QueueName; -import com.google.cloud.tasks.v2.Task; -import com.google.protobuf.ByteString; -import java.io.IOException; -import java.nio.charset.Charset; - -public class CreateHttpTaskWithToken { - - public static void main(String[] args) throws IOException { - // TODO(developer): Replace these variables before running the sample. - String projectId = "my-project-id"; - String locationId = "us-central1"; - String queueId = "my-queue"; - String serviceAccountEmail = - "java-docs-samples-testing@java-docs-samples-testing.iam.gserviceaccount.com"; - createTask(projectId, locationId, queueId, serviceAccountEmail); - } - - // Create a task with a HTTP target and authorization token using the Cloud Tasks client. - public static void createTask( - String projectId, String locationId, String queueId, String serviceAccountEmail) - throws IOException { - - // Instantiates a client. - try (CloudTasksClient client = CloudTasksClient.create()) { - String url = - "https://example.com/taskhandler"; // The full url path that the request will be sent to - String payload = "Hello, World!"; // The task HTTP request body - - // Construct the fully qualified queue name. - String queuePath = QueueName.of(projectId, locationId, queueId).toString(); - - // Add your service account email to construct the OIDC token. - // in order to add an authentication header to the request. - OidcToken.Builder oidcTokenBuilder = - OidcToken.newBuilder().setServiceAccountEmail(serviceAccountEmail); - - // Construct the task body. - Task.Builder taskBuilder = - Task.newBuilder() - .setHttpRequest( - HttpRequest.newBuilder() - .setBody(ByteString.copyFrom(payload, Charset.defaultCharset())) - .setHttpMethod(HttpMethod.POST) - .setUrl(url) - .setOidcToken(oidcTokenBuilder) - .build()); - - // Send create task request. - Task task = client.createTask(queuePath, taskBuilder.build()); - System.out.println("Task created: " + task.getName()); - } - } -} -// [END cloud_tasks_create_http_task_with_token] diff --git a/samples/snippets/src/main/java/com/example/task/CreateQueue.java b/samples/snippets/src/main/java/com/example/task/CreateQueue.java deleted file mode 100644 index 04aa8110..00000000 --- a/samples/snippets/src/main/java/com/example/task/CreateQueue.java +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.example.task; - -// [START cloud_tasks_create_queue] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.LocationName; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.QueueName; -import java.io.IOException; - -public class CreateQueue { - - public static void main(String[] args) throws IOException { - // TODO(developer): Replace these variables before running the sample. - String projectId = "my-project-id"; - String locationId = "us-central1"; - String queueId = "my-queue"; - createQueue(projectId, locationId, queueId); - } - - // Create a queue using the Cloud Tasks client. - public static void createQueue(String projectId, String locationId, String queueId) - throws IOException { - - // Instantiates a client. - try (CloudTasksClient client = CloudTasksClient.create()) { - - // Construct the fully qualified location. - String parent = LocationName.of(projectId, locationId).toString(); - - // Construct the fully qualified queue path. - String queuePath = QueueName.of(projectId, locationId, queueId).toString(); - - // Send create queue request. - Queue queue = client.createQueue(parent, Queue.newBuilder().setName(queuePath).build()); - - System.out.println("Queue created: " + queue.getName()); - } - } -} -// [END cloud_tasks_create_queue] diff --git a/samples/snippets/src/main/java/com/example/task/DeleteQueue.java b/samples/snippets/src/main/java/com/example/task/DeleteQueue.java deleted file mode 100644 index 6f5d9898..00000000 --- a/samples/snippets/src/main/java/com/example/task/DeleteQueue.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.example.task; - -// [START cloud_tasks_delete_queue] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.QueueName; -import java.io.IOException; - -public class DeleteQueue { - - public static void main(String[] args) throws IOException { - // TODO(developer): Replace these variables before running the sample. - String projectId = "my-project-id"; - String locationId = "us-central1"; - String queueId = "my-queue"; - deleteQueue(projectId, locationId, queueId); - } - - // Delete a queue using the Cloud Tasks client. - public static void deleteQueue(String projectId, String locationId, String queueId) - throws IOException { - - // Instantiates a client. - try (CloudTasksClient client = CloudTasksClient.create()) { - - // Construct the fully qualified queue path. - String queuePath = QueueName.of(projectId, locationId, queueId).toString(); - - // Send delete queue request. - client.deleteQueue(queuePath); - - System.out.println("Queue deleted: " + queueId); - } - } -} -// [END cloud_tasks_delete_queue] diff --git a/samples/snippets/src/main/java/com/example/task/ListQueues.java b/samples/snippets/src/main/java/com/example/task/ListQueues.java deleted file mode 100644 index 2405eeca..00000000 --- a/samples/snippets/src/main/java/com/example/task/ListQueues.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.example.task; - -// [START cloud_tasks_list_queues] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.LocationName; -import com.google.cloud.tasks.v2.Queue; -import java.io.IOException; - -public class ListQueues { - - public static void main(String[] args) throws IOException { - // TODO(developer): Replace these variables before running the sample. - String projectId = "my-project-id"; - String locationId = "us-central1"; - listQueues(projectId, locationId); - } - - // List queues using the Cloud Tasks client. - public static void listQueues(String projectId, String locationId) throws IOException { - - // Instantiates a client. - try (CloudTasksClient client = CloudTasksClient.create()) { - - // Construct the fully qualified location path. - String parent = LocationName.of(projectId, locationId).toString(); - - // Send list queues request. - CloudTasksClient.ListQueuesPagedResponse response = client.listQueues(parent); - - // Iterate over results and print queue names - int total = 0; - for (Queue queue : response.iterateAll()) { - System.out.println(queue.getName()); - total++; - } - - if (total == 0) { - System.out.println("No queues found!"); - } - } - } -} -// [END cloud_tasks_list_queues] diff --git a/samples/snippets/src/test/java/com/example/task/CreateHttpTaskIT.java b/samples/snippets/src/test/java/com/example/task/CreateHttpTaskIT.java deleted file mode 100644 index 11fd89f0..00000000 --- a/samples/snippets/src/test/java/com/example/task/CreateHttpTaskIT.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.task; - -import static com.google.common.truth.Truth.assertThat; -import static org.junit.Assert.assertNotNull; - -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.QueueName; -import java.io.ByteArrayOutputStream; -import java.io.PrintStream; -import org.junit.After; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.JUnit4; - -/** Tests for creating Tasks with HTTP targets. */ -@RunWith(JUnit4.class) -public class CreateHttpTaskIT { - private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); - private static final String LOCATION_ID = System.getenv("LOCATION_ID"); - private static final String QUEUE_ID = "default"; - private static final String EMAIL = - "java-docs-samples-testing@java-docs-samples-testing.iam.gserviceaccount.com"; - private ByteArrayOutputStream bout; - private PrintStream out; - - private static void requireEnvVar(String varName) { - assertNotNull( - String.format("Environment variable '%s' must be set to perform these tests.", varName), - System.getenv(varName)); - } - - @BeforeClass - public static void checkRequirements() { - requireEnvVar("GOOGLE_CLOUD_PROJECT"); - requireEnvVar("LOCATION_ID"); - } - - @Before - public void setUp() { - bout = new ByteArrayOutputStream(); - out = new PrintStream(bout); - System.setOut(out); - } - - @After - public void tearDown() { - System.setOut(null); - try (CloudTasksClient client = CloudTasksClient.create()) { - String queuePath = QueueName.of(PROJECT_ID, LOCATION_ID, QUEUE_ID).toString(); - client.purgeQueue(queuePath); - } catch (Exception e) { - System.out.println("Error with queue purge."); - } - } - - @Test - public void testCreateHttpTask() throws Exception { - CreateHttpTask.createTask(PROJECT_ID, LOCATION_ID, QUEUE_ID); - String got = bout.toString(); - assertThat(got).contains("Task created:"); - } - - @Test - public void testCreateHttpTaskWithToken() throws Exception { - CreateHttpTaskWithToken.createTask(PROJECT_ID, LOCATION_ID, QUEUE_ID, EMAIL); - String got = bout.toString(); - assertThat(got).contains("Task created:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/task/CreateQueueIT.java b/samples/snippets/src/test/java/com/example/task/CreateQueueIT.java deleted file mode 100644 index 8677ee30..00000000 --- a/samples/snippets/src/test/java/com/example/task/CreateQueueIT.java +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.example.task; - -import static com.google.common.truth.Truth.assertThat; -import static org.junit.Assert.assertNotNull; - -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.QueueName; -import java.io.ByteArrayOutputStream; -import java.io.PrintStream; -import java.util.UUID; -import org.junit.After; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.JUnit4; - -/** Tests for creating queues. */ -@RunWith(JUnit4.class) -public class CreateQueueIT { - private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); - private static final String LOCATION_ID = System.getenv("LOCATION_ID"); - private static final String QUEUE_ID = "test-queue-" + UUID.randomUUID(); - - private ByteArrayOutputStream bout; - private PrintStream out; - - private static void requireEnvVar(String varName) { - assertNotNull( - String.format("Environment variable '%s' must be set to perform these tests.", varName), - System.getenv(varName)); - } - - @BeforeClass - public static void checkRequirements() { - requireEnvVar("GOOGLE_CLOUD_PROJECT"); - requireEnvVar("LOCATION_ID"); - } - - @Before - public void setUp() { - bout = new ByteArrayOutputStream(); - out = new PrintStream(bout); - System.setOut(out); - } - - @After - public void tearDown() { - try (CloudTasksClient client = CloudTasksClient.create()) { - String queuePath = QueueName.of(PROJECT_ID, LOCATION_ID, QUEUE_ID).toString(); - client.deleteQueue(queuePath); - } catch (Exception e) { - System.out.println("Error with queue deletion."); - } - System.setOut(null); - } - - @Test - public void testCreateQueue() throws Exception { - CreateQueue.createQueue(PROJECT_ID, LOCATION_ID, QUEUE_ID); - String got = bout.toString(); - assertThat(got).contains("Queue created:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/task/DeleteQueueIT.java b/samples/snippets/src/test/java/com/example/task/DeleteQueueIT.java deleted file mode 100644 index 3bf3ad63..00000000 --- a/samples/snippets/src/test/java/com/example/task/DeleteQueueIT.java +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.example.task; - -import static com.google.common.truth.Truth.assertThat; -import static org.junit.Assert.assertNotNull; - -import com.google.api.gax.rpc.NotFoundException; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.LocationName; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.QueueName; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.UUID; -import org.junit.After; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.JUnit4; - -/** Tests for deleting queues. */ -@RunWith(JUnit4.class) -public class DeleteQueueIT { - private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); - private static final String LOCATION_ID = System.getenv("LOCATION_ID"); - private static final String QUEUE_ID = "test-queue-" + UUID.randomUUID(); - - private ByteArrayOutputStream bout; - private PrintStream out; - private Queue queue; - - private static void requireEnvVar(String varName) { - assertNotNull( - String.format("Environment variable '%s' must be set to perform these tests.", varName), - System.getenv(varName)); - } - - @BeforeClass - public static void checkRequirements() { - requireEnvVar("GOOGLE_CLOUD_PROJECT"); - requireEnvVar("LOCATION_ID"); - } - - @Before - public void setUp() { - bout = new ByteArrayOutputStream(); - out = new PrintStream(bout); - System.setOut(out); - - try (CloudTasksClient client = CloudTasksClient.create()) { - String parent = LocationName.of(PROJECT_ID, LOCATION_ID).toString(); - String queuePath = QueueName.of(PROJECT_ID, LOCATION_ID, QUEUE_ID).toString(); - queue = client.createQueue(parent, Queue.newBuilder().setName(queuePath).build()); - } catch (Exception e) { - System.out.println("Error with queue creation."); - } - } - - @After - public void tearDown() { - try (CloudTasksClient client = CloudTasksClient.create()) { - client.deleteQueue(queue.getName()); - } catch (IOException e) { - System.out.println("Error with queue deletion."); - } catch (NotFoundException e) { - System.out.println("Queue already successfully deleted"); - } - System.setOut(null); - } - - @Test - public void testDeleteQueue() throws Exception { - DeleteQueue.deleteQueue(PROJECT_ID, LOCATION_ID, QUEUE_ID); - String got = bout.toString(); - assertThat(got).contains("Queue deleted:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/task/ListQueuesIT.java b/samples/snippets/src/test/java/com/example/task/ListQueuesIT.java deleted file mode 100644 index 287a83ec..00000000 --- a/samples/snippets/src/test/java/com/example/task/ListQueuesIT.java +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package com.example.task; - -import static com.google.common.truth.Truth.assertThat; -import static org.junit.Assert.assertNotNull; - -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.LocationName; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.QueueName; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.PrintStream; -import java.util.UUID; -import org.junit.After; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.junit.runners.JUnit4; - -/** Tests for listing queues. */ -@RunWith(JUnit4.class) -public class ListQueuesIT { - private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); - private static final String LOCATION_ID = System.getenv("LOCATION_ID"); - private static final String QUEUE_ID = "test-queue-" + UUID.randomUUID(); - - private ByteArrayOutputStream bout; - private PrintStream out; - private Queue queue; - - private static void requireEnvVar(String varName) { - assertNotNull( - String.format("Environment variable '%s' must be set to perform these tests.", varName), - System.getenv(varName)); - } - - @BeforeClass - public static void checkRequirements() { - requireEnvVar("GOOGLE_CLOUD_PROJECT"); - requireEnvVar("LOCATION_ID"); - } - - @Before - public void setUp() { - bout = new ByteArrayOutputStream(); - out = new PrintStream(bout); - System.setOut(out); - - try (CloudTasksClient client = CloudTasksClient.create()) { - String parent = LocationName.of(PROJECT_ID, LOCATION_ID).toString(); - String queuePath = QueueName.of(PROJECT_ID, LOCATION_ID, QUEUE_ID).toString(); - queue = client.createQueue(parent, Queue.newBuilder().setName(queuePath).build()); - } catch (Exception e) { - System.out.println("Error with queue creation."); - } - } - - @After - public void tearDown() { - try (CloudTasksClient client = CloudTasksClient.create()) { - client.deleteQueue(queue.getName()); - } catch (IOException e) { - System.out.println("Error with queue deletion."); - } - System.setOut(null); - } - - @Test - public void testListQueues() throws Exception { - ListQueues.listQueues(PROJECT_ID, LOCATION_ID); - String got = bout.toString(); - assertThat(got).contains(queue.getName()); - } -} From 08a16793117733f19a6d1ccaaca7e9c95e6cce48 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit <90280028+ddixit14@users.noreply.github.com> Date: Thu, 23 Mar 2023 13:55:48 -0400 Subject: [PATCH 398/401] chore: Disabling owlbot (#846) --- .github/.OwlBot.lock.yaml | 16 ---------- .github/.OwlBot.yaml | 39 ------------------------ owlbot.py | 63 --------------------------------------- 3 files changed, 118 deletions(-) delete mode 100644 .github/.OwlBot.lock.yaml delete mode 100644 .github/.OwlBot.yaml delete mode 100644 owlbot.py diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml deleted file mode 100644 index 77cf6087..00000000 --- a/.github/.OwlBot.lock.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -docker: - image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:edae91ccdd2dded2f572ec341a768ad180305a3e8fbfd93064b28e237d35920a diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml deleted file mode 100644 index 686a4867..00000000 --- a/.github/.OwlBot.yaml +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -docker: - image: "gcr.io/cloud-devrel-public-resources/owlbot-java:latest" - -deep-remove-regex: -- "/samples/snippets/generated" -- "/grpc-google-.*/src" -- "/proto-google-.*/src" -- "/google-.*/src" - -deep-preserve-regex: -- "/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksSmokeTest.java" -- "/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ProjectName.java" -- "/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ProjectName.java" -- "/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ProjectName.java" - -deep-copy-regex: -- source: "/google/cloud/tasks/(v.*)/.*-java/proto-google-.*/src" - dest: "/owl-bot-staging/$1/proto-google-cloud-tasks-$1/src" -- source: "/google/cloud/tasks/(v.*)/.*-java/grpc-google-.*/src" - dest: "/owl-bot-staging/$1/grpc-google-cloud-tasks-$1/src" -- source: "/google/cloud/tasks/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/$1/google-cloud-tasks/src" -- source: "/google/cloud/tasks/(v.*)/.*-java/samples/snippets/generated" - dest: "/owl-bot-staging/$1/samples/snippets/generated" diff --git a/owlbot.py b/owlbot.py deleted file mode 100644 index 4e0144e4..00000000 --- a/owlbot.py +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 2021 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. - -import synthtool as s -from synthtool.languages import java - - -GET_IAM_POLICY = """ - public final Policy getIamPolicy(QueueName queueName) { - return getIamPolicy((ResourceName) queueName); - } -""" -GET_IAM_POLICY_PREVIOUS = r'(\s+public final Policy getIamPolicy\(GetIamPolicyRequest request\) {\n\s+return .*\n\s+})' - -SET_IAM_POLICY = """ - public final Policy setIamPolicy(QueueName queue, Policy policy) { - return setIamPolicy((ResourceName) queue, policy); - } -""" -SET_IAM_POLICY_PREVIOUS = r'(\s+public final Policy setIamPolicy\(SetIamPolicyRequest request\) {\n\s+return .*\n\s+})' - -TEST_IAM_POLICY = """ - public final TestIamPermissionsResponse testIamPermissions( - QueueName queue, List permissions) { - return testIamPermissions((ResourceName) queue, permissions); - } -""" -TEST_IAM_POLICY_PREVIOUS = r'(\spublic final TestIamPermissionsResponse testIamPermissions\(TestIamPermissionsRequest request\) {\n\s+return .*\n\s+})' - -for library in s.get_staging_dirs(): - # put any special-case replacements here - version = library.parts[len(library.parts) - 1] - service = 'tasks' - s.replace( - f'owl-bot-staging/{version}/google-cloud-{service}/src/main/java/com/google/cloud/tasks/{version}/CloudTasksClient.java', - GET_IAM_POLICY_PREVIOUS, - "\g<1>\n\n" + GET_IAM_POLICY - ) - s.replace( - f'owl-bot-staging/{version}/google-cloud-{service}/src/main/java/com/google/cloud/tasks/{version}/CloudTasksClient.java', - SET_IAM_POLICY_PREVIOUS, - "\g<1>\n\n" + SET_IAM_POLICY - ) - s.replace( - f'owl-bot-staging/{version}/google-cloud-{service}/src/main/java/com/google/cloud/tasks/{version}/CloudTasksClient.java', - TEST_IAM_POLICY_PREVIOUS, - "\g<1>\n\n" + TEST_IAM_POLICY - ) - s.move(library) - -s.remove_staging_dirs() -java.common_templates(excludes=[".kokoro/build.sh"]) From 2f1384ca6bab605af6c0eabb1f08cdc4140d62db Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 31 May 2023 12:30:25 -0700 Subject: [PATCH 399/401] build: enable multiScm for releases (#849) --- .github/release-trigger.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/release-trigger.yml b/.github/release-trigger.yml index d4ca9418..e38143ed 100644 --- a/.github/release-trigger.yml +++ b/.github/release-trigger.yml @@ -1 +1,2 @@ enabled: true +multiScmName: java-tasks From 432c6b0e423ffd4877ef36fcbb06a70509aab8a4 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Thu, 6 Jul 2023 09:00:22 -0400 Subject: [PATCH 400/401] chore: add java-docs-samples in README.md (#852) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e11bdef1..fc37b9fa 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ https://github.com/googleapis/google-cloud-java/tree/main/java-tasks). This repository will be archived in the future. Future releases will appear in the new repository (https://github.com/googleapis/google-cloud-java/releases). The Maven artifact coordinates (`com.google.cloud:google-cloud-tasks`) remain the same. +Sample code is in https://github.com/GoogleCloudPlatform/java-docs-samples. ## Quickstart From b0a8718070644d5340d02b15d6d4dbdc700401db Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Thu, 6 Jul 2023 11:13:08 -0400 Subject: [PATCH 401/401] chore: removing outdated files in favor of https://github.com/googleapis/google-cloud-java/tree/main/java-tasks (#853) --- .github/CODEOWNERS | 15 - .github/ISSUE_TEMPLATE/bug_report.md | 56 - .github/ISSUE_TEMPLATE/feature_request.md | 26 - .github/ISSUE_TEMPLATE/support_request.md | 7 - .github/PULL_REQUEST_TEMPLATE.md | 10 - .github/auto-label.yaml | 15 - .github/blunderbuss.yml | 7 - .github/generated-files-bot.yml | 12 - .github/snippet-bot.yml | 0 .github/sync-repo-settings.yaml | 69 - .github/trusted-contribution.yml | 3 - .github/workflows/approve-readme.yaml | 69 - .github/workflows/auto-release.yaml | 103 - .github/workflows/ci.yaml | 89 - .github/workflows/samples.yaml | 30 - .gitignore | 47 - .kokoro/build.bat | 18 - .kokoro/build.sh | 115 - .kokoro/coerce_logs.sh | 37 - .kokoro/common.cfg | 13 - .kokoro/common.sh | 60 - .kokoro/continuous/common.cfg | 25 - .kokoro/continuous/java8.cfg | 12 - .kokoro/continuous/propose_release.sh | 29 - .kokoro/dependencies.sh | 59 - .kokoro/nightly/common.cfg | 25 - .kokoro/nightly/integration.cfg | 37 - .kokoro/nightly/java11-integration.cfg | 37 - .kokoro/nightly/java11.cfg | 7 - .kokoro/nightly/java7.cfg | 7 - .kokoro/nightly/java8-osx.cfg | 3 - .kokoro/nightly/java8-win.cfg | 3 - .kokoro/nightly/java8.cfg | 12 - .kokoro/nightly/samples.cfg | 38 - .kokoro/populate-secrets.sh | 43 - .kokoro/presubmit/clirr.cfg | 13 - .kokoro/presubmit/common.cfg | 34 - .kokoro/presubmit/dependencies.cfg | 12 - .kokoro/presubmit/graalvm-native-17.cfg | 33 - .kokoro/presubmit/graalvm-native.cfg | 33 - .kokoro/presubmit/integration.cfg | 33 - .kokoro/presubmit/java11.cfg | 7 - .kokoro/presubmit/java7.cfg | 7 - .kokoro/presubmit/java8-osx.cfg | 3 - .kokoro/presubmit/java8-win.cfg | 3 - .kokoro/presubmit/java8.cfg | 12 - .kokoro/presubmit/linkage-monitor.cfg | 12 - .kokoro/presubmit/lint.cfg | 13 - .kokoro/presubmit/samples.cfg | 33 - .kokoro/readme.sh | 45 - .kokoro/release/bump_snapshot.cfg | 53 - .kokoro/release/bump_snapshot.sh | 30 - .kokoro/release/common.cfg | 49 - .kokoro/release/common.sh | 50 - .kokoro/release/drop.cfg | 6 - .kokoro/release/drop.sh | 32 - .kokoro/release/promote.cfg | 6 - .kokoro/release/promote.sh | 34 - .kokoro/release/publish_javadoc.cfg | 23 - .kokoro/release/publish_javadoc.sh | 53 - .kokoro/release/publish_javadoc11.cfg | 30 - .kokoro/release/publish_javadoc11.sh | 63 - .kokoro/release/snapshot.cfg | 6 - .kokoro/release/snapshot.sh | 33 - .kokoro/release/stage.cfg | 19 - .kokoro/release/stage.sh | 47 - .kokoro/requirements.in | 33 - .kokoro/requirements.txt | 456 -- .kokoro/trampoline.sh | 26 - .repo-metadata.json | 18 - CHANGELOG.md | 633 --- codecov.yaml | 4 - google-cloud-tasks-bom/pom.xml | 101 - google-cloud-tasks/pom.xml | 152 - .../cloud/tasks/v2/CloudTasksClient.java | 2757 ----------- .../cloud/tasks/v2/CloudTasksSettings.java | 366 -- .../google/cloud/tasks/v2/gapic_metadata.json | 66 - .../google/cloud/tasks/v2/package-info.java | 42 - .../cloud/tasks/v2/stub/CloudTasksStub.java | 133 - .../tasks/v2/stub/CloudTasksStubSettings.java | 816 --- .../stub/GrpcCloudTasksCallableFactory.java | 113 - .../tasks/v2/stub/GrpcCloudTasksStub.java | 615 --- .../HttpJsonCloudTasksCallableFactory.java | 105 - .../tasks/v2/stub/HttpJsonCloudTasksStub.java | 984 ---- .../cloud/tasks/v2beta2/CloudTasksClient.java | 3502 ------------- .../tasks/v2beta2/CloudTasksSettings.java | 407 -- .../cloud/tasks/v2beta2/gapic_metadata.json | 78 - .../cloud/tasks/v2beta2/package-info.java | 42 - .../tasks/v2beta2/stub/CloudTasksStub.java | 156 - .../v2beta2/stub/CloudTasksStubSettings.java | 911 ---- .../stub/GrpcCloudTasksCallableFactory.java | 115 - .../v2beta2/stub/GrpcCloudTasksStub.java | 733 --- .../HttpJsonCloudTasksCallableFactory.java | 105 - .../v2beta2/stub/HttpJsonCloudTasksStub.java | 1193 ----- .../cloud/tasks/v2beta3/CloudTasksClient.java | 2772 ----------- .../tasks/v2beta3/CloudTasksSettings.java | 367 -- .../cloud/tasks/v2beta3/gapic_metadata.json | 66 - .../cloud/tasks/v2beta3/package-info.java | 42 - .../tasks/v2beta3/stub/CloudTasksStub.java | 135 - .../v2beta3/stub/CloudTasksStubSettings.java | 817 --- .../stub/GrpcCloudTasksCallableFactory.java | 115 - .../v2beta3/stub/GrpcCloudTasksStub.java | 617 --- .../HttpJsonCloudTasksCallableFactory.java | 105 - .../v2beta3/stub/HttpJsonCloudTasksStub.java | 986 ---- .../v2/CloudTasksClientHttpJsonTest.java | 1602 ------ .../cloud/tasks/v2/CloudTasksClientTest.java | 1413 ------ .../google/cloud/tasks/v2/MockCloudTasks.java | 59 - .../cloud/tasks/v2/MockCloudTasksImpl.java | 399 -- .../cloud/tasks/v2/it/ITSystemTest.java | 165 - .../v2beta2/CloudTasksClientHttpJsonTest.java | 1966 -------- .../tasks/v2beta2/CloudTasksClientTest.java | 1734 ------- .../cloud/tasks/v2beta2/MockCloudTasks.java | 59 - .../tasks/v2beta2/MockCloudTasksImpl.java | 484 -- .../v2beta3/CloudTasksClientHttpJsonTest.java | 1628 ------ .../tasks/v2beta3/CloudTasksClientTest.java | 1435 ------ .../tasks/v2beta3/CloudTasksSmokeTest.java | 112 - .../cloud/tasks/v2beta3/MockCloudTasks.java | 59 - .../tasks/v2beta3/MockCloudTasksImpl.java | 402 -- grpc-google-cloud-tasks-v2/pom.xml | 69 - .../google/cloud/tasks/v2/CloudTasksGrpc.java | 2356 --------- grpc-google-cloud-tasks-v2beta2/pom.xml | 69 - .../cloud/tasks/v2beta2/CloudTasksGrpc.java | 2985 ----------- grpc-google-cloud-tasks-v2beta3/pom.xml | 69 - .../cloud/tasks/v2beta3/CloudTasksGrpc.java | 2381 --------- java.header | 15 - license-checks.xml | 10 - pom.xml | 211 - .../clirr-ignored-differences.xml | 19 - proto-google-cloud-tasks-v2/pom.xml | 46 - .../cloud/tasks/v2/AppEngineHttpRequest.java | 2044 -------- .../v2/AppEngineHttpRequestOrBuilder.java | 382 -- .../cloud/tasks/v2/AppEngineRouting.java | 1488 ------ .../tasks/v2/AppEngineRoutingOrBuilder.java | 213 - .../com/google/cloud/tasks/v2/Attempt.java | 1552 ------ .../cloud/tasks/v2/AttemptOrBuilder.java | 180 - .../cloud/tasks/v2/CloudTasksProto.java | 378 -- .../cloud/tasks/v2/CreateQueueRequest.java | 936 ---- .../tasks/v2/CreateQueueRequestOrBuilder.java | 100 - .../cloud/tasks/v2/CreateTaskRequest.java | 1436 ------ .../tasks/v2/CreateTaskRequestOrBuilder.java | 217 - .../cloud/tasks/v2/DeleteQueueRequest.java | 635 --- .../tasks/v2/DeleteQueueRequestOrBuilder.java | 56 - .../cloud/tasks/v2/DeleteTaskRequest.java | 637 --- .../tasks/v2/DeleteTaskRequestOrBuilder.java | 56 - .../cloud/tasks/v2/GetQueueRequest.java | 635 --- .../tasks/v2/GetQueueRequestOrBuilder.java | 56 - .../google/cloud/tasks/v2/GetTaskRequest.java | 846 ---- .../tasks/v2/GetTaskRequestOrBuilder.java | 99 - .../com/google/cloud/tasks/v2/HttpMethod.java | 286 -- .../google/cloud/tasks/v2/HttpRequest.java | 2297 --------- .../cloud/tasks/v2/HttpRequestOrBuilder.java | 367 -- .../cloud/tasks/v2/ListQueuesRequest.java | 1200 ----- .../tasks/v2/ListQueuesRequestOrBuilder.java | 152 - .../cloud/tasks/v2/ListQueuesResponse.java | 1134 ----- .../tasks/v2/ListQueuesResponseOrBuilder.java | 111 - .../cloud/tasks/v2/ListTasksRequest.java | 1178 ----- .../tasks/v2/ListTasksRequestOrBuilder.java | 154 - .../cloud/tasks/v2/ListTasksResponse.java | 1125 ----- .../tasks/v2/ListTasksResponseOrBuilder.java | 109 - .../google/cloud/tasks/v2/LocationName.java | 192 - .../com/google/cloud/tasks/v2/OAuthToken.java | 837 ---- .../cloud/tasks/v2/OAuthTokenOrBuilder.java | 87 - .../com/google/cloud/tasks/v2/OidcToken.java | 834 ---- .../cloud/tasks/v2/OidcTokenOrBuilder.java | 85 - .../cloud/tasks/v2/PauseQueueRequest.java | 635 --- .../tasks/v2/PauseQueueRequestOrBuilder.java | 56 - .../google/cloud/tasks/v2/ProjectName.java | 162 - .../cloud/tasks/v2/PurgeQueueRequest.java | 635 --- .../tasks/v2/PurgeQueueRequestOrBuilder.java | 56 - .../java/com/google/cloud/tasks/v2/Queue.java | 2988 ----------- .../com/google/cloud/tasks/v2/QueueName.java | 223 - .../google/cloud/tasks/v2/QueueOrBuilder.java | 423 -- .../com/google/cloud/tasks/v2/QueueProto.java | 146 - .../com/google/cloud/tasks/v2/RateLimits.java | 885 ---- .../cloud/tasks/v2/RateLimitsOrBuilder.java | 106 - .../cloud/tasks/v2/ResumeQueueRequest.java | 635 --- .../tasks/v2/ResumeQueueRequestOrBuilder.java | 56 - .../google/cloud/tasks/v2/RetryConfig.java | 1911 ------- .../cloud/tasks/v2/RetryConfigOrBuilder.java | 281 -- .../google/cloud/tasks/v2/RunTaskRequest.java | 848 ---- .../tasks/v2/RunTaskRequestOrBuilder.java | 99 - .../tasks/v2/StackdriverLoggingConfig.java | 545 -- .../v2/StackdriverLoggingConfigOrBuilder.java | 41 - .../google/cloud/tasks/v2/TargetProto.java | 177 - .../java/com/google/cloud/tasks/v2/Task.java | 3626 -------------- .../com/google/cloud/tasks/v2/TaskName.java | 257 - .../google/cloud/tasks/v2/TaskOrBuilder.java | 477 -- .../com/google/cloud/tasks/v2/TaskProto.java | 129 - .../cloud/tasks/v2/UpdateQueueRequest.java | 1026 ---- .../tasks/v2/UpdateQueueRequestOrBuilder.java | 110 - .../google/cloud/tasks/v2/cloudtasks.proto | 655 --- .../proto/google/cloud/tasks/v2/queue.proto | 360 -- .../proto/google/cloud/tasks/v2/target.proto | 423 -- .../proto/google/cloud/tasks/v2/task.proto | 190 - .../clirr-ignored-differences.xml | 19 - proto-google-cloud-tasks-v2beta2/pom.xml | 46 - .../tasks/v2beta2/AcknowledgeTaskRequest.java | 966 ---- .../AcknowledgeTaskRequestOrBuilder.java | 106 - .../tasks/v2beta2/AppEngineHttpRequest.java | 2040 -------- .../AppEngineHttpRequestOrBuilder.java | 378 -- .../tasks/v2beta2/AppEngineHttpTarget.java | 778 --- .../v2beta2/AppEngineHttpTargetOrBuilder.java | 72 - .../cloud/tasks/v2beta2/AppEngineRouting.java | 1731 ------- .../v2beta2/AppEngineRoutingOrBuilder.java | 285 -- .../cloud/tasks/v2beta2/AttemptStatus.java | 1555 ------ .../tasks/v2beta2/AttemptStatusOrBuilder.java | 180 - .../tasks/v2beta2/CancelLeaseRequest.java | 1177 ----- .../v2beta2/CancelLeaseRequestOrBuilder.java | 149 - .../cloud/tasks/v2beta2/CloudTasksProto.java | 496 -- .../tasks/v2beta2/CreateQueueRequest.java | 942 ---- .../v2beta2/CreateQueueRequestOrBuilder.java | 103 - .../tasks/v2beta2/CreateTaskRequest.java | 1450 ------ .../v2beta2/CreateTaskRequestOrBuilder.java | 220 - .../tasks/v2beta2/DeleteQueueRequest.java | 636 --- .../v2beta2/DeleteQueueRequestOrBuilder.java | 56 - .../tasks/v2beta2/DeleteTaskRequest.java | 638 --- .../v2beta2/DeleteTaskRequestOrBuilder.java | 56 - .../cloud/tasks/v2beta2/GetQueueRequest.java | 942 ---- .../v2beta2/GetQueueRequestOrBuilder.java | 103 - .../cloud/tasks/v2beta2/GetTaskRequest.java | 847 ---- .../v2beta2/GetTaskRequestOrBuilder.java | 99 - .../cloud/tasks/v2beta2/HttpMethod.java | 242 - .../tasks/v2beta2/LeaseTasksRequest.java | 1728 ------- .../v2beta2/LeaseTasksRequestOrBuilder.java | 263 - .../tasks/v2beta2/LeaseTasksResponse.java | 925 ---- .../v2beta2/LeaseTasksResponseOrBuilder.java | 76 - .../tasks/v2beta2/ListQueuesRequest.java | 1508 ------ .../v2beta2/ListQueuesRequestOrBuilder.java | 199 - .../tasks/v2beta2/ListQueuesResponse.java | 1138 ----- .../v2beta2/ListQueuesResponseOrBuilder.java | 111 - .../cloud/tasks/v2beta2/ListTasksRequest.java | 1179 ----- .../v2beta2/ListTasksRequestOrBuilder.java | 154 - .../tasks/v2beta2/ListTasksResponse.java | 1131 ----- .../v2beta2/ListTasksResponseOrBuilder.java | 109 - .../cloud/tasks/v2beta2/LocationName.java | 192 - .../tasks/v2beta2/PauseQueueRequest.java | 636 --- .../v2beta2/PauseQueueRequestOrBuilder.java | 56 - .../cloud/tasks/v2beta2/ProjectName.java | 162 - .../cloud/tasks/v2beta2/PullMessage.java | 813 --- .../tasks/v2beta2/PullMessageOrBuilder.java | 91 - .../cloud/tasks/v2beta2/PullTarget.java | 435 -- .../tasks/v2beta2/PullTargetOrBuilder.java | 24 - .../tasks/v2beta2/PurgeQueueRequest.java | 636 --- .../v2beta2/PurgeQueueRequestOrBuilder.java | 56 - .../com/google/cloud/tasks/v2beta2/Queue.java | 3981 --------------- .../google/cloud/tasks/v2beta2/QueueName.java | 223 - .../cloud/tasks/v2beta2/QueueOrBuilder.java | 544 -- .../cloud/tasks/v2beta2/QueueProto.java | 175 - .../cloud/tasks/v2beta2/QueueStats.java | 1157 ----- .../tasks/v2beta2/QueueStatsOrBuilder.java | 131 - .../cloud/tasks/v2beta2/RateLimits.java | 913 ---- .../tasks/v2beta2/RateLimitsOrBuilder.java | 112 - .../tasks/v2beta2/RenewLeaseRequest.java | 1480 ------ .../v2beta2/RenewLeaseRequestOrBuilder.java | 193 - .../tasks/v2beta2/ResumeQueueRequest.java | 636 --- .../v2beta2/ResumeQueueRequestOrBuilder.java | 56 - .../cloud/tasks/v2beta2/RetryConfig.java | 2189 -------- .../tasks/v2beta2/RetryConfigOrBuilder.java | 327 -- .../cloud/tasks/v2beta2/RunTaskRequest.java | 849 ---- .../v2beta2/RunTaskRequestOrBuilder.java | 99 - .../cloud/tasks/v2beta2/TargetProto.java | 140 - .../com/google/cloud/tasks/v2beta2/Task.java | 2694 ---------- .../google/cloud/tasks/v2beta2/TaskName.java | 257 - .../cloud/tasks/v2beta2/TaskOrBuilder.java | 325 -- .../google/cloud/tasks/v2beta2/TaskProto.java | 140 - .../cloud/tasks/v2beta2/TaskStatus.java | 1215 ----- .../tasks/v2beta2/TaskStatusOrBuilder.java | 136 - .../tasks/v2beta2/UpdateQueueRequest.java | 1032 ---- .../v2beta2/UpdateQueueRequestOrBuilder.java | 113 - .../cloud/tasks/v2beta2/cloudtasks.proto | 942 ---- .../google/cloud/tasks/v2beta2/queue.proto | 428 -- .../google/cloud/tasks/v2beta2/target.proto | 377 -- .../google/cloud/tasks/v2beta2/task.proto | 182 - .../clirr-ignored-differences.xml | 19 - proto-google-cloud-tasks-v2beta3/pom.xml | 46 - .../tasks/v2beta3/AppEngineHttpQueue.java | 778 --- .../v2beta3/AppEngineHttpQueueOrBuilder.java | 72 - .../tasks/v2beta3/AppEngineHttpRequest.java | 2028 -------- .../AppEngineHttpRequestOrBuilder.java | 376 -- .../cloud/tasks/v2beta3/AppEngineRouting.java | 1479 ------ .../v2beta3/AppEngineRoutingOrBuilder.java | 213 - .../google/cloud/tasks/v2beta3/Attempt.java | 1554 ------ .../cloud/tasks/v2beta3/AttemptOrBuilder.java | 180 - .../cloud/tasks/v2beta3/CloudTasksProto.java | 388 -- .../tasks/v2beta3/CreateQueueRequest.java | 942 ---- .../v2beta3/CreateQueueRequestOrBuilder.java | 103 - .../tasks/v2beta3/CreateTaskRequest.java | 1450 ------ .../v2beta3/CreateTaskRequestOrBuilder.java | 220 - .../tasks/v2beta3/DeleteQueueRequest.java | 636 --- .../v2beta3/DeleteQueueRequestOrBuilder.java | 56 - .../tasks/v2beta3/DeleteTaskRequest.java | 638 --- .../v2beta3/DeleteTaskRequestOrBuilder.java | 56 - .../cloud/tasks/v2beta3/GetQueueRequest.java | 942 ---- .../v2beta3/GetQueueRequestOrBuilder.java | 103 - .../cloud/tasks/v2beta3/GetTaskRequest.java | 847 ---- .../v2beta3/GetTaskRequestOrBuilder.java | 99 - .../cloud/tasks/v2beta3/HttpMethod.java | 286 -- .../cloud/tasks/v2beta3/HttpRequest.java | 2304 --------- .../tasks/v2beta3/HttpRequestOrBuilder.java | 368 -- .../tasks/v2beta3/ListQueuesRequest.java | 1508 ------ .../v2beta3/ListQueuesRequestOrBuilder.java | 199 - .../tasks/v2beta3/ListQueuesResponse.java | 1138 ----- .../v2beta3/ListQueuesResponseOrBuilder.java | 111 - .../cloud/tasks/v2beta3/ListTasksRequest.java | 1179 ----- .../v2beta3/ListTasksRequestOrBuilder.java | 154 - .../tasks/v2beta3/ListTasksResponse.java | 1131 ----- .../v2beta3/ListTasksResponseOrBuilder.java | 109 - .../cloud/tasks/v2beta3/LocationName.java | 192 - .../cloud/tasks/v2beta3/OAuthToken.java | 840 ---- .../tasks/v2beta3/OAuthTokenOrBuilder.java | 87 - .../google/cloud/tasks/v2beta3/OidcToken.java | 836 ---- .../tasks/v2beta3/OidcTokenOrBuilder.java | 85 - .../tasks/v2beta3/PauseQueueRequest.java | 636 --- .../v2beta3/PauseQueueRequestOrBuilder.java | 56 - .../cloud/tasks/v2beta3/ProjectName.java | 162 - .../cloud/tasks/v2beta3/PullMessage.java | 763 --- .../tasks/v2beta3/PullMessageOrBuilder.java | 75 - .../tasks/v2beta3/PurgeQueueRequest.java | 636 --- .../v2beta3/PurgeQueueRequestOrBuilder.java | 56 - .../com/google/cloud/tasks/v2beta3/Queue.java | 4410 ----------------- .../google/cloud/tasks/v2beta3/QueueName.java | 223 - .../cloud/tasks/v2beta3/QueueOrBuilder.java | 610 --- .../cloud/tasks/v2beta3/QueueProto.java | 185 - .../cloud/tasks/v2beta3/QueueStats.java | 1157 ----- .../tasks/v2beta3/QueueStatsOrBuilder.java | 131 - .../cloud/tasks/v2beta3/RateLimits.java | 888 ---- .../tasks/v2beta3/RateLimitsOrBuilder.java | 106 - .../tasks/v2beta3/ResumeQueueRequest.java | 636 --- .../v2beta3/ResumeQueueRequestOrBuilder.java | 56 - .../cloud/tasks/v2beta3/RetryConfig.java | 1913 ------- .../tasks/v2beta3/RetryConfigOrBuilder.java | 281 -- .../cloud/tasks/v2beta3/RunTaskRequest.java | 849 ---- .../v2beta3/RunTaskRequestOrBuilder.java | 99 - .../v2beta3/StackdriverLoggingConfig.java | 546 -- .../StackdriverLoggingConfigOrBuilder.java | 41 - .../cloud/tasks/v2beta3/TargetProto.java | 197 - .../com/google/cloud/tasks/v2beta3/Task.java | 4017 --------------- .../google/cloud/tasks/v2beta3/TaskName.java | 257 - .../cloud/tasks/v2beta3/TaskOrBuilder.java | 533 -- .../google/cloud/tasks/v2beta3/TaskProto.java | 133 - .../tasks/v2beta3/UpdateQueueRequest.java | 1032 ---- .../v2beta3/UpdateQueueRequestOrBuilder.java | 113 - .../cloud/tasks/v2beta3/cloudtasks.proto | 666 --- .../google/cloud/tasks/v2beta3/queue.proto | 434 -- .../google/cloud/tasks/v2beta3/target.proto | 459 -- .../google/cloud/tasks/v2beta3/task.proto | 200 - renovate.json | 76 - samples/install-without-bom/pom.xml | 84 - samples/native-image-sample/README.md | 157 - samples/native-image-sample/pom.xml | 142 - .../example/tasks/TasksSampleApplication.java | 85 - .../tasks/ITNativeImageTasksSample.java | 43 - samples/pom.xml | 57 - samples/snapshot/pom.xml | 83 - .../SyncCreateSetCredentialsProvider.java | 44 - .../SyncCreateSetCredentialsProvider1.java | 43 - .../create/SyncCreateSetEndpoint.java | 41 - .../createqueue/AsyncCreateQueue.java | 50 - .../createqueue/SyncCreateQueue.java | 47 - .../SyncCreateQueueLocationnameQueue.java | 43 - .../SyncCreateQueueStringQueue.java | 43 - .../createtask/AsyncCreateTask.java | 50 - .../createtask/SyncCreateTask.java | 47 - .../SyncCreateTaskQueuenameTask.java | 43 - .../createtask/SyncCreateTaskStringTask.java | 43 - .../deletequeue/AsyncDeleteQueue.java | 49 - .../deletequeue/SyncDeleteQueue.java | 46 - .../deletequeue/SyncDeleteQueueQueuename.java | 42 - .../deletequeue/SyncDeleteQueueString.java | 42 - .../deletetask/AsyncDeleteTask.java | 49 - .../deletetask/SyncDeleteTask.java | 46 - .../deletetask/SyncDeleteTaskString.java | 42 - .../deletetask/SyncDeleteTaskTaskname.java | 42 - .../getiampolicy/AsyncGetIamPolicy.java | 51 - .../getiampolicy/SyncGetIamPolicy.java | 48 - .../SyncGetIamPolicyResourcename.java | 43 - .../getiampolicy/SyncGetIamPolicyString.java | 42 - .../getqueue/AsyncGetQueue.java | 49 - .../getqueue/SyncGetQueue.java | 46 - .../getqueue/SyncGetQueueQueuename.java | 42 - .../getqueue/SyncGetQueueString.java | 42 - .../gettask/AsyncGetTask.java | 49 - .../cloudtasksclient/gettask/SyncGetTask.java | 46 - .../gettask/SyncGetTaskString.java | 42 - .../gettask/SyncGetTaskTaskname.java | 42 - .../listqueues/AsyncListQueues.java | 54 - .../listqueues/AsyncListQueuesPaged.java | 62 - .../listqueues/SyncListQueues.java | 51 - .../SyncListQueuesLocationname.java | 44 - .../listqueues/SyncListQueuesString.java | 44 - .../listtasks/AsyncListTasks.java | 53 - .../listtasks/AsyncListTasksPaged.java | 61 - .../listtasks/SyncListTasks.java | 50 - .../listtasks/SyncListTasksQueuename.java | 44 - .../listtasks/SyncListTasksString.java | 44 - .../pausequeue/AsyncPauseQueue.java | 49 - .../pausequeue/SyncPauseQueue.java | 46 - .../pausequeue/SyncPauseQueueQueuename.java | 42 - .../pausequeue/SyncPauseQueueString.java | 42 - .../purgequeue/AsyncPurgeQueue.java | 49 - .../purgequeue/SyncPurgeQueue.java | 46 - .../purgequeue/SyncPurgeQueueQueuename.java | 42 - .../purgequeue/SyncPurgeQueueString.java | 42 - .../resumequeue/AsyncResumeQueue.java | 49 - .../resumequeue/SyncResumeQueue.java | 46 - .../resumequeue/SyncResumeQueueQueuename.java | 42 - .../resumequeue/SyncResumeQueueString.java | 42 - .../runtask/AsyncRunTask.java | 49 - .../cloudtasksclient/runtask/SyncRunTask.java | 46 - .../runtask/SyncRunTaskString.java | 42 - .../runtask/SyncRunTaskTaskname.java | 42 - .../setiampolicy/AsyncSetIamPolicy.java | 52 - .../setiampolicy/SyncSetIamPolicy.java | 49 - .../SyncSetIamPolicyResourcenamePolicy.java | 44 - .../SyncSetIamPolicyStringPolicy.java | 43 - .../AsyncTestIamPermissions.java | 52 - .../SyncTestIamPermissions.java | 48 - ...tIamPermissionsResourcenameListstring.java | 47 - ...yncTestIamPermissionsStringListstring.java | 46 - .../updatequeue/AsyncUpdateQueue.java | 50 - .../updatequeue/SyncUpdateQueue.java | 47 - .../SyncUpdateQueueQueueFieldmask.java | 43 - .../getqueue/SyncGetQueue.java | 45 - .../getqueue/SyncGetQueue.java | 45 - .../acknowledgetask/AsyncAcknowledgeTask.java | 51 - .../acknowledgetask/SyncAcknowledgeTask.java | 48 - .../SyncAcknowledgeTaskStringTimestamp.java | 44 - .../SyncAcknowledgeTaskTasknameTimestamp.java | 44 - .../cancellease/AsyncCancelLease.java | 51 - .../cancellease/SyncCancelLease.java | 48 - .../SyncCancelLeaseStringTimestamp.java | 44 - .../SyncCancelLeaseTasknameTimestamp.java | 44 - .../SyncCreateSetCredentialsProvider.java | 44 - .../SyncCreateSetCredentialsProvider1.java | 43 - .../create/SyncCreateSetEndpoint.java | 41 - .../createqueue/AsyncCreateQueue.java | 50 - .../createqueue/SyncCreateQueue.java | 47 - .../SyncCreateQueueLocationnameQueue.java | 43 - .../SyncCreateQueueStringQueue.java | 43 - .../createtask/AsyncCreateTask.java | 50 - .../createtask/SyncCreateTask.java | 47 - .../SyncCreateTaskQueuenameTask.java | 43 - .../createtask/SyncCreateTaskStringTask.java | 43 - .../deletequeue/AsyncDeleteQueue.java | 49 - .../deletequeue/SyncDeleteQueue.java | 46 - .../deletequeue/SyncDeleteQueueQueuename.java | 42 - .../deletequeue/SyncDeleteQueueString.java | 42 - .../deletetask/AsyncDeleteTask.java | 49 - .../deletetask/SyncDeleteTask.java | 46 - .../deletetask/SyncDeleteTaskString.java | 42 - .../deletetask/SyncDeleteTaskTaskname.java | 42 - .../getiampolicy/AsyncGetIamPolicy.java | 51 - .../getiampolicy/SyncGetIamPolicy.java | 48 - .../SyncGetIamPolicyResourcename.java | 43 - .../getiampolicy/SyncGetIamPolicyString.java | 42 - .../getqueue/AsyncGetQueue.java | 51 - .../getqueue/SyncGetQueue.java | 48 - .../getqueue/SyncGetQueueQueuename.java | 42 - .../getqueue/SyncGetQueueString.java | 42 - .../gettask/AsyncGetTask.java | 49 - .../cloudtasksclient/gettask/SyncGetTask.java | 46 - .../gettask/SyncGetTaskString.java | 42 - .../gettask/SyncGetTaskTaskname.java | 42 - .../leasetasks/AsyncLeaseTasks.java | 54 - .../leasetasks/SyncLeaseTasks.java | 50 - .../SyncLeaseTasksQueuenameDuration.java | 44 - .../SyncLeaseTasksStringDuration.java | 44 - .../listqueues/AsyncListQueues.java | 56 - .../listqueues/AsyncListQueuesPaged.java | 64 - .../listqueues/SyncListQueues.java | 53 - .../SyncListQueuesLocationname.java | 44 - .../listqueues/SyncListQueuesString.java | 44 - .../listtasks/AsyncListTasks.java | 53 - .../listtasks/AsyncListTasksPaged.java | 61 - .../listtasks/SyncListTasks.java | 50 - .../listtasks/SyncListTasksQueuename.java | 44 - .../listtasks/SyncListTasksString.java | 44 - .../pausequeue/AsyncPauseQueue.java | 49 - .../pausequeue/SyncPauseQueue.java | 46 - .../pausequeue/SyncPauseQueueQueuename.java | 42 - .../pausequeue/SyncPauseQueueString.java | 42 - .../purgequeue/AsyncPurgeQueue.java | 49 - .../purgequeue/SyncPurgeQueue.java | 46 - .../purgequeue/SyncPurgeQueueQueuename.java | 42 - .../purgequeue/SyncPurgeQueueString.java | 42 - .../renewlease/AsyncRenewLease.java | 53 - .../renewlease/SyncRenewLease.java | 50 - ...SyncRenewLeaseStringTimestampDuration.java | 46 - ...ncRenewLeaseTasknameTimestampDuration.java | 46 - .../resumequeue/AsyncResumeQueue.java | 49 - .../resumequeue/SyncResumeQueue.java | 46 - .../resumequeue/SyncResumeQueueQueuename.java | 42 - .../resumequeue/SyncResumeQueueString.java | 42 - .../runtask/AsyncRunTask.java | 49 - .../cloudtasksclient/runtask/SyncRunTask.java | 46 - .../runtask/SyncRunTaskString.java | 42 - .../runtask/SyncRunTaskTaskname.java | 42 - .../setiampolicy/AsyncSetIamPolicy.java | 52 - .../setiampolicy/SyncSetIamPolicy.java | 49 - .../SyncSetIamPolicyResourcenamePolicy.java | 44 - .../SyncSetIamPolicyStringPolicy.java | 43 - .../AsyncTestIamPermissions.java | 52 - .../SyncTestIamPermissions.java | 48 - ...tIamPermissionsResourcenameListstring.java | 47 - ...yncTestIamPermissionsStringListstring.java | 46 - .../updatequeue/AsyncUpdateQueue.java | 50 - .../updatequeue/SyncUpdateQueue.java | 47 - .../SyncUpdateQueueQueueFieldmask.java | 43 - .../getqueue/SyncGetQueue.java | 45 - .../getqueue/SyncGetQueue.java | 45 - .../SyncCreateSetCredentialsProvider.java | 44 - .../SyncCreateSetCredentialsProvider1.java | 43 - .../create/SyncCreateSetEndpoint.java | 41 - .../createqueue/AsyncCreateQueue.java | 50 - .../createqueue/SyncCreateQueue.java | 47 - .../SyncCreateQueueLocationnameQueue.java | 43 - .../SyncCreateQueueStringQueue.java | 43 - .../createtask/AsyncCreateTask.java | 50 - .../createtask/SyncCreateTask.java | 47 - .../SyncCreateTaskQueuenameTask.java | 43 - .../createtask/SyncCreateTaskStringTask.java | 43 - .../deletequeue/AsyncDeleteQueue.java | 49 - .../deletequeue/SyncDeleteQueue.java | 46 - .../deletequeue/SyncDeleteQueueQueuename.java | 42 - .../deletequeue/SyncDeleteQueueString.java | 42 - .../deletetask/AsyncDeleteTask.java | 49 - .../deletetask/SyncDeleteTask.java | 46 - .../deletetask/SyncDeleteTaskString.java | 42 - .../deletetask/SyncDeleteTaskTaskname.java | 42 - .../getiampolicy/AsyncGetIamPolicy.java | 51 - .../getiampolicy/SyncGetIamPolicy.java | 48 - .../SyncGetIamPolicyResourcename.java | 43 - .../getiampolicy/SyncGetIamPolicyString.java | 42 - .../getqueue/AsyncGetQueue.java | 51 - .../getqueue/SyncGetQueue.java | 48 - .../getqueue/SyncGetQueueQueuename.java | 42 - .../getqueue/SyncGetQueueString.java | 42 - .../gettask/AsyncGetTask.java | 49 - .../cloudtasksclient/gettask/SyncGetTask.java | 46 - .../gettask/SyncGetTaskString.java | 42 - .../gettask/SyncGetTaskTaskname.java | 42 - .../listqueues/AsyncListQueues.java | 56 - .../listqueues/AsyncListQueuesPaged.java | 64 - .../listqueues/SyncListQueues.java | 53 - .../SyncListQueuesLocationname.java | 44 - .../listqueues/SyncListQueuesString.java | 44 - .../listtasks/AsyncListTasks.java | 53 - .../listtasks/AsyncListTasksPaged.java | 61 - .../listtasks/SyncListTasks.java | 50 - .../listtasks/SyncListTasksQueuename.java | 44 - .../listtasks/SyncListTasksString.java | 44 - .../pausequeue/AsyncPauseQueue.java | 49 - .../pausequeue/SyncPauseQueue.java | 46 - .../pausequeue/SyncPauseQueueQueuename.java | 42 - .../pausequeue/SyncPauseQueueString.java | 42 - .../purgequeue/AsyncPurgeQueue.java | 49 - .../purgequeue/SyncPurgeQueue.java | 46 - .../purgequeue/SyncPurgeQueueQueuename.java | 42 - .../purgequeue/SyncPurgeQueueString.java | 42 - .../resumequeue/AsyncResumeQueue.java | 49 - .../resumequeue/SyncResumeQueue.java | 46 - .../resumequeue/SyncResumeQueueQueuename.java | 42 - .../resumequeue/SyncResumeQueueString.java | 42 - .../runtask/AsyncRunTask.java | 49 - .../cloudtasksclient/runtask/SyncRunTask.java | 46 - .../runtask/SyncRunTaskString.java | 42 - .../runtask/SyncRunTaskTaskname.java | 42 - .../setiampolicy/AsyncSetIamPolicy.java | 52 - .../setiampolicy/SyncSetIamPolicy.java | 49 - .../SyncSetIamPolicyResourcenamePolicy.java | 44 - .../SyncSetIamPolicyStringPolicy.java | 43 - .../AsyncTestIamPermissions.java | 52 - .../SyncTestIamPermissions.java | 48 - ...tIamPermissionsResourcenameListstring.java | 47 - ...yncTestIamPermissionsStringListstring.java | 46 - .../updatequeue/AsyncUpdateQueue.java | 50 - .../updatequeue/SyncUpdateQueue.java | 47 - .../SyncUpdateQueueQueueFieldmask.java | 43 - .../getqueue/SyncGetQueue.java | 45 - .../getqueue/SyncGetQueue.java | 45 - samples/snippets/pom.xml | 60 - synth.metadata | 378 -- versions.txt | 10 - 583 files changed, 189579 deletions(-) delete mode 100644 .github/CODEOWNERS delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md delete mode 100644 .github/ISSUE_TEMPLATE/support_request.md delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/auto-label.yaml delete mode 100644 .github/blunderbuss.yml delete mode 100644 .github/generated-files-bot.yml delete mode 100644 .github/snippet-bot.yml delete mode 100644 .github/sync-repo-settings.yaml delete mode 100644 .github/trusted-contribution.yml delete mode 100644 .github/workflows/approve-readme.yaml delete mode 100644 .github/workflows/auto-release.yaml delete mode 100644 .github/workflows/ci.yaml delete mode 100644 .github/workflows/samples.yaml delete mode 100644 .gitignore delete mode 100644 .kokoro/build.bat delete mode 100755 .kokoro/build.sh delete mode 100755 .kokoro/coerce_logs.sh delete mode 100644 .kokoro/common.cfg delete mode 100644 .kokoro/common.sh delete mode 100644 .kokoro/continuous/common.cfg delete mode 100644 .kokoro/continuous/java8.cfg delete mode 100755 .kokoro/continuous/propose_release.sh delete mode 100755 .kokoro/dependencies.sh delete mode 100644 .kokoro/nightly/common.cfg delete mode 100644 .kokoro/nightly/integration.cfg delete mode 100644 .kokoro/nightly/java11-integration.cfg delete mode 100644 .kokoro/nightly/java11.cfg delete mode 100644 .kokoro/nightly/java7.cfg delete mode 100644 .kokoro/nightly/java8-osx.cfg delete mode 100644 .kokoro/nightly/java8-win.cfg delete mode 100644 .kokoro/nightly/java8.cfg delete mode 100644 .kokoro/nightly/samples.cfg delete mode 100755 .kokoro/populate-secrets.sh delete mode 100644 .kokoro/presubmit/clirr.cfg delete mode 100644 .kokoro/presubmit/common.cfg delete mode 100644 .kokoro/presubmit/dependencies.cfg delete mode 100644 .kokoro/presubmit/graalvm-native-17.cfg delete mode 100644 .kokoro/presubmit/graalvm-native.cfg delete mode 100644 .kokoro/presubmit/integration.cfg delete mode 100644 .kokoro/presubmit/java11.cfg delete mode 100644 .kokoro/presubmit/java7.cfg delete mode 100644 .kokoro/presubmit/java8-osx.cfg delete mode 100644 .kokoro/presubmit/java8-win.cfg delete mode 100644 .kokoro/presubmit/java8.cfg delete mode 100644 .kokoro/presubmit/linkage-monitor.cfg delete mode 100644 .kokoro/presubmit/lint.cfg delete mode 100644 .kokoro/presubmit/samples.cfg delete mode 100755 .kokoro/readme.sh delete mode 100644 .kokoro/release/bump_snapshot.cfg delete mode 100755 .kokoro/release/bump_snapshot.sh delete mode 100644 .kokoro/release/common.cfg delete mode 100755 .kokoro/release/common.sh delete mode 100644 .kokoro/release/drop.cfg delete mode 100755 .kokoro/release/drop.sh delete mode 100644 .kokoro/release/promote.cfg delete mode 100755 .kokoro/release/promote.sh delete mode 100644 .kokoro/release/publish_javadoc.cfg delete mode 100755 .kokoro/release/publish_javadoc.sh delete mode 100644 .kokoro/release/publish_javadoc11.cfg delete mode 100755 .kokoro/release/publish_javadoc11.sh delete mode 100644 .kokoro/release/snapshot.cfg delete mode 100755 .kokoro/release/snapshot.sh delete mode 100644 .kokoro/release/stage.cfg delete mode 100755 .kokoro/release/stage.sh delete mode 100644 .kokoro/requirements.in delete mode 100644 .kokoro/requirements.txt delete mode 100644 .kokoro/trampoline.sh delete mode 100644 .repo-metadata.json delete mode 100644 CHANGELOG.md delete mode 100644 codecov.yaml delete mode 100644 google-cloud-tasks-bom/pom.xml delete mode 100644 google-cloud-tasks/pom.xml delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/gapic_metadata.json delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStub.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksCallableFactory.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksCallableFactory.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksStub.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/gapic_metadata.json delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStub.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksCallableFactory.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksCallableFactory.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksStub.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/gapic_metadata.json delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStub.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksCallableFactory.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksCallableFactory.java delete mode 100644 google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksStub.java delete mode 100644 google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientHttpJsonTest.java delete mode 100644 google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java delete mode 100644 google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasks.java delete mode 100644 google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java delete mode 100644 google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/it/ITSystemTest.java delete mode 100644 google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientHttpJsonTest.java delete mode 100644 google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java delete mode 100644 google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasks.java delete mode 100644 google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java delete mode 100644 google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientHttpJsonTest.java delete mode 100644 google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java delete mode 100644 google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksSmokeTest.java delete mode 100644 google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasks.java delete mode 100644 google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java delete mode 100644 grpc-google-cloud-tasks-v2/pom.xml delete mode 100644 grpc-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksGrpc.java delete mode 100644 grpc-google-cloud-tasks-v2beta2/pom.xml delete mode 100644 grpc-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksGrpc.java delete mode 100644 grpc-google-cloud-tasks-v2beta3/pom.xml delete mode 100644 grpc-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksGrpc.java delete mode 100644 java.header delete mode 100644 license-checks.xml delete mode 100644 pom.xml delete mode 100644 proto-google-cloud-tasks-v2/clirr-ignored-differences.xml delete mode 100644 proto-google-cloud-tasks-v2/pom.xml delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequest.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRouting.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRoutingOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Attempt.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AttemptOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksProto.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequest.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequest.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequest.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequest.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequest.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequest.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpMethod.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequest.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequest.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponse.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponseOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequest.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponse.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponseOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthToken.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthTokenOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcToken.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcTokenOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequest.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ProjectName.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequest.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Queue.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueName.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueProto.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RateLimits.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RateLimitsOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequest.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RetryConfig.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RetryConfigOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequest.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/StackdriverLoggingConfig.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/StackdriverLoggingConfigOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TargetProto.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Task.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskProto.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/UpdateQueueRequest.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/UpdateQueueRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/cloudtasks.proto delete mode 100644 proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/queue.proto delete mode 100644 proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/target.proto delete mode 100644 proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/task.proto delete mode 100644 proto-google-cloud-tasks-v2beta2/clirr-ignored-differences.xml delete mode 100644 proto-google-cloud-tasks-v2beta2/pom.xml delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpTarget.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpTargetOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRouting.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRoutingOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AttemptStatus.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AttemptStatusOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksProto.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/HttpMethod.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksResponse.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksResponseOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponse.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponseOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponse.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponseOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LocationName.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ProjectName.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessage.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessageOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullTarget.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullTargetOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueName.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueProto.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueStats.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueStatsOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RateLimits.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RateLimitsOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfigOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TargetProto.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Task.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskName.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskProto.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskStatus.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskStatusOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/UpdateQueueRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/UpdateQueueRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/cloudtasks.proto delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/queue.proto delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/target.proto delete mode 100644 proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/task.proto delete mode 100644 proto-google-cloud-tasks-v2beta3/clirr-ignored-differences.xml delete mode 100644 proto-google-cloud-tasks-v2beta3/pom.xml delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpQueue.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpQueueOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRouting.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRoutingOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Attempt.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AttemptOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksProto.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpMethod.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponse.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponseOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponse.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponseOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/LocationName.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthToken.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthTokenOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcToken.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcTokenOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ProjectName.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessage.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessageOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Queue.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueName.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueProto.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueStats.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueStatsOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RateLimits.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RateLimitsOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RetryConfig.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RetryConfigOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/StackdriverLoggingConfig.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/StackdriverLoggingConfigOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TargetProto.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Task.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskName.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskProto.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/UpdateQueueRequest.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/UpdateQueueRequestOrBuilder.java delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/cloudtasks.proto delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/queue.proto delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/target.proto delete mode 100644 proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/task.proto delete mode 100644 renovate.json delete mode 100644 samples/install-without-bom/pom.xml delete mode 100644 samples/native-image-sample/README.md delete mode 100644 samples/native-image-sample/pom.xml delete mode 100644 samples/native-image-sample/src/main/java/com/example/tasks/TasksSampleApplication.java delete mode 100644 samples/native-image-sample/src/test/java/com/example/tasks/ITNativeImageTasksSample.java delete mode 100644 samples/pom.xml delete mode 100644 samples/snapshot/pom.xml delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetEndpoint.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/AsyncCreateQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/AsyncCreateTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/AsyncDeleteTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/AsyncGetQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/AsyncGetTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskTaskname.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueues.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueues.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasks.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasksPaged.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasks.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksQueuename.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/AsyncPauseQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/AsyncResumeQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/AsyncRunTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskTaskname.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/cloudtaskssettings/getqueue/SyncGetQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/AsyncAcknowledgeTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskStringTimestamp.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskTasknameTimestamp.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/AsyncCancelLease.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLease.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseStringTimestamp.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseTasknameTimestamp.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetEndpoint.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/AsyncCreateQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/AsyncCreateTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/AsyncDeleteTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/AsyncGetQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/AsyncGetTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskTaskname.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/AsyncLeaseTasks.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasks.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksQueuenameDuration.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksStringDuration.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueues.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueues.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasks.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasksPaged.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasks.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksQueuename.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/AsyncPauseQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/AsyncRenewLease.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLease.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseStringTimestampDuration.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseTasknameTimestampDuration.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/AsyncResumeQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/AsyncRunTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskTaskname.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtaskssettings/getqueue/SyncGetQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetEndpoint.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/AsyncCreateQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/AsyncCreateTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskStringTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/AsyncDeleteQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/AsyncDeleteTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/AsyncGetQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueQueuename.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/AsyncGetTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskTaskname.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueues.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueuesPaged.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueues.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesLocationname.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasks.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasksPaged.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasks.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksQueuename.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/AsyncPauseQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/AsyncPurgeQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/AsyncResumeQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/AsyncRunTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskString.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskTaskname.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/AsyncUpdateQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtaskssettings/getqueue/SyncGetQueue.java delete mode 100644 samples/snippets/generated/com/google/cloud/tasks/v2beta3/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java delete mode 100644 samples/snippets/pom.xml delete mode 100644 synth.metadata delete mode 100644 versions.txt diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index 5232f38f..00000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1,15 +0,0 @@ -# Code owners file. -# This file controls who is tagged for review for any given pull request. - -# For syntax help see: -# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax - -# The @googleapis/aap-dpes is the default owner for changes in this repo -* @googleapis/yoshi-java @googleapis/aap-dpes - - -# The java-samples-reviewers team is the default owner for samples changes -samples/**/*.java @googleapis/java-samples-reviewers - -# Generated snippets should not be owned by samples reviewers -samples/snippets/generated/ @googleapis/yoshi-java diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 42f7bcff..00000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,56 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve - ---- - -:bus: This library has moved to -[google-cloud-java/java-tasks]( -https://github.com/googleapis/google-cloud-java/tree/main/java-tasks). -This repository will be archived in the future. - -Thanks for stopping by to let us know something could be better! - -**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. - -Please run down the following list and make sure you've tried the usual "quick fixes": - - - Search the issues already opened: https://github.com/googleapis/java-tasks/issues - - Check for answers on StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform - -If you are still having issues, please include as much information as possible: - -#### Environment details - -1. Specify the API at the beginning of the title. For example, "BigQuery: ..."). - General, Core, and Other are also allowed as types -2. OS type and version: -3. Java version: -4. version(s): - -#### Steps to reproduce - - 1. ? - 2. ? - -#### Code example - -```java -// example -``` - -#### Stack trace -``` -Any relevant stacktrace here. -``` - -#### External references such as API reference guides - -- ? - -#### Any additional information below - - -Following these steps guarantees the quickest resolution possible. - -Thanks! diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 96e2557d..00000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this library - ---- - -:bus: This library has moved to -[google-cloud-java/java-tasks]( -https://github.com/googleapis/google-cloud-java/tree/main/java-tasks). -This repository will be archived in the future. - -Thanks for stopping by to let us know something could be better! - -**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. - -**Is your feature request related to a problem? Please describe.** -What the problem is. Example: I'm always frustrated when [...] - -**Describe the solution you'd like** -What you want to happen. - -**Describe alternatives you've considered** -Any alternative solutions or features you've considered. - -**Additional context** -Any other context or screenshots about the feature request. diff --git a/.github/ISSUE_TEMPLATE/support_request.md b/.github/ISSUE_TEMPLATE/support_request.md deleted file mode 100644 index 99586903..00000000 --- a/.github/ISSUE_TEMPLATE/support_request.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: Support request -about: If you have a support contract with Google, please create an issue in the Google Cloud Support console. - ---- - -**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index b3fe18c9..00000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,10 +0,0 @@ -Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: -- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-tasks/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea -- [ ] Ensure the tests and linter pass -- [ ] Code coverage does not decrease (if any source code was changed) -- [ ] Appropriate docs were updated (if necessary) - -Fixes # ☕️ - -If you write sample code, please follow the [samples format]( -https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md). diff --git a/.github/auto-label.yaml b/.github/auto-label.yaml deleted file mode 100644 index 4caef688..00000000 --- a/.github/auto-label.yaml +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -requestsize: - enabled: true diff --git a/.github/blunderbuss.yml b/.github/blunderbuss.yml deleted file mode 100644 index 2176b054..00000000 --- a/.github/blunderbuss.yml +++ /dev/null @@ -1,7 +0,0 @@ -# Configuration for the Blunderbuss GitHub app. For more info see -# https://github.com/googleapis/repo-automation-bots/tree/main/packages/blunderbuss -assign_prs_by: -- labels: - - samples - to: - - googleapis/java-samples-reviewers \ No newline at end of file diff --git a/.github/generated-files-bot.yml b/.github/generated-files-bot.yml deleted file mode 100644 index c644a24e..00000000 --- a/.github/generated-files-bot.yml +++ /dev/null @@ -1,12 +0,0 @@ -externalManifests: -- type: json - file: 'synth.metadata' - jsonpath: '$.generatedFiles[*]' -- type: json - file: '.github/readme/synth.metadata/synth.metadata' - jsonpath: '$.generatedFiles[*]' -ignoreAuthors: -- 'renovate-bot' -- 'yoshi-automation' -- 'release-please[bot]' -- 'gcf-owl-bot[bot]' diff --git a/.github/snippet-bot.yml b/.github/snippet-bot.yml deleted file mode 100644 index e69de29b..00000000 diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml deleted file mode 100644 index 38ba1b96..00000000 --- a/.github/sync-repo-settings.yaml +++ /dev/null @@ -1,69 +0,0 @@ -rebaseMergeAllowed: false -squashMergeAllowed: true -mergeCommitAllowed: false -branchProtectionRules: - - pattern: main - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (8) - - dependencies (11) - - lint - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - cla/google - - OwlBot Post Processor - - 'Kokoro - Test: Java GraalVM Native Image' - - 'Kokoro - Test: Java 17 GraalVM Native Image' - - pattern: java7 - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (8) - - dependencies (11) - - lint - - units (7) - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - cla/google - - pattern: 2.0.x - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (8) - - dependencies (11) - - lint - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - cla/google - - OwlBot Post Processor - - pattern: 2.1.x - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (8) - - dependencies (11) - - lint - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - cla/google - - OwlBot Post Processor -permissionRules: - - team: yoshi-admins - permission: admin - - team: yoshi-java-admins - permission: admin - - team: yoshi-java - permission: push diff --git a/.github/trusted-contribution.yml b/.github/trusted-contribution.yml deleted file mode 100644 index a0ba1f7d..00000000 --- a/.github/trusted-contribution.yml +++ /dev/null @@ -1,3 +0,0 @@ -trustedContributors: -- renovate-bot -- gcf-owl-bot[bot] diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml deleted file mode 100644 index f5fc7d51..00000000 --- a/.github/workflows/approve-readme.yaml +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - pull_request: -name: auto-merge-readme -jobs: - approve: - runs-on: ubuntu-latest - if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' - steps: - - uses: actions/github-script@v6 - with: - github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} - script: | - // only approve PRs from yoshi-automation - if (context.payload.pull_request.user.login !== "yoshi-automation") { - return; - } - - // only approve PRs like "chore: release " - if (!context.payload.pull_request.title === "chore: regenerate README") { - return; - } - - // only approve PRs with README.md and synth.metadata changes - const files = new Set( - ( - await github.paginate( - github.pulls.listFiles.endpoint({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - }) - ) - ).map(file => file.filename) - ); - if (files.size != 2 || !files.has("README.md") || !files.has(".github/readme/synth.metadata/synth.metadata")) { - return; - } - - // approve README regeneration PR - await github.pulls.createReview({ - owner: context.repo.owner, - repo: context.repo.repo, - body: 'Rubber stamped PR!', - pull_number: context.payload.pull_request.number, - event: 'APPROVE' - }); - - // attach automerge label - await github.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - labels: ['automerge'] - }); diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml deleted file mode 100644 index 7a106d00..00000000 --- a/.github/workflows/auto-release.yaml +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - pull_request: -name: auto-release -jobs: - approve: - runs-on: ubuntu-latest - if: contains(github.head_ref, 'release-please') - steps: - - uses: actions/github-script@v6 - with: - github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} - debug: true - script: | - // only approve PRs from release-please[bot] - if (context.payload.pull_request.user.login !== "release-please[bot]") { - return; - } - - // only approve PRs like "chore(main): release " - if ( !context.payload.pull_request.title.startsWith("chore(main): release") ) { - return; - } - - // only approve PRs with pom.xml and versions.txt changes - const filesPromise = github.rest.pulls.listFiles.endpoint({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - }); - const changed_files = await github.paginate(filesPromise) - - if ( changed_files.length < 1 ) { - console.log( "Not proceeding since PR is empty!" ) - return; - } - - if ( !changed_files.some(v => v.filename.includes("pom")) || !changed_files.some(v => v.filename.includes("versions.txt")) ) { - console.log( "PR file changes do not have pom.xml or versions.txt -- something is wrong. PTAL!" ) - return; - } - - // trigger auto-release when - // 1) it is a SNAPSHOT release (auto-generated post regular release) - // 2) there are dependency updates only - // 3) there are no open dependency update PRs in this repo (to avoid multiple releases) - if ( - context.payload.pull_request.body.includes("Fix") || - context.payload.pull_request.body.includes("Build") || - context.payload.pull_request.body.includes("Documentation") || - context.payload.pull_request.body.includes("BREAKING CHANGES") || - context.payload.pull_request.body.includes("Features") - ) { - console.log( "Not auto-releasing since it is not a dependency-update-only release." ); - return; - } - - const promise = github.rest.pulls.list.endpoint({ - owner: context.repo.owner, - repo: context.repo.repo, - state: 'open' - }); - const open_pulls = await github.paginate(promise) - - if ( open_pulls.length > 1 && !context.payload.pull_request.title.includes("SNAPSHOT") ) { - for ( const pull of open_pulls ) { - if ( pull.title.startsWith("deps: update dependency") ) { - console.log( "Not auto-releasing yet since there are dependency update PRs open in this repo." ); - return; - } - } - } - - // approve release PR - await github.rest.pulls.createReview({ - owner: context.repo.owner, - repo: context.repo.repo, - body: 'Rubber stamped release!', - pull_number: context.payload.pull_request.number, - event: 'APPROVE' - }); - - // attach kokoro:force-run and automerge labels - await github.rest.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - labels: ['kokoro:force-run', 'automerge'] - }); diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index e3bb26e3..00000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,89 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - push: - branches: - - main - pull_request: -name: ci -jobs: - units: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - java: [8, 11, 17] - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: ${{matrix.java}} - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: test - windows: - runs-on: windows-latest - steps: - - name: Support longpaths - run: git config --system core.longpaths true - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 8 - - run: java -version - - run: .kokoro/build.bat - env: - JOB_TYPE: test - dependencies: - runs-on: ubuntu-latest - strategy: - matrix: - java: [8, 11, 17] - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: ${{matrix.java}} - - run: java -version - - run: .kokoro/dependencies.sh - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 11 - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: lint - clirr: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 8 - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: clirr diff --git a/.github/workflows/samples.yaml b/.github/workflows/samples.yaml deleted file mode 100644 index 912ed8b2..00000000 --- a/.github/workflows/samples.yaml +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - pull_request: -name: samples -jobs: - checkstyle: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 8 - - name: Run checkstyle - run: mvn -P lint --quiet --batch-mode checkstyle:check - working-directory: samples/snippets diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 598779ba..00000000 --- a/.gitignore +++ /dev/null @@ -1,47 +0,0 @@ -.gitignore - -# Packages -dist -bin -var -sdist -target - -# Unit test / coverage reports -.coverage -.tox -nosetests.xml - -# Translations -*.mo - -# Mr Developer -.mr.developer.cfg - -.metadata -.project -.pydevproject -*.iml -.idea -.settings -.DS_Store -.classpath - -# Built documentation -docs/ - - -# Wheel directory used in Travis builds. -gcloud-java-wheels/ -src/test/resources/gcd-head.zip -src/test/resources/gcd-v1beta2-rev1-2.1.1.zip - -# API key file containing value of GOOGLE_API_KEY for integration tests -api_key - -# Python utilities -*.pyc -artman-genfiles -venv - -.flattened-pom.xml diff --git a/.kokoro/build.bat b/.kokoro/build.bat deleted file mode 100644 index 067cf4a4..00000000 --- a/.kokoro/build.bat +++ /dev/null @@ -1,18 +0,0 @@ -:: Copyright 2022 Google LLC -:: -:: Licensed under the Apache License, Version 2.0 (the "License"); -:: you may not use this file except in compliance with the License. -:: You may obtain a copy of the License at -:: -:: http://www.apache.org/licenses/LICENSE-2.0 -:: -:: Unless required by applicable law or agreed to in writing, software -:: distributed under the License is distributed on an "AS IS" BASIS, -:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -:: See the License for the specific language governing permissions and -:: limitations under the License. -:: Github action job to test core java library features on -:: downstream client libraries before they are released. -:: See documentation in type-shell-output.bat - -"C:\Program Files\Git\bin\bash.exe" %~dp0build.sh diff --git a/.kokoro/build.sh b/.kokoro/build.sh deleted file mode 100755 index f37ed2ed..00000000 --- a/.kokoro/build.sh +++ /dev/null @@ -1,115 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# TODO(TRAMPOLINE_V2): move to .trampolinerc -export QUEUE_ID=my-appengine-queue -export LOCATION_ID=us-east1 - -## Get the directory of the build script -scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) -## cd to the parent directory, i.e. the root of the git repo -cd ${scriptDir}/.. - -# include common functions -source ${scriptDir}/common.sh - -# Print out Java version -java -version -echo ${JOB_TYPE} - -# attempt to install 3 times with exponential backoff (starting with 10 seconds) -retry_with_backoff 3 10 \ - mvn install -B -V \ - -DskipTests=true \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -Dmaven.javadoc.skip=true \ - -Dgcloud.download.skip=true \ - -T 1C - -# if GOOGLE_APPLICATION_CREDIENTIALS is specified as a relative path prepend Kokoro root directory onto it -if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then - export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_GFILE_DIR}/${GOOGLE_APPLICATION_CREDENTIALS}) -fi - -RETURN_CODE=0 -set +e - -case ${JOB_TYPE} in -test) - mvn test -B -Dclirr.skip=true -Denforcer.skip=true - RETURN_CODE=$? - ;; -lint) - mvn com.coveo:fmt-maven-plugin:check - RETURN_CODE=$? - ;; -javadoc) - mvn javadoc:javadoc javadoc:test-javadoc - RETURN_CODE=$? - ;; -integration) - mvn -B ${INTEGRATION_TEST_ARGS} \ - -Penable-integration-tests \ - -DtrimStackTrace=false \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -fae \ - verify - RETURN_CODE=$? - ;; -samples) - if [[ -f samples/pom.xml ]] - then - pushd samples - mvn -B \ - -Penable-samples \ - -DtrimStackTrace=false \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -fae \ - verify - RETURN_CODE=$? - popd - else - echo "no sample pom.xml found - skipping sample tests" - fi - ;; -clirr) - mvn -B -Denforcer.skip=true clirr:check - RETURN_CODE=$? - ;; -*) - ;; -esac - -if [ "${REPORT_COVERAGE}" == "true" ] -then - bash ${KOKORO_GFILE_DIR}/codecov.sh -fi - -# fix output location of logs -bash .kokoro/coerce_logs.sh - -if [[ "${ENABLE_BUILD_COP}" == "true" ]] -then - chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/flakybot - ${KOKORO_GFILE_DIR}/linux_amd64/flakybot -repo=googleapis/java-tasks -fi - -echo "exiting with ${RETURN_CODE}" -exit ${RETURN_CODE} diff --git a/.kokoro/coerce_logs.sh b/.kokoro/coerce_logs.sh deleted file mode 100755 index 46edbf7f..00000000 --- a/.kokoro/coerce_logs.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# This script finds and moves sponge logs so that they can be found by placer -# and are not flagged as flaky by sponge. - -set -eo pipefail - -## Get the directory of the build script -scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) -## cd to the parent directory, i.e. the root of the git repo -cd ${scriptDir}/.. - -job=$(basename ${KOKORO_JOB_NAME}) - -echo "coercing sponge logs..." -for xml in `find . -name *-sponge_log.xml` -do - class=$(basename ${xml} | cut -d- -f2) - dir=$(dirname ${xml})/${job}/${class} - text=$(dirname ${xml})/${class}-sponge_log.txt - mkdir -p ${dir} - mv ${xml} ${dir}/sponge_log.xml - mv ${text} ${dir}/sponge_log.txt -done diff --git a/.kokoro/common.cfg b/.kokoro/common.cfg deleted file mode 100644 index 375e1a2a..00000000 --- a/.kokoro/common.cfg +++ /dev/null @@ -1,13 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Download trampoline resources. These will be in ${KOKORO_GFILE_DIR} -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# All builds use the trampoline script to run in docker. -build_file: "java-tasks/.kokoro/trampoline.sh" - -# Tell the trampoline which build file to use. -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-tasks/.kokoro/build.sh" -} diff --git a/.kokoro/common.sh b/.kokoro/common.sh deleted file mode 100644 index f8f957af..00000000 --- a/.kokoro/common.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/bash -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -function retry_with_backoff { - attempts_left=$1 - sleep_seconds=$2 - shift 2 - command=$@ - - - # store current flag state - flags=$- - - # allow a failures to continue - set +e - ${command} - exit_code=$? - - # restore "e" flag - if [[ ${flags} =~ e ]] - then set -e - else set +e - fi - - if [[ $exit_code == 0 ]] - then - return 0 - fi - - # failure - if [[ ${attempts_left} > 0 ]] - then - echo "failure (${exit_code}), sleeping ${sleep_seconds}..." - sleep ${sleep_seconds} - new_attempts=$((${attempts_left} - 1)) - new_sleep=$((${sleep_seconds} * 2)) - retry_with_backoff ${new_attempts} ${new_sleep} ${command} - fi - - return $exit_code -} - -## Helper functionss -function now() { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n'; } -function msg() { println "$*" >&2; } -function println() { printf '%s\n' "$(now) $*"; } - -## Helper comment to trigger updated repo dependency release \ No newline at end of file diff --git a/.kokoro/continuous/common.cfg b/.kokoro/continuous/common.cfg deleted file mode 100644 index 01f61e53..00000000 --- a/.kokoro/continuous/common.cfg +++ /dev/null @@ -1,25 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - regex: "**/*sponge_log.txt" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-tasks/.kokoro/trampoline.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-tasks/.kokoro/build.sh" -} - -env_vars: { - key: "JOB_TYPE" - value: "test" -} diff --git a/.kokoro/continuous/java8.cfg b/.kokoro/continuous/java8.cfg deleted file mode 100644 index 495cc7ba..00000000 --- a/.kokoro/continuous/java8.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "REPORT_COVERAGE" - value: "true" -} diff --git a/.kokoro/continuous/propose_release.sh b/.kokoro/continuous/propose_release.sh deleted file mode 100755 index a63c9a66..00000000 --- a/.kokoro/continuous/propose_release.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -# Copyright 2019 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. - -set -eo pipefail - -export NPM_CONFIG_PREFIX=/home/node/.npm-global - -if [ -f ${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please ]; then - # Groom the release PR as new commits are merged. - npx release-please release-pr --token=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-token-release-please \ - --repo-url=googleapis/java-tasks \ - --package-name="cloudtasks" \ - --api-url=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please \ - --proxy-key=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-key-release-please \ - --release-type=java-yoshi -fi diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh deleted file mode 100755 index bd896024..00000000 --- a/.kokoro/dependencies.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail -shopt -s nullglob - -## Get the directory of the build script -scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) -## cd to the parent directory, i.e. the root of the git repo -cd ${scriptDir}/.. - -# include common functions -source ${scriptDir}/common.sh - -# Print out Java -java -version -echo $JOB_TYPE - -function determineMavenOpts() { - local javaVersion=$( - # filter down to the version line, then pull out the version between quotes, - # then trim the version number down to its minimal number (removing any - # update or suffix number). - java -version 2>&1 | grep "version" \ - | sed -E 's/^.*"(.*?)".*$/\1/g' \ - | sed -E 's/^(1\.[0-9]\.0).*$/\1/g' - ) - - if [[ $javaVersion == 17* ]] - then - # MaxPermSize is no longer supported as of jdk 17 - echo -n "-Xmx1024m" - else - echo -n "-Xmx1024m -XX:MaxPermSize=128m" - fi -} - -export MAVEN_OPTS=$(determineMavenOpts) - -# this should run maven enforcer -retry_with_backoff 3 10 \ - mvn install -B -V -ntp \ - -DskipTests=true \ - -Dmaven.javadoc.skip=true \ - -Dclirr.skip=true - -mvn -B dependency:analyze -DfailOnWarning=true diff --git a/.kokoro/nightly/common.cfg b/.kokoro/nightly/common.cfg deleted file mode 100644 index 01f61e53..00000000 --- a/.kokoro/nightly/common.cfg +++ /dev/null @@ -1,25 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - regex: "**/*sponge_log.txt" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-tasks/.kokoro/trampoline.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-tasks/.kokoro/build.sh" -} - -env_vars: { - key: "JOB_TYPE" - value: "test" -} diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg deleted file mode 100644 index bd0297a3..00000000 --- a/.kokoro/nightly/integration.cfg +++ /dev/null @@ -1,37 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "integration" -} -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "ENABLE_FLAKYBOT" - value: "false" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} diff --git a/.kokoro/nightly/java11-integration.cfg b/.kokoro/nightly/java11-integration.cfg deleted file mode 100644 index dc51b65e..00000000 --- a/.kokoro/nightly/java11-integration.cfg +++ /dev/null @@ -1,37 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/java11014" -} - -env_vars: { - key: "JOB_TYPE" - value: "integration" -} -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "ENABLE_FLAKYBOT" - value: "false" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} diff --git a/.kokoro/nightly/java11.cfg b/.kokoro/nightly/java11.cfg deleted file mode 100644 index 709f2b4c..00000000 --- a/.kokoro/nightly/java11.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} diff --git a/.kokoro/nightly/java7.cfg b/.kokoro/nightly/java7.cfg deleted file mode 100644 index cb24f44e..00000000 --- a/.kokoro/nightly/java7.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java7" -} diff --git a/.kokoro/nightly/java8-osx.cfg b/.kokoro/nightly/java8-osx.cfg deleted file mode 100644 index e89535c5..00000000 --- a/.kokoro/nightly/java8-osx.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-tasks/.kokoro/build.sh" diff --git a/.kokoro/nightly/java8-win.cfg b/.kokoro/nightly/java8-win.cfg deleted file mode 100644 index 3cd87bb1..00000000 --- a/.kokoro/nightly/java8-win.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-tasks/.kokoro/build.bat" diff --git a/.kokoro/nightly/java8.cfg b/.kokoro/nightly/java8.cfg deleted file mode 100644 index 495cc7ba..00000000 --- a/.kokoro/nightly/java8.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "REPORT_COVERAGE" - value: "true" -} diff --git a/.kokoro/nightly/samples.cfg b/.kokoro/nightly/samples.cfg deleted file mode 100644 index fee6a838..00000000 --- a/.kokoro/nightly/samples.cfg +++ /dev/null @@ -1,38 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "samples" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-docs-samples-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-docs-samples-service-account" -} - -env_vars: { - key: "ENABLE_FLAKYBOT" - value: "false" -} diff --git a/.kokoro/populate-secrets.sh b/.kokoro/populate-secrets.sh deleted file mode 100755 index f5251425..00000000 --- a/.kokoro/populate-secrets.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -# Copyright 2020 Google LLC. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -function now { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n' ;} -function msg { println "$*" >&2 ;} -function println { printf '%s\n' "$(now) $*" ;} - - -# Populates requested secrets set in SECRET_MANAGER_KEYS from service account: -# kokoro-trampoline@cloud-devrel-kokoro-resources.iam.gserviceaccount.com -SECRET_LOCATION="${KOKORO_GFILE_DIR}/secret_manager" -msg "Creating folder on disk for secrets: ${SECRET_LOCATION}" -mkdir -p ${SECRET_LOCATION} -for key in $(echo ${SECRET_MANAGER_KEYS} | sed "s/,/ /g") -do - msg "Retrieving secret ${key}" - docker run --entrypoint=gcloud \ - --volume=${KOKORO_GFILE_DIR}:${KOKORO_GFILE_DIR} \ - gcr.io/google.com/cloudsdktool/cloud-sdk \ - secrets versions access latest \ - --project cloud-devrel-kokoro-resources \ - --secret ${key} > \ - "${SECRET_LOCATION}/${key}" - if [[ $? == 0 ]]; then - msg "Secret written to ${SECRET_LOCATION}/${key}" - else - msg "Error retrieving secret ${key}" - fi -done diff --git a/.kokoro/presubmit/clirr.cfg b/.kokoro/presubmit/clirr.cfg deleted file mode 100644 index ec572442..00000000 --- a/.kokoro/presubmit/clirr.cfg +++ /dev/null @@ -1,13 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. - -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "clirr" -} \ No newline at end of file diff --git a/.kokoro/presubmit/common.cfg b/.kokoro/presubmit/common.cfg deleted file mode 100644 index 108df7ab..00000000 --- a/.kokoro/presubmit/common.cfg +++ /dev/null @@ -1,34 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - regex: "**/*sponge_log.txt" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-tasks/.kokoro/trampoline.sh" - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-tasks/.kokoro/build.sh" -} - -env_vars: { - key: "JOB_TYPE" - value: "test" -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "dpebot_codecov_token" - } - } -} diff --git a/.kokoro/presubmit/dependencies.cfg b/.kokoro/presubmit/dependencies.cfg deleted file mode 100644 index 2546b519..00000000 --- a/.kokoro/presubmit/dependencies.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-tasks/.kokoro/dependencies.sh" -} diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg deleted file mode 100644 index a3f7fb9d..00000000 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ /dev/null @@ -1,33 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17" -} - -env_vars: { - key: "JOB_TYPE" - value: "graalvm17" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} \ No newline at end of file diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg deleted file mode 100644 index 4c7225ec..00000000 --- a/.kokoro/presubmit/graalvm-native.cfg +++ /dev/null @@ -1,33 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/graalvm" -} - -env_vars: { - key: "JOB_TYPE" - value: "graalvm" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} diff --git a/.kokoro/presubmit/integration.cfg b/.kokoro/presubmit/integration.cfg deleted file mode 100644 index dded67a9..00000000 --- a/.kokoro/presubmit/integration.cfg +++ /dev/null @@ -1,33 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "integration" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} diff --git a/.kokoro/presubmit/java11.cfg b/.kokoro/presubmit/java11.cfg deleted file mode 100644 index 709f2b4c..00000000 --- a/.kokoro/presubmit/java11.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} diff --git a/.kokoro/presubmit/java7.cfg b/.kokoro/presubmit/java7.cfg deleted file mode 100644 index cb24f44e..00000000 --- a/.kokoro/presubmit/java7.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java7" -} diff --git a/.kokoro/presubmit/java8-osx.cfg b/.kokoro/presubmit/java8-osx.cfg deleted file mode 100644 index e89535c5..00000000 --- a/.kokoro/presubmit/java8-osx.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-tasks/.kokoro/build.sh" diff --git a/.kokoro/presubmit/java8-win.cfg b/.kokoro/presubmit/java8-win.cfg deleted file mode 100644 index 3cd87bb1..00000000 --- a/.kokoro/presubmit/java8-win.cfg +++ /dev/null @@ -1,3 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -build_file: "java-tasks/.kokoro/build.bat" diff --git a/.kokoro/presubmit/java8.cfg b/.kokoro/presubmit/java8.cfg deleted file mode 100644 index 495cc7ba..00000000 --- a/.kokoro/presubmit/java8.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "REPORT_COVERAGE" - value: "true" -} diff --git a/.kokoro/presubmit/linkage-monitor.cfg b/.kokoro/presubmit/linkage-monitor.cfg deleted file mode 100644 index 9215ceda..00000000 --- a/.kokoro/presubmit/linkage-monitor.cfg +++ /dev/null @@ -1,12 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-tasks/.kokoro/linkage-monitor.sh" -} \ No newline at end of file diff --git a/.kokoro/presubmit/lint.cfg b/.kokoro/presubmit/lint.cfg deleted file mode 100644 index 6d323c8a..00000000 --- a/.kokoro/presubmit/lint.cfg +++ /dev/null @@ -1,13 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. - -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "lint" -} \ No newline at end of file diff --git a/.kokoro/presubmit/samples.cfg b/.kokoro/presubmit/samples.cfg deleted file mode 100644 index 01e09600..00000000 --- a/.kokoro/presubmit/samples.cfg +++ /dev/null @@ -1,33 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "samples" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-docs-samples-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-docs-samples-service-account" -} \ No newline at end of file diff --git a/.kokoro/readme.sh b/.kokoro/readme.sh deleted file mode 100755 index b3a6ae10..00000000 --- a/.kokoro/readme.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -cd ${KOKORO_ARTIFACTS_DIR}/github/java-tasks - -# Disable buffering, so that the logs stream through. -export PYTHONUNBUFFERED=1 - -# Kokoro exposes this as a file, but the scripts expect just a plain variable. -export GITHUB_TOKEN=$(cat ${KOKORO_KEYSTORE_DIR}/73713_yoshi-automation-github-key) - -# Setup git credentials -echo "https://${GITHUB_TOKEN}:@github.com" >> ~/.git-credentials -git config --global credential.helper 'store --file ~/.git-credentials' - -python3.6 -m pip install git+https://github.com/googleapis/synthtool.git#egg=gcp-synthtool - -set +e -python3.6 -m autosynth.synth \ - --repository=googleapis/java-tasks \ - --synth-file-name=.github/readme/synth.py \ - --metadata-path=.github/readme/synth.metadata \ - --pr-title="chore: regenerate README" \ - --branch-suffix="readme" - -# autosynth returns 28 to signal there are no changes -RETURN_CODE=$? -if [[ ${RETURN_CODE} -ne 0 && ${RETURN_CODE} -ne 28 ]] -then - exit ${RETURN_CODE} -fi diff --git a/.kokoro/release/bump_snapshot.cfg b/.kokoro/release/bump_snapshot.cfg deleted file mode 100644 index 1603342f..00000000 --- a/.kokoro/release/bump_snapshot.cfg +++ /dev/null @@ -1,53 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Build logs will be here -action { - define_artifacts { - regex: "**/*sponge_log.xml" - } -} - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-tasks/.kokoro/trampoline.sh" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/node:10-user" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-tasks/.kokoro/release/bump_snapshot.sh" -} - -# tokens used by release-please to keep an up-to-date release PR. -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "github-magic-proxy-key-release-please" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "github-magic-proxy-token-release-please" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "github-magic-proxy-url-release-please" - } - } -} diff --git a/.kokoro/release/bump_snapshot.sh b/.kokoro/release/bump_snapshot.sh deleted file mode 100755 index 9f8a8396..00000000 --- a/.kokoro/release/bump_snapshot.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -# Copyright 2019 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. - -set -eo pipefail - -export NPM_CONFIG_PREFIX=/home/node/.npm-global - -if [ -f ${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please ]; then - # Groom the snapshot release PR immediately after publishing a release - npx release-please release-pr --token=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-token-release-please \ - --repo-url=googleapis/java-tasks \ - --package-name="cloudtasks" \ - --api-url=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-url-release-please \ - --proxy-key=${KOKORO_KEYSTORE_DIR}/73713_github-magic-proxy-key-release-please \ - --snapshot \ - --release-type=java-auth-yoshi -fi diff --git a/.kokoro/release/common.cfg b/.kokoro/release/common.cfg deleted file mode 100644 index 4140fb24..00000000 --- a/.kokoro/release/common.cfg +++ /dev/null @@ -1,49 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Download trampoline resources. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" - -# Use the trampoline script to run in docker. -build_file: "java-tasks/.kokoro/trampoline.sh" - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "maven-gpg-keyring" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "maven-gpg-passphrase" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "maven-gpg-pubkeyring" - } - } -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 70247 - keyname: "sonatype-credentials" - } - } -} diff --git a/.kokoro/release/common.sh b/.kokoro/release/common.sh deleted file mode 100755 index 7f78ee41..00000000 --- a/.kokoro/release/common.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# Get secrets from keystore and set and environment variables -setup_environment_secrets() { - export GPG_PASSPHRASE=$(cat ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-passphrase) - export GPG_TTY=$(tty) - export GPG_HOMEDIR=/gpg - mkdir $GPG_HOMEDIR - mv ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-pubkeyring $GPG_HOMEDIR/pubring.gpg - mv ${KOKORO_KEYSTORE_DIR}/70247_maven-gpg-keyring $GPG_HOMEDIR/secring.gpg - export SONATYPE_USERNAME=$(cat ${KOKORO_KEYSTORE_DIR}/70247_sonatype-credentials | cut -f1 -d'|') - export SONATYPE_PASSWORD=$(cat ${KOKORO_KEYSTORE_DIR}/70247_sonatype-credentials | cut -f2 -d'|') -} - -create_settings_xml_file() { - echo " - - - ossrh - ${SONATYPE_USERNAME} - ${SONATYPE_PASSWORD} - - - sonatype-nexus-staging - ${SONATYPE_USERNAME} - ${SONATYPE_PASSWORD} - - - sonatype-nexus-snapshots - ${SONATYPE_USERNAME} - ${SONATYPE_PASSWORD} - - -" > $1 -} \ No newline at end of file diff --git a/.kokoro/release/drop.cfg b/.kokoro/release/drop.cfg deleted file mode 100644 index 8ed35d2d..00000000 --- a/.kokoro/release/drop.cfg +++ /dev/null @@ -1,6 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-tasks/.kokoro/release/drop.sh" -} diff --git a/.kokoro/release/drop.sh b/.kokoro/release/drop.sh deleted file mode 100755 index 742ec1a8..00000000 --- a/.kokoro/release/drop.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# STAGING_REPOSITORY_ID must be set -if [ -z "${STAGING_REPOSITORY_ID}" ]; then - echo "Missing STAGING_REPOSITORY_ID environment variable" - exit 1 -fi - -source $(dirname "$0")/common.sh -pushd $(dirname "$0")/../../ - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -mvn nexus-staging:drop -B \ - --settings=settings.xml \ - -DstagingRepositoryId=${STAGING_REPOSITORY_ID} diff --git a/.kokoro/release/promote.cfg b/.kokoro/release/promote.cfg deleted file mode 100644 index f3471cdd..00000000 --- a/.kokoro/release/promote.cfg +++ /dev/null @@ -1,6 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-tasks/.kokoro/release/promote.sh" -} diff --git a/.kokoro/release/promote.sh b/.kokoro/release/promote.sh deleted file mode 100755 index 3cac3d8a..00000000 --- a/.kokoro/release/promote.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# STAGING_REPOSITORY_ID must be set -if [ -z "${STAGING_REPOSITORY_ID}" ]; then - echo "Missing STAGING_REPOSITORY_ID environment variable" - exit 1 -fi - -source $(dirname "$0")/common.sh - -pushd $(dirname "$0")/../../ - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -mvn nexus-staging:release -B \ - -DperformRelease=true \ - --settings=settings.xml \ - -DstagingRepositoryId=${STAGING_REPOSITORY_ID} diff --git a/.kokoro/release/publish_javadoc.cfg b/.kokoro/release/publish_javadoc.cfg deleted file mode 100644 index 328a8375..00000000 --- a/.kokoro/release/publish_javadoc.cfg +++ /dev/null @@ -1,23 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/doc-templates/" - -env_vars: { - key: "STAGING_BUCKET" - value: "docs-staging" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-tasks/.kokoro/release/publish_javadoc.sh" -} - - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "docuploader_service_account" - } - } -} diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh deleted file mode 100755 index f24f975e..00000000 --- a/.kokoro/release/publish_javadoc.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -if [[ -z "${CREDENTIALS}" ]]; then - CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account -fi - -if [[ -z "${STAGING_BUCKET}" ]]; then - echo "Need to set STAGING_BUCKET environment variable" - exit 1 -fi - -# work from the git root directory -pushd $(dirname "$0")/../../ - -# install docuploader package -python3 -m pip install --require-hashes -r .kokoro/requirements.txt - -# compile all packages -mvn clean install -B -q -DskipTests=true - -export NAME=google-cloud-tasks -export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) - -# build the docs -mvn site -B -q - -pushd target/site/apidocs - -# create metadata -python3 -m docuploader create-metadata \ - --name ${NAME} \ - --version ${VERSION} \ - --language java - -# upload docs -python3 -m docuploader upload . \ - --credentials ${CREDENTIALS} \ - --staging-bucket ${STAGING_BUCKET} diff --git a/.kokoro/release/publish_javadoc11.cfg b/.kokoro/release/publish_javadoc11.cfg deleted file mode 100644 index 22fb9913..00000000 --- a/.kokoro/release/publish_javadoc11.cfg +++ /dev/null @@ -1,30 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# cloud-rad production -env_vars: { - key: "STAGING_BUCKET_V2" - value: "docs-staging-v2" -} - -# Configure the docker image for kokoro-trampoline -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-tasks/.kokoro/release/publish_javadoc11.sh" -} - -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "docuploader_service_account" - } - } -} - -# Downloads docfx doclet resource. This will be in ${KOKORO_GFILE_DIR}/ -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/docfx" diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh deleted file mode 100755 index f28b7116..00000000 --- a/.kokoro/release/publish_javadoc11.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/bash -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -if [[ -z "${CREDENTIALS}" ]]; then - CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account -fi - -if [[ -z "${STAGING_BUCKET_V2}" ]]; then - echo "Need to set STAGING_BUCKET_V2 environment variable" - exit 1 -fi - -# work from the git root directory -pushd $(dirname "$0")/../../ - -# install docuploader package -python3 -m pip install --require-hashes -r .kokoro/requirements.txt - -# compile all packages -mvn clean install -B -q -DskipTests=true - -export NAME=google-cloud-tasks -export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) - -# cloud RAD generation -mvn clean javadoc:aggregate -B -q -P docFX -# include CHANGELOG -cp CHANGELOG.md target/docfx-yml/history.md - -pushd target/docfx-yml - -# create metadata -python3 -m docuploader create-metadata \ - --name ${NAME} \ - --version ${VERSION} \ - --xrefs devsite://java/gax \ - --xrefs devsite://java/google-cloud-core \ - --xrefs devsite://java/api-common \ - --xrefs devsite://java/proto-google-common-protos \ - --xrefs devsite://java/google-api-client \ - --xrefs devsite://java/google-http-client \ - --xrefs devsite://java/protobuf \ - --language java - -# upload yml to production bucket -python3 -m docuploader upload . \ - --credentials ${CREDENTIALS} \ - --staging-bucket ${STAGING_BUCKET_V2} \ - --destination-prefix docfx diff --git a/.kokoro/release/snapshot.cfg b/.kokoro/release/snapshot.cfg deleted file mode 100644 index 925d2622..00000000 --- a/.kokoro/release/snapshot.cfg +++ /dev/null @@ -1,6 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-tasks/.kokoro/release/snapshot.sh" -} \ No newline at end of file diff --git a/.kokoro/release/snapshot.sh b/.kokoro/release/snapshot.sh deleted file mode 100755 index 1f55b770..00000000 --- a/.kokoro/release/snapshot.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -source $(dirname "$0")/common.sh -MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml -pushd $(dirname "$0")/../../ - -# ensure we're trying to push a snapshot (no-result returns non-zero exit code) -grep SNAPSHOT versions.txt - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -mvn clean deploy -B \ - --settings ${MAVEN_SETTINGS_FILE} \ - -DperformRelease=true \ - -Dgpg.executable=gpg \ - -Dgpg.passphrase=${GPG_PASSPHRASE} \ - -Dgpg.homedir=${GPG_HOMEDIR} diff --git a/.kokoro/release/stage.cfg b/.kokoro/release/stage.cfg deleted file mode 100644 index e4adeac2..00000000 --- a/.kokoro/release/stage.cfg +++ /dev/null @@ -1,19 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -env_vars: { - key: "TRAMPOLINE_BUILD_FILE" - value: "github/java-tasks/.kokoro/release/stage.sh" -} - -# Need to save the properties file -action { - define_artifacts { - regex: "github/java-tasks/target/nexus-staging/staging/*.properties" - strip_prefix: "github/java-tasks" - } -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem" -} diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh deleted file mode 100755 index 61e714d6..00000000 --- a/.kokoro/release/stage.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# Start the releasetool reporter -requirementsFile=$(realpath $(dirname "${BASH_SOURCE[0]}")/../requirements.txt) -python3 -m pip install --require-hashes -r $requirementsFile -python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script - -source $(dirname "$0")/common.sh -source $(dirname "$0")/../common.sh -MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml -pushd $(dirname "$0")/../../ - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -# attempt to stage 3 times with exponential backoff (starting with 10 seconds) -retry_with_backoff 3 10 \ - mvn clean deploy -B \ - --settings ${MAVEN_SETTINGS_FILE} \ - -DskipTests=true \ - -Dclirr.skip=true \ - -DperformRelease=true \ - -Dgpg.executable=gpg \ - -Dgpg.passphrase=${GPG_PASSPHRASE} \ - -Dgpg.homedir=${GPG_HOMEDIR} - -if [[ -n "${AUTORELEASE_PR}" ]] -then - mvn nexus-staging:release -B \ - -DperformRelease=true \ - --settings=settings.xml -fi diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in deleted file mode 100644 index 6aa7cf2b..00000000 --- a/.kokoro/requirements.in +++ /dev/null @@ -1,33 +0,0 @@ -gcp-docuploader==0.6.3 -google-crc32c==1.3.0 -googleapis-common-protos==1.56.3 -gcp-releasetool==1.8.7 -cachetools==4.2.4 -cffi==1.15.1 -jeepney==0.7.1 -jinja2==3.0.3 -markupsafe==2.0.1 -keyring==23.4.1 -packaging==21.3 -protobuf==3.19.5 -pyjwt==2.4.0 -pyparsing==3.0.9 -pycparser==2.21 -pyperclip==1.8.2 -python-dateutil==2.8.2 -requests==2.27.1 -certifi==2022.9.24 -importlib-metadata==4.8.3 -zipp==3.6.0 -google_api_core==2.8.2 -google-cloud-storage==2.0.0 -google-resumable-media==2.3.3 -google-cloud-core==2.3.1 -typing-extensions==4.1.1 -urllib3==1.26.12 -zipp==3.6.0 -rsa==4.9 -six==1.16.0 -attrs==22.1.0 -google-auth==2.11.0 -idna==3.4 \ No newline at end of file diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt deleted file mode 100644 index 02ae42bb..00000000 --- a/.kokoro/requirements.txt +++ /dev/null @@ -1,456 +0,0 @@ -# -# This file is autogenerated by pip-compile with python 3.10 -# To update, run: -# -# pip-compile --allow-unsafe --generate-hashes requirements.in -# -attrs==22.1.0 \ - --hash=sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6 \ - --hash=sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c - # via - # -r requirements.in - # gcp-releasetool -cachetools==4.2.4 \ - --hash=sha256:89ea6f1b638d5a73a4f9226be57ac5e4f399d22770b92355f92dcb0f7f001693 \ - --hash=sha256:92971d3cb7d2a97efff7c7bb1657f21a8f5fb309a37530537c71b1774189f2d1 - # via - # -r requirements.in - # google-auth -certifi==2022.9.24 \ - --hash=sha256:0d9c601124e5a6ba9712dbc60d9c53c21e34f5f641fe83002317394311bdce14 \ - --hash=sha256:90c1a32f1d68f940488354e36370f6cca89f0f106db09518524c88d6ed83f382 - # via - # -r requirements.in - # requests -cffi==1.15.1 \ - --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ - --hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef \ - --hash=sha256:04ed324bda3cda42b9b695d51bb7d54b680b9719cfab04227cdd1e04e5de3104 \ - --hash=sha256:0e2642fe3142e4cc4af0799748233ad6da94c62a8bec3a6648bf8ee68b1c7426 \ - --hash=sha256:173379135477dc8cac4bc58f45db08ab45d228b3363adb7af79436135d028405 \ - --hash=sha256:198caafb44239b60e252492445da556afafc7d1e3ab7a1fb3f0584ef6d742375 \ - --hash=sha256:1e74c6b51a9ed6589199c787bf5f9875612ca4a8a0785fb2d4a84429badaf22a \ - --hash=sha256:2012c72d854c2d03e45d06ae57f40d78e5770d252f195b93f581acf3ba44496e \ - --hash=sha256:21157295583fe8943475029ed5abdcf71eb3911894724e360acff1d61c1d54bc \ - --hash=sha256:2470043b93ff09bf8fb1d46d1cb756ce6132c54826661a32d4e4d132e1977adf \ - --hash=sha256:285d29981935eb726a4399badae8f0ffdff4f5050eaa6d0cfc3f64b857b77185 \ - --hash=sha256:30d78fbc8ebf9c92c9b7823ee18eb92f2e6ef79b45ac84db507f52fbe3ec4497 \ - --hash=sha256:320dab6e7cb2eacdf0e658569d2575c4dad258c0fcc794f46215e1e39f90f2c3 \ - --hash=sha256:33ab79603146aace82c2427da5ca6e58f2b3f2fb5da893ceac0c42218a40be35 \ - --hash=sha256:3548db281cd7d2561c9ad9984681c95f7b0e38881201e157833a2342c30d5e8c \ - --hash=sha256:3799aecf2e17cf585d977b780ce79ff0dc9b78d799fc694221ce814c2c19db83 \ - --hash=sha256:39d39875251ca8f612b6f33e6b1195af86d1b3e60086068be9cc053aa4376e21 \ - --hash=sha256:3b926aa83d1edb5aa5b427b4053dc420ec295a08e40911296b9eb1b6170f6cca \ - --hash=sha256:3bcde07039e586f91b45c88f8583ea7cf7a0770df3a1649627bf598332cb6984 \ - --hash=sha256:3d08afd128ddaa624a48cf2b859afef385b720bb4b43df214f85616922e6a5ac \ - --hash=sha256:3eb6971dcff08619f8d91607cfc726518b6fa2a9eba42856be181c6d0d9515fd \ - --hash=sha256:40f4774f5a9d4f5e344f31a32b5096977b5d48560c5592e2f3d2c4374bd543ee \ - --hash=sha256:4289fc34b2f5316fbb762d75362931e351941fa95fa18789191b33fc4cf9504a \ - --hash=sha256:470c103ae716238bbe698d67ad020e1db9d9dba34fa5a899b5e21577e6d52ed2 \ - --hash=sha256:4f2c9f67e9821cad2e5f480bc8d83b8742896f1242dba247911072d4fa94c192 \ - --hash=sha256:50a74364d85fd319352182ef59c5c790484a336f6db772c1a9231f1c3ed0cbd7 \ - --hash=sha256:54a2db7b78338edd780e7ef7f9f6c442500fb0d41a5a4ea24fff1c929d5af585 \ - --hash=sha256:5635bd9cb9731e6d4a1132a498dd34f764034a8ce60cef4f5319c0541159392f \ - --hash=sha256:59c0b02d0a6c384d453fece7566d1c7e6b7bae4fc5874ef2ef46d56776d61c9e \ - --hash=sha256:5d598b938678ebf3c67377cdd45e09d431369c3b1a5b331058c338e201f12b27 \ - --hash=sha256:5df2768244d19ab7f60546d0c7c63ce1581f7af8b5de3eb3004b9b6fc8a9f84b \ - --hash=sha256:5ef34d190326c3b1f822a5b7a45f6c4535e2f47ed06fec77d3d799c450b2651e \ - --hash=sha256:6975a3fac6bc83c4a65c9f9fcab9e47019a11d3d2cf7f3c0d03431bf145a941e \ - --hash=sha256:6c9a799e985904922a4d207a94eae35c78ebae90e128f0c4e521ce339396be9d \ - --hash=sha256:70df4e3b545a17496c9b3f41f5115e69a4f2e77e94e1d2a8e1070bc0c38c8a3c \ - --hash=sha256:7473e861101c9e72452f9bf8acb984947aa1661a7704553a9f6e4baa5ba64415 \ - --hash=sha256:8102eaf27e1e448db915d08afa8b41d6c7ca7a04b7d73af6514df10a3e74bd82 \ - --hash=sha256:87c450779d0914f2861b8526e035c5e6da0a3199d8f1add1a665e1cbc6fc6d02 \ - --hash=sha256:8b7ee99e510d7b66cdb6c593f21c043c248537a32e0bedf02e01e9553a172314 \ - --hash=sha256:91fc98adde3d7881af9b59ed0294046f3806221863722ba7d8d120c575314325 \ - --hash=sha256:94411f22c3985acaec6f83c6df553f2dbe17b698cc7f8ae751ff2237d96b9e3c \ - --hash=sha256:98d85c6a2bef81588d9227dde12db8a7f47f639f4a17c9ae08e773aa9c697bf3 \ - --hash=sha256:9ad5db27f9cabae298d151c85cf2bad1d359a1b9c686a275df03385758e2f914 \ - --hash=sha256:a0b71b1b8fbf2b96e41c4d990244165e2c9be83d54962a9a1d118fd8657d2045 \ - --hash=sha256:a0f100c8912c114ff53e1202d0078b425bee3649ae34d7b070e9697f93c5d52d \ - --hash=sha256:a591fe9e525846e4d154205572a029f653ada1a78b93697f3b5a8f1f2bc055b9 \ - --hash=sha256:a5c84c68147988265e60416b57fc83425a78058853509c1b0629c180094904a5 \ - --hash=sha256:a66d3508133af6e8548451b25058d5812812ec3798c886bf38ed24a98216fab2 \ - --hash=sha256:a8c4917bd7ad33e8eb21e9a5bbba979b49d9a97acb3a803092cbc1133e20343c \ - --hash=sha256:b3bbeb01c2b273cca1e1e0c5df57f12dce9a4dd331b4fa1635b8bec26350bde3 \ - --hash=sha256:cba9d6b9a7d64d4bd46167096fc9d2f835e25d7e4c121fb2ddfc6528fb0413b2 \ - --hash=sha256:cc4d65aeeaa04136a12677d3dd0b1c0c94dc43abac5860ab33cceb42b801c1e8 \ - --hash=sha256:ce4bcc037df4fc5e3d184794f27bdaab018943698f4ca31630bc7f84a7b69c6d \ - --hash=sha256:cec7d9412a9102bdc577382c3929b337320c4c4c4849f2c5cdd14d7368c5562d \ - --hash=sha256:d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9 \ - --hash=sha256:d61f4695e6c866a23a21acab0509af1cdfd2c013cf256bbf5b6b5e2695827162 \ - --hash=sha256:db0fbb9c62743ce59a9ff687eb5f4afbe77e5e8403d6697f7446e5f609976f76 \ - --hash=sha256:dd86c085fae2efd48ac91dd7ccffcfc0571387fe1193d33b6394db7ef31fe2a4 \ - --hash=sha256:e00b098126fd45523dd056d2efba6c5a63b71ffe9f2bbe1a4fe1716e1d0c331e \ - --hash=sha256:e229a521186c75c8ad9490854fd8bbdd9a0c9aa3a524326b55be83b54d4e0ad9 \ - --hash=sha256:e263d77ee3dd201c3a142934a086a4450861778baaeeb45db4591ef65550b0a6 \ - --hash=sha256:ed9cb427ba5504c1dc15ede7d516b84757c3e3d7868ccc85121d9310d27eed0b \ - --hash=sha256:fa6693661a4c91757f4412306191b6dc88c1703f780c8234035eac011922bc01 \ - --hash=sha256:fcd131dd944808b5bdb38e6f5b53013c5aa4f334c5cad0c72742f6eba4b73db0 - # via - # -r requirements.in - # cryptography -charset-normalizer==2.0.12 \ - --hash=sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597 \ - --hash=sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df - # via requests -click==8.0.4 \ - --hash=sha256:6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1 \ - --hash=sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb - # via - # gcp-docuploader - # gcp-releasetool -colorlog==6.7.0 \ - --hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \ - --hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5 - # via gcp-docuploader -cryptography==38.0.1 \ - --hash=sha256:0297ffc478bdd237f5ca3a7dc96fc0d315670bfa099c04dc3a4a2172008a405a \ - --hash=sha256:10d1f29d6292fc95acb597bacefd5b9e812099d75a6469004fd38ba5471a977f \ - --hash=sha256:16fa61e7481f4b77ef53991075de29fc5bacb582a1244046d2e8b4bb72ef66d0 \ - --hash=sha256:194044c6b89a2f9f169df475cc167f6157eb9151cc69af8a2a163481d45cc407 \ - --hash=sha256:1db3d807a14931fa317f96435695d9ec386be7b84b618cc61cfa5d08b0ae33d7 \ - --hash=sha256:3261725c0ef84e7592597606f6583385fed2a5ec3909f43bc475ade9729a41d6 \ - --hash=sha256:3b72c360427889b40f36dc214630e688c2fe03e16c162ef0aa41da7ab1455153 \ - --hash=sha256:3e3a2599e640927089f932295a9a247fc40a5bdf69b0484532f530471a382750 \ - --hash=sha256:3fc26e22840b77326a764ceb5f02ca2d342305fba08f002a8c1f139540cdfaad \ - --hash=sha256:5067ee7f2bce36b11d0e334abcd1ccf8c541fc0bbdaf57cdd511fdee53e879b6 \ - --hash=sha256:52e7bee800ec869b4031093875279f1ff2ed12c1e2f74923e8f49c916afd1d3b \ - --hash=sha256:64760ba5331e3f1794d0bcaabc0d0c39e8c60bf67d09c93dc0e54189dfd7cfe5 \ - --hash=sha256:765fa194a0f3372d83005ab83ab35d7c5526c4e22951e46059b8ac678b44fa5a \ - --hash=sha256:79473cf8a5cbc471979bd9378c9f425384980fcf2ab6534b18ed7d0d9843987d \ - --hash=sha256:896dd3a66959d3a5ddcfc140a53391f69ff1e8f25d93f0e2e7830c6de90ceb9d \ - --hash=sha256:89ed49784ba88c221756ff4d4755dbc03b3c8d2c5103f6d6b4f83a0fb1e85294 \ - --hash=sha256:ac7e48f7e7261207d750fa7e55eac2d45f720027d5703cd9007e9b37bbb59ac0 \ - --hash=sha256:ad7353f6ddf285aeadfaf79e5a6829110106ff8189391704c1d8801aa0bae45a \ - --hash=sha256:b0163a849b6f315bf52815e238bc2b2346604413fa7c1601eea84bcddb5fb9ac \ - --hash=sha256:b6c9b706316d7b5a137c35e14f4103e2115b088c412140fdbd5f87c73284df61 \ - --hash=sha256:c2e5856248a416767322c8668ef1845ad46ee62629266f84a8f007a317141013 \ - --hash=sha256:ca9f6784ea96b55ff41708b92c3f6aeaebde4c560308e5fbbd3173fbc466e94e \ - --hash=sha256:d1a5bd52d684e49a36582193e0b89ff267704cd4025abefb9e26803adeb3e5fb \ - --hash=sha256:d3971e2749a723e9084dd507584e2a2761f78ad2c638aa31e80bc7a15c9db4f9 \ - --hash=sha256:d4ef6cc305394ed669d4d9eebf10d3a101059bdcf2669c366ec1d14e4fb227bd \ - --hash=sha256:d9e69ae01f99abe6ad646947bba8941e896cb3aa805be2597a0400e0764b5818 - # via - # gcp-releasetool - # secretstorage -gcp-docuploader==0.6.3 \ - --hash=sha256:ba8c9d76b3bbac54b0311c503a373b00edc2dc02d6d54ea9507045adb8e870f7 \ - --hash=sha256:c0f5aaa82ce1854a386197e4e359b120ad6d4e57ae2c812fce42219a3288026b - # via -r requirements.in -gcp-releasetool==1.8.7 \ - --hash=sha256:3d2a67c9db39322194afb3b427e9cb0476ce8f2a04033695f0aeb63979fc2b37 \ - --hash=sha256:5e4d28f66e90780d77f3ecf1e9155852b0c3b13cbccb08ab07e66b2357c8da8d - # via -r requirements.in -google-api-core==2.8.2 \ - --hash=sha256:06f7244c640322b508b125903bb5701bebabce8832f85aba9335ec00b3d02edc \ - --hash=sha256:93c6a91ccac79079ac6bbf8b74ee75db970cc899278b97d53bc012f35908cf50 - # via - # -r requirements.in - # google-cloud-core - # google-cloud-storage -google-auth==2.11.0 \ - --hash=sha256:be62acaae38d0049c21ca90f27a23847245c9f161ff54ede13af2cb6afecbac9 \ - --hash=sha256:ed65ecf9f681832298e29328e1ef0a3676e3732b2e56f41532d45f70a22de0fb - # via - # -r requirements.in - # gcp-releasetool - # google-api-core - # google-cloud-core - # google-cloud-storage -google-cloud-core==2.3.1 \ - --hash=sha256:113ba4f492467d5bd442c8d724c1a25ad7384045c3178369038840ecdd19346c \ - --hash=sha256:34334359cb04187bdc80ddcf613e462dfd7a3aabbc3fe4d118517ab4b9303d53 - # via - # -r requirements.in - # google-cloud-storage -google-cloud-storage==2.0.0 \ - --hash=sha256:a57a15aead0f9dfbd4381f1bfdbe8bf89818a4bd75bab846cafcefb2db846c47 \ - --hash=sha256:ec4be60bb223a3a960f0d01697d849b86d91cad815a84915a32ed3635e93a5e7 - # via - # -r requirements.in - # gcp-docuploader -google-crc32c==1.3.0 \ - --hash=sha256:04e7c220798a72fd0f08242bc8d7a05986b2a08a0573396187fd32c1dcdd58b3 \ - --hash=sha256:05340b60bf05b574159e9bd940152a47d38af3fb43803ffe71f11d704b7696a6 \ - --hash=sha256:12674a4c3b56b706153a358eaa1018c4137a5a04635b92b4652440d3d7386206 \ - --hash=sha256:127f9cc3ac41b6a859bd9dc4321097b1a4f6aa7fdf71b4f9227b9e3ebffb4422 \ - --hash=sha256:13af315c3a0eec8bb8b8d80b8b128cb3fcd17d7e4edafc39647846345a3f003a \ - --hash=sha256:1926fd8de0acb9d15ee757175ce7242e235482a783cd4ec711cc999fc103c24e \ - --hash=sha256:226f2f9b8e128a6ca6a9af9b9e8384f7b53a801907425c9a292553a3a7218ce0 \ - --hash=sha256:276de6273eb074a35bc598f8efbc00c7869c5cf2e29c90748fccc8c898c244df \ - --hash=sha256:318f73f5484b5671f0c7f5f63741ab020a599504ed81d209b5c7129ee4667407 \ - --hash=sha256:3bbce1be3687bbfebe29abdb7631b83e6b25da3f4e1856a1611eb21854b689ea \ - --hash=sha256:42ae4781333e331a1743445931b08ebdad73e188fd554259e772556fc4937c48 \ - --hash=sha256:58be56ae0529c664cc04a9c76e68bb92b091e0194d6e3c50bea7e0f266f73713 \ - --hash=sha256:5da2c81575cc3ccf05d9830f9e8d3c70954819ca9a63828210498c0774fda1a3 \ - --hash=sha256:6311853aa2bba4064d0c28ca54e7b50c4d48e3de04f6770f6c60ebda1e975267 \ - --hash=sha256:650e2917660e696041ab3dcd7abac160b4121cd9a484c08406f24c5964099829 \ - --hash=sha256:6a4db36f9721fdf391646685ecffa404eb986cbe007a3289499020daf72e88a2 \ - --hash=sha256:779cbf1ce375b96111db98fca913c1f5ec11b1d870e529b1dc7354b2681a8c3a \ - --hash=sha256:7f6fe42536d9dcd3e2ffb9d3053f5d05221ae3bbcefbe472bdf2c71c793e3183 \ - --hash=sha256:891f712ce54e0d631370e1f4997b3f182f3368179198efc30d477c75d1f44942 \ - --hash=sha256:95c68a4b9b7828ba0428f8f7e3109c5d476ca44996ed9a5f8aac6269296e2d59 \ - --hash=sha256:96a8918a78d5d64e07c8ea4ed2bc44354e3f93f46a4866a40e8db934e4c0d74b \ - --hash=sha256:9c3cf890c3c0ecfe1510a452a165431b5831e24160c5fcf2071f0f85ca5a47cd \ - --hash=sha256:9f58099ad7affc0754ae42e6d87443299f15d739b0ce03c76f515153a5cda06c \ - --hash=sha256:a0b9e622c3b2b8d0ce32f77eba617ab0d6768b82836391e4f8f9e2074582bf02 \ - --hash=sha256:a7f9cbea4245ee36190f85fe1814e2d7b1e5f2186381b082f5d59f99b7f11328 \ - --hash=sha256:bab4aebd525218bab4ee615786c4581952eadc16b1ff031813a2fd51f0cc7b08 \ - --hash=sha256:c124b8c8779bf2d35d9b721e52d4adb41c9bfbde45e6a3f25f0820caa9aba73f \ - --hash=sha256:c9da0a39b53d2fab3e5467329ed50e951eb91386e9d0d5b12daf593973c3b168 \ - --hash=sha256:ca60076c388728d3b6ac3846842474f4250c91efbfe5afa872d3ffd69dd4b318 \ - --hash=sha256:cb6994fff247987c66a8a4e550ef374671c2b82e3c0d2115e689d21e511a652d \ - --hash=sha256:d1c1d6236feab51200272d79b3d3e0f12cf2cbb12b208c835b175a21efdb0a73 \ - --hash=sha256:dd7760a88a8d3d705ff562aa93f8445ead54f58fd482e4f9e2bafb7e177375d4 \ - --hash=sha256:dda4d8a3bb0b50f540f6ff4b6033f3a74e8bf0bd5320b70fab2c03e512a62812 \ - --hash=sha256:e0f1ff55dde0ebcfbef027edc21f71c205845585fffe30d4ec4979416613e9b3 \ - --hash=sha256:e7a539b9be7b9c00f11ef16b55486141bc2cdb0c54762f84e3c6fc091917436d \ - --hash=sha256:eb0b14523758e37802f27b7f8cd973f5f3d33be7613952c0df904b68c4842f0e \ - --hash=sha256:ed447680ff21c14aaceb6a9f99a5f639f583ccfe4ce1a5e1d48eb41c3d6b3217 \ - --hash=sha256:f52a4ad2568314ee713715b1e2d79ab55fab11e8b304fd1462ff5cccf4264b3e \ - --hash=sha256:fbd60c6aaa07c31d7754edbc2334aef50601b7f1ada67a96eb1eb57c7c72378f \ - --hash=sha256:fc28e0db232c62ca0c3600884933178f0825c99be4474cdd645e378a10588125 \ - --hash=sha256:fe31de3002e7b08eb20823b3735b97c86c5926dd0581c7710a680b418a8709d4 \ - --hash=sha256:fec221a051150eeddfdfcff162e6db92c65ecf46cb0f7bb1bf812a1520ec026b \ - --hash=sha256:ff71073ebf0e42258a42a0b34f2c09ec384977e7f6808999102eedd5b49920e3 - # via - # -r requirements.in - # google-resumable-media -google-resumable-media==2.3.3 \ - --hash=sha256:27c52620bd364d1c8116eaac4ea2afcbfb81ae9139fb3199652fcac1724bfb6c \ - --hash=sha256:5b52774ea7a829a8cdaa8bd2d4c3d4bc660c91b30857ab2668d0eb830f4ea8c5 - # via - # -r requirements.in - # google-cloud-storage -googleapis-common-protos==1.56.3 \ - --hash=sha256:6f1369b58ed6cf3a4b7054a44ebe8d03b29c309257583a2bbdc064cd1e4a1442 \ - --hash=sha256:87955d7b3a73e6e803f2572a33179de23989ebba725e05ea42f24838b792e461 - # via - # -r requirements.in - # google-api-core -idna==3.4 \ - --hash=sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4 \ - --hash=sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2 - # via - # -r requirements.in - # requests -importlib-metadata==4.8.3 \ - --hash=sha256:65a9576a5b2d58ca44d133c42a241905cc45e34d2c06fd5ba2bafa221e5d7b5e \ - --hash=sha256:766abffff765960fcc18003801f7044eb6755ffae4521c8e8ce8e83b9c9b0668 - # via - # -r requirements.in - # keyring -jeepney==0.7.1 \ - --hash=sha256:1b5a0ea5c0e7b166b2f5895b91a08c14de8915afda4407fb5022a195224958ac \ - --hash=sha256:fa9e232dfa0c498bd0b8a3a73b8d8a31978304dcef0515adc859d4e096f96f4f - # via - # -r requirements.in - # keyring - # secretstorage -jinja2==3.0.3 \ - --hash=sha256:077ce6014f7b40d03b47d1f1ca4b0fc8328a692bd284016f806ed0eaca390ad8 \ - --hash=sha256:611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7 - # via - # -r requirements.in - # gcp-releasetool -keyring==23.4.1 \ - --hash=sha256:17e49fb0d6883c2b4445359434dba95aad84aabb29bbff044ad0ed7100232eca \ - --hash=sha256:89cbd74d4683ed164c8082fb38619341097741323b3786905c6dac04d6915a55 - # via - # -r requirements.in - # gcp-releasetool -markupsafe==2.0.1 \ - --hash=sha256:01a9b8ea66f1658938f65b93a85ebe8bc016e6769611be228d797c9d998dd298 \ - --hash=sha256:023cb26ec21ece8dc3907c0e8320058b2e0cb3c55cf9564da612bc325bed5e64 \ - --hash=sha256:0446679737af14f45767963a1a9ef7620189912317d095f2d9ffa183a4d25d2b \ - --hash=sha256:04635854b943835a6ea959e948d19dcd311762c5c0c6e1f0e16ee57022669194 \ - --hash=sha256:0717a7390a68be14b8c793ba258e075c6f4ca819f15edfc2a3a027c823718567 \ - --hash=sha256:0955295dd5eec6cb6cc2fe1698f4c6d84af2e92de33fbcac4111913cd100a6ff \ - --hash=sha256:0d4b31cc67ab36e3392bbf3862cfbadac3db12bdd8b02a2731f509ed5b829724 \ - --hash=sha256:10f82115e21dc0dfec9ab5c0223652f7197feb168c940f3ef61563fc2d6beb74 \ - --hash=sha256:168cd0a3642de83558a5153c8bd34f175a9a6e7f6dc6384b9655d2697312a646 \ - --hash=sha256:1d609f577dc6e1aa17d746f8bd3c31aa4d258f4070d61b2aa5c4166c1539de35 \ - --hash=sha256:1f2ade76b9903f39aa442b4aadd2177decb66525062db244b35d71d0ee8599b6 \ - --hash=sha256:20dca64a3ef2d6e4d5d615a3fd418ad3bde77a47ec8a23d984a12b5b4c74491a \ - --hash=sha256:2a7d351cbd8cfeb19ca00de495e224dea7e7d919659c2841bbb7f420ad03e2d6 \ - --hash=sha256:2d7d807855b419fc2ed3e631034685db6079889a1f01d5d9dac950f764da3dad \ - --hash=sha256:2ef54abee730b502252bcdf31b10dacb0a416229b72c18b19e24a4509f273d26 \ - --hash=sha256:36bc903cbb393720fad60fc28c10de6acf10dc6cc883f3e24ee4012371399a38 \ - --hash=sha256:37205cac2a79194e3750b0af2a5720d95f786a55ce7df90c3af697bfa100eaac \ - --hash=sha256:3c112550557578c26af18a1ccc9e090bfe03832ae994343cfdacd287db6a6ae7 \ - --hash=sha256:3dd007d54ee88b46be476e293f48c85048603f5f516008bee124ddd891398ed6 \ - --hash=sha256:4296f2b1ce8c86a6aea78613c34bb1a672ea0e3de9c6ba08a960efe0b0a09047 \ - --hash=sha256:47ab1e7b91c098ab893b828deafa1203de86d0bc6ab587b160f78fe6c4011f75 \ - --hash=sha256:49e3ceeabbfb9d66c3aef5af3a60cc43b85c33df25ce03d0031a608b0a8b2e3f \ - --hash=sha256:4dc8f9fb58f7364b63fd9f85013b780ef83c11857ae79f2feda41e270468dd9b \ - --hash=sha256:4efca8f86c54b22348a5467704e3fec767b2db12fc39c6d963168ab1d3fc9135 \ - --hash=sha256:53edb4da6925ad13c07b6d26c2a852bd81e364f95301c66e930ab2aef5b5ddd8 \ - --hash=sha256:5855f8438a7d1d458206a2466bf82b0f104a3724bf96a1c781ab731e4201731a \ - --hash=sha256:594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a \ - --hash=sha256:5b6d930f030f8ed98e3e6c98ffa0652bdb82601e7a016ec2ab5d7ff23baa78d1 \ - --hash=sha256:5bb28c636d87e840583ee3adeb78172efc47c8b26127267f54a9c0ec251d41a9 \ - --hash=sha256:60bf42e36abfaf9aff1f50f52644b336d4f0a3fd6d8a60ca0d054ac9f713a864 \ - --hash=sha256:611d1ad9a4288cf3e3c16014564df047fe08410e628f89805e475368bd304914 \ - --hash=sha256:6300b8454aa6930a24b9618fbb54b5a68135092bc666f7b06901f897fa5c2fee \ - --hash=sha256:63f3268ba69ace99cab4e3e3b5840b03340efed0948ab8f78d2fd87ee5442a4f \ - --hash=sha256:6557b31b5e2c9ddf0de32a691f2312a32f77cd7681d8af66c2692efdbef84c18 \ - --hash=sha256:693ce3f9e70a6cf7d2fb9e6c9d8b204b6b39897a2c4a1aa65728d5ac97dcc1d8 \ - --hash=sha256:6a7fae0dd14cf60ad5ff42baa2e95727c3d81ded453457771d02b7d2b3f9c0c2 \ - --hash=sha256:6c4ca60fa24e85fe25b912b01e62cb969d69a23a5d5867682dd3e80b5b02581d \ - --hash=sha256:6fcf051089389abe060c9cd7caa212c707e58153afa2c649f00346ce6d260f1b \ - --hash=sha256:7d91275b0245b1da4d4cfa07e0faedd5b0812efc15b702576d103293e252af1b \ - --hash=sha256:89c687013cb1cd489a0f0ac24febe8c7a666e6e221b783e53ac50ebf68e45d86 \ - --hash=sha256:8d206346619592c6200148b01a2142798c989edcb9c896f9ac9722a99d4e77e6 \ - --hash=sha256:905fec760bd2fa1388bb5b489ee8ee5f7291d692638ea5f67982d968366bef9f \ - --hash=sha256:97383d78eb34da7e1fa37dd273c20ad4320929af65d156e35a5e2d89566d9dfb \ - --hash=sha256:984d76483eb32f1bcb536dc27e4ad56bba4baa70be32fa87152832cdd9db0833 \ - --hash=sha256:99df47edb6bda1249d3e80fdabb1dab8c08ef3975f69aed437cb69d0a5de1e28 \ - --hash=sha256:9f02365d4e99430a12647f09b6cc8bab61a6564363f313126f775eb4f6ef798e \ - --hash=sha256:a30e67a65b53ea0a5e62fe23682cfe22712e01f453b95233b25502f7c61cb415 \ - --hash=sha256:ab3ef638ace319fa26553db0624c4699e31a28bb2a835c5faca8f8acf6a5a902 \ - --hash=sha256:aca6377c0cb8a8253e493c6b451565ac77e98c2951c45f913e0b52facdcff83f \ - --hash=sha256:add36cb2dbb8b736611303cd3bfcee00afd96471b09cda130da3581cbdc56a6d \ - --hash=sha256:b2f4bf27480f5e5e8ce285a8c8fd176c0b03e93dcc6646477d4630e83440c6a9 \ - --hash=sha256:b7f2d075102dc8c794cbde1947378051c4e5180d52d276987b8d28a3bd58c17d \ - --hash=sha256:baa1a4e8f868845af802979fcdbf0bb11f94f1cb7ced4c4b8a351bb60d108145 \ - --hash=sha256:be98f628055368795d818ebf93da628541e10b75b41c559fdf36d104c5787066 \ - --hash=sha256:bf5d821ffabf0ef3533c39c518f3357b171a1651c1ff6827325e4489b0e46c3c \ - --hash=sha256:c47adbc92fc1bb2b3274c4b3a43ae0e4573d9fbff4f54cd484555edbf030baf1 \ - --hash=sha256:cdfba22ea2f0029c9261a4bd07e830a8da012291fbe44dc794e488b6c9bb353a \ - --hash=sha256:d6c7ebd4e944c85e2c3421e612a7057a2f48d478d79e61800d81468a8d842207 \ - --hash=sha256:d7f9850398e85aba693bb640262d3611788b1f29a79f0c93c565694658f4071f \ - --hash=sha256:d8446c54dc28c01e5a2dbac5a25f071f6653e6e40f3a8818e8b45d790fe6ef53 \ - --hash=sha256:deb993cacb280823246a026e3b2d81c493c53de6acfd5e6bfe31ab3402bb37dd \ - --hash=sha256:e0f138900af21926a02425cf736db95be9f4af72ba1bb21453432a07f6082134 \ - --hash=sha256:e9936f0b261d4df76ad22f8fee3ae83b60d7c3e871292cd42f40b81b70afae85 \ - --hash=sha256:f0567c4dc99f264f49fe27da5f735f414c4e7e7dd850cfd8e69f0862d7c74ea9 \ - --hash=sha256:f5653a225f31e113b152e56f154ccbe59eeb1c7487b39b9d9f9cdb58e6c79dc5 \ - --hash=sha256:f826e31d18b516f653fe296d967d700fddad5901ae07c622bb3705955e1faa94 \ - --hash=sha256:f8ba0e8349a38d3001fae7eadded3f6606f0da5d748ee53cc1dab1d6527b9509 \ - --hash=sha256:f9081981fe268bd86831e5c75f7de206ef275defcb82bc70740ae6dc507aee51 \ - --hash=sha256:fa130dd50c57d53368c9d59395cb5526eda596d3ffe36666cd81a44d56e48872 - # via - # -r requirements.in - # jinja2 -packaging==21.3 \ - --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \ - --hash=sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522 - # via - # -r requirements.in - # gcp-releasetool -protobuf==3.19.5 \ - --hash=sha256:1867f93b06a183f87696871bb8d1e99ee71dbb69d468ce1f0cc8bf3d30f982f3 \ - --hash=sha256:3c4160b601220627f7e91154e572baf5e161a9c3f445a8242d536ee3d0b7b17c \ - --hash=sha256:4ee2af7051d3b10c8a4fe6fd1a2c69f201fea36aeee7086cf202a692e1b99ee1 \ - --hash=sha256:5266c36cc0af3bb3dbf44f199d225b33da66a9a5c3bdc2b14865ad10eddf0e37 \ - --hash=sha256:5470f892961af464ae6eaf0f3099e2c1190ae8c7f36f174b89491281341f79ca \ - --hash=sha256:66d14b5b90090353efe75c9fb1bf65ef7267383034688d255b500822e37d5c2f \ - --hash=sha256:67efb5d20618020aa9596e17bfc37ca068c28ec0c1507d9507f73c93d46c9855 \ - --hash=sha256:696e6cfab94cc15a14946f2bf72719dced087d437adbd994fff34f38986628bc \ - --hash=sha256:6a02172b9650f819d01fb8e224fc69b0706458fc1ab4f1c669281243c71c1a5e \ - --hash=sha256:6eca9ae238ba615d702387a2ddea635d535d769994a9968c09a4ca920c487ab9 \ - --hash=sha256:950abd6c00e7b51f87ae8b18a0ce4d69fea217f62f171426e77de5061f6d9850 \ - --hash=sha256:9e1d74032f56ff25f417cfe84c8147047732e5059137ca42efad20cbbd25f5e0 \ - --hash=sha256:9e42b1cf2ecd8a1bd161239e693f22035ba99905ae6d7efeac8a0546c7ec1a27 \ - --hash=sha256:9f957ef53e872d58a0afd3bf6d80d48535d28c99b40e75e6634cbc33ea42fd54 \ - --hash=sha256:a89aa0c042e61e11ade320b802d6db4ee5391d8d973e46d3a48172c1597789f8 \ - --hash=sha256:c0f80876a8ff0ae7064084ed094eb86497bd5a3812e6fc96a05318b92301674e \ - --hash=sha256:c44e3282cff74ad18c7e8a0375f407f69ee50c2116364b44492a196293e08b21 \ - --hash=sha256:d249519ba5ecf5dd6b18150c9b6bcde510b273714b696f3923ff8308fc11ae49 \ - --hash=sha256:d3973a2d58aefc7d1230725c2447ce7f86a71cbc094b86a77c6ee1505ac7cdb1 \ - --hash=sha256:dca2284378a5f2a86ffed35c6ac147d14c48b525eefcd1083e5a9ce28dfa8657 \ - --hash=sha256:e63b0b3c42e51c94add62b010366cd4979cb6d5f06158bcae8faac4c294f91e1 \ - --hash=sha256:f2b599a21c9a32e171ec29a2ac54e03297736c578698e11b099d031f79da114b \ - --hash=sha256:f2bde37667b18c2b5280df83bc799204394a5d2d774e4deaf9de0eb741df6833 \ - --hash=sha256:f4f909f4dde413dec435a44b0894956d55bb928ded7d6e3c726556ca4c796e84 \ - --hash=sha256:f976234e20ab2785f54224bcdafa027674e23663b132fa3ca0caa291a6cfbde7 \ - --hash=sha256:f9cebda093c2f6bfed88f1c17cdade09d4d96096421b344026feee236532d4de - # via - # -r requirements.in - # gcp-docuploader - # gcp-releasetool - # google-api-core - # google-cloud-storage - # googleapis-common-protos -pyasn1==0.4.8 \ - --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \ - --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba - # via - # pyasn1-modules - # rsa -pyasn1-modules==0.2.8 \ - --hash=sha256:905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e \ - --hash=sha256:a50b808ffeb97cb3601dd25981f6b016cbb3d31fbf57a8b8a87428e6158d0c74 - # via google-auth -pycparser==2.21 \ - --hash=sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9 \ - --hash=sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206 - # via - # -r requirements.in - # cffi -pyjwt==2.4.0 \ - --hash=sha256:72d1d253f32dbd4f5c88eaf1fdc62f3a19f676ccbadb9dbc5d07e951b2b26daf \ - --hash=sha256:d42908208c699b3b973cbeb01a969ba6a96c821eefb1c5bfe4c390c01d67abba - # via - # -r requirements.in - # gcp-releasetool -pyparsing==3.0.9 \ - --hash=sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb \ - --hash=sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc - # via - # -r requirements.in - # packaging -pyperclip==1.8.2 \ - --hash=sha256:105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57 - # via - # -r requirements.in - # gcp-releasetool -python-dateutil==2.8.2 \ - --hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \ - --hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9 - # via - # -r requirements.in - # gcp-releasetool -requests==2.27.1 \ - --hash=sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61 \ - --hash=sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d - # via - # -r requirements.in - # gcp-releasetool - # google-api-core - # google-cloud-storage -rsa==4.9 \ - --hash=sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7 \ - --hash=sha256:e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21 - # via - # -r requirements.in - # google-auth -secretstorage==3.3.3 \ - --hash=sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77 \ - --hash=sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99 - # via keyring -six==1.16.0 \ - --hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \ - --hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254 - # via - # -r requirements.in - # gcp-docuploader - # google-auth - # python-dateutil -typing-extensions==4.1.1 \ - --hash=sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42 \ - --hash=sha256:21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2 - # via -r requirements.in -urllib3==1.26.12 \ - --hash=sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e \ - --hash=sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997 - # via - # -r requirements.in - # requests -zipp==3.6.0 \ - --hash=sha256:71c644c5369f4a6e07636f0aa966270449561fcea2e3d6747b8d23efaa9d7832 \ - --hash=sha256:9fe5ea21568a0a70e50f273397638d39b03353731e6cbbb3fd8502a33fec40bc - # via - # -r requirements.in - # importlib-metadata diff --git a/.kokoro/trampoline.sh b/.kokoro/trampoline.sh deleted file mode 100644 index 8b69b793..00000000 --- a/.kokoro/trampoline.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -set -eo pipefail -# Always run the cleanup script, regardless of the success of bouncing into -# the container. -function cleanup() { - chmod +x ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh - ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh - echo "cleanup"; -} -trap cleanup EXIT - -$(dirname $0)/populate-secrets.sh # Secret Manager secrets. -python3 "${KOKORO_GFILE_DIR}/trampoline_v1.py" diff --git a/.repo-metadata.json b/.repo-metadata.json deleted file mode 100644 index 287f9035..00000000 --- a/.repo-metadata.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "api_shortname": "cloudtasks", - "name_pretty": "Cloud Tasks", - "product_documentation": "https://cloud.google.com/tasks/docs/", - "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-tasks/latest/history", - "issue_tracker": "https://issuetracker.google.com/savedsearches/5433985", - "release_level": "stable", - "language": "java", - "repo": "googleapis/java-tasks", - "repo_short": "java-tasks", - "distribution_name": "com.google.cloud:google-cloud-tasks", - "api_id": "cloudtasks.googleapis.com", - "transport": "grpc", - "requires_billing": true, - "api_description": "a fully managed service that allows you to manage the execution, dispatch and delivery of a large number of distributed tasks. You can asynchronously perform work outside of a user request. Your tasks can be executed on App Engine or any arbitrary HTTP endpoint.", - "library_type": "GAPIC_AUTO", - "codeowner_team": "@googleapis/aap-dpes" -} diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 8c3630d7..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,633 +0,0 @@ -# Changelog - -## [2.3.12](https://github.com/googleapis/java-tasks/compare/v2.3.11...v2.3.12) (2022-10-05) - - -### Bug Fixes - -* update protobuf to v3.21.7 ([79d519c](https://github.com/googleapis/java-tasks/commit/79d519c1d0970ed16b779be4015de0101971570e)) - -## [2.3.11](https://github.com/googleapis/java-tasks/compare/v2.3.10...v2.3.11) (2022-10-03) - - -### Dependencies - -* Update dependency certifi to v2022.9.24 ([#768](https://github.com/googleapis/java-tasks/issues/768)) ([8c15961](https://github.com/googleapis/java-tasks/commit/8c15961d67c2bfcd0adb190d4db47cc3aad6d5a2)) -* Update dependency charset-normalizer to v2.1.1 ([#772](https://github.com/googleapis/java-tasks/issues/772)) ([a2d0846](https://github.com/googleapis/java-tasks/commit/a2d084683252784b5a476f045ab6639cadc3bdb7)) -* Update dependency click to v8.1.3 ([#773](https://github.com/googleapis/java-tasks/issues/773)) ([34059c2](https://github.com/googleapis/java-tasks/commit/34059c23419a4b6d4b1b1b09f57c49b7234a336d)) -* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#793](https://github.com/googleapis/java-tasks/issues/793)) ([ba4f11f](https://github.com/googleapis/java-tasks/commit/ba4f11f2f6e7090d4a4627fc7b97cca0108e4580)) -* Update dependency gcp-releasetool to v1.8.8 ([#769](https://github.com/googleapis/java-tasks/issues/769)) ([c78e26f](https://github.com/googleapis/java-tasks/commit/c78e26f3b3842db2af114ed1c53f4d8922acbf7b)) -* Update dependency google-api-core to v2.10.1 ([#774](https://github.com/googleapis/java-tasks/issues/774)) ([7b35804](https://github.com/googleapis/java-tasks/commit/7b3580427996bca2748df1f8e8e3afeb2fae997c)) -* Update dependency google-auth to v2.12.0 ([#775](https://github.com/googleapis/java-tasks/issues/775)) ([3e3c456](https://github.com/googleapis/java-tasks/commit/3e3c456f40255ea56c0f89e0384c36adfaffd5e8)) -* Update dependency google-cloud-core to v2.3.2 ([#770](https://github.com/googleapis/java-tasks/issues/770)) ([83b6536](https://github.com/googleapis/java-tasks/commit/83b65361a4e4f3a42c6383480acb7422c1db09c2)) -* Update dependency google-cloud-storage to v2.5.0 ([#776](https://github.com/googleapis/java-tasks/issues/776)) ([47d9a9e](https://github.com/googleapis/java-tasks/commit/47d9a9ede1544cb586b022b759bb49810a4383d3)) -* Update dependency jinja2 to v3.1.2 ([#788](https://github.com/googleapis/java-tasks/issues/788)) ([df82325](https://github.com/googleapis/java-tasks/commit/df82325fe78995b19b83b2cec96f8d4be45b3e9e)) -* Update dependency markupsafe to v2.1.1 ([#778](https://github.com/googleapis/java-tasks/issues/778)) ([6722e83](https://github.com/googleapis/java-tasks/commit/6722e834724d921e60e512d70f0d55790f81da07)) -* Update dependency protobuf to v3.20.2 ([#779](https://github.com/googleapis/java-tasks/issues/779)) ([1df1015](https://github.com/googleapis/java-tasks/commit/1df101599f59f9dc65769747dcfea4b6d6a3daec)) -* Update dependency requests to v2.28.1 ([#781](https://github.com/googleapis/java-tasks/issues/781)) ([5b16d6e](https://github.com/googleapis/java-tasks/commit/5b16d6e7c49aeb637885a166179411603b1c489d)) - -## [2.3.10](https://github.com/googleapis/java-tasks/compare/v2.3.9...v2.3.10) (2022-09-22) - - -### Dependencies - -* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.14 ([#760](https://github.com/googleapis/java-tasks/issues/760)) ([07561cf](https://github.com/googleapis/java-tasks/commit/07561cfa3086e1c254bdb9fcca417f164cdeeeae)) -* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.14 ([#761](https://github.com/googleapis/java-tasks/issues/761)) ([d30809d](https://github.com/googleapis/java-tasks/commit/d30809df1103191b839c75e877bf2771eafcac51)) - -## [2.3.9](https://github.com/googleapis/java-tasks/compare/v2.3.8...v2.3.9) (2022-09-21) - - -### Dependencies - -* Update dependency org.junit.vintage:junit-vintage-engine to v5.9.1 ([#756](https://github.com/googleapis/java-tasks/issues/756)) ([261ae44](https://github.com/googleapis/java-tasks/commit/261ae44c5a3acf26f7afe6d3f6727d4ccb55a56c)) - -## [2.3.8](https://github.com/googleapis/java-tasks/compare/v2.3.7...v2.3.8) (2022-09-15) - - -### Dependencies - -* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#751](https://github.com/googleapis/java-tasks/issues/751)) ([455a7a7](https://github.com/googleapis/java-tasks/commit/455a7a722c4b055c756877cebe6960a3569ff1f7)) - -## [2.3.7](https://github.com/googleapis/java-tasks/compare/v2.3.6...v2.3.7) (2022-09-09) - - -### Dependencies - -* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#746](https://github.com/googleapis/java-tasks/issues/746)) ([b39b0b3](https://github.com/googleapis/java-tasks/commit/b39b0b374bc158401d33287f7e88cd2622e342ff)) - -## [2.3.6](https://github.com/googleapis/java-tasks/compare/v2.3.5...v2.3.6) (2022-08-05) - - -### Documentation - -* **owlbot-java:** explaining why not using formatter in pom.xml ([#1511](https://github.com/googleapis/java-tasks/issues/1511)) ([#729](https://github.com/googleapis/java-tasks/issues/729)) ([6e136b6](https://github.com/googleapis/java-tasks/commit/6e136b6c880192036af71af5440d81fd21192210)), closes [#1502](https://github.com/googleapis/java-tasks/issues/1502) - -## [2.3.5](https://github.com/googleapis/java-tasks/compare/v2.3.4...v2.3.5) (2022-08-02) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.1 ([#732](https://github.com/googleapis/java-tasks/issues/732)) ([5f27ab2](https://github.com/googleapis/java-tasks/commit/5f27ab2712f5f28e43712f9c91813eae73c00e5c)) - -## [2.3.4](https://github.com/googleapis/java-tasks/compare/v2.3.3...v2.3.4) (2022-07-30) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#726](https://github.com/googleapis/java-tasks/issues/726)) ([fd64ed1](https://github.com/googleapis/java-tasks/commit/fd64ed1ac139f80e2d7a0827c77e5ef3433b7018)) - -## [2.3.3](https://github.com/googleapis/java-tasks/compare/v2.3.2...v2.3.3) (2022-07-27) - - -### Dependencies - -* update dependency org.junit.vintage:junit-vintage-engine to v5.9.0 ([#723](https://github.com/googleapis/java-tasks/issues/723)) ([7934b72](https://github.com/googleapis/java-tasks/commit/7934b7261304b8bcb6727a4cbc86f8d7733b04c0)) - -## [2.3.2](https://github.com/googleapis/java-tasks/compare/v2.3.1...v2.3.2) (2022-07-26) - - -### Dependencies - -* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.13 ([#711](https://github.com/googleapis/java-tasks/issues/711)) ([581c9c2](https://github.com/googleapis/java-tasks/commit/581c9c26281edfe6b6218e3621051b9a010641f3)) -* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.13 ([#712](https://github.com/googleapis/java-tasks/issues/712)) ([d01c068](https://github.com/googleapis/java-tasks/commit/d01c068098aa44eedc0678c6adf7e06d5f544b8d)) - -## [2.3.1](https://github.com/googleapis/java-tasks/compare/v2.3.0...v2.3.1) (2022-07-13) - - -### Bug Fixes - -* enable longpaths support for windows test ([#1485](https://github.com/googleapis/java-tasks/issues/1485)) ([#713](https://github.com/googleapis/java-tasks/issues/713)) ([ac338a8](https://github.com/googleapis/java-tasks/commit/ac338a8125cb7c5eea5bffa88e52a7f46784f3c4)) - -## [2.3.0](https://github.com/googleapis/java-tasks/compare/v2.2.0...v2.3.0) (2022-07-01) - - -### Features - -* Enable REST transport for most of Java and Go clients ([#690](https://github.com/googleapis/java-tasks/issues/690)) ([3a06bdf](https://github.com/googleapis/java-tasks/commit/3a06bdf6ca4f1ac35b0721f15e2f8a7421185b9f)) - - -### Documentation - -* **sample:** clean up README for native image sample ([#697](https://github.com/googleapis/java-tasks/issues/697)) ([81677de](https://github.com/googleapis/java-tasks/commit/81677defcf97f51b0e9583e4fbace23eb07fc178)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#701](https://github.com/googleapis/java-tasks/issues/701)) ([52e4d94](https://github.com/googleapis/java-tasks/commit/52e4d94481c94707f8862d13564dd1c39ffcb803)) -* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.12 ([#699](https://github.com/googleapis/java-tasks/issues/699)) ([267d116](https://github.com/googleapis/java-tasks/commit/267d11694a769b425e507a2f823cbba8842c33f7)) -* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.12 ([#700](https://github.com/googleapis/java-tasks/issues/700)) ([f14d923](https://github.com/googleapis/java-tasks/commit/f14d92364771f5e519b8812292f1c4382f806b63)) - -## [2.2.0](https://github.com/googleapis/java-tasks/compare/v2.1.11...v2.2.0) (2022-05-19) - - -### Features - -* add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-tasks/issues/1440)) ([#688](https://github.com/googleapis/java-tasks/issues/688)) ([2c95399](https://github.com/googleapis/java-tasks/commit/2c953994af809cb182dbd20038053712f1c7570e)) -* next release from main branch is 2.1.11 ([#683](https://github.com/googleapis/java-tasks/issues/683)) ([9b95ea8](https://github.com/googleapis/java-tasks/commit/9b95ea840e19dc6aca18209feda9e8a3f6c5a7d3)) - - -### Documentation - -* **sample:** remove protobuf feature from native image sample ([#665](https://github.com/googleapis/java-tasks/issues/665)) ([c29f78e](https://github.com/googleapis/java-tasks/commit/c29f78e68ce8964e8cf10f0bbf4aed85068d1578)) -* **sample:** removing unnecessary native-image-support dependency ([#681](https://github.com/googleapis/java-tasks/issues/681)) ([d920172](https://github.com/googleapis/java-tasks/commit/d920172de95e34bda1575a9a1d4799ea3c2760a4)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.11.0 ([#687](https://github.com/googleapis/java-tasks/issues/687)) ([d57b320](https://github.com/googleapis/java-tasks/commit/d57b320ce4e89fa07ac00cc6ec990166cef4afc3)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 ([#689](https://github.com/googleapis/java-tasks/issues/689)) ([66ba4db](https://github.com/googleapis/java-tasks/commit/66ba4dbc0e924a864ce5b6eb34ff262a52c2fde6)) - -### [2.1.11](https://github.com/googleapis/java-tasks/compare/v2.1.10...v2.1.11) (2022-04-15) - - -### Documentation - -* **sample:** modify README instructions for Native Image sample ([#666](https://github.com/googleapis/java-tasks/issues/666)) ([1f4b309](https://github.com/googleapis/java-tasks/commit/1f4b3096a2528978a48c263e72e830e0d1af2427)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#670](https://github.com/googleapis/java-tasks/issues/670)) ([0a48657](https://github.com/googleapis/java-tasks/commit/0a486572e74cf11d98c1dcdb97f9b93ed235a9b8)) -* update dependency com.google.cloud:native-image-support to v0.13.1 ([#671](https://github.com/googleapis/java-tasks/issues/671)) ([c4e5766](https://github.com/googleapis/java-tasks/commit/c4e5766f34d52e1ee023de9ef111affc96decc3d)) - -### [2.1.10](https://github.com/googleapis/java-tasks/compare/v2.1.9...v2.1.10) (2022-03-29) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 ([#660](https://github.com/googleapis/java-tasks/issues/660)) ([7f3d52a](https://github.com/googleapis/java-tasks/commit/7f3d52a2e51add5bcbeffa4fb51c22199960eb05)) -* update dependency com.google.cloud:native-image-support to v0.12.11 ([#659](https://github.com/googleapis/java-tasks/issues/659)) ([55ef459](https://github.com/googleapis/java-tasks/commit/55ef45926c65f68c41ebfbd7b2216e8428ae31be)) - -### [2.1.9](https://github.com/googleapis/java-tasks/compare/v2.1.8...v2.1.9) (2022-03-24) - - -### Dependencies - -* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.11 ([#653](https://github.com/googleapis/java-tasks/issues/653)) ([10eae14](https://github.com/googleapis/java-tasks/commit/10eae14f22bd2c4aea147b5d94e1637b3a2a3f73)) -* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.11 ([#654](https://github.com/googleapis/java-tasks/issues/654)) ([7a5b271](https://github.com/googleapis/java-tasks/commit/7a5b271f1bc4793633fcf7c89ef844be8629e0c7)) - -### [2.1.8](https://github.com/googleapis/java-tasks/compare/v2.1.7...v2.1.8) (2022-03-14) - - -### Dependencies - -* update dependency com.google.cloud:native-image-support to v0.12.10 ([#648](https://github.com/googleapis/java-tasks/issues/648)) ([58aaab6](https://github.com/googleapis/java-tasks/commit/58aaab632b0ab3d6d64bcbe0e19ec5239916397c)) - -### [2.1.7](https://github.com/googleapis/java-tasks/compare/v2.1.6...v2.1.7) (2022-03-10) - - -### Dependencies - -* update dependency com.google.cloud:native-image-support to v0.12.8 ([#643](https://github.com/googleapis/java-tasks/issues/643)) ([a16af01](https://github.com/googleapis/java-tasks/commit/a16af01b81d1a470ec87a29e1186017a06e36e0c)) -* update dependency com.google.cloud:native-image-support to v0.12.9 ([#645](https://github.com/googleapis/java-tasks/issues/645)) ([d7d9d75](https://github.com/googleapis/java-tasks/commit/d7d9d7595f4a3d0aec7900d2ec7d3ec1bd1e3546)) - -### [2.1.6](https://github.com/googleapis/java-tasks/compare/v2.1.5...v2.1.6) (2022-03-08) - - -### Dependencies - -* update dependency com.google.cloud:native-image-support to v0.12.7 ([#637](https://github.com/googleapis/java-tasks/issues/637)) ([57b9e27](https://github.com/googleapis/java-tasks/commit/57b9e27762fb6f599ee936318f3ce3091c425bba)) - -### [2.1.5](https://github.com/googleapis/java-tasks/compare/v2.1.4...v2.1.5) (2022-03-03) - - -### Documentation - -* **sample:** add native-image sample ([#621](https://github.com/googleapis/java-tasks/issues/621)) ([ec53481](https://github.com/googleapis/java-tasks/commit/ec53481cc690561f4aa7ffd6307f66197d1239bc)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 ([#631](https://github.com/googleapis/java-tasks/issues/631)) ([fb1ef62](https://github.com/googleapis/java-tasks/commit/fb1ef621fe3c14a875de8dd25bd0ac702bb2e996)) -* update dependency com.google.cloud:native-image-support to v0.12.6 ([#628](https://github.com/googleapis/java-tasks/issues/628)) ([457b697](https://github.com/googleapis/java-tasks/commit/457b697a3d9029bd4f33b258ea98918bb38cc1b2)) -* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.10 ([#626](https://github.com/googleapis/java-tasks/issues/626)) ([808c56e](https://github.com/googleapis/java-tasks/commit/808c56ef98ecdf7a57cbf31234ef4c6b1c93c609)) -* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.10 ([#627](https://github.com/googleapis/java-tasks/issues/627)) ([1f08e4a](https://github.com/googleapis/java-tasks/commit/1f08e4a446881032d3c40ee31986fa748dbc1914)) - -### [2.1.4](https://github.com/googleapis/java-tasks/compare/v2.1.3...v2.1.4) (2022-02-28) - - -### Dependencies - -* update actions/setup-java action to v3 ([#618](https://github.com/googleapis/java-tasks/issues/618)) ([767f3c9](https://github.com/googleapis/java-tasks/commit/767f3c9671b5dcd4d1b6683f77956388937ec8ad)) - -### [2.1.3](https://github.com/googleapis/java-tasks/compare/v2.1.2...v2.1.3) (2022-02-11) - - -### Dependencies - -* update actions/github-script action to v6 ([#608](https://github.com/googleapis/java-tasks/issues/608)) ([bfd2efa](https://github.com/googleapis/java-tasks/commit/bfd2efa35b72a889555e794e967fb6cbe2d59a76)) - -### [2.1.2](https://github.com/googleapis/java-tasks/compare/v2.1.1...v2.1.2) (2022-02-03) - - -### Dependencies - -* **java:** update actions/github-script action to v5 ([#1339](https://github.com/googleapis/java-tasks/issues/1339)) ([#593](https://github.com/googleapis/java-tasks/issues/593)) ([52e8950](https://github.com/googleapis/java-tasks/commit/52e8950d1cd694b47776c7cfd3ec17aa769f0729)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 ([#595](https://github.com/googleapis/java-tasks/issues/595)) ([8f0bc35](https://github.com/googleapis/java-tasks/commit/8f0bc358362fa7f59cc429e1db4a8d8ebb960c1f)) - -### [2.1.1](https://www.github.com/googleapis/java-tasks/compare/v2.1.0...v2.1.1) (2022-01-07) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 ([#578](https://www.github.com/googleapis/java-tasks/issues/578)) ([3fb7a27](https://www.github.com/googleapis/java-tasks/commit/3fb7a279fa91958c821641c31424e3751aaad715)) - -## [2.1.0](https://www.github.com/googleapis/java-tasks/compare/v2.0.6...v2.1.0) (2021-12-03) - - -### Features - -* next release from main branch is 2.1.0 ([#553](https://www.github.com/googleapis/java-tasks/issues/553)) ([9fe2ec6](https://www.github.com/googleapis/java-tasks/commit/9fe2ec66bd2c65650de39d7b8cb9134999267613)) - - -### Bug Fixes - -* **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-tasks/issues/1266)) ([#550](https://www.github.com/googleapis/java-tasks/issues/550)) ([85ed3f4](https://www.github.com/googleapis/java-tasks/commit/85ed3f40ad4a883aab1df4b25e15ffa8e42f19d6)) - - -### Documentation - -* fix docstring formatting ([#566](https://www.github.com/googleapis/java-tasks/issues/566)) ([22496d5](https://www.github.com/googleapis/java-tasks/commit/22496d59c0d8460ae83dc996d009c5b9154a9eed)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#564](https://www.github.com/googleapis/java-tasks/issues/564)) ([6c6c9c1](https://www.github.com/googleapis/java-tasks/commit/6c6c9c10cc73f487f8704b2f1f2e310b3602c65a)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#571](https://www.github.com/googleapis/java-tasks/issues/571)) ([ea06790](https://www.github.com/googleapis/java-tasks/commit/ea06790596e0d2e379ee77d7816a7e02282072e7)) - -### [2.0.6](https://www.github.com/googleapis/java-tasks/compare/v2.0.5...v2.0.6) (2021-10-20) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 ([#545](https://www.github.com/googleapis/java-tasks/issues/545)) ([512ea1f](https://www.github.com/googleapis/java-tasks/commit/512ea1f093962ee51df8239ac5648eabfe9f46be)) - -### [2.0.5](https://www.github.com/googleapis/java-tasks/compare/v2.0.4...v2.0.5) (2021-09-22) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.3.0 ([#531](https://www.github.com/googleapis/java-tasks/issues/531)) ([5cc9ef5](https://www.github.com/googleapis/java-tasks/commit/5cc9ef5aa2277c2b3c3c5839e15d6467f1858443)) - -### [2.0.4](https://www.github.com/googleapis/java-tasks/compare/v2.0.3...v2.0.4) (2021-09-14) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.1 ([#524](https://www.github.com/googleapis/java-tasks/issues/524)) ([726e44d](https://www.github.com/googleapis/java-tasks/commit/726e44dea45842e7de25155b21555c9a029c8ab8)) - -### [2.0.3](https://www.github.com/googleapis/java-tasks/compare/v2.0.2...v2.0.3) (2021-09-01) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 ([#508](https://www.github.com/googleapis/java-tasks/issues/508)) ([71af212](https://www.github.com/googleapis/java-tasks/commit/71af21219d5db0fd500df2a167b71d4179a7068a)) - -### [2.0.2](https://www.github.com/googleapis/java-tasks/compare/v2.0.1...v2.0.2) (2021-08-23) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.1.0 ([#500](https://www.github.com/googleapis/java-tasks/issues/500)) ([0c77e5f](https://www.github.com/googleapis/java-tasks/commit/0c77e5ffe795da9057eb095167b386e88ae310b4)) - -### [2.0.1](https://www.github.com/googleapis/java-tasks/compare/v2.0.0...v2.0.1) (2021-08-12) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.0.1 ([#491](https://www.github.com/googleapis/java-tasks/issues/491)) ([ff0640b](https://www.github.com/googleapis/java-tasks/commit/ff0640b7bae7ee46ebfd6f20226413875b08362b)) - -## [2.0.0](https://www.github.com/googleapis/java-tasks/compare/v1.33.2...v2.0.0) (2021-08-06) - - -### ⚠ BREAKING CHANGES - -* release gapic-generator-java v2.0.0 (#484) - -### Features - -* release gapic-generator-java v2.0.0 ([#484](https://www.github.com/googleapis/java-tasks/issues/484)) ([c4f2381](https://www.github.com/googleapis/java-tasks/commit/c4f23810f38f24826dfc51ce0a0e4d4e20e55f07)) - - -### Bug Fixes - -* Add shopt -s nullglob to dependencies script ([#467](https://www.github.com/googleapis/java-tasks/issues/467)) ([4285ef6](https://www.github.com/googleapis/java-tasks/commit/4285ef63eab332a7582fb37892f33a766b1323b4)) -* Update dependencies.sh to not break on mac ([#458](https://www.github.com/googleapis/java-tasks/issues/458)) ([19bc4be](https://www.github.com/googleapis/java-tasks/commit/19bc4be2d0fc080132b3853126848e4e73c899fb)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2 ([#485](https://www.github.com/googleapis/java-tasks/issues/485)) ([7b44bae](https://www.github.com/googleapis/java-tasks/commit/7b44baec9f5e7b3d85a57fb2b79ac8e5089b05c4)) - -### [1.33.2](https://www.github.com/googleapis/java-tasks/compare/v1.33.1...v1.33.2) (2021-07-01) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.4.0 ([#461](https://www.github.com/googleapis/java-tasks/issues/461)) ([6640d57](https://www.github.com/googleapis/java-tasks/commit/6640d577f546217b3c58db1997034585e2243049)) - -### [1.33.1](https://www.github.com/googleapis/java-tasks/compare/v1.33.0...v1.33.1) (2021-06-07) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 ([#449](https://www.github.com/googleapis/java-tasks/issues/449)) ([1b322aa](https://www.github.com/googleapis/java-tasks/commit/1b322aa1023921e06a7c5bfb7be39e6e953028cd)) - -## [1.33.0](https://www.github.com/googleapis/java-tasks/compare/v1.32.4...v1.33.0) (2021-05-27) - - -### Features - -* add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#438](https://www.github.com/googleapis/java-tasks/issues/438)) ([2dcf421](https://www.github.com/googleapis/java-tasks/commit/2dcf421900073d42bd5c7218826bfdb1e7088ec2)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 ([#437](https://www.github.com/googleapis/java-tasks/issues/437)) ([d38ae30](https://www.github.com/googleapis/java-tasks/commit/d38ae30439cf91434c6b39ea3416e73d170c32a6)) - - -### Documentation - -* fix grammar in documentation. ([#444](https://www.github.com/googleapis/java-tasks/issues/444)) ([5f67b25](https://www.github.com/googleapis/java-tasks/commit/5f67b252adc10509a544b780840574965e3395f7)) - -### [1.32.4](https://www.github.com/googleapis/java-tasks/compare/v1.32.3...v1.32.4) (2021-05-11) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 ([#430](https://www.github.com/googleapis/java-tasks/issues/430)) ([63a2a01](https://www.github.com/googleapis/java-tasks/commit/63a2a014b0903c4dc877c0895b5bee798d3cbc90)) - -### [1.32.3](https://www.github.com/googleapis/java-tasks/compare/v1.32.2...v1.32.3) (2021-04-26) - - -### Bug Fixes - -* release scripts from issuing overlapping phases ([#410](https://www.github.com/googleapis/java-tasks/issues/410)) ([47b792a](https://www.github.com/googleapis/java-tasks/commit/47b792aa840f68e506d56aa9123464628d590bfd)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 ([#412](https://www.github.com/googleapis/java-tasks/issues/412)) ([4b4dcd7](https://www.github.com/googleapis/java-tasks/commit/4b4dcd70ee906f8ea7e0bf8dc0b51f79d8cf7711)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1 ([#421](https://www.github.com/googleapis/java-tasks/issues/421)) ([d6f6d73](https://www.github.com/googleapis/java-tasks/commit/d6f6d73658aa8d4cbb793852239ae93158220fe3)) - -### [1.32.2](https://www.github.com/googleapis/java-tasks/compare/v1.32.1...v1.32.2) (2021-04-12) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 ([#401](https://www.github.com/googleapis/java-tasks/issues/401)) ([a4d01dc](https://www.github.com/googleapis/java-tasks/commit/a4d01dc922a12862fec4084afd9d9241a01cb194)) - -### [1.32.1](https://www.github.com/googleapis/java-tasks/compare/v1.32.0...v1.32.1) (2021-03-11) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 ([#388](https://www.github.com/googleapis/java-tasks/issues/388)) ([4a67c54](https://www.github.com/googleapis/java-tasks/commit/4a67c54a75b6b87ee1dd9943508bd8d89b192645)) - -## [1.32.0](https://www.github.com/googleapis/java-tasks/compare/v1.31.1...v1.32.0) (2021-03-09) - - -### Features - -* **generator:** update protoc to v3.15.3 ([#377](https://www.github.com/googleapis/java-tasks/issues/377)) ([5c71783](https://www.github.com/googleapis/java-tasks/commit/5c71783e654d8b0a6c09182909a3113fab786b5b)) - -### [1.31.1](https://www.github.com/googleapis/java-tasks/compare/v1.31.0...v1.31.1) (2021-02-25) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.0 ([#373](https://www.github.com/googleapis/java-tasks/issues/373)) ([08ca5e1](https://www.github.com/googleapis/java-tasks/commit/08ca5e117ba7a4274ca4e6c32bc0d0700f013a8f)) - -## [1.31.0](https://www.github.com/googleapis/java-tasks/compare/v1.30.13...v1.31.0) (2021-02-24) - - -### Features - -* **v2beta2:** add QueueStats message ([13b383c](https://www.github.com/googleapis/java-tasks/commit/13b383cce54ff09a0cffcd84f88ccd6283a18b7b)) -* **v2beta2:** add tombstoning and task retention ([#365](https://www.github.com/googleapis/java-tasks/issues/365)) ([13b383c](https://www.github.com/googleapis/java-tasks/commit/13b383cce54ff09a0cffcd84f88ccd6283a18b7b)) -* **v2beta3:** add QueueStats message ([13b383c](https://www.github.com/googleapis/java-tasks/commit/13b383cce54ff09a0cffcd84f88ccd6283a18b7b)) -* **v2beta3:** add tombstoning and task retention ([13b383c](https://www.github.com/googleapis/java-tasks/commit/13b383cce54ff09a0cffcd84f88ccd6283a18b7b)) - - -### Documentation - -* updates to AppEngineHttpRequest description ([13b383c](https://www.github.com/googleapis/java-tasks/commit/13b383cce54ff09a0cffcd84f88ccd6283a18b7b)) - -### [1.30.13](https://www.github.com/googleapis/java-tasks/compare/v1.30.12...v1.30.13) (2021-02-22) - - -### Documentation - -* generate sample code in the Java microgenerator ([#351](https://www.github.com/googleapis/java-tasks/issues/351)) ([bc17256](https://www.github.com/googleapis/java-tasks/commit/bc172567b4f6443b4ba69f8718e2523757adfdd7)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 ([#361](https://www.github.com/googleapis/java-tasks/issues/361)) ([a385638](https://www.github.com/googleapis/java-tasks/commit/a3856385cfd835e6bf031bd606cf8ef9c0b84e04)) - -### [1.30.12](https://www.github.com/googleapis/java-tasks/compare/v1.30.11...v1.30.12) (2021-01-14) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.18.0 ([#339](https://www.github.com/googleapis/java-tasks/issues/339)) ([1dbb707](https://www.github.com/googleapis/java-tasks/commit/1dbb7070e64368f208bce046147809f8ad013077)) - -### [1.30.11](https://www.github.com/googleapis/java-tasks/compare/v1.30.10...v1.30.11) (2021-01-06) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.17.0 ([#326](https://www.github.com/googleapis/java-tasks/issues/326)) ([3c25ad3](https://www.github.com/googleapis/java-tasks/commit/3c25ad38f0e5388427aa8be3270cc7067dddea07)) - -### [1.30.10](https://www.github.com/googleapis/java-tasks/compare/v1.30.9...v1.30.10) (2020-12-14) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.1 ([13a93fc](https://www.github.com/googleapis/java-tasks/commit/13a93fce2a52036769e4496dc5ff3fb7ed6a9bf9)) - -### [1.30.9](https://www.github.com/googleapis/java-tasks/compare/v1.30.8...v1.30.9) (2020-12-02) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.0 ([#313](https://www.github.com/googleapis/java-tasks/issues/313)) ([fae186d](https://www.github.com/googleapis/java-tasks/commit/fae186d9d9e128b3733cab3335e9f6fb94738d5f)) - -### [1.30.8](https://www.github.com/googleapis/java-tasks/compare/v1.30.7...v1.30.8) (2020-11-11) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.15.0 ([#299](https://www.github.com/googleapis/java-tasks/issues/299)) ([ff919b4](https://www.github.com/googleapis/java-tasks/commit/ff919b4e5d60526c629cf42584a6cfa774719577)) - -### [1.30.7](https://www.github.com/googleapis/java-tasks/compare/v1.30.6...v1.30.7) (2020-10-31) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.14.1 ([#287](https://www.github.com/googleapis/java-tasks/issues/287)) ([1adb43a](https://www.github.com/googleapis/java-tasks/commit/1adb43a3a50224b176d7ecb7788ef8da6631079f)) - -### [1.30.6](https://www.github.com/googleapis/java-tasks/compare/v1.30.5...v1.30.6) (2020-10-21) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.13.0 ([#270](https://www.github.com/googleapis/java-tasks/issues/270)) ([842092b](https://www.github.com/googleapis/java-tasks/commit/842092b7e9fe46a1a1e5eaf06753f2d8b516536e)) - -### [1.30.5](https://www.github.com/googleapis/java-tasks/compare/v1.30.4...v1.30.5) (2020-10-19) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.12.1 ([#261](https://www.github.com/googleapis/java-tasks/issues/261)) ([bc5725f](https://www.github.com/googleapis/java-tasks/commit/bc5725f1e7764e1fe7eada68cd72d0f4036af143)) - -### [1.30.4](https://www.github.com/googleapis/java-tasks/compare/v1.30.3...v1.30.4) (2020-10-08) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.2 ([#246](https://www.github.com/googleapis/java-tasks/issues/246)) ([9466e66](https://www.github.com/googleapis/java-tasks/commit/9466e66de588d4649825c790e5369180e6e95986)) - -### [1.30.3](https://www.github.com/googleapis/java-tasks/compare/v1.30.2...v1.30.3) (2020-09-23) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.0 ([#232](https://www.github.com/googleapis/java-tasks/issues/232)) ([1a99c3d](https://www.github.com/googleapis/java-tasks/commit/1a99c3ddfbb948e9ebbb62b3e90e7d25ebf341e6)) - -### [1.30.2](https://www.github.com/googleapis/java-tasks/compare/v1.30.1...v1.30.2) (2020-09-21) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 ([#215](https://www.github.com/googleapis/java-tasks/issues/215)) ([b446cd7](https://www.github.com/googleapis/java-tasks/commit/b446cd7dd3e3669a17d571097fbf44da0ad0df75)) - -### [1.30.1](https://www.github.com/googleapis/java-tasks/compare/v1.30.0...v1.30.1) (2020-08-07) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.6 ([#191](https://www.github.com/googleapis/java-tasks/issues/191)) ([f46ed3d](https://www.github.com/googleapis/java-tasks/commit/f46ed3dd0f75115ffe61eb8c099d8199d3c8ec7d)) - -## [1.30.0](https://www.github.com/googleapis/java-tasks/compare/v1.29.1...v1.30.0) (2020-06-23) - - -### Features - -* **deps:** adopt flatten plugin and google-cloud-shared-dependencies ([#175](https://www.github.com/googleapis/java-tasks/issues/175)) ([1a61a5f](https://www.github.com/googleapis/java-tasks/commit/1a61a5fb740a7e2cacc791896d3fe03cf92d784f)) -* **v2beta3:** add type to Queue ([#181](https://www.github.com/googleapis/java-tasks/issues/181)) ([f76fe21](https://www.github.com/googleapis/java-tasks/commit/f76fe2112909077259cc455b15479e56f96b5369)) - - -### Bug Fixes - -* migrate retry settings to grpc_service_config ([#174](https://www.github.com/googleapis/java-tasks/issues/174)) ([661fe83](https://www.github.com/googleapis/java-tasks/commit/661fe83ff847dad61bf90732befabf9eef9f9706)) -* restore GAPIC v2 retry configs ([#144](https://www.github.com/googleapis/java-tasks/issues/144)) ([a03b61a](https://www.github.com/googleapis/java-tasks/commit/a03b61ac5313f7cd926805d0f01589b506822dc9)) - - -### Dependencies - -* update dependency com.google.api:api-common to v1.9.1 ([#150](https://www.github.com/googleapis/java-tasks/issues/150)) ([a4d0563](https://www.github.com/googleapis/java-tasks/commit/a4d056386ae70f243e87cfc1589ee8354cb7d711)) -* update dependency com.google.api:api-common to v1.9.2 ([#157](https://www.github.com/googleapis/java-tasks/issues/157)) ([8e8d3c1](https://www.github.com/googleapis/java-tasks/commit/8e8d3c10adb4582995c6078755f678eb44e26a05)) -* update dependency com.google.api.grpc:proto-google-common-protos to v1.18.0 ([#138](https://www.github.com/googleapis/java-tasks/issues/138)) ([2e83e36](https://www.github.com/googleapis/java-tasks/commit/2e83e3680d2ab008c212921d4e699890b65b87f5)) -* update dependency com.google.cloud:google-cloud-core to v1.93.5 ([#151](https://www.github.com/googleapis/java-tasks/issues/151)) ([d27a27f](https://www.github.com/googleapis/java-tasks/commit/d27a27f116df1f6fa7ca41bc0cce06ba36c65935)) -* update dependency com.google.guava:guava-bom to v29 ([#119](https://www.github.com/googleapis/java-tasks/issues/119)) ([39d1c1c](https://www.github.com/googleapis/java-tasks/commit/39d1c1c626715373e00400108c96858a56ef0406)) -* update dependency com.google.protobuf:protobuf-java to v3.12.0 ([#142](https://www.github.com/googleapis/java-tasks/issues/142)) ([4df90ac](https://www.github.com/googleapis/java-tasks/commit/4df90acf9e17654318a0f8d7439e0d867ea317e5)) -* update dependency com.google.protobuf:protobuf-java to v3.12.2 ([#148](https://www.github.com/googleapis/java-tasks/issues/148)) ([c8062c6](https://www.github.com/googleapis/java-tasks/commit/c8062c60cfa1ee810188703641c66c359c65c437)) -* update dependency io.grpc:grpc-bom to v1.29.0 ([#131](https://www.github.com/googleapis/java-tasks/issues/131)) ([ea89037](https://www.github.com/googleapis/java-tasks/commit/ea8903701b007e2ceeb525ccf26c5992c8f18f79)) -* update dependency io.grpc:grpc-bom to v1.30.0 ([#161](https://www.github.com/googleapis/java-tasks/issues/161)) ([d374bc3](https://www.github.com/googleapis/java-tasks/commit/d374bc3fa4c3a9d0085b344245ca845c9a8c2cd0)) -* update dependency org.threeten:threetenbp to v1.4.4 ([#133](https://www.github.com/googleapis/java-tasks/issues/133)) ([cc0e466](https://www.github.com/googleapis/java-tasks/commit/cc0e46693f44f2d7c6b9ce22a7ec2d0a84b6c8f7)) - -### [1.29.1](https://www.github.com/googleapis/java-tasks/compare/v1.29.0...v1.29.1) (2020-04-07) - - -### Dependencies - -* update core dependencies ([#85](https://www.github.com/googleapis/java-tasks/issues/85)) ([1e11179](https://www.github.com/googleapis/java-tasks/commit/1e1117928283eae2cea43f4c790d4746428b06a1)) -* update dependency com.google.cloud:google-cloud-core to v1.93.4 ([#112](https://www.github.com/googleapis/java-tasks/issues/112)) ([fc45f81](https://www.github.com/googleapis/java-tasks/commit/fc45f81f40df4ab5f92d2bd35804b7161becad55)) -* update dependency org.threeten:threetenbp to v1.4.3 ([#94](https://www.github.com/googleapis/java-tasks/issues/94)) ([5015798](https://www.github.com/googleapis/java-tasks/commit/5015798f9ef98aa6f698fd600ed2911a490283d3)) - -## [1.29.0](https://www.github.com/googleapis/java-tasks/compare/v1.28.2...v1.29.0) (2020-03-30) - - -### Features - -* **regen:** add StackdriverLoggingConfig to Queue ([1ffe5bc](https://www.github.com/googleapis/java-tasks/commit/1ffe5bc2086312272b79ec451feaeeb01f163626)), closes [#71](https://www.github.com/googleapis/java-tasks/issues/71) - - -### Dependencies - -* update core dependencies ([#71](https://www.github.com/googleapis/java-tasks/issues/71)) ([a578f22](https://www.github.com/googleapis/java-tasks/commit/a578f229f93560329f96aea6e2446d5278a6cd5f)) -* update core dependencies ([#84](https://www.github.com/googleapis/java-tasks/issues/84)) ([b672c21](https://www.github.com/googleapis/java-tasks/commit/b672c21a89fb69da73fc80bf41355f926061afde)) -* update dependency com.google.api:api-common to v1.9.0 ([#103](https://www.github.com/googleapis/java-tasks/issues/103)) ([f330679](https://www.github.com/googleapis/java-tasks/commit/f330679ebff1a1cf2bd0ed5dcbd91ef1efe54f2d)) -* update dependency com.google.protobuf:protobuf-java to v3.11.4 ([83c7274](https://www.github.com/googleapis/java-tasks/commit/83c7274c220a83ad1c66aa9affa42f32d62b3450)) - - -### Documentation - -* **regen:** update sample code to set total timeout, add API client header test ([#70](https://www.github.com/googleapis/java-tasks/issues/70)) ([ea4926d](https://www.github.com/googleapis/java-tasks/commit/ea4926d7c9930cc0e19d084b8645711da8987963)) - -### [1.28.2](https://www.github.com/googleapis/java-tasks/compare/v1.28.1...v1.28.2) (2020-02-06) - - -### Bug Fixes - -* getIamSettings, testIamSettings, deleteTaskSettings marked as idempotent for retries ([#66](https://www.github.com/googleapis/java-tasks/issues/66)) ([8029bdd](https://www.github.com/googleapis/java-tasks/commit/8029bdd723483c79ff72c7786ba4a7b319e9b447)) - -### [1.28.1](https://www.github.com/googleapis/java-tasks/compare/v1.28.0...v1.28.1) (2020-02-04) - - -### Bug Fixes - -* **regen:** deleteQueue marked as idempotent for retry settings ([#49](https://www.github.com/googleapis/java-tasks/issues/49)) ([58af13c](https://www.github.com/googleapis/java-tasks/commit/58af13c1c7b236127f9b6b9515eb7aa75945971b)) -* **regen:** deleteQueue marked as idempotent for retry settings ([#51](https://www.github.com/googleapis/java-tasks/issues/51)) ([2782770](https://www.github.com/googleapis/java-tasks/commit/2782770088bee28f612cbfd1dd4a3b5782af90d9)) - - -### Dependencies - -* update core dependencies ([#41](https://www.github.com/googleapis/java-tasks/issues/41)) ([f7edec5](https://www.github.com/googleapis/java-tasks/commit/f7edec5193e0f192901f7f02f0b5554150d27c7a)) -* update core dependencies ([#59](https://www.github.com/googleapis/java-tasks/issues/59)) ([23ae53f](https://www.github.com/googleapis/java-tasks/commit/23ae53fd64bee612d82a8d21abbd7fedd983b9d5)) -* update dependency com.google.guava:guava-bom to v28.2-android ([#39](https://www.github.com/googleapis/java-tasks/issues/39)) ([af017bf](https://www.github.com/googleapis/java-tasks/commit/af017bfb8aec0a21401beeab4374e77de12e88c8)) -* update dependency com.google.protobuf:protobuf-java to v3.11.3 ([#61](https://www.github.com/googleapis/java-tasks/issues/61)) ([cbb810a](https://www.github.com/googleapis/java-tasks/commit/cbb810aa4bea7ceb1ac2785704fd6809306a8157)) -* update dependency org.threeten:threetenbp to v1.4.1 ([#52](https://www.github.com/googleapis/java-tasks/issues/52)) ([18267bd](https://www.github.com/googleapis/java-tasks/commit/18267bdf980f3bb0f5dd6275540ad4f4f8e6019e)) - -## [1.28.0](https://www.github.com/googleapis/java-tasks/compare/v1.27.0...v1.28.0) (2020-01-08) - - -### Features - -* **regen:** adds ResourceName overloads for get/set/testIamPolicy methods ([#24](https://www.github.com/googleapis/java-tasks/issues/24)) ([0a8b3b5](https://www.github.com/googleapis/java-tasks/commit/0a8b3b5ef6f3a93454c59039201bfd54d27192eb)) - - -### Dependencies - -* update core dependencies ([#37](https://www.github.com/googleapis/java-tasks/issues/37)) ([57f9c1e](https://www.github.com/googleapis/java-tasks/commit/57f9c1ec08f7f83fac4205506d489c4e8cf5759c)) -* update dependency com.google.protobuf:protobuf-java to v3.11.1 ([#25](https://www.github.com/googleapis/java-tasks/issues/25)) ([0e87fb5](https://www.github.com/googleapis/java-tasks/commit/0e87fb511de2b898cbdf2a25902081790771aa9d)) -* update dependency io.grpc:grpc-bom to v1.26.0 ([#32](https://www.github.com/googleapis/java-tasks/issues/32)) ([b40f2f3](https://www.github.com/googleapis/java-tasks/commit/b40f2f3739e0cef165dec74260191ca548bf3696)) -* update gax.version to v1.51.0 ([#26](https://www.github.com/googleapis/java-tasks/issues/26)) ([cb113e5](https://www.github.com/googleapis/java-tasks/commit/cb113e520ab99ebde9b74b66b2897aeb6a590881)) - -## [1.27.0](https://www.github.com/googleapis/java-tasks/compare/v1.26.0...v1.27.0) (2019-11-11) - - -### Features - -* add HttpRequest tasks ([#14](https://www.github.com/googleapis/java-tasks/issues/14)) ([df89d67](https://www.github.com/googleapis/java-tasks/commit/df89d677e2a012ded5e41004ebd9b6a9f4b64b66)) - - -### Dependencies - -* update dependency io.grpc:grpc-bom to v1.25.0 ([#10](https://www.github.com/googleapis/java-tasks/issues/10)) ([0a65b44](https://www.github.com/googleapis/java-tasks/commit/0a65b44692ba157fdd7af53f7aa02ff8068522ba)) -* update gax.version to v1.50.1 ([#13](https://www.github.com/googleapis/java-tasks/issues/13)) ([6a80a7a](https://www.github.com/googleapis/java-tasks/commit/6a80a7a0e12c864e4dca8d2bbfa6c75c35fedecc)) - -## [1.26.0](https://www.github.com/googleapis/java-tasks/compare/v0.90.0...v1.26.0) (2019-10-25) - - -### Features - -* make repo releasable, add parent ([#1](https://www.github.com/googleapis/java-tasks/issues/1)) ([2a930d1](https://www.github.com/googleapis/java-tasks/commit/2a930d1a2692f6de97f36fdc5a8c734b76443777)) -* move google cloud tasks ([956cc05](https://www.github.com/googleapis/java-tasks/commit/956cc0526863c80bb281ebc26251914d1146547f)) - - -### Dependencies - -* update dependency io.grpc:grpc-bom to v1.24.1 ([#4](https://www.github.com/googleapis/java-tasks/issues/4)) ([4234dca](https://www.github.com/googleapis/java-tasks/commit/4234dca96f7f98bda051772b701cfb3d8e7ff89f)) -* update gax.version to v1.49.1 ([#5](https://www.github.com/googleapis/java-tasks/issues/5)) ([8dae3a9](https://www.github.com/googleapis/java-tasks/commit/8dae3a9d25f0753eca5697b6782e3d1769b688f3)) diff --git a/codecov.yaml b/codecov.yaml deleted file mode 100644 index 5724ea94..00000000 --- a/codecov.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -codecov: - ci: - - source.cloud.google.com diff --git a/google-cloud-tasks-bom/pom.xml b/google-cloud-tasks-bom/pom.xml deleted file mode 100644 index 7fedf07b..00000000 --- a/google-cloud-tasks-bom/pom.xml +++ /dev/null @@ -1,101 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-tasks-bom - 2.3.12 - pom - - com.google.cloud - google-cloud-shared-config - 1.5.3 - - - Google Cloud tasks BOM - https://github.com/googleapis/java-tasks - - BOM for Google Cloud Tasks - - - - Google LLC - - - - - chingor13 - Jeff Ching - chingor@google.com - Google LLC - - Developer - - - - - - scm:git:https://github.com/googleapis/java-tasks.git - scm:git:git@github.com:googleapis/java-tasks.git - https://github.com/googleapis/java-tasks - - - - - The Apache Software License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt - repo - - - - - - - com.google.cloud - google-cloud-tasks - 2.3.12 - - - com.google.api.grpc - grpc-google-cloud-tasks-v2beta3 - 0.93.12 - - - com.google.api.grpc - grpc-google-cloud-tasks-v2beta2 - 0.93.12 - - - com.google.api.grpc - grpc-google-cloud-tasks-v2 - 2.3.12 - - - com.google.api.grpc - proto-google-cloud-tasks-v2beta3 - 0.93.12 - - - com.google.api.grpc - proto-google-cloud-tasks-v2beta2 - 0.93.12 - - - com.google.api.grpc - proto-google-cloud-tasks-v2 - 2.3.12 - - - - - - - - org.apache.maven.plugins - maven-checkstyle-plugin - - true - - - - - diff --git a/google-cloud-tasks/pom.xml b/google-cloud-tasks/pom.xml deleted file mode 100644 index e2574409..00000000 --- a/google-cloud-tasks/pom.xml +++ /dev/null @@ -1,152 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-tasks - 2.3.12 - jar - Google Cloud Tasks - https://github.com/googleapis/java-tasks - Java idiomatic client for Google Cloud Tasks - - com.google.cloud - google-cloud-tasks-parent - 2.3.12 - - - google-cloud-tasks - - - - io.grpc - grpc-api - - - io.grpc - grpc-stub - - - io.grpc - grpc-protobuf - - - com.google.api - api-common - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-common-protos - - - - com.google.api.grpc - proto-google-cloud-tasks-v2beta3 - - - com.google.api.grpc - proto-google-cloud-tasks-v2beta2 - - - com.google.api.grpc - proto-google-cloud-tasks-v2 - - - com.google.guava - guava - - - com.google.api - gax - - - com.google.api - gax-grpc - - - com.google.api - gax-httpjson - - - org.threeten - threetenbp - - - com.google.api.grpc - proto-google-iam-v1 - - - - - junit - junit - test - - - com.google.cloud - google-cloud-core - test - - - com.google.api.grpc - grpc-google-cloud-tasks-v2beta3 - test - - - com.google.api.grpc - grpc-google-cloud-tasks-v2beta2 - test - - - com.google.api.grpc - grpc-google-cloud-tasks-v2 - test - - - - com.google.api - gax - testlib - test - - - com.google.api - gax-grpc - testlib - test - - - com.google.api - gax-httpjson - testlib - test - - - - - - java9 - - [9,) - - - - javax.annotation - javax.annotation-api - - - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java deleted file mode 100644 index 70f3fcdb..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java +++ /dev/null @@ -1,2757 +0,0 @@ -/* - * Copyright 2022 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.v2; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.tasks.v2.stub.CloudTasksStub; -import com.google.cloud.tasks.v2.stub.CloudTasksStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: Cloud Tasks allows developers to manage the execution of background work in - * their applications. - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

{@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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
- *   Queue response = cloudTasksClient.getQueue(name);
- * }
- * }
- * - *

Note: close() needs to be called on the CloudTasksClient object to clean up resources such as - * threads. In the example above, try-with-resources is used, which automatically calls close(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of CloudTasksSettings to - * create(). For example: - * - *

To customize credentials: - * - *

{@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
- * CloudTasksSettings cloudTasksSettings =
- *     CloudTasksSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@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
- * CloudTasksSettings cloudTasksSettings =
- *     CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build();
- * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
- * }
- * - *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over - * the wire: - * - *

{@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
- * CloudTasksSettings cloudTasksSettings =
- *     CloudTasksSettings.newBuilder()
- *         .setTransportChannelProvider(
- *             CloudTasksSettings.defaultHttpJsonTransportProviderBuilder().build())
- *         .build();
- * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class CloudTasksClient implements BackgroundResource { - private final CloudTasksSettings settings; - private final CloudTasksStub stub; - - /** Constructs an instance of CloudTasksClient with default settings. */ - public static final CloudTasksClient create() throws IOException { - return create(CloudTasksSettings.newBuilder().build()); - } - - /** - * Constructs an instance of CloudTasksClient, using the given settings. The channels are created - * based on the settings passed in, or defaults for any settings that are not set. - */ - public static final CloudTasksClient create(CloudTasksSettings settings) throws IOException { - return new CloudTasksClient(settings); - } - - /** - * Constructs an instance of CloudTasksClient, using the given stub for making calls. This is for - * advanced usage - prefer using create(CloudTasksSettings). - */ - public static final CloudTasksClient create(CloudTasksStub stub) { - return new CloudTasksClient(stub); - } - - /** - * Constructs an instance of CloudTasksClient, using the given settings. This is protected so that - * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. - */ - protected CloudTasksClient(CloudTasksSettings settings) throws IOException { - this.settings = settings; - this.stub = ((CloudTasksStubSettings) settings.getStubSettings()).createStub(); - } - - protected CloudTasksClient(CloudTasksStub stub) { - this.settings = null; - this.stub = stub; - } - - public final CloudTasksSettings getSettings() { - return settings; - } - - public CloudTasksStub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists queues. - * - *

Queues are returned in lexicographical order. - * - *

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()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The location name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListQueuesPagedResponse listQueues(LocationName parent) { - ListQueuesRequest request = - ListQueuesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); - return listQueues(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists queues. - * - *

Queues are returned in lexicographical order. - * - *

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 parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The location name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListQueuesPagedResponse listQueues(String parent) { - ListQueuesRequest request = ListQueuesRequest.newBuilder().setParent(parent).build(); - return listQueues(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists queues. - * - *

Queues are returned in lexicographical order. - * - *

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()) {
-   *   ListQueuesRequest request =
-   *       ListQueuesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (Queue element : cloudTasksClient.listQueues(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @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 ListQueuesPagedResponse listQueues(ListQueuesRequest request) { - return listQueuesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists queues. - * - *

Queues are returned in lexicographical order. - * - *

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()) {
-   *   ListQueuesRequest request =
-   *       ListQueuesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.listQueuesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Queue element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listQueuesPagedCallable() { - return stub.listQueuesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists queues. - * - *

Queues are returned in lexicographical order. - * - *

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()) {
-   *   ListQueuesRequest request =
-   *       ListQueuesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListQueuesResponse response = cloudTasksClient.listQueuesCallable().call(request);
-   *     for (Queue element : response.getQueuesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listQueuesCallable() { - return stub.listQueuesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a queue. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Queue response = cloudTasksClient.getQueue(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the queue. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue getQueue(QueueName name) { - GetQueueRequest request = - GetQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a queue. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Queue response = cloudTasksClient.getQueue(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the queue. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue getQueue(String name) { - GetQueueRequest request = GetQueueRequest.newBuilder().setName(name).build(); - return getQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a queue. - * - *

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()) {
-   *   GetQueueRequest request =
-   *       GetQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   Queue response = cloudTasksClient.getQueue(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 Queue getQueue(GetQueueRequest request) { - return getQueueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a queue. - * - *

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()) {
-   *   GetQueueRequest request =
-   *       GetQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.getQueueCallable().futureCall(request);
-   *   // Do something.
-   *   Queue response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getQueueCallable() { - return stub.getQueueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a queue. - * - *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task - * is 31 days old, the task will be deleted regardless of whether it was dispatched or not. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   Queue queue = Queue.newBuilder().build();
-   *   Queue response = cloudTasksClient.createQueue(parent, queue);
-   * }
-   * }
- * - * @param parent Required. The location name in which the queue will be created. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID` - *

The list of allowed locations can be obtained by calling Cloud Tasks' implementation of - * [ListLocations][google.cloud.location.Locations.ListLocations]. - * @param queue Required. The queue to create. - *

[Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing - * queue. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue createQueue(LocationName parent, Queue queue) { - CreateQueueRequest request = - CreateQueueRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setQueue(queue) - .build(); - return createQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a queue. - * - *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task - * is 31 days old, the task will be deleted regardless of whether it was dispatched or not. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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 parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   Queue queue = Queue.newBuilder().build();
-   *   Queue response = cloudTasksClient.createQueue(parent, queue);
-   * }
-   * }
- * - * @param parent Required. The location name in which the queue will be created. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID` - *

The list of allowed locations can be obtained by calling Cloud Tasks' implementation of - * [ListLocations][google.cloud.location.Locations.ListLocations]. - * @param queue Required. The queue to create. - *

[Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing - * queue. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue createQueue(String parent, Queue queue) { - CreateQueueRequest request = - CreateQueueRequest.newBuilder().setParent(parent).setQueue(queue).build(); - return createQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a queue. - * - *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task - * is 31 days old, the task will be deleted regardless of whether it was dispatched or not. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   CreateQueueRequest request =
-   *       CreateQueueRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setQueue(Queue.newBuilder().build())
-   *           .build();
-   *   Queue response = cloudTasksClient.createQueue(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 Queue createQueue(CreateQueueRequest request) { - return createQueueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a queue. - * - *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task - * is 31 days old, the task will be deleted regardless of whether it was dispatched or not. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   CreateQueueRequest request =
-   *       CreateQueueRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setQueue(Queue.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.createQueueCallable().futureCall(request);
-   *   // Do something.
-   *   Queue response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createQueueCallable() { - return stub.createQueueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a queue. - * - *

This method creates the queue if it does not exist and updates the queue if it does exist. - * - *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task - * is 31 days old, the task will be deleted regardless of whether it was dispatched or not. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   Queue queue = Queue.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Queue response = cloudTasksClient.updateQueue(queue, updateMask);
-   * }
-   * }
- * - * @param queue Required. The queue to create or update. - *

The queue's [name][google.cloud.tasks.v2.Queue.name] must be specified. - *

Output only fields cannot be modified using UpdateQueue. Any value specified for an - * output only field will be ignored. The queue's [name][google.cloud.tasks.v2.Queue.name] - * cannot be changed. - * @param updateMask A mask used to specify which fields of the queue are being updated. - *

If empty, then all fields will be updated. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue updateQueue(Queue queue, FieldMask updateMask) { - UpdateQueueRequest request = - UpdateQueueRequest.newBuilder().setQueue(queue).setUpdateMask(updateMask).build(); - return updateQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a queue. - * - *

This method creates the queue if it does not exist and updates the queue if it does exist. - * - *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task - * is 31 days old, the task will be deleted regardless of whether it was dispatched or not. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   UpdateQueueRequest request =
-   *       UpdateQueueRequest.newBuilder()
-   *           .setQueue(Queue.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Queue response = cloudTasksClient.updateQueue(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 Queue updateQueue(UpdateQueueRequest request) { - return updateQueueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a queue. - * - *

This method creates the queue if it does not exist and updates the queue if it does exist. - * - *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task - * is 31 days old, the task will be deleted regardless of whether it was dispatched or not. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   UpdateQueueRequest request =
-   *       UpdateQueueRequest.newBuilder()
-   *           .setQueue(Queue.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.updateQueueCallable().futureCall(request);
-   *   // Do something.
-   *   Queue response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateQueueCallable() { - return stub.updateQueueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a queue. - * - *

This command will delete the queue even if it has tasks in it. - * - *

Note: If you delete a queue, a queue with the same name can't be created for 7 days. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   cloudTasksClient.deleteQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteQueue(QueueName name) { - DeleteQueueRequest request = - DeleteQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a queue. - * - *

This command will delete the queue even if it has tasks in it. - * - *

Note: If you delete a queue, a queue with the same name can't be created for 7 days. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   cloudTasksClient.deleteQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteQueue(String name) { - DeleteQueueRequest request = DeleteQueueRequest.newBuilder().setName(name).build(); - deleteQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a queue. - * - *

This command will delete the queue even if it has tasks in it. - * - *

Note: If you delete a queue, a queue with the same name can't be created for 7 days. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   DeleteQueueRequest request =
-   *       DeleteQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   cloudTasksClient.deleteQueue(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 void deleteQueue(DeleteQueueRequest request) { - deleteQueueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a queue. - * - *

This command will delete the queue even if it has tasks in it. - * - *

Note: If you delete a queue, a queue with the same name can't be created for 7 days. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   DeleteQueueRequest request =
-   *       DeleteQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.deleteQueueCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteQueueCallable() { - return stub.deleteQueueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Purges a queue by deleting all of its tasks. - * - *

All tasks created before this method is called are permanently deleted. - * - *

Purge operations can take up to one minute to take effect. Tasks might be dispatched before - * the purge takes effect. A purge is irreversible. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Queue response = cloudTasksClient.purgeQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue purgeQueue(QueueName name) { - PurgeQueueRequest request = - PurgeQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return purgeQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Purges a queue by deleting all of its tasks. - * - *

All tasks created before this method is called are permanently deleted. - * - *

Purge operations can take up to one minute to take effect. Tasks might be dispatched before - * the purge takes effect. A purge is irreversible. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Queue response = cloudTasksClient.purgeQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue purgeQueue(String name) { - PurgeQueueRequest request = PurgeQueueRequest.newBuilder().setName(name).build(); - return purgeQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Purges a queue by deleting all of its tasks. - * - *

All tasks created before this method is called are permanently deleted. - * - *

Purge operations can take up to one minute to take effect. Tasks might be dispatched before - * the purge takes effect. A purge is irreversible. - * - *

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()) {
-   *   PurgeQueueRequest request =
-   *       PurgeQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   Queue response = cloudTasksClient.purgeQueue(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 Queue purgeQueue(PurgeQueueRequest request) { - return purgeQueueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Purges a queue by deleting all of its tasks. - * - *

All tasks created before this method is called are permanently deleted. - * - *

Purge operations can take up to one minute to take effect. Tasks might be dispatched before - * the purge takes effect. A purge is irreversible. - * - *

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()) {
-   *   PurgeQueueRequest request =
-   *       PurgeQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.purgeQueueCallable().futureCall(request);
-   *   // Do something.
-   *   Queue response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable purgeQueueCallable() { - return stub.purgeQueueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Pauses the queue. - * - *

If a queue is paused then the system will stop dispatching tasks until the queue is resumed - * via [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. Tasks can still be added when - * the queue is paused. A queue is paused if its [state][google.cloud.tasks.v2.Queue.state] is - * [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Queue response = cloudTasksClient.pauseQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue pauseQueue(QueueName name) { - PauseQueueRequest request = - PauseQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return pauseQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Pauses the queue. - * - *

If a queue is paused then the system will stop dispatching tasks until the queue is resumed - * via [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. Tasks can still be added when - * the queue is paused. A queue is paused if its [state][google.cloud.tasks.v2.Queue.state] is - * [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Queue response = cloudTasksClient.pauseQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue pauseQueue(String name) { - PauseQueueRequest request = PauseQueueRequest.newBuilder().setName(name).build(); - return pauseQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Pauses the queue. - * - *

If a queue is paused then the system will stop dispatching tasks until the queue is resumed - * via [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. Tasks can still be added when - * the queue is paused. A queue is paused if its [state][google.cloud.tasks.v2.Queue.state] is - * [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. - * - *

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()) {
-   *   PauseQueueRequest request =
-   *       PauseQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   Queue response = cloudTasksClient.pauseQueue(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 Queue pauseQueue(PauseQueueRequest request) { - return pauseQueueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Pauses the queue. - * - *

If a queue is paused then the system will stop dispatching tasks until the queue is resumed - * via [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. Tasks can still be added when - * the queue is paused. A queue is paused if its [state][google.cloud.tasks.v2.Queue.state] is - * [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. - * - *

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()) {
-   *   PauseQueueRequest request =
-   *       PauseQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.pauseQueueCallable().futureCall(request);
-   *   // Do something.
-   *   Queue response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable pauseQueueCallable() { - return stub.pauseQueueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resume a queue. - * - *

This method resumes a queue after it has been - * [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED] or - * [DISABLED][google.cloud.tasks.v2.Queue.State.DISABLED]. The state of a queue is stored in the - * queue's [state][google.cloud.tasks.v2.Queue.state]; after calling this method it will be set to - * [RUNNING][google.cloud.tasks.v2.Queue.State.RUNNING]. - * - *

WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If - * you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud - * Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Queue response = cloudTasksClient.resumeQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue resumeQueue(QueueName name) { - ResumeQueueRequest request = - ResumeQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return resumeQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resume a queue. - * - *

This method resumes a queue after it has been - * [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED] or - * [DISABLED][google.cloud.tasks.v2.Queue.State.DISABLED]. The state of a queue is stored in the - * queue's [state][google.cloud.tasks.v2.Queue.state]; after calling this method it will be set to - * [RUNNING][google.cloud.tasks.v2.Queue.State.RUNNING]. - * - *

WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If - * you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud - * Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Queue response = cloudTasksClient.resumeQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue resumeQueue(String name) { - ResumeQueueRequest request = ResumeQueueRequest.newBuilder().setName(name).build(); - return resumeQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resume a queue. - * - *

This method resumes a queue after it has been - * [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED] or - * [DISABLED][google.cloud.tasks.v2.Queue.State.DISABLED]. The state of a queue is stored in the - * queue's [state][google.cloud.tasks.v2.Queue.state]; after calling this method it will be set to - * [RUNNING][google.cloud.tasks.v2.Queue.State.RUNNING]. - * - *

WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If - * you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud - * Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). - * - *

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()) {
-   *   ResumeQueueRequest request =
-   *       ResumeQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   Queue response = cloudTasksClient.resumeQueue(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 Queue resumeQueue(ResumeQueueRequest request) { - return resumeQueueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resume a queue. - * - *

This method resumes a queue after it has been - * [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED] or - * [DISABLED][google.cloud.tasks.v2.Queue.State.DISABLED]. The state of a queue is stored in the - * queue's [state][google.cloud.tasks.v2.Queue.state]; after calling this method it will be set to - * [RUNNING][google.cloud.tasks.v2.Queue.State.RUNNING]. - * - *

WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If - * you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud - * Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). - * - *

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()) {
-   *   ResumeQueueRequest request =
-   *       ResumeQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.resumeQueueCallable().futureCall(request);
-   *   // Do something.
-   *   Queue response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable resumeQueueCallable() { - return stub.resumeQueueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Returns an empty - * policy if the resource exists and does not have a policy set. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.getIamPolicy` - *
- * - *

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()) {
-   *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Policy response = cloudTasksClient.getIamPolicy(resource);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy getIamPolicy(ResourceName resource) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(resource == null ? null : resource.toString()) - .build(); - return getIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Returns an empty - * policy if the resource exists and does not have a policy set. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.getIamPolicy` - *
- * - *

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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Policy response = cloudTasksClient.getIamPolicy(resource);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy getIamPolicy(String resource) { - GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); - return getIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Returns an empty - * policy if the resource exists and does not have a policy set. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.getIamPolicy` - *
- * - *

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()) {
-   *   GetIamPolicyRequest request =
-   *       GetIamPolicyRequest.newBuilder()
-   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setOptions(GetPolicyOptions.newBuilder().build())
-   *           .build();
-   *   Policy response = cloudTasksClient.getIamPolicy(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 Policy getIamPolicy(GetIamPolicyRequest request) { - return getIamPolicyCallable().call(request); - } - - public final Policy getIamPolicy(QueueName queueName) { - return getIamPolicy((ResourceName) queueName); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Returns an empty - * policy if the resource exists and does not have a policy set. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.getIamPolicy` - *
- * - *

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()) {
-   *   GetIamPolicyRequest request =
-   *       GetIamPolicyRequest.newBuilder()
-   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setOptions(GetPolicyOptions.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.getIamPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   Policy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getIamPolicyCallable() { - return stub.getIamPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Replaces any - * existing policy. - * - *

Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level - * permissions are required to use the Cloud Console. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.setIamPolicy` - *
- * - *

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()) {
-   *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Policy policy = Policy.newBuilder().build();
-   *   Policy response = cloudTasksClient.setIamPolicy(resource, policy);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the - * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud - * Platform services (such as Projects) might reject them. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(resource == null ? null : resource.toString()) - .setPolicy(policy) - .build(); - return setIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Replaces any - * existing policy. - * - *

Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level - * permissions are required to use the Cloud Console. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.setIamPolicy` - *
- * - *

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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Policy policy = Policy.newBuilder().build();
-   *   Policy response = cloudTasksClient.setIamPolicy(resource, policy);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the - * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud - * Platform services (such as Projects) might reject them. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy setIamPolicy(String resource, Policy policy) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); - return setIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Replaces any - * existing policy. - * - *

Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level - * permissions are required to use the Cloud Console. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.setIamPolicy` - *
- * - *

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()) {
-   *   SetIamPolicyRequest request =
-   *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setPolicy(Policy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Policy response = cloudTasksClient.setIamPolicy(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 Policy setIamPolicy(SetIamPolicyRequest request) { - return setIamPolicyCallable().call(request); - } - - public final Policy setIamPolicy(QueueName queue, Policy policy) { - return setIamPolicy((ResourceName) queue, policy); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Replaces any - * existing policy. - * - *

Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level - * permissions are required to use the Cloud Console. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.setIamPolicy` - *
- * - *

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()) {
-   *   SetIamPolicyRequest request =
-   *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setPolicy(Policy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.setIamPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   Policy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable setIamPolicyCallable() { - return stub.setIamPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2.Queue]. If the - * resource does not exist, this will return an empty set of permissions, not a - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. - * - *

Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without - * warning. - * - *

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()) {
-   *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   List permissions = new ArrayList<>();
-   *   TestIamPermissionsResponse response =
-   *       cloudTasksClient.testIamPermissions(resource, permissions);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See the - * operation documentation for the appropriate value for this field. - * @param permissions The set of permissions to check for the `resource`. Permissions with - * wildcards (such as '*' or 'storage.*') are not allowed. For more information see - * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(resource == null ? null : resource.toString()) - .addAllPermissions(permissions) - .build(); - return testIamPermissions(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2.Queue]. If the - * resource does not exist, this will return an empty set of permissions, not a - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. - * - *

Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without - * warning. - * - *

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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   List permissions = new ArrayList<>();
-   *   TestIamPermissionsResponse response =
-   *       cloudTasksClient.testIamPermissions(resource, permissions);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See the - * operation documentation for the appropriate value for this field. - * @param permissions The set of permissions to check for the `resource`. Permissions with - * wildcards (such as '*' or 'storage.*') are not allowed. For more information see - * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TestIamPermissionsResponse testIamPermissions( - String resource, List permissions) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(resource) - .addAllPermissions(permissions) - .build(); - return testIamPermissions(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2.Queue]. If the - * resource does not exist, this will return an empty set of permissions, not a - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. - * - *

Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without - * warning. - * - *

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()) {
-   *   TestIamPermissionsRequest request =
-   *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .addAllPermissions(new ArrayList())
-   *           .build();
-   *   TestIamPermissionsResponse response = cloudTasksClient.testIamPermissions(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 TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { - return testIamPermissionsCallable().call(request); - } - - public final TestIamPermissionsResponse testIamPermissions( - QueueName queue, List permissions) { - return testIamPermissions((ResourceName) queue, permissions); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2.Queue]. If the - * resource does not exist, this will return an empty set of permissions, not a - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. - * - *

Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without - * warning. - * - *

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()) {
-   *   TestIamPermissionsRequest request =
-   *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .addAllPermissions(new ArrayList())
-   *           .build();
-   *   ApiFuture future =
-   *       cloudTasksClient.testIamPermissionsCallable().futureCall(request);
-   *   // Do something.
-   *   TestIamPermissionsResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - testIamPermissionsCallable() { - return stub.testIamPermissionsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the tasks in a queue. - * - *

By default, only the [BASIC][google.cloud.tasks.v2.Task.View.BASIC] view is retrieved due to - * performance considerations; - * [response_view][google.cloud.tasks.v2.ListTasksRequest.response_view] controls the subset of - * information which is returned. - * - *

The tasks may be returned in any order. The ordering may change at any time. - * - *

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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The queue name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListTasksPagedResponse listTasks(QueueName parent) { - ListTasksRequest request = - ListTasksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); - return listTasks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the tasks in a queue. - * - *

By default, only the [BASIC][google.cloud.tasks.v2.Task.View.BASIC] view is retrieved due to - * performance considerations; - * [response_view][google.cloud.tasks.v2.ListTasksRequest.response_view] controls the subset of - * information which is returned. - * - *

The tasks may be returned in any order. The ordering may change at any time. - * - *

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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The queue name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListTasksPagedResponse listTasks(String parent) { - ListTasksRequest request = ListTasksRequest.newBuilder().setParent(parent).build(); - return listTasks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the tasks in a queue. - * - *

By default, only the [BASIC][google.cloud.tasks.v2.Task.View.BASIC] view is retrieved due to - * performance considerations; - * [response_view][google.cloud.tasks.v2.ListTasksRequest.response_view] controls the subset of - * information which is returned. - * - *

The tasks may be returned in any order. The ordering may change at any time. - * - *

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()) {
-   *   ListTasksRequest request =
-   *       ListTasksRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (Task element : cloudTasksClient.listTasks(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @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 ListTasksPagedResponse listTasks(ListTasksRequest request) { - return listTasksPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the tasks in a queue. - * - *

By default, only the [BASIC][google.cloud.tasks.v2.Task.View.BASIC] view is retrieved due to - * performance considerations; - * [response_view][google.cloud.tasks.v2.ListTasksRequest.response_view] controls the subset of - * information which is returned. - * - *

The tasks may be returned in any order. The ordering may change at any time. - * - *

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()) {
-   *   ListTasksRequest request =
-   *       ListTasksRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.listTasksPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Task element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listTasksPagedCallable() { - return stub.listTasksPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the tasks in a queue. - * - *

By default, only the [BASIC][google.cloud.tasks.v2.Task.View.BASIC] view is retrieved due to - * performance considerations; - * [response_view][google.cloud.tasks.v2.ListTasksRequest.response_view] controls the subset of - * information which is returned. - * - *

The tasks may be returned in any order. The ordering may change at any time. - * - *

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()) {
-   *   ListTasksRequest request =
-   *       ListTasksRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListTasksResponse response = cloudTasksClient.listTasksCallable().call(request);
-   *     for (Task element : response.getTasksList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listTasksCallable() { - return stub.listTasksCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a task. - * - *

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()) {
-   *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
-   *   Task response = cloudTasksClient.getTask(name);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task getTask(TaskName name) { - GetTaskRequest request = - GetTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a task. - * - *

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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
-   *   Task response = cloudTasksClient.getTask(name);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task getTask(String name) { - GetTaskRequest request = GetTaskRequest.newBuilder().setName(name).build(); - return getTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a task. - * - *

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()) {
-   *   GetTaskRequest request =
-   *       GetTaskRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .build();
-   *   Task response = cloudTasksClient.getTask(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 Task getTask(GetTaskRequest request) { - return getTaskCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a task. - * - *

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()) {
-   *   GetTaskRequest request =
-   *       GetTaskRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.getTaskCallable().futureCall(request);
-   *   // Do something.
-   *   Task response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getTaskCallable() { - return stub.getTaskCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a task and adds it to a queue. - * - *

Tasks cannot be updated after creation; there is no UpdateTask command. - * - *

    - *
  • The maximum task size is 100KB. - *
- * - *

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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Task task = Task.newBuilder().build();
-   *   Task response = cloudTasksClient.createTask(parent, task);
-   * }
-   * }
- * - * @param parent Required. The queue name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - *

The queue must already exist. - * @param task Required. The task to add. - *

Task names have the following format: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. The user can - * optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a name is not - * specified then the system will generate a random unique task id, which will be set in the - * task returned in the [response][google.cloud.tasks.v2.Task.name]. - *

If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the - * past then Cloud Tasks will set it to the current time. - *

Task De-duplication: - *

Explicitly specifying a task ID enables task de-duplication. If a task's ID is identical - * to that of an existing task or a task that was deleted or executed recently then the call - * will fail with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. If the task's queue was - * created using Cloud Tasks, then another task with the same name can't be created for ~1hour - * after the original task was deleted or executed. If the task's queue was created using - * queue.yaml or queue.xml, then another task with the same name can't be created for ~9days - * after the original task was deleted or executed. - *

Because there is an extra lookup cost to identify duplicate task names, these - * [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly - * increased latency. Using hashed strings for the task id or for the prefix of the task id is - * recommended. Choosing task ids that are sequential or have sequential prefixes, for example - * using a timestamp, causes an increase in latency and error rates in all task commands. The - * infrastructure relies on an approximately uniform distribution of task ids to store and - * serve tasks efficiently. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task createTask(QueueName parent, Task task) { - CreateTaskRequest request = - CreateTaskRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTask(task) - .build(); - return createTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a task and adds it to a queue. - * - *

Tasks cannot be updated after creation; there is no UpdateTask command. - * - *

    - *
  • The maximum task size is 100KB. - *
- * - *

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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Task task = Task.newBuilder().build();
-   *   Task response = cloudTasksClient.createTask(parent, task);
-   * }
-   * }
- * - * @param parent Required. The queue name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - *

The queue must already exist. - * @param task Required. The task to add. - *

Task names have the following format: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. The user can - * optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a name is not - * specified then the system will generate a random unique task id, which will be set in the - * task returned in the [response][google.cloud.tasks.v2.Task.name]. - *

If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the - * past then Cloud Tasks will set it to the current time. - *

Task De-duplication: - *

Explicitly specifying a task ID enables task de-duplication. If a task's ID is identical - * to that of an existing task or a task that was deleted or executed recently then the call - * will fail with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. If the task's queue was - * created using Cloud Tasks, then another task with the same name can't be created for ~1hour - * after the original task was deleted or executed. If the task's queue was created using - * queue.yaml or queue.xml, then another task with the same name can't be created for ~9days - * after the original task was deleted or executed. - *

Because there is an extra lookup cost to identify duplicate task names, these - * [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly - * increased latency. Using hashed strings for the task id or for the prefix of the task id is - * recommended. Choosing task ids that are sequential or have sequential prefixes, for example - * using a timestamp, causes an increase in latency and error rates in all task commands. The - * infrastructure relies on an approximately uniform distribution of task ids to store and - * serve tasks efficiently. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task createTask(String parent, Task task) { - CreateTaskRequest request = - CreateTaskRequest.newBuilder().setParent(parent).setTask(task).build(); - return createTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a task and adds it to a queue. - * - *

Tasks cannot be updated after creation; there is no UpdateTask command. - * - *

    - *
  • The maximum task size is 100KB. - *
- * - *

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()) {
-   *   CreateTaskRequest request =
-   *       CreateTaskRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setTask(Task.newBuilder().build())
-   *           .build();
-   *   Task response = cloudTasksClient.createTask(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 Task createTask(CreateTaskRequest request) { - return createTaskCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a task and adds it to a queue. - * - *

Tasks cannot be updated after creation; there is no UpdateTask command. - * - *

    - *
  • The maximum task size is 100KB. - *
- * - *

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()) {
-   *   CreateTaskRequest request =
-   *       CreateTaskRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setTask(Task.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.createTaskCallable().futureCall(request);
-   *   // Do something.
-   *   Task response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createTaskCallable() { - return stub.createTaskCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a task. - * - *

A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has - * executed successfully or permanently failed. - * - *

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()) {
-   *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
-   *   cloudTasksClient.deleteTask(name);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteTask(TaskName name) { - DeleteTaskRequest request = - DeleteTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a task. - * - *

A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has - * executed successfully or permanently failed. - * - *

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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
-   *   cloudTasksClient.deleteTask(name);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteTask(String name) { - DeleteTaskRequest request = DeleteTaskRequest.newBuilder().setName(name).build(); - deleteTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a task. - * - *

A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has - * executed successfully or permanently failed. - * - *

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()) {
-   *   DeleteTaskRequest request =
-   *       DeleteTaskRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .build();
-   *   cloudTasksClient.deleteTask(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 void deleteTask(DeleteTaskRequest request) { - deleteTaskCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a task. - * - *

A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has - * executed successfully or permanently failed. - * - *

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()) {
-   *   DeleteTaskRequest request =
-   *       DeleteTaskRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.deleteTaskCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteTaskCallable() { - return stub.deleteTaskCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Forces a task to run now. - * - *

When this method is called, Cloud Tasks will dispatch the task, even if the task is already - * running, the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits] or is - * [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. - * - *

This command is meant to be used for manual debugging. For example, - * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] can be used to retry a failed task after a - * fix has been made or to manually force a task to be dispatched now. - * - *

The dispatched task is returned. That is, the task that is returned contains the - * [status][Task.status] after the task is dispatched but before the task is received by its - * target. - * - *

If Cloud Tasks receives a successful response from the task's target, then the task will be - * deleted; otherwise the task's [schedule_time][google.cloud.tasks.v2.Task.schedule_time] will be - * reset to the time that [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] was called plus the - * retry delay specified in the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig]. - * - *

[RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] returns - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a task that has already succeeded - * or permanently failed. - * - *

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()) {
-   *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
-   *   Task response = cloudTasksClient.runTask(name);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task runTask(TaskName name) { - RunTaskRequest request = - RunTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return runTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Forces a task to run now. - * - *

When this method is called, Cloud Tasks will dispatch the task, even if the task is already - * running, the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits] or is - * [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. - * - *

This command is meant to be used for manual debugging. For example, - * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] can be used to retry a failed task after a - * fix has been made or to manually force a task to be dispatched now. - * - *

The dispatched task is returned. That is, the task that is returned contains the - * [status][Task.status] after the task is dispatched but before the task is received by its - * target. - * - *

If Cloud Tasks receives a successful response from the task's target, then the task will be - * deleted; otherwise the task's [schedule_time][google.cloud.tasks.v2.Task.schedule_time] will be - * reset to the time that [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] was called plus the - * retry delay specified in the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig]. - * - *

[RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] returns - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a task that has already succeeded - * or permanently failed. - * - *

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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
-   *   Task response = cloudTasksClient.runTask(name);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task runTask(String name) { - RunTaskRequest request = RunTaskRequest.newBuilder().setName(name).build(); - return runTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Forces a task to run now. - * - *

When this method is called, Cloud Tasks will dispatch the task, even if the task is already - * running, the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits] or is - * [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. - * - *

This command is meant to be used for manual debugging. For example, - * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] can be used to retry a failed task after a - * fix has been made or to manually force a task to be dispatched now. - * - *

The dispatched task is returned. That is, the task that is returned contains the - * [status][Task.status] after the task is dispatched but before the task is received by its - * target. - * - *

If Cloud Tasks receives a successful response from the task's target, then the task will be - * deleted; otherwise the task's [schedule_time][google.cloud.tasks.v2.Task.schedule_time] will be - * reset to the time that [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] was called plus the - * retry delay specified in the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig]. - * - *

[RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] returns - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a task that has already succeeded - * or permanently failed. - * - *

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()) {
-   *   RunTaskRequest request =
-   *       RunTaskRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .build();
-   *   Task response = cloudTasksClient.runTask(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 Task runTask(RunTaskRequest request) { - return runTaskCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Forces a task to run now. - * - *

When this method is called, Cloud Tasks will dispatch the task, even if the task is already - * running, the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits] or is - * [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. - * - *

This command is meant to be used for manual debugging. For example, - * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] can be used to retry a failed task after a - * fix has been made or to manually force a task to be dispatched now. - * - *

The dispatched task is returned. That is, the task that is returned contains the - * [status][Task.status] after the task is dispatched but before the task is received by its - * target. - * - *

If Cloud Tasks receives a successful response from the task's target, then the task will be - * deleted; otherwise the task's [schedule_time][google.cloud.tasks.v2.Task.schedule_time] will be - * reset to the time that [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] was called plus the - * retry delay specified in the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig]. - * - *

[RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] returns - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a task that has already succeeded - * or permanently failed. - * - *

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()) {
-   *   RunTaskRequest request =
-   *       RunTaskRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.runTaskCallable().futureCall(request);
-   *   // Do something.
-   *   Task response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable runTaskCallable() { - return stub.runTaskCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListQueuesPagedResponse - extends AbstractPagedListResponse< - ListQueuesRequest, - ListQueuesResponse, - Queue, - ListQueuesPage, - ListQueuesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListQueuesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListQueuesPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListQueuesPagedResponse(ListQueuesPage page) { - super(page, ListQueuesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListQueuesPage - extends AbstractPage { - - private ListQueuesPage( - PageContext context, - ListQueuesResponse response) { - super(context, response); - } - - private static ListQueuesPage createEmptyPage() { - return new ListQueuesPage(null, null); - } - - @Override - protected ListQueuesPage createPage( - PageContext context, - ListQueuesResponse response) { - return new ListQueuesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListQueuesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListQueuesRequest, - ListQueuesResponse, - Queue, - ListQueuesPage, - ListQueuesFixedSizeCollection> { - - private ListQueuesFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListQueuesFixedSizeCollection createEmptyCollection() { - return new ListQueuesFixedSizeCollection(null, 0); - } - - @Override - protected ListQueuesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListQueuesFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListTasksPagedResponse - extends AbstractPagedListResponse< - ListTasksRequest, ListTasksResponse, Task, ListTasksPage, ListTasksFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListTasksPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListTasksPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListTasksPagedResponse(ListTasksPage page) { - super(page, ListTasksFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListTasksPage - extends AbstractPage { - - private ListTasksPage( - PageContext context, - ListTasksResponse response) { - super(context, response); - } - - private static ListTasksPage createEmptyPage() { - return new ListTasksPage(null, null); - } - - @Override - protected ListTasksPage createPage( - PageContext context, - ListTasksResponse response) { - return new ListTasksPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListTasksFixedSizeCollection - extends AbstractFixedSizeCollection< - ListTasksRequest, ListTasksResponse, Task, ListTasksPage, ListTasksFixedSizeCollection> { - - private ListTasksFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListTasksFixedSizeCollection createEmptyCollection() { - return new ListTasksFixedSizeCollection(null, 0); - } - - @Override - protected ListTasksFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListTasksFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java deleted file mode 100644 index e0f88bea..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java +++ /dev/null @@ -1,366 +0,0 @@ -/* - * Copyright 2022 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.v2; - -import static com.google.cloud.tasks.v2.CloudTasksClient.ListQueuesPagedResponse; -import static com.google.cloud.tasks.v2.CloudTasksClient.ListTasksPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.tasks.v2.stub.CloudTasksStubSettings; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link CloudTasksClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (cloudtasks.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getQueue to 30 seconds: - * - *

{@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
- * CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder();
- * cloudTasksSettingsBuilder
- *     .getQueueSettings()
- *     .setRetrySettings(
- *         cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class CloudTasksSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to listQueues. */ - public PagedCallSettings - listQueuesSettings() { - return ((CloudTasksStubSettings) getStubSettings()).listQueuesSettings(); - } - - /** Returns the object with the settings used for calls to getQueue. */ - public UnaryCallSettings getQueueSettings() { - return ((CloudTasksStubSettings) getStubSettings()).getQueueSettings(); - } - - /** Returns the object with the settings used for calls to createQueue. */ - public UnaryCallSettings createQueueSettings() { - return ((CloudTasksStubSettings) getStubSettings()).createQueueSettings(); - } - - /** Returns the object with the settings used for calls to updateQueue. */ - public UnaryCallSettings updateQueueSettings() { - return ((CloudTasksStubSettings) getStubSettings()).updateQueueSettings(); - } - - /** Returns the object with the settings used for calls to deleteQueue. */ - public UnaryCallSettings deleteQueueSettings() { - return ((CloudTasksStubSettings) getStubSettings()).deleteQueueSettings(); - } - - /** Returns the object with the settings used for calls to purgeQueue. */ - public UnaryCallSettings purgeQueueSettings() { - return ((CloudTasksStubSettings) getStubSettings()).purgeQueueSettings(); - } - - /** Returns the object with the settings used for calls to pauseQueue. */ - public UnaryCallSettings pauseQueueSettings() { - return ((CloudTasksStubSettings) getStubSettings()).pauseQueueSettings(); - } - - /** Returns the object with the settings used for calls to resumeQueue. */ - public UnaryCallSettings resumeQueueSettings() { - return ((CloudTasksStubSettings) getStubSettings()).resumeQueueSettings(); - } - - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return ((CloudTasksStubSettings) getStubSettings()).getIamPolicySettings(); - } - - /** Returns the object with the settings used for calls to setIamPolicy. */ - public UnaryCallSettings setIamPolicySettings() { - return ((CloudTasksStubSettings) getStubSettings()).setIamPolicySettings(); - } - - /** Returns the object with the settings used for calls to testIamPermissions. */ - public UnaryCallSettings - testIamPermissionsSettings() { - return ((CloudTasksStubSettings) getStubSettings()).testIamPermissionsSettings(); - } - - /** Returns the object with the settings used for calls to listTasks. */ - public PagedCallSettings - listTasksSettings() { - return ((CloudTasksStubSettings) getStubSettings()).listTasksSettings(); - } - - /** Returns the object with the settings used for calls to getTask. */ - public UnaryCallSettings getTaskSettings() { - return ((CloudTasksStubSettings) getStubSettings()).getTaskSettings(); - } - - /** Returns the object with the settings used for calls to createTask. */ - public UnaryCallSettings createTaskSettings() { - return ((CloudTasksStubSettings) getStubSettings()).createTaskSettings(); - } - - /** Returns the object with the settings used for calls to deleteTask. */ - public UnaryCallSettings deleteTaskSettings() { - return ((CloudTasksStubSettings) getStubSettings()).deleteTaskSettings(); - } - - /** Returns the object with the settings used for calls to runTask. */ - public UnaryCallSettings runTaskSettings() { - return ((CloudTasksStubSettings) getStubSettings()).runTaskSettings(); - } - - public static final CloudTasksSettings create(CloudTasksStubSettings stub) throws IOException { - return new CloudTasksSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return CloudTasksStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return CloudTasksStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return CloudTasksStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return CloudTasksStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return CloudTasksStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return CloudTasksStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return CloudTasksStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return CloudTasksStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected CloudTasksSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for CloudTasksSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(CloudTasksStubSettings.newBuilder(clientContext)); - } - - protected Builder(CloudTasksSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(CloudTasksStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(CloudTasksStubSettings.newBuilder()); - } - - @BetaApi - private static Builder createHttpJsonDefault() { - return new Builder(CloudTasksStubSettings.newHttpJsonBuilder()); - } - - public CloudTasksStubSettings.Builder getStubSettingsBuilder() { - return ((CloudTasksStubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to listQueues. */ - public PagedCallSettings.Builder - listQueuesSettings() { - return getStubSettingsBuilder().listQueuesSettings(); - } - - /** Returns the builder for the settings used for calls to getQueue. */ - public UnaryCallSettings.Builder getQueueSettings() { - return getStubSettingsBuilder().getQueueSettings(); - } - - /** Returns the builder for the settings used for calls to createQueue. */ - public UnaryCallSettings.Builder createQueueSettings() { - return getStubSettingsBuilder().createQueueSettings(); - } - - /** Returns the builder for the settings used for calls to updateQueue. */ - public UnaryCallSettings.Builder updateQueueSettings() { - return getStubSettingsBuilder().updateQueueSettings(); - } - - /** Returns the builder for the settings used for calls to deleteQueue. */ - public UnaryCallSettings.Builder deleteQueueSettings() { - return getStubSettingsBuilder().deleteQueueSettings(); - } - - /** Returns the builder for the settings used for calls to purgeQueue. */ - public UnaryCallSettings.Builder purgeQueueSettings() { - return getStubSettingsBuilder().purgeQueueSettings(); - } - - /** Returns the builder for the settings used for calls to pauseQueue. */ - public UnaryCallSettings.Builder pauseQueueSettings() { - return getStubSettingsBuilder().pauseQueueSettings(); - } - - /** Returns the builder for the settings used for calls to resumeQueue. */ - public UnaryCallSettings.Builder resumeQueueSettings() { - return getStubSettingsBuilder().resumeQueueSettings(); - } - - /** Returns the builder for the settings used for calls to getIamPolicy. */ - public UnaryCallSettings.Builder getIamPolicySettings() { - return getStubSettingsBuilder().getIamPolicySettings(); - } - - /** Returns the builder for the settings used for calls to setIamPolicy. */ - public UnaryCallSettings.Builder setIamPolicySettings() { - return getStubSettingsBuilder().setIamPolicySettings(); - } - - /** Returns the builder for the settings used for calls to testIamPermissions. */ - public UnaryCallSettings.Builder - testIamPermissionsSettings() { - return getStubSettingsBuilder().testIamPermissionsSettings(); - } - - /** Returns the builder for the settings used for calls to listTasks. */ - public PagedCallSettings.Builder - listTasksSettings() { - return getStubSettingsBuilder().listTasksSettings(); - } - - /** Returns the builder for the settings used for calls to getTask. */ - public UnaryCallSettings.Builder getTaskSettings() { - return getStubSettingsBuilder().getTaskSettings(); - } - - /** Returns the builder for the settings used for calls to createTask. */ - public UnaryCallSettings.Builder createTaskSettings() { - return getStubSettingsBuilder().createTaskSettings(); - } - - /** Returns the builder for the settings used for calls to deleteTask. */ - public UnaryCallSettings.Builder deleteTaskSettings() { - return getStubSettingsBuilder().deleteTaskSettings(); - } - - /** Returns the builder for the settings used for calls to runTask. */ - public UnaryCallSettings.Builder runTaskSettings() { - return getStubSettingsBuilder().runTaskSettings(); - } - - @Override - public CloudTasksSettings build() throws IOException { - return new CloudTasksSettings(this); - } - } -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/gapic_metadata.json b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/gapic_metadata.json deleted file mode 100644 index ed965741..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/gapic_metadata.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.cloud.tasks.v2", - "libraryPackage": "com.google.cloud.tasks.v2", - "services": { - "CloudTasks": { - "clients": { - "grpc": { - "libraryClient": "CloudTasksClient", - "rpcs": { - "CreateQueue": { - "methods": ["createQueue", "createQueue", "createQueue", "createQueueCallable"] - }, - "CreateTask": { - "methods": ["createTask", "createTask", "createTask", "createTaskCallable"] - }, - "DeleteQueue": { - "methods": ["deleteQueue", "deleteQueue", "deleteQueue", "deleteQueueCallable"] - }, - "DeleteTask": { - "methods": ["deleteTask", "deleteTask", "deleteTask", "deleteTaskCallable"] - }, - "GetIamPolicy": { - "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] - }, - "GetQueue": { - "methods": ["getQueue", "getQueue", "getQueue", "getQueueCallable"] - }, - "GetTask": { - "methods": ["getTask", "getTask", "getTask", "getTaskCallable"] - }, - "ListQueues": { - "methods": ["listQueues", "listQueues", "listQueues", "listQueuesPagedCallable", "listQueuesCallable"] - }, - "ListTasks": { - "methods": ["listTasks", "listTasks", "listTasks", "listTasksPagedCallable", "listTasksCallable"] - }, - "PauseQueue": { - "methods": ["pauseQueue", "pauseQueue", "pauseQueue", "pauseQueueCallable"] - }, - "PurgeQueue": { - "methods": ["purgeQueue", "purgeQueue", "purgeQueue", "purgeQueueCallable"] - }, - "ResumeQueue": { - "methods": ["resumeQueue", "resumeQueue", "resumeQueue", "resumeQueueCallable"] - }, - "RunTask": { - "methods": ["runTask", "runTask", "runTask", "runTaskCallable"] - }, - "SetIamPolicy": { - "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] - }, - "TestIamPermissions": { - "methods": ["testIamPermissions", "testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"] - }, - "UpdateQueue": { - "methods": ["updateQueue", "updateQueue", "updateQueueCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java deleted file mode 100644 index bea6f19b..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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. - */ - -/** - * The interfaces provided are listed below, along with usage samples. - * - *

======================= CloudTasksClient ======================= - * - *

Service Description: Cloud Tasks allows developers to manage the execution of background work - * in their applications. - * - *

Sample for CloudTasksClient: - * - *

{@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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
- *   Queue response = cloudTasksClient.getQueue(name);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.cloud.tasks.v2; - -import javax.annotation.Generated; diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStub.java deleted file mode 100644 index f8739059..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStub.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright 2022 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.v2.stub; - -import static com.google.cloud.tasks.v2.CloudTasksClient.ListQueuesPagedResponse; -import static com.google.cloud.tasks.v2.CloudTasksClient.ListTasksPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.tasks.v2.CreateQueueRequest; -import com.google.cloud.tasks.v2.CreateTaskRequest; -import com.google.cloud.tasks.v2.DeleteQueueRequest; -import com.google.cloud.tasks.v2.DeleteTaskRequest; -import com.google.cloud.tasks.v2.GetQueueRequest; -import com.google.cloud.tasks.v2.GetTaskRequest; -import com.google.cloud.tasks.v2.ListQueuesRequest; -import com.google.cloud.tasks.v2.ListQueuesResponse; -import com.google.cloud.tasks.v2.ListTasksRequest; -import com.google.cloud.tasks.v2.ListTasksResponse; -import com.google.cloud.tasks.v2.PauseQueueRequest; -import com.google.cloud.tasks.v2.PurgeQueueRequest; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.ResumeQueueRequest; -import com.google.cloud.tasks.v2.RunTaskRequest; -import com.google.cloud.tasks.v2.Task; -import com.google.cloud.tasks.v2.UpdateQueueRequest; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the CloudTasks service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public abstract class CloudTasksStub implements BackgroundResource { - - public UnaryCallable listQueuesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listQueuesPagedCallable()"); - } - - public UnaryCallable listQueuesCallable() { - throw new UnsupportedOperationException("Not implemented: listQueuesCallable()"); - } - - public UnaryCallable getQueueCallable() { - throw new UnsupportedOperationException("Not implemented: getQueueCallable()"); - } - - public UnaryCallable createQueueCallable() { - throw new UnsupportedOperationException("Not implemented: createQueueCallable()"); - } - - public UnaryCallable updateQueueCallable() { - throw new UnsupportedOperationException("Not implemented: updateQueueCallable()"); - } - - public UnaryCallable deleteQueueCallable() { - throw new UnsupportedOperationException("Not implemented: deleteQueueCallable()"); - } - - public UnaryCallable purgeQueueCallable() { - throw new UnsupportedOperationException("Not implemented: purgeQueueCallable()"); - } - - public UnaryCallable pauseQueueCallable() { - throw new UnsupportedOperationException("Not implemented: pauseQueueCallable()"); - } - - public UnaryCallable resumeQueueCallable() { - throw new UnsupportedOperationException("Not implemented: resumeQueueCallable()"); - } - - public UnaryCallable getIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); - } - - public UnaryCallable setIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); - } - - public UnaryCallable - testIamPermissionsCallable() { - throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); - } - - public UnaryCallable listTasksPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listTasksPagedCallable()"); - } - - public UnaryCallable listTasksCallable() { - throw new UnsupportedOperationException("Not implemented: listTasksCallable()"); - } - - public UnaryCallable getTaskCallable() { - throw new UnsupportedOperationException("Not implemented: getTaskCallable()"); - } - - public UnaryCallable createTaskCallable() { - throw new UnsupportedOperationException("Not implemented: createTaskCallable()"); - } - - public UnaryCallable deleteTaskCallable() { - throw new UnsupportedOperationException("Not implemented: deleteTaskCallable()"); - } - - public UnaryCallable runTaskCallable() { - throw new UnsupportedOperationException("Not implemented: runTaskCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java deleted file mode 100644 index e10e0178..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java +++ /dev/null @@ -1,816 +0,0 @@ -/* - * Copyright 2022 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.v2.stub; - -import static com.google.cloud.tasks.v2.CloudTasksClient.ListQueuesPagedResponse; -import static com.google.cloud.tasks.v2.CloudTasksClient.ListTasksPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.tasks.v2.CreateQueueRequest; -import com.google.cloud.tasks.v2.CreateTaskRequest; -import com.google.cloud.tasks.v2.DeleteQueueRequest; -import com.google.cloud.tasks.v2.DeleteTaskRequest; -import com.google.cloud.tasks.v2.GetQueueRequest; -import com.google.cloud.tasks.v2.GetTaskRequest; -import com.google.cloud.tasks.v2.ListQueuesRequest; -import com.google.cloud.tasks.v2.ListQueuesResponse; -import com.google.cloud.tasks.v2.ListTasksRequest; -import com.google.cloud.tasks.v2.ListTasksResponse; -import com.google.cloud.tasks.v2.PauseQueueRequest; -import com.google.cloud.tasks.v2.PurgeQueueRequest; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.ResumeQueueRequest; -import com.google.cloud.tasks.v2.RunTaskRequest; -import com.google.cloud.tasks.v2.Task; -import com.google.cloud.tasks.v2.UpdateQueueRequest; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link CloudTasksStub}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (cloudtasks.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getQueue to 30 seconds: - * - *

{@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
- * CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder();
- * cloudTasksSettingsBuilder
- *     .getQueueSettings()
- *     .setRetrySettings(
- *         cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class CloudTasksStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final PagedCallSettings - listQueuesSettings; - private final UnaryCallSettings getQueueSettings; - private final UnaryCallSettings createQueueSettings; - private final UnaryCallSettings updateQueueSettings; - private final UnaryCallSettings deleteQueueSettings; - private final UnaryCallSettings purgeQueueSettings; - private final UnaryCallSettings pauseQueueSettings; - private final UnaryCallSettings resumeQueueSettings; - private final UnaryCallSettings getIamPolicySettings; - private final UnaryCallSettings setIamPolicySettings; - private final UnaryCallSettings - testIamPermissionsSettings; - private final PagedCallSettings - listTasksSettings; - private final UnaryCallSettings getTaskSettings; - private final UnaryCallSettings createTaskSettings; - private final UnaryCallSettings deleteTaskSettings; - private final UnaryCallSettings runTaskSettings; - - private static final PagedListDescriptor - LIST_QUEUES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListQueuesRequest injectToken(ListQueuesRequest payload, String token) { - return ListQueuesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListQueuesRequest injectPageSize(ListQueuesRequest payload, int pageSize) { - return ListQueuesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListQueuesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListQueuesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListQueuesResponse payload) { - return payload.getQueuesList() == null - ? ImmutableList.of() - : payload.getQueuesList(); - } - }; - - private static final PagedListDescriptor - LIST_TASKS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListTasksRequest injectToken(ListTasksRequest payload, String token) { - return ListTasksRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListTasksRequest injectPageSize(ListTasksRequest payload, int pageSize) { - return ListTasksRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListTasksRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListTasksResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListTasksResponse payload) { - return payload.getTasksList() == null - ? ImmutableList.of() - : payload.getTasksList(); - } - }; - - private static final PagedListResponseFactory< - ListQueuesRequest, ListQueuesResponse, ListQueuesPagedResponse> - LIST_QUEUES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListQueuesRequest, ListQueuesResponse, ListQueuesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListQueuesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_QUEUES_PAGE_STR_DESC, request, context); - return ListQueuesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListTasksRequest, ListTasksResponse, ListTasksPagedResponse> - LIST_TASKS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListTasksRequest, ListTasksResponse, ListTasksPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListTasksRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_TASKS_PAGE_STR_DESC, request, context); - return ListTasksPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to listQueues. */ - public PagedCallSettings - listQueuesSettings() { - return listQueuesSettings; - } - - /** Returns the object with the settings used for calls to getQueue. */ - public UnaryCallSettings getQueueSettings() { - return getQueueSettings; - } - - /** Returns the object with the settings used for calls to createQueue. */ - public UnaryCallSettings createQueueSettings() { - return createQueueSettings; - } - - /** Returns the object with the settings used for calls to updateQueue. */ - public UnaryCallSettings updateQueueSettings() { - return updateQueueSettings; - } - - /** Returns the object with the settings used for calls to deleteQueue. */ - public UnaryCallSettings deleteQueueSettings() { - return deleteQueueSettings; - } - - /** Returns the object with the settings used for calls to purgeQueue. */ - public UnaryCallSettings purgeQueueSettings() { - return purgeQueueSettings; - } - - /** Returns the object with the settings used for calls to pauseQueue. */ - public UnaryCallSettings pauseQueueSettings() { - return pauseQueueSettings; - } - - /** Returns the object with the settings used for calls to resumeQueue. */ - public UnaryCallSettings resumeQueueSettings() { - return resumeQueueSettings; - } - - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return getIamPolicySettings; - } - - /** Returns the object with the settings used for calls to setIamPolicy. */ - public UnaryCallSettings setIamPolicySettings() { - return setIamPolicySettings; - } - - /** Returns the object with the settings used for calls to testIamPermissions. */ - public UnaryCallSettings - testIamPermissionsSettings() { - return testIamPermissionsSettings; - } - - /** Returns the object with the settings used for calls to listTasks. */ - public PagedCallSettings - listTasksSettings() { - return listTasksSettings; - } - - /** Returns the object with the settings used for calls to getTask. */ - public UnaryCallSettings getTaskSettings() { - return getTaskSettings; - } - - /** Returns the object with the settings used for calls to createTask. */ - public UnaryCallSettings createTaskSettings() { - return createTaskSettings; - } - - /** Returns the object with the settings used for calls to deleteTask. */ - public UnaryCallSettings deleteTaskSettings() { - return deleteTaskSettings; - } - - /** Returns the object with the settings used for calls to runTask. */ - public UnaryCallSettings runTaskSettings() { - return runTaskSettings; - } - - public CloudTasksStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcCloudTasksStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonCloudTasksStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "cloudtasks.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "cloudtasks.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(CloudTasksStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(CloudTasksStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return CloudTasksStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected CloudTasksStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - listQueuesSettings = settingsBuilder.listQueuesSettings().build(); - getQueueSettings = settingsBuilder.getQueueSettings().build(); - createQueueSettings = settingsBuilder.createQueueSettings().build(); - updateQueueSettings = settingsBuilder.updateQueueSettings().build(); - deleteQueueSettings = settingsBuilder.deleteQueueSettings().build(); - purgeQueueSettings = settingsBuilder.purgeQueueSettings().build(); - pauseQueueSettings = settingsBuilder.pauseQueueSettings().build(); - resumeQueueSettings = settingsBuilder.resumeQueueSettings().build(); - getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); - setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); - testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); - listTasksSettings = settingsBuilder.listTasksSettings().build(); - getTaskSettings = settingsBuilder.getTaskSettings().build(); - createTaskSettings = settingsBuilder.createTaskSettings().build(); - deleteTaskSettings = settingsBuilder.deleteTaskSettings().build(); - runTaskSettings = settingsBuilder.runTaskSettings().build(); - } - - /** Builder for CloudTasksStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final PagedCallSettings.Builder< - ListQueuesRequest, ListQueuesResponse, ListQueuesPagedResponse> - listQueuesSettings; - private final UnaryCallSettings.Builder getQueueSettings; - private final UnaryCallSettings.Builder createQueueSettings; - private final UnaryCallSettings.Builder updateQueueSettings; - private final UnaryCallSettings.Builder deleteQueueSettings; - private final UnaryCallSettings.Builder purgeQueueSettings; - private final UnaryCallSettings.Builder pauseQueueSettings; - private final UnaryCallSettings.Builder resumeQueueSettings; - private final UnaryCallSettings.Builder getIamPolicySettings; - private final UnaryCallSettings.Builder setIamPolicySettings; - private final UnaryCallSettings.Builder - testIamPermissionsSettings; - private final PagedCallSettings.Builder< - ListTasksRequest, ListTasksResponse, ListTasksPagedResponse> - listTasksSettings; - private final UnaryCallSettings.Builder getTaskSettings; - private final UnaryCallSettings.Builder createTaskSettings; - private final UnaryCallSettings.Builder deleteTaskSettings; - private final UnaryCallSettings.Builder runTaskSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "retry_policy_0_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - definitions.put( - "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ofMillis(10000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(10000L)) - .setTotalTimeout(Duration.ofMillis(10000L)) - .build(); - definitions.put("retry_policy_0_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(10000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(10000L)) - .setTotalTimeout(Duration.ofMillis(10000L)) - .build(); - definitions.put("no_retry_1_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - listQueuesSettings = PagedCallSettings.newBuilder(LIST_QUEUES_PAGE_STR_FACT); - getQueueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createQueueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateQueueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteQueueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - purgeQueueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - pauseQueueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - resumeQueueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listTasksSettings = PagedCallSettings.newBuilder(LIST_TASKS_PAGE_STR_FACT); - getTaskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createTaskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteTaskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - runTaskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listQueuesSettings, - getQueueSettings, - createQueueSettings, - updateQueueSettings, - deleteQueueSettings, - purgeQueueSettings, - pauseQueueSettings, - resumeQueueSettings, - getIamPolicySettings, - setIamPolicySettings, - testIamPermissionsSettings, - listTasksSettings, - getTaskSettings, - createTaskSettings, - deleteTaskSettings, - runTaskSettings); - initDefaults(this); - } - - protected Builder(CloudTasksStubSettings settings) { - super(settings); - - listQueuesSettings = settings.listQueuesSettings.toBuilder(); - getQueueSettings = settings.getQueueSettings.toBuilder(); - createQueueSettings = settings.createQueueSettings.toBuilder(); - updateQueueSettings = settings.updateQueueSettings.toBuilder(); - deleteQueueSettings = settings.deleteQueueSettings.toBuilder(); - purgeQueueSettings = settings.purgeQueueSettings.toBuilder(); - pauseQueueSettings = settings.pauseQueueSettings.toBuilder(); - resumeQueueSettings = settings.resumeQueueSettings.toBuilder(); - getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); - setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); - testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); - listTasksSettings = settings.listTasksSettings.toBuilder(); - getTaskSettings = settings.getTaskSettings.toBuilder(); - createTaskSettings = settings.createTaskSettings.toBuilder(); - deleteTaskSettings = settings.deleteTaskSettings.toBuilder(); - runTaskSettings = settings.runTaskSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listQueuesSettings, - getQueueSettings, - createQueueSettings, - updateQueueSettings, - deleteQueueSettings, - purgeQueueSettings, - pauseQueueSettings, - resumeQueueSettings, - getIamPolicySettings, - setIamPolicySettings, - testIamPermissionsSettings, - listTasksSettings, - getTaskSettings, - createTaskSettings, - deleteTaskSettings, - runTaskSettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .listQueuesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getQueueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createQueueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .updateQueueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deleteQueueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .purgeQueueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .pauseQueueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .resumeQueueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .getIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .setIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .testIamPermissionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listTasksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getTaskSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createTaskSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deleteTaskSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .runTaskSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to listQueues. */ - public PagedCallSettings.Builder - listQueuesSettings() { - return listQueuesSettings; - } - - /** Returns the builder for the settings used for calls to getQueue. */ - public UnaryCallSettings.Builder getQueueSettings() { - return getQueueSettings; - } - - /** Returns the builder for the settings used for calls to createQueue. */ - public UnaryCallSettings.Builder createQueueSettings() { - return createQueueSettings; - } - - /** Returns the builder for the settings used for calls to updateQueue. */ - public UnaryCallSettings.Builder updateQueueSettings() { - return updateQueueSettings; - } - - /** Returns the builder for the settings used for calls to deleteQueue. */ - public UnaryCallSettings.Builder deleteQueueSettings() { - return deleteQueueSettings; - } - - /** Returns the builder for the settings used for calls to purgeQueue. */ - public UnaryCallSettings.Builder purgeQueueSettings() { - return purgeQueueSettings; - } - - /** Returns the builder for the settings used for calls to pauseQueue. */ - public UnaryCallSettings.Builder pauseQueueSettings() { - return pauseQueueSettings; - } - - /** Returns the builder for the settings used for calls to resumeQueue. */ - public UnaryCallSettings.Builder resumeQueueSettings() { - return resumeQueueSettings; - } - - /** Returns the builder for the settings used for calls to getIamPolicy. */ - public UnaryCallSettings.Builder getIamPolicySettings() { - return getIamPolicySettings; - } - - /** Returns the builder for the settings used for calls to setIamPolicy. */ - public UnaryCallSettings.Builder setIamPolicySettings() { - return setIamPolicySettings; - } - - /** Returns the builder for the settings used for calls to testIamPermissions. */ - public UnaryCallSettings.Builder - testIamPermissionsSettings() { - return testIamPermissionsSettings; - } - - /** Returns the builder for the settings used for calls to listTasks. */ - public PagedCallSettings.Builder - listTasksSettings() { - return listTasksSettings; - } - - /** Returns the builder for the settings used for calls to getTask. */ - public UnaryCallSettings.Builder getTaskSettings() { - return getTaskSettings; - } - - /** Returns the builder for the settings used for calls to createTask. */ - public UnaryCallSettings.Builder createTaskSettings() { - return createTaskSettings; - } - - /** Returns the builder for the settings used for calls to deleteTask. */ - public UnaryCallSettings.Builder deleteTaskSettings() { - return deleteTaskSettings; - } - - /** Returns the builder for the settings used for calls to runTask. */ - public UnaryCallSettings.Builder runTaskSettings() { - return runTaskSettings; - } - - @Override - public CloudTasksStubSettings build() throws IOException { - return new CloudTasksStubSettings(this); - } - } -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksCallableFactory.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksCallableFactory.java deleted file mode 100644 index ccb41e66..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksCallableFactory.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2022 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.v2.stub; - -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the CloudTasks service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -public class GrpcCloudTasksCallableFactory implements GrpcStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, callSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java deleted file mode 100644 index b0a36eed..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java +++ /dev/null @@ -1,615 +0,0 @@ -/* - * Copyright 2022 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.v2.stub; - -import static com.google.cloud.tasks.v2.CloudTasksClient.ListQueuesPagedResponse; -import static com.google.cloud.tasks.v2.CloudTasksClient.ListTasksPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.tasks.v2.CreateQueueRequest; -import com.google.cloud.tasks.v2.CreateTaskRequest; -import com.google.cloud.tasks.v2.DeleteQueueRequest; -import com.google.cloud.tasks.v2.DeleteTaskRequest; -import com.google.cloud.tasks.v2.GetQueueRequest; -import com.google.cloud.tasks.v2.GetTaskRequest; -import com.google.cloud.tasks.v2.ListQueuesRequest; -import com.google.cloud.tasks.v2.ListQueuesResponse; -import com.google.cloud.tasks.v2.ListTasksRequest; -import com.google.cloud.tasks.v2.ListTasksResponse; -import com.google.cloud.tasks.v2.PauseQueueRequest; -import com.google.cloud.tasks.v2.PurgeQueueRequest; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.ResumeQueueRequest; -import com.google.cloud.tasks.v2.RunTaskRequest; -import com.google.cloud.tasks.v2.Task; -import com.google.cloud.tasks.v2.UpdateQueueRequest; -import com.google.common.collect.ImmutableMap; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the CloudTasks service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public class GrpcCloudTasksStub extends CloudTasksStub { - private static final MethodDescriptor - listQueuesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/ListQueues") - .setRequestMarshaller(ProtoUtils.marshaller(ListQueuesRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ListQueuesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getQueueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/GetQueue") - .setRequestMarshaller(ProtoUtils.marshaller(GetQueueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Queue.getDefaultInstance())) - .build(); - - private static final MethodDescriptor createQueueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/CreateQueue") - .setRequestMarshaller(ProtoUtils.marshaller(CreateQueueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Queue.getDefaultInstance())) - .build(); - - private static final MethodDescriptor updateQueueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/UpdateQueue") - .setRequestMarshaller(ProtoUtils.marshaller(UpdateQueueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Queue.getDefaultInstance())) - .build(); - - private static final MethodDescriptor deleteQueueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/DeleteQueue") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteQueueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor purgeQueueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/PurgeQueue") - .setRequestMarshaller(ProtoUtils.marshaller(PurgeQueueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Queue.getDefaultInstance())) - .build(); - - private static final MethodDescriptor pauseQueueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/PauseQueue") - .setRequestMarshaller(ProtoUtils.marshaller(PauseQueueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Queue.getDefaultInstance())) - .build(); - - private static final MethodDescriptor resumeQueueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/ResumeQueue") - .setRequestMarshaller(ProtoUtils.marshaller(ResumeQueueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Queue.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/GetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .build(); - - private static final MethodDescriptor setIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/SetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - testIamPermissionsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/TestIamPermissions") - .setRequestMarshaller( - ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listTasksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/ListTasks") - .setRequestMarshaller(ProtoUtils.marshaller(ListTasksRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ListTasksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getTaskMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/GetTask") - .setRequestMarshaller(ProtoUtils.marshaller(GetTaskRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Task.getDefaultInstance())) - .build(); - - private static final MethodDescriptor createTaskMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/CreateTask") - .setRequestMarshaller(ProtoUtils.marshaller(CreateTaskRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Task.getDefaultInstance())) - .build(); - - private static final MethodDescriptor deleteTaskMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/DeleteTask") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteTaskRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor runTaskMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/RunTask") - .setRequestMarshaller(ProtoUtils.marshaller(RunTaskRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Task.getDefaultInstance())) - .build(); - - private final UnaryCallable listQueuesCallable; - private final UnaryCallable listQueuesPagedCallable; - private final UnaryCallable getQueueCallable; - private final UnaryCallable createQueueCallable; - private final UnaryCallable updateQueueCallable; - private final UnaryCallable deleteQueueCallable; - private final UnaryCallable purgeQueueCallable; - private final UnaryCallable pauseQueueCallable; - private final UnaryCallable resumeQueueCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; - private final UnaryCallable listTasksCallable; - private final UnaryCallable listTasksPagedCallable; - private final UnaryCallable getTaskCallable; - private final UnaryCallable createTaskCallable; - private final UnaryCallable deleteTaskCallable; - private final UnaryCallable runTaskCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcCloudTasksStub create(CloudTasksStubSettings settings) - throws IOException { - return new GrpcCloudTasksStub(settings, ClientContext.create(settings)); - } - - public static final GrpcCloudTasksStub create(ClientContext clientContext) throws IOException { - return new GrpcCloudTasksStub(CloudTasksStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcCloudTasksStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcCloudTasksStub( - CloudTasksStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcCloudTasksStub, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected GrpcCloudTasksStub(CloudTasksStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcCloudTasksCallableFactory()); - } - - /** - * Constructs an instance of GrpcCloudTasksStub, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected GrpcCloudTasksStub( - CloudTasksStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings listQueuesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listQueuesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getQueueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getQueueMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings createQueueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createQueueMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings updateQueueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateQueueMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("queue.name", String.valueOf(request.getQueue().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteQueueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteQueueMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings purgeQueueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(purgeQueueMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings pauseQueueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(pauseQueueMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings resumeQueueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(resumeQueueMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings getIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - }) - .build(); - GrpcCallSettings setIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - }) - .build(); - GrpcCallSettings - testIamPermissionsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(testIamPermissionsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - }) - .build(); - GrpcCallSettings listTasksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listTasksMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getTaskTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getTaskMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings createTaskTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createTaskMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteTaskTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteTaskMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings runTaskTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(runTaskMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - - this.listQueuesCallable = - callableFactory.createUnaryCallable( - listQueuesTransportSettings, settings.listQueuesSettings(), clientContext); - this.listQueuesPagedCallable = - callableFactory.createPagedCallable( - listQueuesTransportSettings, settings.listQueuesSettings(), clientContext); - this.getQueueCallable = - callableFactory.createUnaryCallable( - getQueueTransportSettings, settings.getQueueSettings(), clientContext); - this.createQueueCallable = - callableFactory.createUnaryCallable( - createQueueTransportSettings, settings.createQueueSettings(), clientContext); - this.updateQueueCallable = - callableFactory.createUnaryCallable( - updateQueueTransportSettings, settings.updateQueueSettings(), clientContext); - this.deleteQueueCallable = - callableFactory.createUnaryCallable( - deleteQueueTransportSettings, settings.deleteQueueSettings(), clientContext); - this.purgeQueueCallable = - callableFactory.createUnaryCallable( - purgeQueueTransportSettings, settings.purgeQueueSettings(), clientContext); - this.pauseQueueCallable = - callableFactory.createUnaryCallable( - pauseQueueTransportSettings, settings.pauseQueueSettings(), clientContext); - this.resumeQueueCallable = - callableFactory.createUnaryCallable( - resumeQueueTransportSettings, settings.resumeQueueSettings(), clientContext); - this.getIamPolicyCallable = - callableFactory.createUnaryCallable( - getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); - this.setIamPolicyCallable = - callableFactory.createUnaryCallable( - setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); - this.testIamPermissionsCallable = - callableFactory.createUnaryCallable( - testIamPermissionsTransportSettings, - settings.testIamPermissionsSettings(), - clientContext); - this.listTasksCallable = - callableFactory.createUnaryCallable( - listTasksTransportSettings, settings.listTasksSettings(), clientContext); - this.listTasksPagedCallable = - callableFactory.createPagedCallable( - listTasksTransportSettings, settings.listTasksSettings(), clientContext); - this.getTaskCallable = - callableFactory.createUnaryCallable( - getTaskTransportSettings, settings.getTaskSettings(), clientContext); - this.createTaskCallable = - callableFactory.createUnaryCallable( - createTaskTransportSettings, settings.createTaskSettings(), clientContext); - this.deleteTaskCallable = - callableFactory.createUnaryCallable( - deleteTaskTransportSettings, settings.deleteTaskSettings(), clientContext); - this.runTaskCallable = - callableFactory.createUnaryCallable( - runTaskTransportSettings, settings.runTaskSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable listQueuesCallable() { - return listQueuesCallable; - } - - @Override - public UnaryCallable listQueuesPagedCallable() { - return listQueuesPagedCallable; - } - - @Override - public UnaryCallable getQueueCallable() { - return getQueueCallable; - } - - @Override - public UnaryCallable createQueueCallable() { - return createQueueCallable; - } - - @Override - public UnaryCallable updateQueueCallable() { - return updateQueueCallable; - } - - @Override - public UnaryCallable deleteQueueCallable() { - return deleteQueueCallable; - } - - @Override - public UnaryCallable purgeQueueCallable() { - return purgeQueueCallable; - } - - @Override - public UnaryCallable pauseQueueCallable() { - return pauseQueueCallable; - } - - @Override - public UnaryCallable resumeQueueCallable() { - return resumeQueueCallable; - } - - @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; - } - - @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; - } - - @Override - public UnaryCallable - testIamPermissionsCallable() { - return testIamPermissionsCallable; - } - - @Override - public UnaryCallable listTasksCallable() { - return listTasksCallable; - } - - @Override - public UnaryCallable listTasksPagedCallable() { - return listTasksPagedCallable; - } - - @Override - public UnaryCallable getTaskCallable() { - return getTaskCallable; - } - - @Override - public UnaryCallable createTaskCallable() { - return createTaskCallable; - } - - @Override - public UnaryCallable deleteTaskCallable() { - return deleteTaskCallable; - } - - @Override - public UnaryCallable runTaskCallable() { - return runTaskCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksCallableFactory.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksCallableFactory.java deleted file mode 100644 index df93d9fd..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2022 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.v2.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the CloudTasks service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -@BetaApi -public class HttpJsonCloudTasksCallableFactory - implements HttpJsonStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - HttpJsonCallSettings httpJsonCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createUnaryCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - HttpJsonCallSettings httpJsonCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createPagedCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - HttpJsonCallSettings httpJsonCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createBatchingCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - UnaryCallable innerCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); - HttpJsonOperationSnapshotCallable initialCallable = - new HttpJsonOperationSnapshotCallable( - innerCallable, - httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); - return HttpJsonCallableFactory.createOperationCallable( - callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - HttpJsonCallSettings httpJsonCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createServerStreamingCallable( - httpJsonCallSettings, callSettings, clientContext); - } -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksStub.java deleted file mode 100644 index 1275be7a..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/HttpJsonCloudTasksStub.java +++ /dev/null @@ -1,984 +0,0 @@ -/* - * Copyright 2022 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.v2.stub; - -import static com.google.cloud.tasks.v2.CloudTasksClient.ListQueuesPagedResponse; -import static com.google.cloud.tasks.v2.CloudTasksClient.ListTasksPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.tasks.v2.CreateQueueRequest; -import com.google.cloud.tasks.v2.CreateTaskRequest; -import com.google.cloud.tasks.v2.DeleteQueueRequest; -import com.google.cloud.tasks.v2.DeleteTaskRequest; -import com.google.cloud.tasks.v2.GetQueueRequest; -import com.google.cloud.tasks.v2.GetTaskRequest; -import com.google.cloud.tasks.v2.ListQueuesRequest; -import com.google.cloud.tasks.v2.ListQueuesResponse; -import com.google.cloud.tasks.v2.ListTasksRequest; -import com.google.cloud.tasks.v2.ListTasksResponse; -import com.google.cloud.tasks.v2.PauseQueueRequest; -import com.google.cloud.tasks.v2.PurgeQueueRequest; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.ResumeQueueRequest; -import com.google.cloud.tasks.v2.RunTaskRequest; -import com.google.cloud.tasks.v2.Task; -import com.google.cloud.tasks.v2.UpdateQueueRequest; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the CloudTasks service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -@BetaApi -public class HttpJsonCloudTasksStub extends CloudTasksStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); - - private static final ApiMethodDescriptor - listQueuesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/ListQueues") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2/{parent=projects/*/locations/*}/queues", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListQueuesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor getQueueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/GetQueue") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2/{name=projects/*/locations/*/queues/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Queue.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor createQueueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/CreateQueue") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2/{parent=projects/*/locations/*}/queues", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create().toBody("queue", request.getQueue(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Queue.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor updateQueueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/UpdateQueue") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2/{queue.name=projects/*/locations/*/queues/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "queue.name", request.getQueue().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create().toBody("queue", request.getQueue(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Queue.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor deleteQueueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/DeleteQueue") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2/{name=projects/*/locations/*/queues/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor purgeQueueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/PurgeQueue") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2/{name=projects/*/locations/*/queues/*}:purge", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Queue.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor pauseQueueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/PauseQueue") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2/{name=projects/*/locations/*/queues/*}:pause", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Queue.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor resumeQueueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/ResumeQueue") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2/{name=projects/*/locations/*/queues/*}:resume", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Queue.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/GetIamPolicy") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2/{resource=projects/*/locations/*/queues/*}:getIamPolicy", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - setIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/SetIamPolicy") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2/{resource=projects/*/locations/*/queues/*}:setIamPolicy", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - testIamPermissionsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/TestIamPermissions") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2/{resource=projects/*/locations/*/queues/*}:testIamPermissions", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listTasksMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/ListTasks") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2/{parent=projects/*/locations/*/queues/*}/tasks", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - serializer.putQueryParam( - fields, "responseView", request.getResponseView()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListTasksResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor getTaskMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/GetTask") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2/{name=projects/*/locations/*/queues/*/tasks/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "responseView", request.getResponseView()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Task.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor createTaskMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/CreateTask") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2/{parent=projects/*/locations/*/queues/*}/tasks", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Task.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor deleteTaskMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/DeleteTask") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2/{name=projects/*/locations/*/queues/*/tasks/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor runTaskMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2.CloudTasks/RunTask") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2/{name=projects/*/locations/*/queues/*/tasks/*}:run", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Task.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private final UnaryCallable listQueuesCallable; - private final UnaryCallable listQueuesPagedCallable; - private final UnaryCallable getQueueCallable; - private final UnaryCallable createQueueCallable; - private final UnaryCallable updateQueueCallable; - private final UnaryCallable deleteQueueCallable; - private final UnaryCallable purgeQueueCallable; - private final UnaryCallable pauseQueueCallable; - private final UnaryCallable resumeQueueCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; - private final UnaryCallable listTasksCallable; - private final UnaryCallable listTasksPagedCallable; - private final UnaryCallable getTaskCallable; - private final UnaryCallable createTaskCallable; - private final UnaryCallable deleteTaskCallable; - private final UnaryCallable runTaskCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonCloudTasksStub create(CloudTasksStubSettings settings) - throws IOException { - return new HttpJsonCloudTasksStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonCloudTasksStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonCloudTasksStub( - CloudTasksStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonCloudTasksStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonCloudTasksStub( - CloudTasksStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of HttpJsonCloudTasksStub, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected HttpJsonCloudTasksStub(CloudTasksStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new HttpJsonCloudTasksCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonCloudTasksStub, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected HttpJsonCloudTasksStub( - CloudTasksStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - - HttpJsonCallSettings listQueuesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listQueuesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getQueueTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getQueueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings createQueueTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createQueueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings updateQueueTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateQueueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteQueueTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteQueueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings purgeQueueTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(purgeQueueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings pauseQueueTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(pauseQueueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings resumeQueueTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(resumeQueueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getIamPolicyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getIamPolicyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings setIamPolicyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(setIamPolicyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - testIamPermissionsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(testIamPermissionsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings listTasksTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listTasksMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getTaskTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getTaskMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings createTaskTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createTaskMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteTaskTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteTaskMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings runTaskTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(runTaskMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - - this.listQueuesCallable = - callableFactory.createUnaryCallable( - listQueuesTransportSettings, settings.listQueuesSettings(), clientContext); - this.listQueuesPagedCallable = - callableFactory.createPagedCallable( - listQueuesTransportSettings, settings.listQueuesSettings(), clientContext); - this.getQueueCallable = - callableFactory.createUnaryCallable( - getQueueTransportSettings, settings.getQueueSettings(), clientContext); - this.createQueueCallable = - callableFactory.createUnaryCallable( - createQueueTransportSettings, settings.createQueueSettings(), clientContext); - this.updateQueueCallable = - callableFactory.createUnaryCallable( - updateQueueTransportSettings, settings.updateQueueSettings(), clientContext); - this.deleteQueueCallable = - callableFactory.createUnaryCallable( - deleteQueueTransportSettings, settings.deleteQueueSettings(), clientContext); - this.purgeQueueCallable = - callableFactory.createUnaryCallable( - purgeQueueTransportSettings, settings.purgeQueueSettings(), clientContext); - this.pauseQueueCallable = - callableFactory.createUnaryCallable( - pauseQueueTransportSettings, settings.pauseQueueSettings(), clientContext); - this.resumeQueueCallable = - callableFactory.createUnaryCallable( - resumeQueueTransportSettings, settings.resumeQueueSettings(), clientContext); - this.getIamPolicyCallable = - callableFactory.createUnaryCallable( - getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); - this.setIamPolicyCallable = - callableFactory.createUnaryCallable( - setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); - this.testIamPermissionsCallable = - callableFactory.createUnaryCallable( - testIamPermissionsTransportSettings, - settings.testIamPermissionsSettings(), - clientContext); - this.listTasksCallable = - callableFactory.createUnaryCallable( - listTasksTransportSettings, settings.listTasksSettings(), clientContext); - this.listTasksPagedCallable = - callableFactory.createPagedCallable( - listTasksTransportSettings, settings.listTasksSettings(), clientContext); - this.getTaskCallable = - callableFactory.createUnaryCallable( - getTaskTransportSettings, settings.getTaskSettings(), clientContext); - this.createTaskCallable = - callableFactory.createUnaryCallable( - createTaskTransportSettings, settings.createTaskSettings(), clientContext); - this.deleteTaskCallable = - callableFactory.createUnaryCallable( - deleteTaskTransportSettings, settings.deleteTaskSettings(), clientContext); - this.runTaskCallable = - callableFactory.createUnaryCallable( - runTaskTransportSettings, settings.runTaskSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(listQueuesMethodDescriptor); - methodDescriptors.add(getQueueMethodDescriptor); - methodDescriptors.add(createQueueMethodDescriptor); - methodDescriptors.add(updateQueueMethodDescriptor); - methodDescriptors.add(deleteQueueMethodDescriptor); - methodDescriptors.add(purgeQueueMethodDescriptor); - methodDescriptors.add(pauseQueueMethodDescriptor); - methodDescriptors.add(resumeQueueMethodDescriptor); - methodDescriptors.add(getIamPolicyMethodDescriptor); - methodDescriptors.add(setIamPolicyMethodDescriptor); - methodDescriptors.add(testIamPermissionsMethodDescriptor); - methodDescriptors.add(listTasksMethodDescriptor); - methodDescriptors.add(getTaskMethodDescriptor); - methodDescriptors.add(createTaskMethodDescriptor); - methodDescriptors.add(deleteTaskMethodDescriptor); - methodDescriptors.add(runTaskMethodDescriptor); - return methodDescriptors; - } - - @Override - public UnaryCallable listQueuesCallable() { - return listQueuesCallable; - } - - @Override - public UnaryCallable listQueuesPagedCallable() { - return listQueuesPagedCallable; - } - - @Override - public UnaryCallable getQueueCallable() { - return getQueueCallable; - } - - @Override - public UnaryCallable createQueueCallable() { - return createQueueCallable; - } - - @Override - public UnaryCallable updateQueueCallable() { - return updateQueueCallable; - } - - @Override - public UnaryCallable deleteQueueCallable() { - return deleteQueueCallable; - } - - @Override - public UnaryCallable purgeQueueCallable() { - return purgeQueueCallable; - } - - @Override - public UnaryCallable pauseQueueCallable() { - return pauseQueueCallable; - } - - @Override - public UnaryCallable resumeQueueCallable() { - return resumeQueueCallable; - } - - @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; - } - - @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; - } - - @Override - public UnaryCallable - testIamPermissionsCallable() { - return testIamPermissionsCallable; - } - - @Override - public UnaryCallable listTasksCallable() { - return listTasksCallable; - } - - @Override - public UnaryCallable listTasksPagedCallable() { - return listTasksPagedCallable; - } - - @Override - public UnaryCallable getTaskCallable() { - return getTaskCallable; - } - - @Override - public UnaryCallable createTaskCallable() { - return createTaskCallable; - } - - @Override - public UnaryCallable deleteTaskCallable() { - return deleteTaskCallable; - } - - @Override - public UnaryCallable runTaskCallable() { - return runTaskCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java deleted file mode 100644 index 50dc22dc..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java +++ /dev/null @@ -1,3502 +0,0 @@ -/* - * Copyright 2022 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; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.tasks.v2beta2.stub.CloudTasksStub; -import com.google.cloud.tasks.v2beta2.stub.CloudTasksStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Duration; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: Cloud Tasks allows developers to manage the execution of background work in - * their applications. - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

{@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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
- *   Queue response = cloudTasksClient.getQueue(name);
- * }
- * }
- * - *

Note: close() needs to be called on the CloudTasksClient object to clean up resources such as - * threads. In the example above, try-with-resources is used, which automatically calls close(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of CloudTasksSettings to - * create(). For example: - * - *

To customize credentials: - * - *

{@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
- * CloudTasksSettings cloudTasksSettings =
- *     CloudTasksSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@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
- * CloudTasksSettings cloudTasksSettings =
- *     CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build();
- * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
- * }
- * - *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over - * the wire: - * - *

{@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
- * CloudTasksSettings cloudTasksSettings =
- *     CloudTasksSettings.newBuilder()
- *         .setTransportChannelProvider(
- *             CloudTasksSettings.defaultHttpJsonTransportProviderBuilder().build())
- *         .build();
- * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class CloudTasksClient implements BackgroundResource { - private final CloudTasksSettings settings; - private final CloudTasksStub stub; - - /** Constructs an instance of CloudTasksClient with default settings. */ - public static final CloudTasksClient create() throws IOException { - return create(CloudTasksSettings.newBuilder().build()); - } - - /** - * Constructs an instance of CloudTasksClient, using the given settings. The channels are created - * based on the settings passed in, or defaults for any settings that are not set. - */ - public static final CloudTasksClient create(CloudTasksSettings settings) throws IOException { - return new CloudTasksClient(settings); - } - - /** - * Constructs an instance of CloudTasksClient, using the given stub for making calls. This is for - * advanced usage - prefer using create(CloudTasksSettings). - */ - public static final CloudTasksClient create(CloudTasksStub stub) { - return new CloudTasksClient(stub); - } - - /** - * Constructs an instance of CloudTasksClient, using the given settings. This is protected so that - * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. - */ - protected CloudTasksClient(CloudTasksSettings settings) throws IOException { - this.settings = settings; - this.stub = ((CloudTasksStubSettings) settings.getStubSettings()).createStub(); - } - - protected CloudTasksClient(CloudTasksStub stub) { - this.settings = null; - this.stub = stub; - } - - public final CloudTasksSettings getSettings() { - return settings; - } - - public CloudTasksStub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists queues. - * - *

Queues are returned in lexicographical order. - * - *

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()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The location name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListQueuesPagedResponse listQueues(LocationName parent) { - ListQueuesRequest request = - ListQueuesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); - return listQueues(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists queues. - * - *

Queues are returned in lexicographical order. - * - *

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 parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The location name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListQueuesPagedResponse listQueues(String parent) { - ListQueuesRequest request = ListQueuesRequest.newBuilder().setParent(parent).build(); - return listQueues(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists queues. - * - *

Queues are returned in lexicographical order. - * - *

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()) {
-   *   ListQueuesRequest request =
-   *       ListQueuesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   for (Queue element : cloudTasksClient.listQueues(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @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 ListQueuesPagedResponse listQueues(ListQueuesRequest request) { - return listQueuesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists queues. - * - *

Queues are returned in lexicographical order. - * - *

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()) {
-   *   ListQueuesRequest request =
-   *       ListQueuesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.listQueuesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Queue element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listQueuesPagedCallable() { - return stub.listQueuesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists queues. - * - *

Queues are returned in lexicographical order. - * - *

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()) {
-   *   ListQueuesRequest request =
-   *       ListQueuesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   while (true) {
-   *     ListQueuesResponse response = cloudTasksClient.listQueuesCallable().call(request);
-   *     for (Queue element : response.getQueuesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listQueuesCallable() { - return stub.listQueuesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a queue. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Queue response = cloudTasksClient.getQueue(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the queue. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue getQueue(QueueName name) { - GetQueueRequest request = - GetQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a queue. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Queue response = cloudTasksClient.getQueue(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the queue. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue getQueue(String name) { - GetQueueRequest request = GetQueueRequest.newBuilder().setName(name).build(); - return getQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a queue. - * - *

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()) {
-   *   GetQueueRequest request =
-   *       GetQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Queue response = cloudTasksClient.getQueue(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 Queue getQueue(GetQueueRequest request) { - return getQueueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a queue. - * - *

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()) {
-   *   GetQueueRequest request =
-   *       GetQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.getQueueCallable().futureCall(request);
-   *   // Do something.
-   *   Queue response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getQueueCallable() { - return stub.getQueueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a queue. - * - *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task - * is 31 days old, the task will be deleted regardless of whether it was dispatched or not. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   Queue queue = Queue.newBuilder().build();
-   *   Queue response = cloudTasksClient.createQueue(parent, queue);
-   * }
-   * }
- * - * @param parent Required. The location name in which the queue will be created. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID` - *

The list of allowed locations can be obtained by calling Cloud Tasks' implementation of - * [ListLocations][google.cloud.location.Locations.ListLocations]. - * @param queue Required. The queue to create. - *

[Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as an existing - * queue. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue createQueue(LocationName parent, Queue queue) { - CreateQueueRequest request = - CreateQueueRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setQueue(queue) - .build(); - return createQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a queue. - * - *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task - * is 31 days old, the task will be deleted regardless of whether it was dispatched or not. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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 parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   Queue queue = Queue.newBuilder().build();
-   *   Queue response = cloudTasksClient.createQueue(parent, queue);
-   * }
-   * }
- * - * @param parent Required. The location name in which the queue will be created. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID` - *

The list of allowed locations can be obtained by calling Cloud Tasks' implementation of - * [ListLocations][google.cloud.location.Locations.ListLocations]. - * @param queue Required. The queue to create. - *

[Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as an existing - * queue. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue createQueue(String parent, Queue queue) { - CreateQueueRequest request = - CreateQueueRequest.newBuilder().setParent(parent).setQueue(queue).build(); - return createQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a queue. - * - *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task - * is 31 days old, the task will be deleted regardless of whether it was dispatched or not. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   CreateQueueRequest request =
-   *       CreateQueueRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setQueue(Queue.newBuilder().build())
-   *           .build();
-   *   Queue response = cloudTasksClient.createQueue(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 Queue createQueue(CreateQueueRequest request) { - return createQueueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a queue. - * - *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task - * is 31 days old, the task will be deleted regardless of whether it was dispatched or not. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   CreateQueueRequest request =
-   *       CreateQueueRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setQueue(Queue.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.createQueueCallable().futureCall(request);
-   *   // Do something.
-   *   Queue response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createQueueCallable() { - return stub.createQueueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a queue. - * - *

This method creates the queue if it does not exist and updates the queue if it does exist. - * - *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task - * is 31 days old, the task will be deleted regardless of whether it was dispatched or not. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   Queue queue = Queue.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Queue response = cloudTasksClient.updateQueue(queue, updateMask);
-   * }
-   * }
- * - * @param queue Required. The queue to create or update. - *

The queue's [name][google.cloud.tasks.v2beta2.Queue.name] must be specified. - *

Output only fields cannot be modified using UpdateQueue. Any value specified for an - * output only field will be ignored. The queue's - * [name][google.cloud.tasks.v2beta2.Queue.name] cannot be changed. - * @param updateMask A mask used to specify which fields of the queue are being updated. - *

If empty, then all fields will be updated. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue updateQueue(Queue queue, FieldMask updateMask) { - UpdateQueueRequest request = - UpdateQueueRequest.newBuilder().setQueue(queue).setUpdateMask(updateMask).build(); - return updateQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a queue. - * - *

This method creates the queue if it does not exist and updates the queue if it does exist. - * - *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task - * is 31 days old, the task will be deleted regardless of whether it was dispatched or not. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   UpdateQueueRequest request =
-   *       UpdateQueueRequest.newBuilder()
-   *           .setQueue(Queue.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Queue response = cloudTasksClient.updateQueue(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 Queue updateQueue(UpdateQueueRequest request) { - return updateQueueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a queue. - * - *

This method creates the queue if it does not exist and updates the queue if it does exist. - * - *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task - * is 31 days old, the task will be deleted regardless of whether it was dispatched or not. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   UpdateQueueRequest request =
-   *       UpdateQueueRequest.newBuilder()
-   *           .setQueue(Queue.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.updateQueueCallable().futureCall(request);
-   *   // Do something.
-   *   Queue response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateQueueCallable() { - return stub.updateQueueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a queue. - * - *

This command will delete the queue even if it has tasks in it. - * - *

Note: If you delete a queue, a queue with the same name can't be created for 7 days. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   cloudTasksClient.deleteQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteQueue(QueueName name) { - DeleteQueueRequest request = - DeleteQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a queue. - * - *

This command will delete the queue even if it has tasks in it. - * - *

Note: If you delete a queue, a queue with the same name can't be created for 7 days. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   cloudTasksClient.deleteQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteQueue(String name) { - DeleteQueueRequest request = DeleteQueueRequest.newBuilder().setName(name).build(); - deleteQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a queue. - * - *

This command will delete the queue even if it has tasks in it. - * - *

Note: If you delete a queue, a queue with the same name can't be created for 7 days. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   DeleteQueueRequest request =
-   *       DeleteQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   cloudTasksClient.deleteQueue(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 void deleteQueue(DeleteQueueRequest request) { - deleteQueueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a queue. - * - *

This command will delete the queue even if it has tasks in it. - * - *

Note: If you delete a queue, a queue with the same name can't be created for 7 days. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   DeleteQueueRequest request =
-   *       DeleteQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.deleteQueueCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteQueueCallable() { - return stub.deleteQueueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Purges a queue by deleting all of its tasks. - * - *

All tasks created before this method is called are permanently deleted. - * - *

Purge operations can take up to one minute to take effect. Tasks might be dispatched before - * the purge takes effect. A purge is irreversible. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Queue response = cloudTasksClient.purgeQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue purgeQueue(QueueName name) { - PurgeQueueRequest request = - PurgeQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return purgeQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Purges a queue by deleting all of its tasks. - * - *

All tasks created before this method is called are permanently deleted. - * - *

Purge operations can take up to one minute to take effect. Tasks might be dispatched before - * the purge takes effect. A purge is irreversible. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Queue response = cloudTasksClient.purgeQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue purgeQueue(String name) { - PurgeQueueRequest request = PurgeQueueRequest.newBuilder().setName(name).build(); - return purgeQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Purges a queue by deleting all of its tasks. - * - *

All tasks created before this method is called are permanently deleted. - * - *

Purge operations can take up to one minute to take effect. Tasks might be dispatched before - * the purge takes effect. A purge is irreversible. - * - *

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()) {
-   *   PurgeQueueRequest request =
-   *       PurgeQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   Queue response = cloudTasksClient.purgeQueue(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 Queue purgeQueue(PurgeQueueRequest request) { - return purgeQueueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Purges a queue by deleting all of its tasks. - * - *

All tasks created before this method is called are permanently deleted. - * - *

Purge operations can take up to one minute to take effect. Tasks might be dispatched before - * the purge takes effect. A purge is irreversible. - * - *

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()) {
-   *   PurgeQueueRequest request =
-   *       PurgeQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.purgeQueueCallable().futureCall(request);
-   *   // Do something.
-   *   Queue response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable purgeQueueCallable() { - return stub.purgeQueueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Pauses the queue. - * - *

If a queue is paused then the system will stop dispatching tasks until the queue is resumed - * via [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue]. Tasks can still be added - * when the queue is paused. A queue is paused if its - * [state][google.cloud.tasks.v2beta2.Queue.state] is - * [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED]. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Queue response = cloudTasksClient.pauseQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue pauseQueue(QueueName name) { - PauseQueueRequest request = - PauseQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return pauseQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Pauses the queue. - * - *

If a queue is paused then the system will stop dispatching tasks until the queue is resumed - * via [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue]. Tasks can still be added - * when the queue is paused. A queue is paused if its - * [state][google.cloud.tasks.v2beta2.Queue.state] is - * [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED]. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Queue response = cloudTasksClient.pauseQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue pauseQueue(String name) { - PauseQueueRequest request = PauseQueueRequest.newBuilder().setName(name).build(); - return pauseQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Pauses the queue. - * - *

If a queue is paused then the system will stop dispatching tasks until the queue is resumed - * via [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue]. Tasks can still be added - * when the queue is paused. A queue is paused if its - * [state][google.cloud.tasks.v2beta2.Queue.state] is - * [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED]. - * - *

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()) {
-   *   PauseQueueRequest request =
-   *       PauseQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   Queue response = cloudTasksClient.pauseQueue(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 Queue pauseQueue(PauseQueueRequest request) { - return pauseQueueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Pauses the queue. - * - *

If a queue is paused then the system will stop dispatching tasks until the queue is resumed - * via [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue]. Tasks can still be added - * when the queue is paused. A queue is paused if its - * [state][google.cloud.tasks.v2beta2.Queue.state] is - * [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED]. - * - *

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()) {
-   *   PauseQueueRequest request =
-   *       PauseQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.pauseQueueCallable().futureCall(request);
-   *   // Do something.
-   *   Queue response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable pauseQueueCallable() { - return stub.pauseQueueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resume a queue. - * - *

This method resumes a queue after it has been - * [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED] or - * [DISABLED][google.cloud.tasks.v2beta2.Queue.State.DISABLED]. The state of a queue is stored in - * the queue's [state][google.cloud.tasks.v2beta2.Queue.state]; after calling this method it will - * be set to [RUNNING][google.cloud.tasks.v2beta2.Queue.State.RUNNING]. - * - *

WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If - * you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud - * Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Queue response = cloudTasksClient.resumeQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue resumeQueue(QueueName name) { - ResumeQueueRequest request = - ResumeQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return resumeQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resume a queue. - * - *

This method resumes a queue after it has been - * [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED] or - * [DISABLED][google.cloud.tasks.v2beta2.Queue.State.DISABLED]. The state of a queue is stored in - * the queue's [state][google.cloud.tasks.v2beta2.Queue.state]; after calling this method it will - * be set to [RUNNING][google.cloud.tasks.v2beta2.Queue.State.RUNNING]. - * - *

WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If - * you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud - * Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Queue response = cloudTasksClient.resumeQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue resumeQueue(String name) { - ResumeQueueRequest request = ResumeQueueRequest.newBuilder().setName(name).build(); - return resumeQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resume a queue. - * - *

This method resumes a queue after it has been - * [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED] or - * [DISABLED][google.cloud.tasks.v2beta2.Queue.State.DISABLED]. The state of a queue is stored in - * the queue's [state][google.cloud.tasks.v2beta2.Queue.state]; after calling this method it will - * be set to [RUNNING][google.cloud.tasks.v2beta2.Queue.State.RUNNING]. - * - *

WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If - * you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud - * Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). - * - *

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()) {
-   *   ResumeQueueRequest request =
-   *       ResumeQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   Queue response = cloudTasksClient.resumeQueue(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 Queue resumeQueue(ResumeQueueRequest request) { - return resumeQueueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resume a queue. - * - *

This method resumes a queue after it has been - * [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED] or - * [DISABLED][google.cloud.tasks.v2beta2.Queue.State.DISABLED]. The state of a queue is stored in - * the queue's [state][google.cloud.tasks.v2beta2.Queue.state]; after calling this method it will - * be set to [RUNNING][google.cloud.tasks.v2beta2.Queue.State.RUNNING]. - * - *

WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If - * you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud - * Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). - * - *

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()) {
-   *   ResumeQueueRequest request =
-   *       ResumeQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.resumeQueueCallable().futureCall(request);
-   *   // Do something.
-   *   Queue response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable resumeQueueCallable() { - return stub.resumeQueueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Returns an - * empty policy if the resource exists and does not have a policy set. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.getIamPolicy` - *
- * - *

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()) {
-   *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Policy response = cloudTasksClient.getIamPolicy(resource);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy getIamPolicy(ResourceName resource) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(resource == null ? null : resource.toString()) - .build(); - return getIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Returns an - * empty policy if the resource exists and does not have a policy set. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.getIamPolicy` - *
- * - *

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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Policy response = cloudTasksClient.getIamPolicy(resource);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy getIamPolicy(String resource) { - GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); - return getIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Returns an - * empty policy if the resource exists and does not have a policy set. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.getIamPolicy` - *
- * - *

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()) {
-   *   GetIamPolicyRequest request =
-   *       GetIamPolicyRequest.newBuilder()
-   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setOptions(GetPolicyOptions.newBuilder().build())
-   *           .build();
-   *   Policy response = cloudTasksClient.getIamPolicy(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 Policy getIamPolicy(GetIamPolicyRequest request) { - return getIamPolicyCallable().call(request); - } - - public final Policy getIamPolicy(QueueName queueName) { - return getIamPolicy((ResourceName) queueName); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Returns an - * empty policy if the resource exists and does not have a policy set. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.getIamPolicy` - *
- * - *

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()) {
-   *   GetIamPolicyRequest request =
-   *       GetIamPolicyRequest.newBuilder()
-   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setOptions(GetPolicyOptions.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.getIamPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   Policy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getIamPolicyCallable() { - return stub.getIamPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Replaces any - * existing policy. - * - *

Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level - * permissions are required to use the Cloud Console. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.setIamPolicy` - *
- * - *

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()) {
-   *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Policy policy = Policy.newBuilder().build();
-   *   Policy response = cloudTasksClient.setIamPolicy(resource, policy);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the - * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud - * Platform services (such as Projects) might reject them. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(resource == null ? null : resource.toString()) - .setPolicy(policy) - .build(); - return setIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Replaces any - * existing policy. - * - *

Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level - * permissions are required to use the Cloud Console. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.setIamPolicy` - *
- * - *

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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Policy policy = Policy.newBuilder().build();
-   *   Policy response = cloudTasksClient.setIamPolicy(resource, policy);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the - * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud - * Platform services (such as Projects) might reject them. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy setIamPolicy(String resource, Policy policy) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); - return setIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Replaces any - * existing policy. - * - *

Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level - * permissions are required to use the Cloud Console. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.setIamPolicy` - *
- * - *

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()) {
-   *   SetIamPolicyRequest request =
-   *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setPolicy(Policy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Policy response = cloudTasksClient.setIamPolicy(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 Policy setIamPolicy(SetIamPolicyRequest request) { - return setIamPolicyCallable().call(request); - } - - public final Policy setIamPolicy(QueueName queue, Policy policy) { - return setIamPolicy((ResourceName) queue, policy); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Replaces any - * existing policy. - * - *

Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level - * permissions are required to use the Cloud Console. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.setIamPolicy` - *
- * - *

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()) {
-   *   SetIamPolicyRequest request =
-   *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setPolicy(Policy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.setIamPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   Policy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable setIamPolicyCallable() { - return stub.setIamPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta2.Queue]. If the - * resource does not exist, this will return an empty set of permissions, not a - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. - * - *

Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without - * warning. - * - *

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()) {
-   *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   List permissions = new ArrayList<>();
-   *   TestIamPermissionsResponse response =
-   *       cloudTasksClient.testIamPermissions(resource, permissions);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See the - * operation documentation for the appropriate value for this field. - * @param permissions The set of permissions to check for the `resource`. Permissions with - * wildcards (such as '*' or 'storage.*') are not allowed. For more information see - * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(resource == null ? null : resource.toString()) - .addAllPermissions(permissions) - .build(); - return testIamPermissions(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta2.Queue]. If the - * resource does not exist, this will return an empty set of permissions, not a - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. - * - *

Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without - * warning. - * - *

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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   List permissions = new ArrayList<>();
-   *   TestIamPermissionsResponse response =
-   *       cloudTasksClient.testIamPermissions(resource, permissions);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See the - * operation documentation for the appropriate value for this field. - * @param permissions The set of permissions to check for the `resource`. Permissions with - * wildcards (such as '*' or 'storage.*') are not allowed. For more information see - * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TestIamPermissionsResponse testIamPermissions( - String resource, List permissions) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(resource) - .addAllPermissions(permissions) - .build(); - return testIamPermissions(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta2.Queue]. If the - * resource does not exist, this will return an empty set of permissions, not a - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. - * - *

Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without - * warning. - * - *

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()) {
-   *   TestIamPermissionsRequest request =
-   *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .addAllPermissions(new ArrayList())
-   *           .build();
-   *   TestIamPermissionsResponse response = cloudTasksClient.testIamPermissions(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 TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { - return testIamPermissionsCallable().call(request); - } - - public final TestIamPermissionsResponse testIamPermissions( - QueueName queue, List permissions) { - return testIamPermissions((ResourceName) queue, permissions); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta2.Queue]. If the - * resource does not exist, this will return an empty set of permissions, not a - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. - * - *

Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without - * warning. - * - *

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()) {
-   *   TestIamPermissionsRequest request =
-   *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .addAllPermissions(new ArrayList())
-   *           .build();
-   *   ApiFuture future =
-   *       cloudTasksClient.testIamPermissionsCallable().futureCall(request);
-   *   // Do something.
-   *   TestIamPermissionsResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - testIamPermissionsCallable() { - return stub.testIamPermissionsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the tasks in a queue. - * - *

By default, only the [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC] view is retrieved - * due to performance considerations; - * [response_view][google.cloud.tasks.v2beta2.ListTasksRequest.response_view] controls the subset - * of information which is returned. - * - *

The tasks may be returned in any order. The ordering may change at any time. - * - *

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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The queue name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListTasksPagedResponse listTasks(QueueName parent) { - ListTasksRequest request = - ListTasksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); - return listTasks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the tasks in a queue. - * - *

By default, only the [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC] view is retrieved - * due to performance considerations; - * [response_view][google.cloud.tasks.v2beta2.ListTasksRequest.response_view] controls the subset - * of information which is returned. - * - *

The tasks may be returned in any order. The ordering may change at any time. - * - *

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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The queue name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListTasksPagedResponse listTasks(String parent) { - ListTasksRequest request = ListTasksRequest.newBuilder().setParent(parent).build(); - return listTasks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the tasks in a queue. - * - *

By default, only the [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC] view is retrieved - * due to performance considerations; - * [response_view][google.cloud.tasks.v2beta2.ListTasksRequest.response_view] controls the subset - * of information which is returned. - * - *

The tasks may be returned in any order. The ordering may change at any time. - * - *

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()) {
-   *   ListTasksRequest request =
-   *       ListTasksRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (Task element : cloudTasksClient.listTasks(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @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 ListTasksPagedResponse listTasks(ListTasksRequest request) { - return listTasksPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the tasks in a queue. - * - *

By default, only the [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC] view is retrieved - * due to performance considerations; - * [response_view][google.cloud.tasks.v2beta2.ListTasksRequest.response_view] controls the subset - * of information which is returned. - * - *

The tasks may be returned in any order. The ordering may change at any time. - * - *

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()) {
-   *   ListTasksRequest request =
-   *       ListTasksRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.listTasksPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Task element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listTasksPagedCallable() { - return stub.listTasksPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the tasks in a queue. - * - *

By default, only the [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC] view is retrieved - * due to performance considerations; - * [response_view][google.cloud.tasks.v2beta2.ListTasksRequest.response_view] controls the subset - * of information which is returned. - * - *

The tasks may be returned in any order. The ordering may change at any time. - * - *

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()) {
-   *   ListTasksRequest request =
-   *       ListTasksRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListTasksResponse response = cloudTasksClient.listTasksCallable().call(request);
-   *     for (Task element : response.getTasksList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listTasksCallable() { - return stub.listTasksCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a task. - * - *

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()) {
-   *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
-   *   Task response = cloudTasksClient.getTask(name);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task getTask(TaskName name) { - GetTaskRequest request = - GetTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a task. - * - *

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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
-   *   Task response = cloudTasksClient.getTask(name);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task getTask(String name) { - GetTaskRequest request = GetTaskRequest.newBuilder().setName(name).build(); - return getTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a task. - * - *

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()) {
-   *   GetTaskRequest request =
-   *       GetTaskRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .build();
-   *   Task response = cloudTasksClient.getTask(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 Task getTask(GetTaskRequest request) { - return getTaskCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a task. - * - *

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()) {
-   *   GetTaskRequest request =
-   *       GetTaskRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.getTaskCallable().futureCall(request);
-   *   // Do something.
-   *   Task response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getTaskCallable() { - return stub.getTaskCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a task and adds it to a queue. - * - *

Tasks cannot be updated after creation; there is no UpdateTask command. - * - *

    - *
  • For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum task - * size is 100KB. - *
  • For [pull queues][google.cloud.tasks.v2beta2.PullTarget], the maximum task size is 1MB. - *
- * - *

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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Task task = Task.newBuilder().build();
-   *   Task response = cloudTasksClient.createTask(parent, task);
-   * }
-   * }
- * - * @param parent Required. The queue name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - *

The queue must already exist. - * @param task Required. The task to add. - *

Task names have the following format: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. The user can - * optionally specify a task [name][google.cloud.tasks.v2beta2.Task.name]. If a name is not - * specified then the system will generate a random unique task id, which will be set in the - * task returned in the [response][google.cloud.tasks.v2beta2.Task.name]. - *

If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not set or is in - * the past then Cloud Tasks will set it to the current time. - *

Task De-duplication: - *

Explicitly specifying a task ID enables task de-duplication. If a task's ID is identical - * to that of an existing task or a task that was deleted or completed recently then the call - * will fail with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. If the task's queue was - * created using Cloud Tasks, then another task with the same name can't be created for ~1hour - * after the original task was deleted or completed. If the task's queue was created using - * queue.yaml or queue.xml, then another task with the same name can't be created for ~9days - * after the original task was deleted or completed. - *

Because there is an extra lookup cost to identify duplicate task names, these - * [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] calls have significantly - * increased latency. Using hashed strings for the task id or for the prefix of the task id is - * recommended. Choosing task ids that are sequential or have sequential prefixes, for example - * using a timestamp, causes an increase in latency and error rates in all task commands. The - * infrastructure relies on an approximately uniform distribution of task ids to store and - * serve tasks efficiently. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task createTask(QueueName parent, Task task) { - CreateTaskRequest request = - CreateTaskRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTask(task) - .build(); - return createTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a task and adds it to a queue. - * - *

Tasks cannot be updated after creation; there is no UpdateTask command. - * - *

    - *
  • For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum task - * size is 100KB. - *
  • For [pull queues][google.cloud.tasks.v2beta2.PullTarget], the maximum task size is 1MB. - *
- * - *

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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Task task = Task.newBuilder().build();
-   *   Task response = cloudTasksClient.createTask(parent, task);
-   * }
-   * }
- * - * @param parent Required. The queue name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - *

The queue must already exist. - * @param task Required. The task to add. - *

Task names have the following format: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. The user can - * optionally specify a task [name][google.cloud.tasks.v2beta2.Task.name]. If a name is not - * specified then the system will generate a random unique task id, which will be set in the - * task returned in the [response][google.cloud.tasks.v2beta2.Task.name]. - *

If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not set or is in - * the past then Cloud Tasks will set it to the current time. - *

Task De-duplication: - *

Explicitly specifying a task ID enables task de-duplication. If a task's ID is identical - * to that of an existing task or a task that was deleted or completed recently then the call - * will fail with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. If the task's queue was - * created using Cloud Tasks, then another task with the same name can't be created for ~1hour - * after the original task was deleted or completed. If the task's queue was created using - * queue.yaml or queue.xml, then another task with the same name can't be created for ~9days - * after the original task was deleted or completed. - *

Because there is an extra lookup cost to identify duplicate task names, these - * [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] calls have significantly - * increased latency. Using hashed strings for the task id or for the prefix of the task id is - * recommended. Choosing task ids that are sequential or have sequential prefixes, for example - * using a timestamp, causes an increase in latency and error rates in all task commands. The - * infrastructure relies on an approximately uniform distribution of task ids to store and - * serve tasks efficiently. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task createTask(String parent, Task task) { - CreateTaskRequest request = - CreateTaskRequest.newBuilder().setParent(parent).setTask(task).build(); - return createTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a task and adds it to a queue. - * - *

Tasks cannot be updated after creation; there is no UpdateTask command. - * - *

    - *
  • For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum task - * size is 100KB. - *
  • For [pull queues][google.cloud.tasks.v2beta2.PullTarget], the maximum task size is 1MB. - *
- * - *

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()) {
-   *   CreateTaskRequest request =
-   *       CreateTaskRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setTask(Task.newBuilder().build())
-   *           .build();
-   *   Task response = cloudTasksClient.createTask(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 Task createTask(CreateTaskRequest request) { - return createTaskCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a task and adds it to a queue. - * - *

Tasks cannot be updated after creation; there is no UpdateTask command. - * - *

    - *
  • For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum task - * size is 100KB. - *
  • For [pull queues][google.cloud.tasks.v2beta2.PullTarget], the maximum task size is 1MB. - *
- * - *

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()) {
-   *   CreateTaskRequest request =
-   *       CreateTaskRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setTask(Task.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.createTaskCallable().futureCall(request);
-   *   // Do something.
-   *   Task response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createTaskCallable() { - return stub.createTaskCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a task. - * - *

A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has - * completed successfully or permanently failed. - * - *

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()) {
-   *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
-   *   cloudTasksClient.deleteTask(name);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteTask(TaskName name) { - DeleteTaskRequest request = - DeleteTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a task. - * - *

A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has - * completed successfully or permanently failed. - * - *

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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
-   *   cloudTasksClient.deleteTask(name);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteTask(String name) { - DeleteTaskRequest request = DeleteTaskRequest.newBuilder().setName(name).build(); - deleteTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a task. - * - *

A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has - * completed successfully or permanently failed. - * - *

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()) {
-   *   DeleteTaskRequest request =
-   *       DeleteTaskRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .build();
-   *   cloudTasksClient.deleteTask(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 void deleteTask(DeleteTaskRequest request) { - deleteTaskCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a task. - * - *

A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has - * completed successfully or permanently failed. - * - *

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()) {
-   *   DeleteTaskRequest request =
-   *       DeleteTaskRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.deleteTaskCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteTaskCallable() { - return stub.deleteTaskCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Leases tasks from a pull queue for - * [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration]. - * - *

This method is invoked by the worker to obtain a lease. The worker must acknowledge the task - * via [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] after they have - * performed the work associated with the task. - * - *

The [payload][google.cloud.tasks.v2beta2.PullMessage.payload] is intended to store data that - * the worker needs to perform the work associated with the task. To return the payloads in the - * [response][google.cloud.tasks.v2beta2.LeaseTasksResponse], set - * [response_view][google.cloud.tasks.v2beta2.LeaseTasksRequest.response_view] to - * [FULL][google.cloud.tasks.v2beta2.Task.View.FULL]. - * - *

A maximum of 10 qps of [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] - * requests are allowed per queue. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED] is - * returned when this limit is exceeded. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED] - * is also returned when - * [max_tasks_dispatched_per_second][google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second] - * is exceeded. - * - *

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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Duration leaseDuration = Duration.newBuilder().build();
-   *   LeaseTasksResponse response = cloudTasksClient.leaseTasks(parent, leaseDuration);
-   * }
-   * }
- * - * @param parent Required. The queue name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @param leaseDuration Required. The duration of the lease. - *

Each task returned in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will - * have its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] set to the current - * time plus the `lease_duration`. The task is leased until its - * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]; thus, the task will not be - * returned to another [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call - * before its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. - *

After the worker has successfully finished the work associated with the task, the worker - * must call via [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] - * before the [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. Otherwise the - * task will be returned to a later - * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call so that another worker - * can retry it. - *

The maximum lease duration is 1 week. `lease_duration` will be truncated to the nearest - * second. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LeaseTasksResponse leaseTasks(QueueName parent, Duration leaseDuration) { - LeaseTasksRequest request = - LeaseTasksRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setLeaseDuration(leaseDuration) - .build(); - return leaseTasks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Leases tasks from a pull queue for - * [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration]. - * - *

This method is invoked by the worker to obtain a lease. The worker must acknowledge the task - * via [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] after they have - * performed the work associated with the task. - * - *

The [payload][google.cloud.tasks.v2beta2.PullMessage.payload] is intended to store data that - * the worker needs to perform the work associated with the task. To return the payloads in the - * [response][google.cloud.tasks.v2beta2.LeaseTasksResponse], set - * [response_view][google.cloud.tasks.v2beta2.LeaseTasksRequest.response_view] to - * [FULL][google.cloud.tasks.v2beta2.Task.View.FULL]. - * - *

A maximum of 10 qps of [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] - * requests are allowed per queue. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED] is - * returned when this limit is exceeded. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED] - * is also returned when - * [max_tasks_dispatched_per_second][google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second] - * is exceeded. - * - *

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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Duration leaseDuration = Duration.newBuilder().build();
-   *   LeaseTasksResponse response = cloudTasksClient.leaseTasks(parent, leaseDuration);
-   * }
-   * }
- * - * @param parent Required. The queue name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @param leaseDuration Required. The duration of the lease. - *

Each task returned in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will - * have its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] set to the current - * time plus the `lease_duration`. The task is leased until its - * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]; thus, the task will not be - * returned to another [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call - * before its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. - *

After the worker has successfully finished the work associated with the task, the worker - * must call via [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] - * before the [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. Otherwise the - * task will be returned to a later - * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call so that another worker - * can retry it. - *

The maximum lease duration is 1 week. `lease_duration` will be truncated to the nearest - * second. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LeaseTasksResponse leaseTasks(String parent, Duration leaseDuration) { - LeaseTasksRequest request = - LeaseTasksRequest.newBuilder().setParent(parent).setLeaseDuration(leaseDuration).build(); - return leaseTasks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Leases tasks from a pull queue for - * [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration]. - * - *

This method is invoked by the worker to obtain a lease. The worker must acknowledge the task - * via [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] after they have - * performed the work associated with the task. - * - *

The [payload][google.cloud.tasks.v2beta2.PullMessage.payload] is intended to store data that - * the worker needs to perform the work associated with the task. To return the payloads in the - * [response][google.cloud.tasks.v2beta2.LeaseTasksResponse], set - * [response_view][google.cloud.tasks.v2beta2.LeaseTasksRequest.response_view] to - * [FULL][google.cloud.tasks.v2beta2.Task.View.FULL]. - * - *

A maximum of 10 qps of [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] - * requests are allowed per queue. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED] is - * returned when this limit is exceeded. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED] - * is also returned when - * [max_tasks_dispatched_per_second][google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second] - * is exceeded. - * - *

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()) {
-   *   LeaseTasksRequest request =
-   *       LeaseTasksRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setMaxTasks(-233969421)
-   *           .setLeaseDuration(Duration.newBuilder().build())
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   LeaseTasksResponse response = cloudTasksClient.leaseTasks(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 LeaseTasksResponse leaseTasks(LeaseTasksRequest request) { - return leaseTasksCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Leases tasks from a pull queue for - * [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration]. - * - *

This method is invoked by the worker to obtain a lease. The worker must acknowledge the task - * via [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] after they have - * performed the work associated with the task. - * - *

The [payload][google.cloud.tasks.v2beta2.PullMessage.payload] is intended to store data that - * the worker needs to perform the work associated with the task. To return the payloads in the - * [response][google.cloud.tasks.v2beta2.LeaseTasksResponse], set - * [response_view][google.cloud.tasks.v2beta2.LeaseTasksRequest.response_view] to - * [FULL][google.cloud.tasks.v2beta2.Task.View.FULL]. - * - *

A maximum of 10 qps of [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] - * requests are allowed per queue. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED] is - * returned when this limit is exceeded. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED] - * is also returned when - * [max_tasks_dispatched_per_second][google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second] - * is exceeded. - * - *

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()) {
-   *   LeaseTasksRequest request =
-   *       LeaseTasksRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setMaxTasks(-233969421)
-   *           .setLeaseDuration(Duration.newBuilder().build())
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   ApiFuture future =
-   *       cloudTasksClient.leaseTasksCallable().futureCall(request);
-   *   // Do something.
-   *   LeaseTasksResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable leaseTasksCallable() { - return stub.leaseTasksCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Acknowledges a pull task. - * - *

The worker, that is, the entity that - * [leased][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] this task must call this method to - * indicate that the work associated with the task has finished. - * - *

The worker must acknowledge a task within the - * [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration] or the lease will - * expire and the task will become available to be leased again. After the task is acknowledged, - * it will not be returned by a later - * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks], - * [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask], or - * [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]. - * - *

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()) {
-   *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
-   *   Timestamp scheduleTime = Timestamp.newBuilder().build();
-   *   cloudTasksClient.acknowledgeTask(name, scheduleTime);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @param scheduleTime Required. The task's current schedule time, available in the - * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by - * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or - * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction - * is to ensure that your worker currently holds the lease. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void acknowledgeTask(TaskName name, Timestamp scheduleTime) { - AcknowledgeTaskRequest request = - AcknowledgeTaskRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setScheduleTime(scheduleTime) - .build(); - acknowledgeTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Acknowledges a pull task. - * - *

The worker, that is, the entity that - * [leased][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] this task must call this method to - * indicate that the work associated with the task has finished. - * - *

The worker must acknowledge a task within the - * [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration] or the lease will - * expire and the task will become available to be leased again. After the task is acknowledged, - * it will not be returned by a later - * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks], - * [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask], or - * [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]. - * - *

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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
-   *   Timestamp scheduleTime = Timestamp.newBuilder().build();
-   *   cloudTasksClient.acknowledgeTask(name, scheduleTime);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @param scheduleTime Required. The task's current schedule time, available in the - * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by - * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or - * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction - * is to ensure that your worker currently holds the lease. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void acknowledgeTask(String name, Timestamp scheduleTime) { - AcknowledgeTaskRequest request = - AcknowledgeTaskRequest.newBuilder().setName(name).setScheduleTime(scheduleTime).build(); - acknowledgeTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Acknowledges a pull task. - * - *

The worker, that is, the entity that - * [leased][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] this task must call this method to - * indicate that the work associated with the task has finished. - * - *

The worker must acknowledge a task within the - * [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration] or the lease will - * expire and the task will become available to be leased again. After the task is acknowledged, - * it will not be returned by a later - * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks], - * [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask], or - * [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]. - * - *

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()) {
-   *   AcknowledgeTaskRequest request =
-   *       AcknowledgeTaskRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .setScheduleTime(Timestamp.newBuilder().build())
-   *           .build();
-   *   cloudTasksClient.acknowledgeTask(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 void acknowledgeTask(AcknowledgeTaskRequest request) { - acknowledgeTaskCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Acknowledges a pull task. - * - *

The worker, that is, the entity that - * [leased][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] this task must call this method to - * indicate that the work associated with the task has finished. - * - *

The worker must acknowledge a task within the - * [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration] or the lease will - * expire and the task will become available to be leased again. After the task is acknowledged, - * it will not be returned by a later - * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks], - * [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask], or - * [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]. - * - *

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()) {
-   *   AcknowledgeTaskRequest request =
-   *       AcknowledgeTaskRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .setScheduleTime(Timestamp.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.acknowledgeTaskCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable acknowledgeTaskCallable() { - return stub.acknowledgeTaskCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Renew the current lease of a pull task. - * - *

The worker can use this method to extend the lease by a new duration, starting from now. The - * new task lease will be returned in the task's - * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. - * - *

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()) {
-   *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
-   *   Timestamp scheduleTime = Timestamp.newBuilder().build();
-   *   Duration leaseDuration = Duration.newBuilder().build();
-   *   Task response = cloudTasksClient.renewLease(name, scheduleTime, leaseDuration);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @param scheduleTime Required. The task's current schedule time, available in the - * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by - * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or - * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction - * is to ensure that your worker currently holds the lease. - * @param leaseDuration Required. The desired new lease duration, starting from now. - *

The maximum lease duration is 1 week. `lease_duration` will be truncated to the nearest - * second. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task renewLease(TaskName name, Timestamp scheduleTime, Duration leaseDuration) { - RenewLeaseRequest request = - RenewLeaseRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setScheduleTime(scheduleTime) - .setLeaseDuration(leaseDuration) - .build(); - return renewLease(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Renew the current lease of a pull task. - * - *

The worker can use this method to extend the lease by a new duration, starting from now. The - * new task lease will be returned in the task's - * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. - * - *

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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
-   *   Timestamp scheduleTime = Timestamp.newBuilder().build();
-   *   Duration leaseDuration = Duration.newBuilder().build();
-   *   Task response = cloudTasksClient.renewLease(name, scheduleTime, leaseDuration);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @param scheduleTime Required. The task's current schedule time, available in the - * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by - * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or - * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction - * is to ensure that your worker currently holds the lease. - * @param leaseDuration Required. The desired new lease duration, starting from now. - *

The maximum lease duration is 1 week. `lease_duration` will be truncated to the nearest - * second. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task renewLease(String name, Timestamp scheduleTime, Duration leaseDuration) { - RenewLeaseRequest request = - RenewLeaseRequest.newBuilder() - .setName(name) - .setScheduleTime(scheduleTime) - .setLeaseDuration(leaseDuration) - .build(); - return renewLease(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Renew the current lease of a pull task. - * - *

The worker can use this method to extend the lease by a new duration, starting from now. The - * new task lease will be returned in the task's - * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. - * - *

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()) {
-   *   RenewLeaseRequest request =
-   *       RenewLeaseRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .setScheduleTime(Timestamp.newBuilder().build())
-   *           .setLeaseDuration(Duration.newBuilder().build())
-   *           .build();
-   *   Task response = cloudTasksClient.renewLease(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 Task renewLease(RenewLeaseRequest request) { - return renewLeaseCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Renew the current lease of a pull task. - * - *

The worker can use this method to extend the lease by a new duration, starting from now. The - * new task lease will be returned in the task's - * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. - * - *

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()) {
-   *   RenewLeaseRequest request =
-   *       RenewLeaseRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .setScheduleTime(Timestamp.newBuilder().build())
-   *           .setLeaseDuration(Duration.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.renewLeaseCallable().futureCall(request);
-   *   // Do something.
-   *   Task response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable renewLeaseCallable() { - return stub.renewLeaseCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Cancel a pull task's lease. - * - *

The worker can use this method to cancel a task's lease by setting its - * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] to now. This will make the task - * available to be leased to the next caller of - * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks]. - * - *

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()) {
-   *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
-   *   Timestamp scheduleTime = Timestamp.newBuilder().build();
-   *   Task response = cloudTasksClient.cancelLease(name, scheduleTime);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @param scheduleTime Required. The task's current schedule time, available in the - * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by - * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or - * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction - * is to ensure that your worker currently holds the lease. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task cancelLease(TaskName name, Timestamp scheduleTime) { - CancelLeaseRequest request = - CancelLeaseRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setScheduleTime(scheduleTime) - .build(); - return cancelLease(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Cancel a pull task's lease. - * - *

The worker can use this method to cancel a task's lease by setting its - * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] to now. This will make the task - * available to be leased to the next caller of - * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks]. - * - *

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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
-   *   Timestamp scheduleTime = Timestamp.newBuilder().build();
-   *   Task response = cloudTasksClient.cancelLease(name, scheduleTime);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @param scheduleTime Required. The task's current schedule time, available in the - * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by - * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or - * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction - * is to ensure that your worker currently holds the lease. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task cancelLease(String name, Timestamp scheduleTime) { - CancelLeaseRequest request = - CancelLeaseRequest.newBuilder().setName(name).setScheduleTime(scheduleTime).build(); - return cancelLease(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Cancel a pull task's lease. - * - *

The worker can use this method to cancel a task's lease by setting its - * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] to now. This will make the task - * available to be leased to the next caller of - * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks]. - * - *

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()) {
-   *   CancelLeaseRequest request =
-   *       CancelLeaseRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .setScheduleTime(Timestamp.newBuilder().build())
-   *           .build();
-   *   Task response = cloudTasksClient.cancelLease(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 Task cancelLease(CancelLeaseRequest request) { - return cancelLeaseCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Cancel a pull task's lease. - * - *

The worker can use this method to cancel a task's lease by setting its - * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] to now. This will make the task - * available to be leased to the next caller of - * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks]. - * - *

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()) {
-   *   CancelLeaseRequest request =
-   *       CancelLeaseRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .setScheduleTime(Timestamp.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.cancelLeaseCallable().futureCall(request);
-   *   // Do something.
-   *   Task response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable cancelLeaseCallable() { - return stub.cancelLeaseCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Forces a task to run now. - * - *

When this method is called, Cloud Tasks will dispatch the task, even if the task is already - * running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta2.RateLimits] or is - * [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED]. - * - *

This command is meant to be used for manual debugging. For example, - * [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] can be used to retry a failed task - * after a fix has been made or to manually force a task to be dispatched now. - * - *

The dispatched task is returned. That is, the task that is returned contains the - * [status][google.cloud.tasks.v2beta2.Task.status] after the task is dispatched but before the - * task is received by its target. - * - *

If Cloud Tasks receives a successful response from the task's target, then the task will be - * deleted; otherwise the task's [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] - * will be reset to the time that [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] was - * called plus the retry delay specified in the queue's - * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig]. - * - *

[RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] returns - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a task that has already succeeded - * or permanently failed. - * - *

[RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] cannot be called on a [pull - * task][google.cloud.tasks.v2beta2.PullMessage]. - * - *

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()) {
-   *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
-   *   Task response = cloudTasksClient.runTask(name);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task runTask(TaskName name) { - RunTaskRequest request = - RunTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return runTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Forces a task to run now. - * - *

When this method is called, Cloud Tasks will dispatch the task, even if the task is already - * running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta2.RateLimits] or is - * [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED]. - * - *

This command is meant to be used for manual debugging. For example, - * [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] can be used to retry a failed task - * after a fix has been made or to manually force a task to be dispatched now. - * - *

The dispatched task is returned. That is, the task that is returned contains the - * [status][google.cloud.tasks.v2beta2.Task.status] after the task is dispatched but before the - * task is received by its target. - * - *

If Cloud Tasks receives a successful response from the task's target, then the task will be - * deleted; otherwise the task's [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] - * will be reset to the time that [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] was - * called plus the retry delay specified in the queue's - * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig]. - * - *

[RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] returns - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a task that has already succeeded - * or permanently failed. - * - *

[RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] cannot be called on a [pull - * task][google.cloud.tasks.v2beta2.PullMessage]. - * - *

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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
-   *   Task response = cloudTasksClient.runTask(name);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task runTask(String name) { - RunTaskRequest request = RunTaskRequest.newBuilder().setName(name).build(); - return runTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Forces a task to run now. - * - *

When this method is called, Cloud Tasks will dispatch the task, even if the task is already - * running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta2.RateLimits] or is - * [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED]. - * - *

This command is meant to be used for manual debugging. For example, - * [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] can be used to retry a failed task - * after a fix has been made or to manually force a task to be dispatched now. - * - *

The dispatched task is returned. That is, the task that is returned contains the - * [status][google.cloud.tasks.v2beta2.Task.status] after the task is dispatched but before the - * task is received by its target. - * - *

If Cloud Tasks receives a successful response from the task's target, then the task will be - * deleted; otherwise the task's [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] - * will be reset to the time that [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] was - * called plus the retry delay specified in the queue's - * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig]. - * - *

[RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] returns - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a task that has already succeeded - * or permanently failed. - * - *

[RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] cannot be called on a [pull - * task][google.cloud.tasks.v2beta2.PullMessage]. - * - *

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()) {
-   *   RunTaskRequest request =
-   *       RunTaskRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .build();
-   *   Task response = cloudTasksClient.runTask(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 Task runTask(RunTaskRequest request) { - return runTaskCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Forces a task to run now. - * - *

When this method is called, Cloud Tasks will dispatch the task, even if the task is already - * running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta2.RateLimits] or is - * [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED]. - * - *

This command is meant to be used for manual debugging. For example, - * [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] can be used to retry a failed task - * after a fix has been made or to manually force a task to be dispatched now. - * - *

The dispatched task is returned. That is, the task that is returned contains the - * [status][google.cloud.tasks.v2beta2.Task.status] after the task is dispatched but before the - * task is received by its target. - * - *

If Cloud Tasks receives a successful response from the task's target, then the task will be - * deleted; otherwise the task's [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] - * will be reset to the time that [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] was - * called plus the retry delay specified in the queue's - * [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig]. - * - *

[RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] returns - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a task that has already succeeded - * or permanently failed. - * - *

[RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] cannot be called on a [pull - * task][google.cloud.tasks.v2beta2.PullMessage]. - * - *

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()) {
-   *   RunTaskRequest request =
-   *       RunTaskRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.runTaskCallable().futureCall(request);
-   *   // Do something.
-   *   Task response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable runTaskCallable() { - return stub.runTaskCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListQueuesPagedResponse - extends AbstractPagedListResponse< - ListQueuesRequest, - ListQueuesResponse, - Queue, - ListQueuesPage, - ListQueuesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListQueuesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListQueuesPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListQueuesPagedResponse(ListQueuesPage page) { - super(page, ListQueuesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListQueuesPage - extends AbstractPage { - - private ListQueuesPage( - PageContext context, - ListQueuesResponse response) { - super(context, response); - } - - private static ListQueuesPage createEmptyPage() { - return new ListQueuesPage(null, null); - } - - @Override - protected ListQueuesPage createPage( - PageContext context, - ListQueuesResponse response) { - return new ListQueuesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListQueuesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListQueuesRequest, - ListQueuesResponse, - Queue, - ListQueuesPage, - ListQueuesFixedSizeCollection> { - - private ListQueuesFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListQueuesFixedSizeCollection createEmptyCollection() { - return new ListQueuesFixedSizeCollection(null, 0); - } - - @Override - protected ListQueuesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListQueuesFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListTasksPagedResponse - extends AbstractPagedListResponse< - ListTasksRequest, ListTasksResponse, Task, ListTasksPage, ListTasksFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListTasksPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListTasksPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListTasksPagedResponse(ListTasksPage page) { - super(page, ListTasksFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListTasksPage - extends AbstractPage { - - private ListTasksPage( - PageContext context, - ListTasksResponse response) { - super(context, response); - } - - private static ListTasksPage createEmptyPage() { - return new ListTasksPage(null, null); - } - - @Override - protected ListTasksPage createPage( - PageContext context, - ListTasksResponse response) { - return new ListTasksPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListTasksFixedSizeCollection - extends AbstractFixedSizeCollection< - ListTasksRequest, ListTasksResponse, Task, ListTasksPage, ListTasksFixedSizeCollection> { - - private ListTasksFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListTasksFixedSizeCollection createEmptyCollection() { - return new ListTasksFixedSizeCollection(null, 0); - } - - @Override - protected ListTasksFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListTasksFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java deleted file mode 100644 index 5cb1330d..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java +++ /dev/null @@ -1,407 +0,0 @@ -/* - * Copyright 2022 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; - -import static com.google.cloud.tasks.v2beta2.CloudTasksClient.ListQueuesPagedResponse; -import static com.google.cloud.tasks.v2beta2.CloudTasksClient.ListTasksPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.tasks.v2beta2.stub.CloudTasksStubSettings; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link CloudTasksClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (cloudtasks.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getQueue to 30 seconds: - * - *

{@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
- * CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder();
- * cloudTasksSettingsBuilder
- *     .getQueueSettings()
- *     .setRetrySettings(
- *         cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class CloudTasksSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to listQueues. */ - public PagedCallSettings - listQueuesSettings() { - return ((CloudTasksStubSettings) getStubSettings()).listQueuesSettings(); - } - - /** Returns the object with the settings used for calls to getQueue. */ - public UnaryCallSettings getQueueSettings() { - return ((CloudTasksStubSettings) getStubSettings()).getQueueSettings(); - } - - /** Returns the object with the settings used for calls to createQueue. */ - public UnaryCallSettings createQueueSettings() { - return ((CloudTasksStubSettings) getStubSettings()).createQueueSettings(); - } - - /** Returns the object with the settings used for calls to updateQueue. */ - public UnaryCallSettings updateQueueSettings() { - return ((CloudTasksStubSettings) getStubSettings()).updateQueueSettings(); - } - - /** Returns the object with the settings used for calls to deleteQueue. */ - public UnaryCallSettings deleteQueueSettings() { - return ((CloudTasksStubSettings) getStubSettings()).deleteQueueSettings(); - } - - /** Returns the object with the settings used for calls to purgeQueue. */ - public UnaryCallSettings purgeQueueSettings() { - return ((CloudTasksStubSettings) getStubSettings()).purgeQueueSettings(); - } - - /** Returns the object with the settings used for calls to pauseQueue. */ - public UnaryCallSettings pauseQueueSettings() { - return ((CloudTasksStubSettings) getStubSettings()).pauseQueueSettings(); - } - - /** Returns the object with the settings used for calls to resumeQueue. */ - public UnaryCallSettings resumeQueueSettings() { - return ((CloudTasksStubSettings) getStubSettings()).resumeQueueSettings(); - } - - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return ((CloudTasksStubSettings) getStubSettings()).getIamPolicySettings(); - } - - /** Returns the object with the settings used for calls to setIamPolicy. */ - public UnaryCallSettings setIamPolicySettings() { - return ((CloudTasksStubSettings) getStubSettings()).setIamPolicySettings(); - } - - /** Returns the object with the settings used for calls to testIamPermissions. */ - public UnaryCallSettings - testIamPermissionsSettings() { - return ((CloudTasksStubSettings) getStubSettings()).testIamPermissionsSettings(); - } - - /** Returns the object with the settings used for calls to listTasks. */ - public PagedCallSettings - listTasksSettings() { - return ((CloudTasksStubSettings) getStubSettings()).listTasksSettings(); - } - - /** Returns the object with the settings used for calls to getTask. */ - public UnaryCallSettings getTaskSettings() { - return ((CloudTasksStubSettings) getStubSettings()).getTaskSettings(); - } - - /** Returns the object with the settings used for calls to createTask. */ - public UnaryCallSettings createTaskSettings() { - return ((CloudTasksStubSettings) getStubSettings()).createTaskSettings(); - } - - /** Returns the object with the settings used for calls to deleteTask. */ - public UnaryCallSettings deleteTaskSettings() { - return ((CloudTasksStubSettings) getStubSettings()).deleteTaskSettings(); - } - - /** Returns the object with the settings used for calls to leaseTasks. */ - public UnaryCallSettings leaseTasksSettings() { - return ((CloudTasksStubSettings) getStubSettings()).leaseTasksSettings(); - } - - /** Returns the object with the settings used for calls to acknowledgeTask. */ - public UnaryCallSettings acknowledgeTaskSettings() { - return ((CloudTasksStubSettings) getStubSettings()).acknowledgeTaskSettings(); - } - - /** Returns the object with the settings used for calls to renewLease. */ - public UnaryCallSettings renewLeaseSettings() { - return ((CloudTasksStubSettings) getStubSettings()).renewLeaseSettings(); - } - - /** Returns the object with the settings used for calls to cancelLease. */ - public UnaryCallSettings cancelLeaseSettings() { - return ((CloudTasksStubSettings) getStubSettings()).cancelLeaseSettings(); - } - - /** Returns the object with the settings used for calls to runTask. */ - public UnaryCallSettings runTaskSettings() { - return ((CloudTasksStubSettings) getStubSettings()).runTaskSettings(); - } - - public static final CloudTasksSettings create(CloudTasksStubSettings stub) throws IOException { - return new CloudTasksSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return CloudTasksStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return CloudTasksStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return CloudTasksStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return CloudTasksStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return CloudTasksStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return CloudTasksStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return CloudTasksStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return CloudTasksStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected CloudTasksSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for CloudTasksSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(CloudTasksStubSettings.newBuilder(clientContext)); - } - - protected Builder(CloudTasksSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(CloudTasksStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(CloudTasksStubSettings.newBuilder()); - } - - @BetaApi - private static Builder createHttpJsonDefault() { - return new Builder(CloudTasksStubSettings.newHttpJsonBuilder()); - } - - public CloudTasksStubSettings.Builder getStubSettingsBuilder() { - return ((CloudTasksStubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to listQueues. */ - public PagedCallSettings.Builder - listQueuesSettings() { - return getStubSettingsBuilder().listQueuesSettings(); - } - - /** Returns the builder for the settings used for calls to getQueue. */ - public UnaryCallSettings.Builder getQueueSettings() { - return getStubSettingsBuilder().getQueueSettings(); - } - - /** Returns the builder for the settings used for calls to createQueue. */ - public UnaryCallSettings.Builder createQueueSettings() { - return getStubSettingsBuilder().createQueueSettings(); - } - - /** Returns the builder for the settings used for calls to updateQueue. */ - public UnaryCallSettings.Builder updateQueueSettings() { - return getStubSettingsBuilder().updateQueueSettings(); - } - - /** Returns the builder for the settings used for calls to deleteQueue. */ - public UnaryCallSettings.Builder deleteQueueSettings() { - return getStubSettingsBuilder().deleteQueueSettings(); - } - - /** Returns the builder for the settings used for calls to purgeQueue. */ - public UnaryCallSettings.Builder purgeQueueSettings() { - return getStubSettingsBuilder().purgeQueueSettings(); - } - - /** Returns the builder for the settings used for calls to pauseQueue. */ - public UnaryCallSettings.Builder pauseQueueSettings() { - return getStubSettingsBuilder().pauseQueueSettings(); - } - - /** Returns the builder for the settings used for calls to resumeQueue. */ - public UnaryCallSettings.Builder resumeQueueSettings() { - return getStubSettingsBuilder().resumeQueueSettings(); - } - - /** Returns the builder for the settings used for calls to getIamPolicy. */ - public UnaryCallSettings.Builder getIamPolicySettings() { - return getStubSettingsBuilder().getIamPolicySettings(); - } - - /** Returns the builder for the settings used for calls to setIamPolicy. */ - public UnaryCallSettings.Builder setIamPolicySettings() { - return getStubSettingsBuilder().setIamPolicySettings(); - } - - /** Returns the builder for the settings used for calls to testIamPermissions. */ - public UnaryCallSettings.Builder - testIamPermissionsSettings() { - return getStubSettingsBuilder().testIamPermissionsSettings(); - } - - /** Returns the builder for the settings used for calls to listTasks. */ - public PagedCallSettings.Builder - listTasksSettings() { - return getStubSettingsBuilder().listTasksSettings(); - } - - /** Returns the builder for the settings used for calls to getTask. */ - public UnaryCallSettings.Builder getTaskSettings() { - return getStubSettingsBuilder().getTaskSettings(); - } - - /** Returns the builder for the settings used for calls to createTask. */ - public UnaryCallSettings.Builder createTaskSettings() { - return getStubSettingsBuilder().createTaskSettings(); - } - - /** Returns the builder for the settings used for calls to deleteTask. */ - public UnaryCallSettings.Builder deleteTaskSettings() { - return getStubSettingsBuilder().deleteTaskSettings(); - } - - /** Returns the builder for the settings used for calls to leaseTasks. */ - public UnaryCallSettings.Builder leaseTasksSettings() { - return getStubSettingsBuilder().leaseTasksSettings(); - } - - /** Returns the builder for the settings used for calls to acknowledgeTask. */ - public UnaryCallSettings.Builder acknowledgeTaskSettings() { - return getStubSettingsBuilder().acknowledgeTaskSettings(); - } - - /** Returns the builder for the settings used for calls to renewLease. */ - public UnaryCallSettings.Builder renewLeaseSettings() { - return getStubSettingsBuilder().renewLeaseSettings(); - } - - /** Returns the builder for the settings used for calls to cancelLease. */ - public UnaryCallSettings.Builder cancelLeaseSettings() { - return getStubSettingsBuilder().cancelLeaseSettings(); - } - - /** Returns the builder for the settings used for calls to runTask. */ - public UnaryCallSettings.Builder runTaskSettings() { - return getStubSettingsBuilder().runTaskSettings(); - } - - @Override - public CloudTasksSettings build() throws IOException { - return new CloudTasksSettings(this); - } - } -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/gapic_metadata.json b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/gapic_metadata.json deleted file mode 100644 index c0501ad8..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/gapic_metadata.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.cloud.tasks.v2beta2", - "libraryPackage": "com.google.cloud.tasks.v2beta2", - "services": { - "CloudTasks": { - "clients": { - "grpc": { - "libraryClient": "CloudTasksClient", - "rpcs": { - "AcknowledgeTask": { - "methods": ["acknowledgeTask", "acknowledgeTask", "acknowledgeTask", "acknowledgeTaskCallable"] - }, - "CancelLease": { - "methods": ["cancelLease", "cancelLease", "cancelLease", "cancelLeaseCallable"] - }, - "CreateQueue": { - "methods": ["createQueue", "createQueue", "createQueue", "createQueueCallable"] - }, - "CreateTask": { - "methods": ["createTask", "createTask", "createTask", "createTaskCallable"] - }, - "DeleteQueue": { - "methods": ["deleteQueue", "deleteQueue", "deleteQueue", "deleteQueueCallable"] - }, - "DeleteTask": { - "methods": ["deleteTask", "deleteTask", "deleteTask", "deleteTaskCallable"] - }, - "GetIamPolicy": { - "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] - }, - "GetQueue": { - "methods": ["getQueue", "getQueue", "getQueue", "getQueueCallable"] - }, - "GetTask": { - "methods": ["getTask", "getTask", "getTask", "getTaskCallable"] - }, - "LeaseTasks": { - "methods": ["leaseTasks", "leaseTasks", "leaseTasks", "leaseTasksCallable"] - }, - "ListQueues": { - "methods": ["listQueues", "listQueues", "listQueues", "listQueuesPagedCallable", "listQueuesCallable"] - }, - "ListTasks": { - "methods": ["listTasks", "listTasks", "listTasks", "listTasksPagedCallable", "listTasksCallable"] - }, - "PauseQueue": { - "methods": ["pauseQueue", "pauseQueue", "pauseQueue", "pauseQueueCallable"] - }, - "PurgeQueue": { - "methods": ["purgeQueue", "purgeQueue", "purgeQueue", "purgeQueueCallable"] - }, - "RenewLease": { - "methods": ["renewLease", "renewLease", "renewLease", "renewLeaseCallable"] - }, - "ResumeQueue": { - "methods": ["resumeQueue", "resumeQueue", "resumeQueue", "resumeQueueCallable"] - }, - "RunTask": { - "methods": ["runTask", "runTask", "runTask", "runTaskCallable"] - }, - "SetIamPolicy": { - "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] - }, - "TestIamPermissions": { - "methods": ["testIamPermissions", "testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"] - }, - "UpdateQueue": { - "methods": ["updateQueue", "updateQueue", "updateQueueCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java deleted file mode 100644 index 40cf04a0..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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. - */ - -/** - * The interfaces provided are listed below, along with usage samples. - * - *

======================= CloudTasksClient ======================= - * - *

Service Description: Cloud Tasks allows developers to manage the execution of background work - * in their applications. - * - *

Sample for CloudTasksClient: - * - *

{@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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
- *   Queue response = cloudTasksClient.getQueue(name);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.cloud.tasks.v2beta2; - -import javax.annotation.Generated; diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStub.java deleted file mode 100644 index accc4342..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStub.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright 2022 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.stub; - -import static com.google.cloud.tasks.v2beta2.CloudTasksClient.ListQueuesPagedResponse; -import static com.google.cloud.tasks.v2beta2.CloudTasksClient.ListTasksPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest; -import com.google.cloud.tasks.v2beta2.CancelLeaseRequest; -import com.google.cloud.tasks.v2beta2.CreateQueueRequest; -import com.google.cloud.tasks.v2beta2.CreateTaskRequest; -import com.google.cloud.tasks.v2beta2.DeleteQueueRequest; -import com.google.cloud.tasks.v2beta2.DeleteTaskRequest; -import com.google.cloud.tasks.v2beta2.GetQueueRequest; -import com.google.cloud.tasks.v2beta2.GetTaskRequest; -import com.google.cloud.tasks.v2beta2.LeaseTasksRequest; -import com.google.cloud.tasks.v2beta2.LeaseTasksResponse; -import com.google.cloud.tasks.v2beta2.ListQueuesRequest; -import com.google.cloud.tasks.v2beta2.ListQueuesResponse; -import com.google.cloud.tasks.v2beta2.ListTasksRequest; -import com.google.cloud.tasks.v2beta2.ListTasksResponse; -import com.google.cloud.tasks.v2beta2.PauseQueueRequest; -import com.google.cloud.tasks.v2beta2.PurgeQueueRequest; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.RenewLeaseRequest; -import com.google.cloud.tasks.v2beta2.ResumeQueueRequest; -import com.google.cloud.tasks.v2beta2.RunTaskRequest; -import com.google.cloud.tasks.v2beta2.Task; -import com.google.cloud.tasks.v2beta2.UpdateQueueRequest; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the CloudTasks service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public abstract class CloudTasksStub implements BackgroundResource { - - public UnaryCallable listQueuesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listQueuesPagedCallable()"); - } - - public UnaryCallable listQueuesCallable() { - throw new UnsupportedOperationException("Not implemented: listQueuesCallable()"); - } - - public UnaryCallable getQueueCallable() { - throw new UnsupportedOperationException("Not implemented: getQueueCallable()"); - } - - public UnaryCallable createQueueCallable() { - throw new UnsupportedOperationException("Not implemented: createQueueCallable()"); - } - - public UnaryCallable updateQueueCallable() { - throw new UnsupportedOperationException("Not implemented: updateQueueCallable()"); - } - - public UnaryCallable deleteQueueCallable() { - throw new UnsupportedOperationException("Not implemented: deleteQueueCallable()"); - } - - public UnaryCallable purgeQueueCallable() { - throw new UnsupportedOperationException("Not implemented: purgeQueueCallable()"); - } - - public UnaryCallable pauseQueueCallable() { - throw new UnsupportedOperationException("Not implemented: pauseQueueCallable()"); - } - - public UnaryCallable resumeQueueCallable() { - throw new UnsupportedOperationException("Not implemented: resumeQueueCallable()"); - } - - public UnaryCallable getIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); - } - - public UnaryCallable setIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); - } - - public UnaryCallable - testIamPermissionsCallable() { - throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); - } - - public UnaryCallable listTasksPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listTasksPagedCallable()"); - } - - public UnaryCallable listTasksCallable() { - throw new UnsupportedOperationException("Not implemented: listTasksCallable()"); - } - - public UnaryCallable getTaskCallable() { - throw new UnsupportedOperationException("Not implemented: getTaskCallable()"); - } - - public UnaryCallable createTaskCallable() { - throw new UnsupportedOperationException("Not implemented: createTaskCallable()"); - } - - public UnaryCallable deleteTaskCallable() { - throw new UnsupportedOperationException("Not implemented: deleteTaskCallable()"); - } - - public UnaryCallable leaseTasksCallable() { - throw new UnsupportedOperationException("Not implemented: leaseTasksCallable()"); - } - - public UnaryCallable acknowledgeTaskCallable() { - throw new UnsupportedOperationException("Not implemented: acknowledgeTaskCallable()"); - } - - public UnaryCallable renewLeaseCallable() { - throw new UnsupportedOperationException("Not implemented: renewLeaseCallable()"); - } - - public UnaryCallable cancelLeaseCallable() { - throw new UnsupportedOperationException("Not implemented: cancelLeaseCallable()"); - } - - public UnaryCallable runTaskCallable() { - throw new UnsupportedOperationException("Not implemented: runTaskCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java deleted file mode 100644 index bac60daf..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java +++ /dev/null @@ -1,911 +0,0 @@ -/* - * Copyright 2022 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.stub; - -import static com.google.cloud.tasks.v2beta2.CloudTasksClient.ListQueuesPagedResponse; -import static com.google.cloud.tasks.v2beta2.CloudTasksClient.ListTasksPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest; -import com.google.cloud.tasks.v2beta2.CancelLeaseRequest; -import com.google.cloud.tasks.v2beta2.CreateQueueRequest; -import com.google.cloud.tasks.v2beta2.CreateTaskRequest; -import com.google.cloud.tasks.v2beta2.DeleteQueueRequest; -import com.google.cloud.tasks.v2beta2.DeleteTaskRequest; -import com.google.cloud.tasks.v2beta2.GetQueueRequest; -import com.google.cloud.tasks.v2beta2.GetTaskRequest; -import com.google.cloud.tasks.v2beta2.LeaseTasksRequest; -import com.google.cloud.tasks.v2beta2.LeaseTasksResponse; -import com.google.cloud.tasks.v2beta2.ListQueuesRequest; -import com.google.cloud.tasks.v2beta2.ListQueuesResponse; -import com.google.cloud.tasks.v2beta2.ListTasksRequest; -import com.google.cloud.tasks.v2beta2.ListTasksResponse; -import com.google.cloud.tasks.v2beta2.PauseQueueRequest; -import com.google.cloud.tasks.v2beta2.PurgeQueueRequest; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.RenewLeaseRequest; -import com.google.cloud.tasks.v2beta2.ResumeQueueRequest; -import com.google.cloud.tasks.v2beta2.RunTaskRequest; -import com.google.cloud.tasks.v2beta2.Task; -import com.google.cloud.tasks.v2beta2.UpdateQueueRequest; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link CloudTasksStub}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (cloudtasks.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getQueue to 30 seconds: - * - *

{@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
- * CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder();
- * cloudTasksSettingsBuilder
- *     .getQueueSettings()
- *     .setRetrySettings(
- *         cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class CloudTasksStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final PagedCallSettings - listQueuesSettings; - private final UnaryCallSettings getQueueSettings; - private final UnaryCallSettings createQueueSettings; - private final UnaryCallSettings updateQueueSettings; - private final UnaryCallSettings deleteQueueSettings; - private final UnaryCallSettings purgeQueueSettings; - private final UnaryCallSettings pauseQueueSettings; - private final UnaryCallSettings resumeQueueSettings; - private final UnaryCallSettings getIamPolicySettings; - private final UnaryCallSettings setIamPolicySettings; - private final UnaryCallSettings - testIamPermissionsSettings; - private final PagedCallSettings - listTasksSettings; - private final UnaryCallSettings getTaskSettings; - private final UnaryCallSettings createTaskSettings; - private final UnaryCallSettings deleteTaskSettings; - private final UnaryCallSettings leaseTasksSettings; - private final UnaryCallSettings acknowledgeTaskSettings; - private final UnaryCallSettings renewLeaseSettings; - private final UnaryCallSettings cancelLeaseSettings; - private final UnaryCallSettings runTaskSettings; - - private static final PagedListDescriptor - LIST_QUEUES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListQueuesRequest injectToken(ListQueuesRequest payload, String token) { - return ListQueuesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListQueuesRequest injectPageSize(ListQueuesRequest payload, int pageSize) { - return ListQueuesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListQueuesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListQueuesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListQueuesResponse payload) { - return payload.getQueuesList() == null - ? ImmutableList.of() - : payload.getQueuesList(); - } - }; - - private static final PagedListDescriptor - LIST_TASKS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListTasksRequest injectToken(ListTasksRequest payload, String token) { - return ListTasksRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListTasksRequest injectPageSize(ListTasksRequest payload, int pageSize) { - return ListTasksRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListTasksRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListTasksResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListTasksResponse payload) { - return payload.getTasksList() == null - ? ImmutableList.of() - : payload.getTasksList(); - } - }; - - private static final PagedListResponseFactory< - ListQueuesRequest, ListQueuesResponse, ListQueuesPagedResponse> - LIST_QUEUES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListQueuesRequest, ListQueuesResponse, ListQueuesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListQueuesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_QUEUES_PAGE_STR_DESC, request, context); - return ListQueuesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListTasksRequest, ListTasksResponse, ListTasksPagedResponse> - LIST_TASKS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListTasksRequest, ListTasksResponse, ListTasksPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListTasksRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_TASKS_PAGE_STR_DESC, request, context); - return ListTasksPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to listQueues. */ - public PagedCallSettings - listQueuesSettings() { - return listQueuesSettings; - } - - /** Returns the object with the settings used for calls to getQueue. */ - public UnaryCallSettings getQueueSettings() { - return getQueueSettings; - } - - /** Returns the object with the settings used for calls to createQueue. */ - public UnaryCallSettings createQueueSettings() { - return createQueueSettings; - } - - /** Returns the object with the settings used for calls to updateQueue. */ - public UnaryCallSettings updateQueueSettings() { - return updateQueueSettings; - } - - /** Returns the object with the settings used for calls to deleteQueue. */ - public UnaryCallSettings deleteQueueSettings() { - return deleteQueueSettings; - } - - /** Returns the object with the settings used for calls to purgeQueue. */ - public UnaryCallSettings purgeQueueSettings() { - return purgeQueueSettings; - } - - /** Returns the object with the settings used for calls to pauseQueue. */ - public UnaryCallSettings pauseQueueSettings() { - return pauseQueueSettings; - } - - /** Returns the object with the settings used for calls to resumeQueue. */ - public UnaryCallSettings resumeQueueSettings() { - return resumeQueueSettings; - } - - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return getIamPolicySettings; - } - - /** Returns the object with the settings used for calls to setIamPolicy. */ - public UnaryCallSettings setIamPolicySettings() { - return setIamPolicySettings; - } - - /** Returns the object with the settings used for calls to testIamPermissions. */ - public UnaryCallSettings - testIamPermissionsSettings() { - return testIamPermissionsSettings; - } - - /** Returns the object with the settings used for calls to listTasks. */ - public PagedCallSettings - listTasksSettings() { - return listTasksSettings; - } - - /** Returns the object with the settings used for calls to getTask. */ - public UnaryCallSettings getTaskSettings() { - return getTaskSettings; - } - - /** Returns the object with the settings used for calls to createTask. */ - public UnaryCallSettings createTaskSettings() { - return createTaskSettings; - } - - /** Returns the object with the settings used for calls to deleteTask. */ - public UnaryCallSettings deleteTaskSettings() { - return deleteTaskSettings; - } - - /** Returns the object with the settings used for calls to leaseTasks. */ - public UnaryCallSettings leaseTasksSettings() { - return leaseTasksSettings; - } - - /** Returns the object with the settings used for calls to acknowledgeTask. */ - public UnaryCallSettings acknowledgeTaskSettings() { - return acknowledgeTaskSettings; - } - - /** Returns the object with the settings used for calls to renewLease. */ - public UnaryCallSettings renewLeaseSettings() { - return renewLeaseSettings; - } - - /** Returns the object with the settings used for calls to cancelLease. */ - public UnaryCallSettings cancelLeaseSettings() { - return cancelLeaseSettings; - } - - /** Returns the object with the settings used for calls to runTask. */ - public UnaryCallSettings runTaskSettings() { - return runTaskSettings; - } - - public CloudTasksStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcCloudTasksStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonCloudTasksStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "cloudtasks.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "cloudtasks.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(CloudTasksStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(CloudTasksStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return CloudTasksStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected CloudTasksStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - listQueuesSettings = settingsBuilder.listQueuesSettings().build(); - getQueueSettings = settingsBuilder.getQueueSettings().build(); - createQueueSettings = settingsBuilder.createQueueSettings().build(); - updateQueueSettings = settingsBuilder.updateQueueSettings().build(); - deleteQueueSettings = settingsBuilder.deleteQueueSettings().build(); - purgeQueueSettings = settingsBuilder.purgeQueueSettings().build(); - pauseQueueSettings = settingsBuilder.pauseQueueSettings().build(); - resumeQueueSettings = settingsBuilder.resumeQueueSettings().build(); - getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); - setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); - testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); - listTasksSettings = settingsBuilder.listTasksSettings().build(); - getTaskSettings = settingsBuilder.getTaskSettings().build(); - createTaskSettings = settingsBuilder.createTaskSettings().build(); - deleteTaskSettings = settingsBuilder.deleteTaskSettings().build(); - leaseTasksSettings = settingsBuilder.leaseTasksSettings().build(); - acknowledgeTaskSettings = settingsBuilder.acknowledgeTaskSettings().build(); - renewLeaseSettings = settingsBuilder.renewLeaseSettings().build(); - cancelLeaseSettings = settingsBuilder.cancelLeaseSettings().build(); - runTaskSettings = settingsBuilder.runTaskSettings().build(); - } - - /** Builder for CloudTasksStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final PagedCallSettings.Builder< - ListQueuesRequest, ListQueuesResponse, ListQueuesPagedResponse> - listQueuesSettings; - private final UnaryCallSettings.Builder getQueueSettings; - private final UnaryCallSettings.Builder createQueueSettings; - private final UnaryCallSettings.Builder updateQueueSettings; - private final UnaryCallSettings.Builder deleteQueueSettings; - private final UnaryCallSettings.Builder purgeQueueSettings; - private final UnaryCallSettings.Builder pauseQueueSettings; - private final UnaryCallSettings.Builder resumeQueueSettings; - private final UnaryCallSettings.Builder getIamPolicySettings; - private final UnaryCallSettings.Builder setIamPolicySettings; - private final UnaryCallSettings.Builder - testIamPermissionsSettings; - private final PagedCallSettings.Builder< - ListTasksRequest, ListTasksResponse, ListTasksPagedResponse> - listTasksSettings; - private final UnaryCallSettings.Builder getTaskSettings; - private final UnaryCallSettings.Builder createTaskSettings; - private final UnaryCallSettings.Builder deleteTaskSettings; - private final UnaryCallSettings.Builder - leaseTasksSettings; - private final UnaryCallSettings.Builder acknowledgeTaskSettings; - private final UnaryCallSettings.Builder renewLeaseSettings; - private final UnaryCallSettings.Builder cancelLeaseSettings; - private final UnaryCallSettings.Builder runTaskSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "retry_policy_0_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); - definitions.put( - "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ofMillis(20000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(20000L)) - .setTotalTimeout(Duration.ofMillis(20000L)) - .build(); - definitions.put("retry_policy_0_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(20000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(20000L)) - .setTotalTimeout(Duration.ofMillis(20000L)) - .build(); - definitions.put("no_retry_1_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - listQueuesSettings = PagedCallSettings.newBuilder(LIST_QUEUES_PAGE_STR_FACT); - getQueueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createQueueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateQueueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteQueueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - purgeQueueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - pauseQueueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - resumeQueueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listTasksSettings = PagedCallSettings.newBuilder(LIST_TASKS_PAGE_STR_FACT); - getTaskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createTaskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteTaskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - leaseTasksSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - acknowledgeTaskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - renewLeaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - cancelLeaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - runTaskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listQueuesSettings, - getQueueSettings, - createQueueSettings, - updateQueueSettings, - deleteQueueSettings, - purgeQueueSettings, - pauseQueueSettings, - resumeQueueSettings, - getIamPolicySettings, - setIamPolicySettings, - testIamPermissionsSettings, - listTasksSettings, - getTaskSettings, - createTaskSettings, - deleteTaskSettings, - leaseTasksSettings, - acknowledgeTaskSettings, - renewLeaseSettings, - cancelLeaseSettings, - runTaskSettings); - initDefaults(this); - } - - protected Builder(CloudTasksStubSettings settings) { - super(settings); - - listQueuesSettings = settings.listQueuesSettings.toBuilder(); - getQueueSettings = settings.getQueueSettings.toBuilder(); - createQueueSettings = settings.createQueueSettings.toBuilder(); - updateQueueSettings = settings.updateQueueSettings.toBuilder(); - deleteQueueSettings = settings.deleteQueueSettings.toBuilder(); - purgeQueueSettings = settings.purgeQueueSettings.toBuilder(); - pauseQueueSettings = settings.pauseQueueSettings.toBuilder(); - resumeQueueSettings = settings.resumeQueueSettings.toBuilder(); - getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); - setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); - testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); - listTasksSettings = settings.listTasksSettings.toBuilder(); - getTaskSettings = settings.getTaskSettings.toBuilder(); - createTaskSettings = settings.createTaskSettings.toBuilder(); - deleteTaskSettings = settings.deleteTaskSettings.toBuilder(); - leaseTasksSettings = settings.leaseTasksSettings.toBuilder(); - acknowledgeTaskSettings = settings.acknowledgeTaskSettings.toBuilder(); - renewLeaseSettings = settings.renewLeaseSettings.toBuilder(); - cancelLeaseSettings = settings.cancelLeaseSettings.toBuilder(); - runTaskSettings = settings.runTaskSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listQueuesSettings, - getQueueSettings, - createQueueSettings, - updateQueueSettings, - deleteQueueSettings, - purgeQueueSettings, - pauseQueueSettings, - resumeQueueSettings, - getIamPolicySettings, - setIamPolicySettings, - testIamPermissionsSettings, - listTasksSettings, - getTaskSettings, - createTaskSettings, - deleteTaskSettings, - leaseTasksSettings, - acknowledgeTaskSettings, - renewLeaseSettings, - cancelLeaseSettings, - runTaskSettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .listQueuesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getQueueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createQueueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .updateQueueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deleteQueueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .purgeQueueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .pauseQueueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .resumeQueueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .getIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .setIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .testIamPermissionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listTasksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getTaskSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createTaskSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deleteTaskSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .leaseTasksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .acknowledgeTaskSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .renewLeaseSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .cancelLeaseSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .runTaskSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to listQueues. */ - public PagedCallSettings.Builder - listQueuesSettings() { - return listQueuesSettings; - } - - /** Returns the builder for the settings used for calls to getQueue. */ - public UnaryCallSettings.Builder getQueueSettings() { - return getQueueSettings; - } - - /** Returns the builder for the settings used for calls to createQueue. */ - public UnaryCallSettings.Builder createQueueSettings() { - return createQueueSettings; - } - - /** Returns the builder for the settings used for calls to updateQueue. */ - public UnaryCallSettings.Builder updateQueueSettings() { - return updateQueueSettings; - } - - /** Returns the builder for the settings used for calls to deleteQueue. */ - public UnaryCallSettings.Builder deleteQueueSettings() { - return deleteQueueSettings; - } - - /** Returns the builder for the settings used for calls to purgeQueue. */ - public UnaryCallSettings.Builder purgeQueueSettings() { - return purgeQueueSettings; - } - - /** Returns the builder for the settings used for calls to pauseQueue. */ - public UnaryCallSettings.Builder pauseQueueSettings() { - return pauseQueueSettings; - } - - /** Returns the builder for the settings used for calls to resumeQueue. */ - public UnaryCallSettings.Builder resumeQueueSettings() { - return resumeQueueSettings; - } - - /** Returns the builder for the settings used for calls to getIamPolicy. */ - public UnaryCallSettings.Builder getIamPolicySettings() { - return getIamPolicySettings; - } - - /** Returns the builder for the settings used for calls to setIamPolicy. */ - public UnaryCallSettings.Builder setIamPolicySettings() { - return setIamPolicySettings; - } - - /** Returns the builder for the settings used for calls to testIamPermissions. */ - public UnaryCallSettings.Builder - testIamPermissionsSettings() { - return testIamPermissionsSettings; - } - - /** Returns the builder for the settings used for calls to listTasks. */ - public PagedCallSettings.Builder - listTasksSettings() { - return listTasksSettings; - } - - /** Returns the builder for the settings used for calls to getTask. */ - public UnaryCallSettings.Builder getTaskSettings() { - return getTaskSettings; - } - - /** Returns the builder for the settings used for calls to createTask. */ - public UnaryCallSettings.Builder createTaskSettings() { - return createTaskSettings; - } - - /** Returns the builder for the settings used for calls to deleteTask. */ - public UnaryCallSettings.Builder deleteTaskSettings() { - return deleteTaskSettings; - } - - /** Returns the builder for the settings used for calls to leaseTasks. */ - public UnaryCallSettings.Builder leaseTasksSettings() { - return leaseTasksSettings; - } - - /** Returns the builder for the settings used for calls to acknowledgeTask. */ - public UnaryCallSettings.Builder acknowledgeTaskSettings() { - return acknowledgeTaskSettings; - } - - /** Returns the builder for the settings used for calls to renewLease. */ - public UnaryCallSettings.Builder renewLeaseSettings() { - return renewLeaseSettings; - } - - /** Returns the builder for the settings used for calls to cancelLease. */ - public UnaryCallSettings.Builder cancelLeaseSettings() { - return cancelLeaseSettings; - } - - /** Returns the builder for the settings used for calls to runTask. */ - public UnaryCallSettings.Builder runTaskSettings() { - return runTaskSettings; - } - - @Override - public CloudTasksStubSettings build() throws IOException { - return new CloudTasksStubSettings(this); - } - } -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksCallableFactory.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksCallableFactory.java deleted file mode 100644 index 1221424e..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2022 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.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the CloudTasks service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcCloudTasksCallableFactory implements GrpcStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, callSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java deleted file mode 100644 index 1218f4ab..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java +++ /dev/null @@ -1,733 +0,0 @@ -/* - * Copyright 2022 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.stub; - -import static com.google.cloud.tasks.v2beta2.CloudTasksClient.ListQueuesPagedResponse; -import static com.google.cloud.tasks.v2beta2.CloudTasksClient.ListTasksPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest; -import com.google.cloud.tasks.v2beta2.CancelLeaseRequest; -import com.google.cloud.tasks.v2beta2.CreateQueueRequest; -import com.google.cloud.tasks.v2beta2.CreateTaskRequest; -import com.google.cloud.tasks.v2beta2.DeleteQueueRequest; -import com.google.cloud.tasks.v2beta2.DeleteTaskRequest; -import com.google.cloud.tasks.v2beta2.GetQueueRequest; -import com.google.cloud.tasks.v2beta2.GetTaskRequest; -import com.google.cloud.tasks.v2beta2.LeaseTasksRequest; -import com.google.cloud.tasks.v2beta2.LeaseTasksResponse; -import com.google.cloud.tasks.v2beta2.ListQueuesRequest; -import com.google.cloud.tasks.v2beta2.ListQueuesResponse; -import com.google.cloud.tasks.v2beta2.ListTasksRequest; -import com.google.cloud.tasks.v2beta2.ListTasksResponse; -import com.google.cloud.tasks.v2beta2.PauseQueueRequest; -import com.google.cloud.tasks.v2beta2.PurgeQueueRequest; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.RenewLeaseRequest; -import com.google.cloud.tasks.v2beta2.ResumeQueueRequest; -import com.google.cloud.tasks.v2beta2.RunTaskRequest; -import com.google.cloud.tasks.v2beta2.Task; -import com.google.cloud.tasks.v2beta2.UpdateQueueRequest; -import com.google.common.collect.ImmutableMap; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the CloudTasks service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcCloudTasksStub extends CloudTasksStub { - private static final MethodDescriptor - listQueuesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/ListQueues") - .setRequestMarshaller(ProtoUtils.marshaller(ListQueuesRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ListQueuesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getQueueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/GetQueue") - .setRequestMarshaller(ProtoUtils.marshaller(GetQueueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Queue.getDefaultInstance())) - .build(); - - private static final MethodDescriptor createQueueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/CreateQueue") - .setRequestMarshaller(ProtoUtils.marshaller(CreateQueueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Queue.getDefaultInstance())) - .build(); - - private static final MethodDescriptor updateQueueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/UpdateQueue") - .setRequestMarshaller(ProtoUtils.marshaller(UpdateQueueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Queue.getDefaultInstance())) - .build(); - - private static final MethodDescriptor deleteQueueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/DeleteQueue") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteQueueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor purgeQueueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/PurgeQueue") - .setRequestMarshaller(ProtoUtils.marshaller(PurgeQueueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Queue.getDefaultInstance())) - .build(); - - private static final MethodDescriptor pauseQueueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/PauseQueue") - .setRequestMarshaller(ProtoUtils.marshaller(PauseQueueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Queue.getDefaultInstance())) - .build(); - - private static final MethodDescriptor resumeQueueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/ResumeQueue") - .setRequestMarshaller(ProtoUtils.marshaller(ResumeQueueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Queue.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/GetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .build(); - - private static final MethodDescriptor setIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/SetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - testIamPermissionsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/TestIamPermissions") - .setRequestMarshaller( - ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listTasksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/ListTasks") - .setRequestMarshaller(ProtoUtils.marshaller(ListTasksRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ListTasksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getTaskMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/GetTask") - .setRequestMarshaller(ProtoUtils.marshaller(GetTaskRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Task.getDefaultInstance())) - .build(); - - private static final MethodDescriptor createTaskMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/CreateTask") - .setRequestMarshaller(ProtoUtils.marshaller(CreateTaskRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Task.getDefaultInstance())) - .build(); - - private static final MethodDescriptor deleteTaskMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/DeleteTask") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteTaskRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - leaseTasksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/LeaseTasks") - .setRequestMarshaller(ProtoUtils.marshaller(LeaseTasksRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(LeaseTasksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - acknowledgeTaskMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/AcknowledgeTask") - .setRequestMarshaller( - ProtoUtils.marshaller(AcknowledgeTaskRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor renewLeaseMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/RenewLease") - .setRequestMarshaller(ProtoUtils.marshaller(RenewLeaseRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Task.getDefaultInstance())) - .build(); - - private static final MethodDescriptor cancelLeaseMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/CancelLease") - .setRequestMarshaller(ProtoUtils.marshaller(CancelLeaseRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Task.getDefaultInstance())) - .build(); - - private static final MethodDescriptor runTaskMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/RunTask") - .setRequestMarshaller(ProtoUtils.marshaller(RunTaskRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Task.getDefaultInstance())) - .build(); - - private final UnaryCallable listQueuesCallable; - private final UnaryCallable listQueuesPagedCallable; - private final UnaryCallable getQueueCallable; - private final UnaryCallable createQueueCallable; - private final UnaryCallable updateQueueCallable; - private final UnaryCallable deleteQueueCallable; - private final UnaryCallable purgeQueueCallable; - private final UnaryCallable pauseQueueCallable; - private final UnaryCallable resumeQueueCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; - private final UnaryCallable listTasksCallable; - private final UnaryCallable listTasksPagedCallable; - private final UnaryCallable getTaskCallable; - private final UnaryCallable createTaskCallable; - private final UnaryCallable deleteTaskCallable; - private final UnaryCallable leaseTasksCallable; - private final UnaryCallable acknowledgeTaskCallable; - private final UnaryCallable renewLeaseCallable; - private final UnaryCallable cancelLeaseCallable; - private final UnaryCallable runTaskCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcCloudTasksStub create(CloudTasksStubSettings settings) - throws IOException { - return new GrpcCloudTasksStub(settings, ClientContext.create(settings)); - } - - public static final GrpcCloudTasksStub create(ClientContext clientContext) throws IOException { - return new GrpcCloudTasksStub(CloudTasksStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcCloudTasksStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcCloudTasksStub( - CloudTasksStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcCloudTasksStub, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected GrpcCloudTasksStub(CloudTasksStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcCloudTasksCallableFactory()); - } - - /** - * Constructs an instance of GrpcCloudTasksStub, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected GrpcCloudTasksStub( - CloudTasksStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings listQueuesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listQueuesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getQueueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getQueueMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings createQueueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createQueueMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings updateQueueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateQueueMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("queue.name", String.valueOf(request.getQueue().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteQueueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteQueueMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings purgeQueueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(purgeQueueMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings pauseQueueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(pauseQueueMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings resumeQueueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(resumeQueueMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings getIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - }) - .build(); - GrpcCallSettings setIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - }) - .build(); - GrpcCallSettings - testIamPermissionsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(testIamPermissionsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - }) - .build(); - GrpcCallSettings listTasksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listTasksMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getTaskTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getTaskMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings createTaskTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createTaskMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteTaskTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteTaskMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings leaseTasksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(leaseTasksMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings acknowledgeTaskTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(acknowledgeTaskMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings renewLeaseTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(renewLeaseMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings cancelLeaseTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(cancelLeaseMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings runTaskTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(runTaskMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - - this.listQueuesCallable = - callableFactory.createUnaryCallable( - listQueuesTransportSettings, settings.listQueuesSettings(), clientContext); - this.listQueuesPagedCallable = - callableFactory.createPagedCallable( - listQueuesTransportSettings, settings.listQueuesSettings(), clientContext); - this.getQueueCallable = - callableFactory.createUnaryCallable( - getQueueTransportSettings, settings.getQueueSettings(), clientContext); - this.createQueueCallable = - callableFactory.createUnaryCallable( - createQueueTransportSettings, settings.createQueueSettings(), clientContext); - this.updateQueueCallable = - callableFactory.createUnaryCallable( - updateQueueTransportSettings, settings.updateQueueSettings(), clientContext); - this.deleteQueueCallable = - callableFactory.createUnaryCallable( - deleteQueueTransportSettings, settings.deleteQueueSettings(), clientContext); - this.purgeQueueCallable = - callableFactory.createUnaryCallable( - purgeQueueTransportSettings, settings.purgeQueueSettings(), clientContext); - this.pauseQueueCallable = - callableFactory.createUnaryCallable( - pauseQueueTransportSettings, settings.pauseQueueSettings(), clientContext); - this.resumeQueueCallable = - callableFactory.createUnaryCallable( - resumeQueueTransportSettings, settings.resumeQueueSettings(), clientContext); - this.getIamPolicyCallable = - callableFactory.createUnaryCallable( - getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); - this.setIamPolicyCallable = - callableFactory.createUnaryCallable( - setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); - this.testIamPermissionsCallable = - callableFactory.createUnaryCallable( - testIamPermissionsTransportSettings, - settings.testIamPermissionsSettings(), - clientContext); - this.listTasksCallable = - callableFactory.createUnaryCallable( - listTasksTransportSettings, settings.listTasksSettings(), clientContext); - this.listTasksPagedCallable = - callableFactory.createPagedCallable( - listTasksTransportSettings, settings.listTasksSettings(), clientContext); - this.getTaskCallable = - callableFactory.createUnaryCallable( - getTaskTransportSettings, settings.getTaskSettings(), clientContext); - this.createTaskCallable = - callableFactory.createUnaryCallable( - createTaskTransportSettings, settings.createTaskSettings(), clientContext); - this.deleteTaskCallable = - callableFactory.createUnaryCallable( - deleteTaskTransportSettings, settings.deleteTaskSettings(), clientContext); - this.leaseTasksCallable = - callableFactory.createUnaryCallable( - leaseTasksTransportSettings, settings.leaseTasksSettings(), clientContext); - this.acknowledgeTaskCallable = - callableFactory.createUnaryCallable( - acknowledgeTaskTransportSettings, settings.acknowledgeTaskSettings(), clientContext); - this.renewLeaseCallable = - callableFactory.createUnaryCallable( - renewLeaseTransportSettings, settings.renewLeaseSettings(), clientContext); - this.cancelLeaseCallable = - callableFactory.createUnaryCallable( - cancelLeaseTransportSettings, settings.cancelLeaseSettings(), clientContext); - this.runTaskCallable = - callableFactory.createUnaryCallable( - runTaskTransportSettings, settings.runTaskSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable listQueuesCallable() { - return listQueuesCallable; - } - - @Override - public UnaryCallable listQueuesPagedCallable() { - return listQueuesPagedCallable; - } - - @Override - public UnaryCallable getQueueCallable() { - return getQueueCallable; - } - - @Override - public UnaryCallable createQueueCallable() { - return createQueueCallable; - } - - @Override - public UnaryCallable updateQueueCallable() { - return updateQueueCallable; - } - - @Override - public UnaryCallable deleteQueueCallable() { - return deleteQueueCallable; - } - - @Override - public UnaryCallable purgeQueueCallable() { - return purgeQueueCallable; - } - - @Override - public UnaryCallable pauseQueueCallable() { - return pauseQueueCallable; - } - - @Override - public UnaryCallable resumeQueueCallable() { - return resumeQueueCallable; - } - - @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; - } - - @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; - } - - @Override - public UnaryCallable - testIamPermissionsCallable() { - return testIamPermissionsCallable; - } - - @Override - public UnaryCallable listTasksCallable() { - return listTasksCallable; - } - - @Override - public UnaryCallable listTasksPagedCallable() { - return listTasksPagedCallable; - } - - @Override - public UnaryCallable getTaskCallable() { - return getTaskCallable; - } - - @Override - public UnaryCallable createTaskCallable() { - return createTaskCallable; - } - - @Override - public UnaryCallable deleteTaskCallable() { - return deleteTaskCallable; - } - - @Override - public UnaryCallable leaseTasksCallable() { - return leaseTasksCallable; - } - - @Override - public UnaryCallable acknowledgeTaskCallable() { - return acknowledgeTaskCallable; - } - - @Override - public UnaryCallable renewLeaseCallable() { - return renewLeaseCallable; - } - - @Override - public UnaryCallable cancelLeaseCallable() { - return cancelLeaseCallable; - } - - @Override - public UnaryCallable runTaskCallable() { - return runTaskCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksCallableFactory.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksCallableFactory.java deleted file mode 100644 index 3ea5df3e..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2022 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.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the CloudTasks service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonCloudTasksCallableFactory - implements HttpJsonStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - HttpJsonCallSettings httpJsonCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createUnaryCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - HttpJsonCallSettings httpJsonCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createPagedCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - HttpJsonCallSettings httpJsonCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createBatchingCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - UnaryCallable innerCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); - HttpJsonOperationSnapshotCallable initialCallable = - new HttpJsonOperationSnapshotCallable( - innerCallable, - httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); - return HttpJsonCallableFactory.createOperationCallable( - callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - HttpJsonCallSettings httpJsonCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createServerStreamingCallable( - httpJsonCallSettings, callSettings, clientContext); - } -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksStub.java deleted file mode 100644 index 1ccc3db0..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/HttpJsonCloudTasksStub.java +++ /dev/null @@ -1,1193 +0,0 @@ -/* - * Copyright 2022 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.stub; - -import static com.google.cloud.tasks.v2beta2.CloudTasksClient.ListQueuesPagedResponse; -import static com.google.cloud.tasks.v2beta2.CloudTasksClient.ListTasksPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest; -import com.google.cloud.tasks.v2beta2.CancelLeaseRequest; -import com.google.cloud.tasks.v2beta2.CreateQueueRequest; -import com.google.cloud.tasks.v2beta2.CreateTaskRequest; -import com.google.cloud.tasks.v2beta2.DeleteQueueRequest; -import com.google.cloud.tasks.v2beta2.DeleteTaskRequest; -import com.google.cloud.tasks.v2beta2.GetQueueRequest; -import com.google.cloud.tasks.v2beta2.GetTaskRequest; -import com.google.cloud.tasks.v2beta2.LeaseTasksRequest; -import com.google.cloud.tasks.v2beta2.LeaseTasksResponse; -import com.google.cloud.tasks.v2beta2.ListQueuesRequest; -import com.google.cloud.tasks.v2beta2.ListQueuesResponse; -import com.google.cloud.tasks.v2beta2.ListTasksRequest; -import com.google.cloud.tasks.v2beta2.ListTasksResponse; -import com.google.cloud.tasks.v2beta2.PauseQueueRequest; -import com.google.cloud.tasks.v2beta2.PurgeQueueRequest; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.RenewLeaseRequest; -import com.google.cloud.tasks.v2beta2.ResumeQueueRequest; -import com.google.cloud.tasks.v2beta2.RunTaskRequest; -import com.google.cloud.tasks.v2beta2.Task; -import com.google.cloud.tasks.v2beta2.UpdateQueueRequest; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the CloudTasks service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonCloudTasksStub extends CloudTasksStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); - - private static final ApiMethodDescriptor - listQueuesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/ListQueues") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta2/{parent=projects/*/locations/*}/queues", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - serializer.putQueryParam(fields, "readMask", request.getReadMask()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListQueuesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor getQueueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/GetQueue") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta2/{name=projects/*/locations/*/queues/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "readMask", request.getReadMask()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Queue.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor createQueueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/CreateQueue") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta2/{parent=projects/*/locations/*}/queues", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create().toBody("queue", request.getQueue(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Queue.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor updateQueueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/UpdateQueue") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta2/{queue.name=projects/*/locations/*/queues/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "queue.name", request.getQueue().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create().toBody("queue", request.getQueue(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Queue.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor deleteQueueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/DeleteQueue") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta2/{name=projects/*/locations/*/queues/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor purgeQueueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/PurgeQueue") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta2/{name=projects/*/locations/*/queues/*}:purge", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Queue.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor pauseQueueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/PauseQueue") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta2/{name=projects/*/locations/*/queues/*}:pause", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Queue.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor resumeQueueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/ResumeQueue") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta2/{name=projects/*/locations/*/queues/*}:resume", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Queue.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/GetIamPolicy") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta2/{resource=projects/*/locations/*/queues/*}:getIamPolicy", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - setIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/SetIamPolicy") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta2/{resource=projects/*/locations/*/queues/*}:setIamPolicy", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - testIamPermissionsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/TestIamPermissions") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta2/{resource=projects/*/locations/*/queues/*}:testIamPermissions", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listTasksMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/ListTasks") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - serializer.putQueryParam( - fields, "responseView", request.getResponseView()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListTasksResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor getTaskMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/GetTask") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "responseView", request.getResponseView()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Task.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor createTaskMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/CreateTask") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Task.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor deleteTaskMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/DeleteTask") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - leaseTasksMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/LeaseTasks") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks:lease", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(LeaseTasksResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - acknowledgeTaskMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/AcknowledgeTask") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:acknowledge", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor renewLeaseMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/RenewLease") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:renewLease", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Task.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor cancelLeaseMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/CancelLease") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:cancelLease", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Task.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor runTaskMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta2.CloudTasks/RunTask") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:run", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Task.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private final UnaryCallable listQueuesCallable; - private final UnaryCallable listQueuesPagedCallable; - private final UnaryCallable getQueueCallable; - private final UnaryCallable createQueueCallable; - private final UnaryCallable updateQueueCallable; - private final UnaryCallable deleteQueueCallable; - private final UnaryCallable purgeQueueCallable; - private final UnaryCallable pauseQueueCallable; - private final UnaryCallable resumeQueueCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; - private final UnaryCallable listTasksCallable; - private final UnaryCallable listTasksPagedCallable; - private final UnaryCallable getTaskCallable; - private final UnaryCallable createTaskCallable; - private final UnaryCallable deleteTaskCallable; - private final UnaryCallable leaseTasksCallable; - private final UnaryCallable acknowledgeTaskCallable; - private final UnaryCallable renewLeaseCallable; - private final UnaryCallable cancelLeaseCallable; - private final UnaryCallable runTaskCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonCloudTasksStub create(CloudTasksStubSettings settings) - throws IOException { - return new HttpJsonCloudTasksStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonCloudTasksStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonCloudTasksStub( - CloudTasksStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonCloudTasksStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonCloudTasksStub( - CloudTasksStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of HttpJsonCloudTasksStub, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected HttpJsonCloudTasksStub(CloudTasksStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new HttpJsonCloudTasksCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonCloudTasksStub, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected HttpJsonCloudTasksStub( - CloudTasksStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - - HttpJsonCallSettings listQueuesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listQueuesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getQueueTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getQueueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings createQueueTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createQueueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings updateQueueTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateQueueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteQueueTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteQueueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings purgeQueueTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(purgeQueueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings pauseQueueTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(pauseQueueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings resumeQueueTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(resumeQueueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getIamPolicyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getIamPolicyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings setIamPolicyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(setIamPolicyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - testIamPermissionsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(testIamPermissionsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings listTasksTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listTasksMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getTaskTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getTaskMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings createTaskTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createTaskMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteTaskTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteTaskMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings leaseTasksTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(leaseTasksMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings acknowledgeTaskTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(acknowledgeTaskMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings renewLeaseTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(renewLeaseMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings cancelLeaseTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(cancelLeaseMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings runTaskTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(runTaskMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - - this.listQueuesCallable = - callableFactory.createUnaryCallable( - listQueuesTransportSettings, settings.listQueuesSettings(), clientContext); - this.listQueuesPagedCallable = - callableFactory.createPagedCallable( - listQueuesTransportSettings, settings.listQueuesSettings(), clientContext); - this.getQueueCallable = - callableFactory.createUnaryCallable( - getQueueTransportSettings, settings.getQueueSettings(), clientContext); - this.createQueueCallable = - callableFactory.createUnaryCallable( - createQueueTransportSettings, settings.createQueueSettings(), clientContext); - this.updateQueueCallable = - callableFactory.createUnaryCallable( - updateQueueTransportSettings, settings.updateQueueSettings(), clientContext); - this.deleteQueueCallable = - callableFactory.createUnaryCallable( - deleteQueueTransportSettings, settings.deleteQueueSettings(), clientContext); - this.purgeQueueCallable = - callableFactory.createUnaryCallable( - purgeQueueTransportSettings, settings.purgeQueueSettings(), clientContext); - this.pauseQueueCallable = - callableFactory.createUnaryCallable( - pauseQueueTransportSettings, settings.pauseQueueSettings(), clientContext); - this.resumeQueueCallable = - callableFactory.createUnaryCallable( - resumeQueueTransportSettings, settings.resumeQueueSettings(), clientContext); - this.getIamPolicyCallable = - callableFactory.createUnaryCallable( - getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); - this.setIamPolicyCallable = - callableFactory.createUnaryCallable( - setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); - this.testIamPermissionsCallable = - callableFactory.createUnaryCallable( - testIamPermissionsTransportSettings, - settings.testIamPermissionsSettings(), - clientContext); - this.listTasksCallable = - callableFactory.createUnaryCallable( - listTasksTransportSettings, settings.listTasksSettings(), clientContext); - this.listTasksPagedCallable = - callableFactory.createPagedCallable( - listTasksTransportSettings, settings.listTasksSettings(), clientContext); - this.getTaskCallable = - callableFactory.createUnaryCallable( - getTaskTransportSettings, settings.getTaskSettings(), clientContext); - this.createTaskCallable = - callableFactory.createUnaryCallable( - createTaskTransportSettings, settings.createTaskSettings(), clientContext); - this.deleteTaskCallable = - callableFactory.createUnaryCallable( - deleteTaskTransportSettings, settings.deleteTaskSettings(), clientContext); - this.leaseTasksCallable = - callableFactory.createUnaryCallable( - leaseTasksTransportSettings, settings.leaseTasksSettings(), clientContext); - this.acknowledgeTaskCallable = - callableFactory.createUnaryCallable( - acknowledgeTaskTransportSettings, settings.acknowledgeTaskSettings(), clientContext); - this.renewLeaseCallable = - callableFactory.createUnaryCallable( - renewLeaseTransportSettings, settings.renewLeaseSettings(), clientContext); - this.cancelLeaseCallable = - callableFactory.createUnaryCallable( - cancelLeaseTransportSettings, settings.cancelLeaseSettings(), clientContext); - this.runTaskCallable = - callableFactory.createUnaryCallable( - runTaskTransportSettings, settings.runTaskSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(listQueuesMethodDescriptor); - methodDescriptors.add(getQueueMethodDescriptor); - methodDescriptors.add(createQueueMethodDescriptor); - methodDescriptors.add(updateQueueMethodDescriptor); - methodDescriptors.add(deleteQueueMethodDescriptor); - methodDescriptors.add(purgeQueueMethodDescriptor); - methodDescriptors.add(pauseQueueMethodDescriptor); - methodDescriptors.add(resumeQueueMethodDescriptor); - methodDescriptors.add(getIamPolicyMethodDescriptor); - methodDescriptors.add(setIamPolicyMethodDescriptor); - methodDescriptors.add(testIamPermissionsMethodDescriptor); - methodDescriptors.add(listTasksMethodDescriptor); - methodDescriptors.add(getTaskMethodDescriptor); - methodDescriptors.add(createTaskMethodDescriptor); - methodDescriptors.add(deleteTaskMethodDescriptor); - methodDescriptors.add(leaseTasksMethodDescriptor); - methodDescriptors.add(acknowledgeTaskMethodDescriptor); - methodDescriptors.add(renewLeaseMethodDescriptor); - methodDescriptors.add(cancelLeaseMethodDescriptor); - methodDescriptors.add(runTaskMethodDescriptor); - return methodDescriptors; - } - - @Override - public UnaryCallable listQueuesCallable() { - return listQueuesCallable; - } - - @Override - public UnaryCallable listQueuesPagedCallable() { - return listQueuesPagedCallable; - } - - @Override - public UnaryCallable getQueueCallable() { - return getQueueCallable; - } - - @Override - public UnaryCallable createQueueCallable() { - return createQueueCallable; - } - - @Override - public UnaryCallable updateQueueCallable() { - return updateQueueCallable; - } - - @Override - public UnaryCallable deleteQueueCallable() { - return deleteQueueCallable; - } - - @Override - public UnaryCallable purgeQueueCallable() { - return purgeQueueCallable; - } - - @Override - public UnaryCallable pauseQueueCallable() { - return pauseQueueCallable; - } - - @Override - public UnaryCallable resumeQueueCallable() { - return resumeQueueCallable; - } - - @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; - } - - @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; - } - - @Override - public UnaryCallable - testIamPermissionsCallable() { - return testIamPermissionsCallable; - } - - @Override - public UnaryCallable listTasksCallable() { - return listTasksCallable; - } - - @Override - public UnaryCallable listTasksPagedCallable() { - return listTasksPagedCallable; - } - - @Override - public UnaryCallable getTaskCallable() { - return getTaskCallable; - } - - @Override - public UnaryCallable createTaskCallable() { - return createTaskCallable; - } - - @Override - public UnaryCallable deleteTaskCallable() { - return deleteTaskCallable; - } - - @Override - public UnaryCallable leaseTasksCallable() { - return leaseTasksCallable; - } - - @Override - public UnaryCallable acknowledgeTaskCallable() { - return acknowledgeTaskCallable; - } - - @Override - public UnaryCallable renewLeaseCallable() { - return renewLeaseCallable; - } - - @Override - public UnaryCallable cancelLeaseCallable() { - return cancelLeaseCallable; - } - - @Override - public UnaryCallable runTaskCallable() { - return runTaskCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java deleted file mode 100644 index 48487c8f..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java +++ /dev/null @@ -1,2772 +0,0 @@ -/* - * Copyright 2022 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.v2beta3; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.tasks.v2beta3.stub.CloudTasksStub; -import com.google.cloud.tasks.v2beta3.stub.CloudTasksStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: Cloud Tasks allows developers to manage the execution of background work in - * their applications. - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

{@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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
- *   Queue response = cloudTasksClient.getQueue(name);
- * }
- * }
- * - *

Note: close() needs to be called on the CloudTasksClient object to clean up resources such as - * threads. In the example above, try-with-resources is used, which automatically calls close(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of CloudTasksSettings to - * create(). For example: - * - *

To customize credentials: - * - *

{@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
- * CloudTasksSettings cloudTasksSettings =
- *     CloudTasksSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@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
- * CloudTasksSettings cloudTasksSettings =
- *     CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build();
- * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
- * }
- * - *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over - * the wire: - * - *

{@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
- * CloudTasksSettings cloudTasksSettings =
- *     CloudTasksSettings.newBuilder()
- *         .setTransportChannelProvider(
- *             CloudTasksSettings.defaultHttpJsonTransportProviderBuilder().build())
- *         .build();
- * CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class CloudTasksClient implements BackgroundResource { - private final CloudTasksSettings settings; - private final CloudTasksStub stub; - - /** Constructs an instance of CloudTasksClient with default settings. */ - public static final CloudTasksClient create() throws IOException { - return create(CloudTasksSettings.newBuilder().build()); - } - - /** - * Constructs an instance of CloudTasksClient, using the given settings. The channels are created - * based on the settings passed in, or defaults for any settings that are not set. - */ - public static final CloudTasksClient create(CloudTasksSettings settings) throws IOException { - return new CloudTasksClient(settings); - } - - /** - * Constructs an instance of CloudTasksClient, using the given stub for making calls. This is for - * advanced usage - prefer using create(CloudTasksSettings). - */ - public static final CloudTasksClient create(CloudTasksStub stub) { - return new CloudTasksClient(stub); - } - - /** - * Constructs an instance of CloudTasksClient, using the given settings. This is protected so that - * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. - */ - protected CloudTasksClient(CloudTasksSettings settings) throws IOException { - this.settings = settings; - this.stub = ((CloudTasksStubSettings) settings.getStubSettings()).createStub(); - } - - protected CloudTasksClient(CloudTasksStub stub) { - this.settings = null; - this.stub = stub; - } - - public final CloudTasksSettings getSettings() { - return settings; - } - - public CloudTasksStub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists queues. - * - *

Queues are returned in lexicographical order. - * - *

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()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The location name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListQueuesPagedResponse listQueues(LocationName parent) { - ListQueuesRequest request = - ListQueuesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); - return listQueues(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists queues. - * - *

Queues are returned in lexicographical order. - * - *

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 parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The location name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListQueuesPagedResponse listQueues(String parent) { - ListQueuesRequest request = ListQueuesRequest.newBuilder().setParent(parent).build(); - return listQueues(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists queues. - * - *

Queues are returned in lexicographical order. - * - *

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()) {
-   *   ListQueuesRequest request =
-   *       ListQueuesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   for (Queue element : cloudTasksClient.listQueues(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @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 ListQueuesPagedResponse listQueues(ListQueuesRequest request) { - return listQueuesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists queues. - * - *

Queues are returned in lexicographical order. - * - *

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()) {
-   *   ListQueuesRequest request =
-   *       ListQueuesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.listQueuesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Queue element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listQueuesPagedCallable() { - return stub.listQueuesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists queues. - * - *

Queues are returned in lexicographical order. - * - *

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()) {
-   *   ListQueuesRequest request =
-   *       ListQueuesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   while (true) {
-   *     ListQueuesResponse response = cloudTasksClient.listQueuesCallable().call(request);
-   *     for (Queue element : response.getQueuesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listQueuesCallable() { - return stub.listQueuesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a queue. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Queue response = cloudTasksClient.getQueue(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the queue. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue getQueue(QueueName name) { - GetQueueRequest request = - GetQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a queue. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Queue response = cloudTasksClient.getQueue(name);
-   * }
-   * }
- * - * @param name Required. The resource name of the queue. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue getQueue(String name) { - GetQueueRequest request = GetQueueRequest.newBuilder().setName(name).build(); - return getQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a queue. - * - *

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()) {
-   *   GetQueueRequest request =
-   *       GetQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Queue response = cloudTasksClient.getQueue(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 Queue getQueue(GetQueueRequest request) { - return getQueueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a queue. - * - *

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()) {
-   *   GetQueueRequest request =
-   *       GetQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.getQueueCallable().futureCall(request);
-   *   // Do something.
-   *   Queue response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getQueueCallable() { - return stub.getQueueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a queue. - * - *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task - * is 31 days old, the task will be deleted regardless of whether it was dispatched or not. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   Queue queue = Queue.newBuilder().build();
-   *   Queue response = cloudTasksClient.createQueue(parent, queue);
-   * }
-   * }
- * - * @param parent Required. The location name in which the queue will be created. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID` - *

The list of allowed locations can be obtained by calling Cloud Tasks' implementation of - * [ListLocations][google.cloud.location.Locations.ListLocations]. - * @param queue Required. The queue to create. - *

[Queue's name][google.cloud.tasks.v2beta3.Queue.name] cannot be the same as an existing - * queue. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue createQueue(LocationName parent, Queue queue) { - CreateQueueRequest request = - CreateQueueRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setQueue(queue) - .build(); - return createQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a queue. - * - *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task - * is 31 days old, the task will be deleted regardless of whether it was dispatched or not. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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 parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   Queue queue = Queue.newBuilder().build();
-   *   Queue response = cloudTasksClient.createQueue(parent, queue);
-   * }
-   * }
- * - * @param parent Required. The location name in which the queue will be created. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID` - *

The list of allowed locations can be obtained by calling Cloud Tasks' implementation of - * [ListLocations][google.cloud.location.Locations.ListLocations]. - * @param queue Required. The queue to create. - *

[Queue's name][google.cloud.tasks.v2beta3.Queue.name] cannot be the same as an existing - * queue. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue createQueue(String parent, Queue queue) { - CreateQueueRequest request = - CreateQueueRequest.newBuilder().setParent(parent).setQueue(queue).build(); - return createQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a queue. - * - *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task - * is 31 days old, the task will be deleted regardless of whether it was dispatched or not. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   CreateQueueRequest request =
-   *       CreateQueueRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setQueue(Queue.newBuilder().build())
-   *           .build();
-   *   Queue response = cloudTasksClient.createQueue(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 Queue createQueue(CreateQueueRequest request) { - return createQueueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a queue. - * - *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task - * is 31 days old, the task will be deleted regardless of whether it was dispatched or not. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   CreateQueueRequest request =
-   *       CreateQueueRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setQueue(Queue.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.createQueueCallable().futureCall(request);
-   *   // Do something.
-   *   Queue response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createQueueCallable() { - return stub.createQueueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a queue. - * - *

This method creates the queue if it does not exist and updates the queue if it does exist. - * - *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task - * is 31 days old, the task will be deleted regardless of whether it was dispatched or not. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   Queue queue = Queue.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Queue response = cloudTasksClient.updateQueue(queue, updateMask);
-   * }
-   * }
- * - * @param queue Required. The queue to create or update. - *

The queue's [name][google.cloud.tasks.v2beta3.Queue.name] must be specified. - *

Output only fields cannot be modified using UpdateQueue. Any value specified for an - * output only field will be ignored. The queue's - * [name][google.cloud.tasks.v2beta3.Queue.name] cannot be changed. - * @param updateMask A mask used to specify which fields of the queue are being updated. - *

If empty, then all fields will be updated. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue updateQueue(Queue queue, FieldMask updateMask) { - UpdateQueueRequest request = - UpdateQueueRequest.newBuilder().setQueue(queue).setUpdateMask(updateMask).build(); - return updateQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a queue. - * - *

This method creates the queue if it does not exist and updates the queue if it does exist. - * - *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task - * is 31 days old, the task will be deleted regardless of whether it was dispatched or not. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   UpdateQueueRequest request =
-   *       UpdateQueueRequest.newBuilder()
-   *           .setQueue(Queue.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Queue response = cloudTasksClient.updateQueue(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 Queue updateQueue(UpdateQueueRequest request) { - return updateQueueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a queue. - * - *

This method creates the queue if it does not exist and updates the queue if it does exist. - * - *

Queues created with this method allow tasks to live for a maximum of 31 days. After a task - * is 31 days old, the task will be deleted regardless of whether it was dispatched or not. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   UpdateQueueRequest request =
-   *       UpdateQueueRequest.newBuilder()
-   *           .setQueue(Queue.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.updateQueueCallable().futureCall(request);
-   *   // Do something.
-   *   Queue response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateQueueCallable() { - return stub.updateQueueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a queue. - * - *

This command will delete the queue even if it has tasks in it. - * - *

Note: If you delete a queue, a queue with the same name can't be created for 7 days. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   cloudTasksClient.deleteQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteQueue(QueueName name) { - DeleteQueueRequest request = - DeleteQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a queue. - * - *

This command will delete the queue even if it has tasks in it. - * - *

Note: If you delete a queue, a queue with the same name can't be created for 7 days. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   cloudTasksClient.deleteQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteQueue(String name) { - DeleteQueueRequest request = DeleteQueueRequest.newBuilder().setName(name).build(); - deleteQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a queue. - * - *

This command will delete the queue even if it has tasks in it. - * - *

Note: If you delete a queue, a queue with the same name can't be created for 7 days. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   DeleteQueueRequest request =
-   *       DeleteQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   cloudTasksClient.deleteQueue(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 void deleteQueue(DeleteQueueRequest request) { - deleteQueueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a queue. - * - *

This command will delete the queue even if it has tasks in it. - * - *

Note: If you delete a queue, a queue with the same name can't be created for 7 days. - * - *

WARNING: Using this method may have unintended side effects if you are using an App Engine - * `queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and - * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method. - * - *

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()) {
-   *   DeleteQueueRequest request =
-   *       DeleteQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.deleteQueueCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteQueueCallable() { - return stub.deleteQueueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Purges a queue by deleting all of its tasks. - * - *

All tasks created before this method is called are permanently deleted. - * - *

Purge operations can take up to one minute to take effect. Tasks might be dispatched before - * the purge takes effect. A purge is irreversible. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Queue response = cloudTasksClient.purgeQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue purgeQueue(QueueName name) { - PurgeQueueRequest request = - PurgeQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return purgeQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Purges a queue by deleting all of its tasks. - * - *

All tasks created before this method is called are permanently deleted. - * - *

Purge operations can take up to one minute to take effect. Tasks might be dispatched before - * the purge takes effect. A purge is irreversible. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Queue response = cloudTasksClient.purgeQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue purgeQueue(String name) { - PurgeQueueRequest request = PurgeQueueRequest.newBuilder().setName(name).build(); - return purgeQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Purges a queue by deleting all of its tasks. - * - *

All tasks created before this method is called are permanently deleted. - * - *

Purge operations can take up to one minute to take effect. Tasks might be dispatched before - * the purge takes effect. A purge is irreversible. - * - *

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()) {
-   *   PurgeQueueRequest request =
-   *       PurgeQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   Queue response = cloudTasksClient.purgeQueue(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 Queue purgeQueue(PurgeQueueRequest request) { - return purgeQueueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Purges a queue by deleting all of its tasks. - * - *

All tasks created before this method is called are permanently deleted. - * - *

Purge operations can take up to one minute to take effect. Tasks might be dispatched before - * the purge takes effect. A purge is irreversible. - * - *

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()) {
-   *   PurgeQueueRequest request =
-   *       PurgeQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.purgeQueueCallable().futureCall(request);
-   *   // Do something.
-   *   Queue response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable purgeQueueCallable() { - return stub.purgeQueueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Pauses the queue. - * - *

If a queue is paused then the system will stop dispatching tasks until the queue is resumed - * via [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue]. Tasks can still be added - * when the queue is paused. A queue is paused if its - * [state][google.cloud.tasks.v2beta3.Queue.state] is - * [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED]. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Queue response = cloudTasksClient.pauseQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue pauseQueue(QueueName name) { - PauseQueueRequest request = - PauseQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return pauseQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Pauses the queue. - * - *

If a queue is paused then the system will stop dispatching tasks until the queue is resumed - * via [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue]. Tasks can still be added - * when the queue is paused. A queue is paused if its - * [state][google.cloud.tasks.v2beta3.Queue.state] is - * [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED]. - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Queue response = cloudTasksClient.pauseQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue pauseQueue(String name) { - PauseQueueRequest request = PauseQueueRequest.newBuilder().setName(name).build(); - return pauseQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Pauses the queue. - * - *

If a queue is paused then the system will stop dispatching tasks until the queue is resumed - * via [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue]. Tasks can still be added - * when the queue is paused. A queue is paused if its - * [state][google.cloud.tasks.v2beta3.Queue.state] is - * [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED]. - * - *

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()) {
-   *   PauseQueueRequest request =
-   *       PauseQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   Queue response = cloudTasksClient.pauseQueue(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 Queue pauseQueue(PauseQueueRequest request) { - return pauseQueueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Pauses the queue. - * - *

If a queue is paused then the system will stop dispatching tasks until the queue is resumed - * via [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue]. Tasks can still be added - * when the queue is paused. A queue is paused if its - * [state][google.cloud.tasks.v2beta3.Queue.state] is - * [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED]. - * - *

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()) {
-   *   PauseQueueRequest request =
-   *       PauseQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.pauseQueueCallable().futureCall(request);
-   *   // Do something.
-   *   Queue response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable pauseQueueCallable() { - return stub.pauseQueueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resume a queue. - * - *

This method resumes a queue after it has been - * [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED] or - * [DISABLED][google.cloud.tasks.v2beta3.Queue.State.DISABLED]. The state of a queue is stored in - * the queue's [state][google.cloud.tasks.v2beta3.Queue.state]; after calling this method it will - * be set to [RUNNING][google.cloud.tasks.v2beta3.Queue.State.RUNNING]. - * - *

WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If - * you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud - * Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Queue response = cloudTasksClient.resumeQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue resumeQueue(QueueName name) { - ResumeQueueRequest request = - ResumeQueueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return resumeQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resume a queue. - * - *

This method resumes a queue after it has been - * [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED] or - * [DISABLED][google.cloud.tasks.v2beta3.Queue.State.DISABLED]. The state of a queue is stored in - * the queue's [state][google.cloud.tasks.v2beta3.Queue.state]; after calling this method it will - * be set to [RUNNING][google.cloud.tasks.v2beta3.Queue.State.RUNNING]. - * - *

WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If - * you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud - * Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). - * - *

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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Queue response = cloudTasksClient.resumeQueue(name);
-   * }
-   * }
- * - * @param name Required. The queue name. For example: - * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Queue resumeQueue(String name) { - ResumeQueueRequest request = ResumeQueueRequest.newBuilder().setName(name).build(); - return resumeQueue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resume a queue. - * - *

This method resumes a queue after it has been - * [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED] or - * [DISABLED][google.cloud.tasks.v2beta3.Queue.State.DISABLED]. The state of a queue is stored in - * the queue's [state][google.cloud.tasks.v2beta3.Queue.state]; after calling this method it will - * be set to [RUNNING][google.cloud.tasks.v2beta3.Queue.State.RUNNING]. - * - *

WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If - * you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud - * Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). - * - *

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()) {
-   *   ResumeQueueRequest request =
-   *       ResumeQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   Queue response = cloudTasksClient.resumeQueue(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 Queue resumeQueue(ResumeQueueRequest request) { - return resumeQueueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Resume a queue. - * - *

This method resumes a queue after it has been - * [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED] or - * [DISABLED][google.cloud.tasks.v2beta3.Queue.State.DISABLED]. The state of a queue is stored in - * the queue's [state][google.cloud.tasks.v2beta3.Queue.state]; after calling this method it will - * be set to [RUNNING][google.cloud.tasks.v2beta3.Queue.State.RUNNING]. - * - *

WARNING: Resuming many high-QPS queues at the same time can lead to target overloading. If - * you are resuming high-QPS queues, follow the 500/50/5 pattern described in [Managing Cloud - * Tasks Scaling Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). - * - *

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()) {
-   *   ResumeQueueRequest request =
-   *       ResumeQueueRequest.newBuilder()
-   *           .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.resumeQueueCallable().futureCall(request);
-   *   // Do something.
-   *   Queue response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable resumeQueueCallable() { - return stub.resumeQueueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Returns an - * empty policy if the resource exists and does not have a policy set. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.getIamPolicy` - *
- * - *

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()) {
-   *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Policy response = cloudTasksClient.getIamPolicy(resource);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy getIamPolicy(ResourceName resource) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(resource == null ? null : resource.toString()) - .build(); - return getIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Returns an - * empty policy if the resource exists and does not have a policy set. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.getIamPolicy` - *
- * - *

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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Policy response = cloudTasksClient.getIamPolicy(resource);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy getIamPolicy(String resource) { - GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); - return getIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Returns an - * empty policy if the resource exists and does not have a policy set. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.getIamPolicy` - *
- * - *

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()) {
-   *   GetIamPolicyRequest request =
-   *       GetIamPolicyRequest.newBuilder()
-   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setOptions(GetPolicyOptions.newBuilder().build())
-   *           .build();
-   *   Policy response = cloudTasksClient.getIamPolicy(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 Policy getIamPolicy(GetIamPolicyRequest request) { - return getIamPolicyCallable().call(request); - } - - public final Policy getIamPolicy(QueueName queueName) { - return getIamPolicy((ResourceName) queueName); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Returns an - * empty policy if the resource exists and does not have a policy set. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.getIamPolicy` - *
- * - *

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()) {
-   *   GetIamPolicyRequest request =
-   *       GetIamPolicyRequest.newBuilder()
-   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setOptions(GetPolicyOptions.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.getIamPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   Policy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getIamPolicyCallable() { - return stub.getIamPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Replaces any - * existing policy. - * - *

Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level - * permissions are required to use the Cloud Console. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.setIamPolicy` - *
- * - *

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()) {
-   *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Policy policy = Policy.newBuilder().build();
-   *   Policy response = cloudTasksClient.setIamPolicy(resource, policy);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the - * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud - * Platform services (such as Projects) might reject them. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(resource == null ? null : resource.toString()) - .setPolicy(policy) - .build(); - return setIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Replaces any - * existing policy. - * - *

Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level - * permissions are required to use the Cloud Console. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.setIamPolicy` - *
- * - *

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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Policy policy = Policy.newBuilder().build();
-   *   Policy response = cloudTasksClient.setIamPolicy(resource, policy);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the - * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud - * Platform services (such as Projects) might reject them. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy setIamPolicy(String resource, Policy policy) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); - return setIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Replaces any - * existing policy. - * - *

Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level - * permissions are required to use the Cloud Console. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.setIamPolicy` - *
- * - *

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()) {
-   *   SetIamPolicyRequest request =
-   *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setPolicy(Policy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Policy response = cloudTasksClient.setIamPolicy(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 Policy setIamPolicy(SetIamPolicyRequest request) { - return setIamPolicyCallable().call(request); - } - - public final Policy setIamPolicy(QueueName queue, Policy policy) { - return setIamPolicy((ResourceName) queue, policy); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Replaces any - * existing policy. - * - *

Note: The Cloud Console does not check queue-level IAM permissions yet. Project-level - * permissions are required to use the Cloud Console. - * - *

Authorization requires the following [Google IAM](https://cloud.google.com/iam) permission - * on the specified resource parent: - * - *

    - *
  • `cloudtasks.queues.setIamPolicy` - *
- * - *

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()) {
-   *   SetIamPolicyRequest request =
-   *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setPolicy(Policy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.setIamPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   Policy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable setIamPolicyCallable() { - return stub.setIamPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta3.Queue]. If the - * resource does not exist, this will return an empty set of permissions, not a - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. - * - *

Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without - * warning. - * - *

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()) {
-   *   ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   List permissions = new ArrayList<>();
-   *   TestIamPermissionsResponse response =
-   *       cloudTasksClient.testIamPermissions(resource, permissions);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See the - * operation documentation for the appropriate value for this field. - * @param permissions The set of permissions to check for the `resource`. Permissions with - * wildcards (such as '*' or 'storage.*') are not allowed. For more information see - * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(resource == null ? null : resource.toString()) - .addAllPermissions(permissions) - .build(); - return testIamPermissions(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta3.Queue]. If the - * resource does not exist, this will return an empty set of permissions, not a - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. - * - *

Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without - * warning. - * - *

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 resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   List permissions = new ArrayList<>();
-   *   TestIamPermissionsResponse response =
-   *       cloudTasksClient.testIamPermissions(resource, permissions);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See the - * operation documentation for the appropriate value for this field. - * @param permissions The set of permissions to check for the `resource`. Permissions with - * wildcards (such as '*' or 'storage.*') are not allowed. For more information see - * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TestIamPermissionsResponse testIamPermissions( - String resource, List permissions) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(resource) - .addAllPermissions(permissions) - .build(); - return testIamPermissions(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta3.Queue]. If the - * resource does not exist, this will return an empty set of permissions, not a - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. - * - *

Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without - * warning. - * - *

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()) {
-   *   TestIamPermissionsRequest request =
-   *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .addAllPermissions(new ArrayList())
-   *           .build();
-   *   TestIamPermissionsResponse response = cloudTasksClient.testIamPermissions(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 TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { - return testIamPermissionsCallable().call(request); - } - - public final TestIamPermissionsResponse testIamPermissions( - QueueName queue, List permissions) { - return testIamPermissions((ResourceName) queue, permissions); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta3.Queue]. If the - * resource does not exist, this will return an empty set of permissions, not a - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. - * - *

Note: This operation is designed to be used for building permission-aware UIs and - * command-line tools, not for authorization checking. This operation may "fail open" without - * warning. - * - *

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()) {
-   *   TestIamPermissionsRequest request =
-   *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .addAllPermissions(new ArrayList())
-   *           .build();
-   *   ApiFuture future =
-   *       cloudTasksClient.testIamPermissionsCallable().futureCall(request);
-   *   // Do something.
-   *   TestIamPermissionsResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - testIamPermissionsCallable() { - return stub.testIamPermissionsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the tasks in a queue. - * - *

By default, only the [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC] view is retrieved - * due to performance considerations; - * [response_view][google.cloud.tasks.v2beta3.ListTasksRequest.response_view] controls the subset - * of information which is returned. - * - *

The tasks may be returned in any order. The ordering may change at any time. - * - *

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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The queue name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListTasksPagedResponse listTasks(QueueName parent) { - ListTasksRequest request = - ListTasksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); - return listTasks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the tasks in a queue. - * - *

By default, only the [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC] view is retrieved - * due to performance considerations; - * [response_view][google.cloud.tasks.v2beta3.ListTasksRequest.response_view] controls the subset - * of information which is returned. - * - *

The tasks may be returned in any order. The ordering may change at any time. - * - *

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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The queue name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListTasksPagedResponse listTasks(String parent) { - ListTasksRequest request = ListTasksRequest.newBuilder().setParent(parent).build(); - return listTasks(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the tasks in a queue. - * - *

By default, only the [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC] view is retrieved - * due to performance considerations; - * [response_view][google.cloud.tasks.v2beta3.ListTasksRequest.response_view] controls the subset - * of information which is returned. - * - *

The tasks may be returned in any order. The ordering may change at any time. - * - *

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()) {
-   *   ListTasksRequest request =
-   *       ListTasksRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (Task element : cloudTasksClient.listTasks(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @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 ListTasksPagedResponse listTasks(ListTasksRequest request) { - return listTasksPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the tasks in a queue. - * - *

By default, only the [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC] view is retrieved - * due to performance considerations; - * [response_view][google.cloud.tasks.v2beta3.ListTasksRequest.response_view] controls the subset - * of information which is returned. - * - *

The tasks may be returned in any order. The ordering may change at any time. - * - *

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()) {
-   *   ListTasksRequest request =
-   *       ListTasksRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.listTasksPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Task element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listTasksPagedCallable() { - return stub.listTasksPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists the tasks in a queue. - * - *

By default, only the [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC] view is retrieved - * due to performance considerations; - * [response_view][google.cloud.tasks.v2beta3.ListTasksRequest.response_view] controls the subset - * of information which is returned. - * - *

The tasks may be returned in any order. The ordering may change at any time. - * - *

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()) {
-   *   ListTasksRequest request =
-   *       ListTasksRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListTasksResponse response = cloudTasksClient.listTasksCallable().call(request);
-   *     for (Task element : response.getTasksList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listTasksCallable() { - return stub.listTasksCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a task. - * - *

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()) {
-   *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
-   *   Task response = cloudTasksClient.getTask(name);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task getTask(TaskName name) { - GetTaskRequest request = - GetTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a task. - * - *

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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
-   *   Task response = cloudTasksClient.getTask(name);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task getTask(String name) { - GetTaskRequest request = GetTaskRequest.newBuilder().setName(name).build(); - return getTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a task. - * - *

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()) {
-   *   GetTaskRequest request =
-   *       GetTaskRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .build();
-   *   Task response = cloudTasksClient.getTask(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 Task getTask(GetTaskRequest request) { - return getTaskCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a task. - * - *

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()) {
-   *   GetTaskRequest request =
-   *       GetTaskRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.getTaskCallable().futureCall(request);
-   *   // Do something.
-   *   Task response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getTaskCallable() { - return stub.getTaskCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a task and adds it to a queue. - * - *

Tasks cannot be updated after creation; there is no UpdateTask command. - * - *

    - *
  • The maximum task size is 100KB. - *
- * - *

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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
-   *   Task task = Task.newBuilder().build();
-   *   Task response = cloudTasksClient.createTask(parent, task);
-   * }
-   * }
- * - * @param parent Required. The queue name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - *

The queue must already exist. - * @param task Required. The task to add. - *

Task names have the following format: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. The user can - * optionally specify a task [name][google.cloud.tasks.v2beta3.Task.name]. If a name is not - * specified then the system will generate a random unique task id, which will be set in the - * task returned in the [response][google.cloud.tasks.v2beta3.Task.name]. - *

If [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] is not set or is in - * the past then Cloud Tasks will set it to the current time. - *

Task De-duplication: - *

Explicitly specifying a task ID enables task de-duplication. If a task's ID is identical - * to that of an existing task or a task that was deleted or executed recently then the call - * will fail with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. If the task's queue was - * created using Cloud Tasks, then another task with the same name can't be created for ~1hour - * after the original task was deleted or executed. If the task's queue was created using - * queue.yaml or queue.xml, then another task with the same name can't be created for ~9days - * after the original task was deleted or executed. - *

Because there is an extra lookup cost to identify duplicate task names, these - * [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] calls have significantly - * increased latency. Using hashed strings for the task id or for the prefix of the task id is - * recommended. Choosing task ids that are sequential or have sequential prefixes, for example - * using a timestamp, causes an increase in latency and error rates in all task commands. The - * infrastructure relies on an approximately uniform distribution of task ids to store and - * serve tasks efficiently. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task createTask(QueueName parent, Task task) { - CreateTaskRequest request = - CreateTaskRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTask(task) - .build(); - return createTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a task and adds it to a queue. - * - *

Tasks cannot be updated after creation; there is no UpdateTask command. - * - *

    - *
  • The maximum task size is 100KB. - *
- * - *

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 parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString();
-   *   Task task = Task.newBuilder().build();
-   *   Task response = cloudTasksClient.createTask(parent, task);
-   * }
-   * }
- * - * @param parent Required. The queue name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - *

The queue must already exist. - * @param task Required. The task to add. - *

Task names have the following format: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. The user can - * optionally specify a task [name][google.cloud.tasks.v2beta3.Task.name]. If a name is not - * specified then the system will generate a random unique task id, which will be set in the - * task returned in the [response][google.cloud.tasks.v2beta3.Task.name]. - *

If [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] is not set or is in - * the past then Cloud Tasks will set it to the current time. - *

Task De-duplication: - *

Explicitly specifying a task ID enables task de-duplication. If a task's ID is identical - * to that of an existing task or a task that was deleted or executed recently then the call - * will fail with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. If the task's queue was - * created using Cloud Tasks, then another task with the same name can't be created for ~1hour - * after the original task was deleted or executed. If the task's queue was created using - * queue.yaml or queue.xml, then another task with the same name can't be created for ~9days - * after the original task was deleted or executed. - *

Because there is an extra lookup cost to identify duplicate task names, these - * [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] calls have significantly - * increased latency. Using hashed strings for the task id or for the prefix of the task id is - * recommended. Choosing task ids that are sequential or have sequential prefixes, for example - * using a timestamp, causes an increase in latency and error rates in all task commands. The - * infrastructure relies on an approximately uniform distribution of task ids to store and - * serve tasks efficiently. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task createTask(String parent, Task task) { - CreateTaskRequest request = - CreateTaskRequest.newBuilder().setParent(parent).setTask(task).build(); - return createTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a task and adds it to a queue. - * - *

Tasks cannot be updated after creation; there is no UpdateTask command. - * - *

    - *
  • The maximum task size is 100KB. - *
- * - *

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()) {
-   *   CreateTaskRequest request =
-   *       CreateTaskRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setTask(Task.newBuilder().build())
-   *           .build();
-   *   Task response = cloudTasksClient.createTask(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 Task createTask(CreateTaskRequest request) { - return createTaskCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a task and adds it to a queue. - * - *

Tasks cannot be updated after creation; there is no UpdateTask command. - * - *

    - *
  • The maximum task size is 100KB. - *
- * - *

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()) {
-   *   CreateTaskRequest request =
-   *       CreateTaskRequest.newBuilder()
-   *           .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
-   *           .setTask(Task.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.createTaskCallable().futureCall(request);
-   *   // Do something.
-   *   Task response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createTaskCallable() { - return stub.createTaskCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a task. - * - *

A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has - * executed successfully or permanently failed. - * - *

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()) {
-   *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
-   *   cloudTasksClient.deleteTask(name);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteTask(TaskName name) { - DeleteTaskRequest request = - DeleteTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a task. - * - *

A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has - * executed successfully or permanently failed. - * - *

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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
-   *   cloudTasksClient.deleteTask(name);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteTask(String name) { - DeleteTaskRequest request = DeleteTaskRequest.newBuilder().setName(name).build(); - deleteTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a task. - * - *

A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has - * executed successfully or permanently failed. - * - *

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()) {
-   *   DeleteTaskRequest request =
-   *       DeleteTaskRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .build();
-   *   cloudTasksClient.deleteTask(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 void deleteTask(DeleteTaskRequest request) { - deleteTaskCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a task. - * - *

A task can be deleted if it is scheduled or dispatched. A task cannot be deleted if it has - * executed successfully or permanently failed. - * - *

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()) {
-   *   DeleteTaskRequest request =
-   *       DeleteTaskRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.deleteTaskCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteTaskCallable() { - return stub.deleteTaskCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Forces a task to run now. - * - *

When this method is called, Cloud Tasks will dispatch the task, even if the task is already - * running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta3.RateLimits] or is - * [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED]. - * - *

This command is meant to be used for manual debugging. For example, - * [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] can be used to retry a failed task - * after a fix has been made or to manually force a task to be dispatched now. - * - *

The dispatched task is returned. That is, the task that is returned contains the - * [status][Task.status] after the task is dispatched but before the task is received by its - * target. - * - *

If Cloud Tasks receives a successful response from the task's target, then the task will be - * deleted; otherwise the task's [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] - * will be reset to the time that [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] was - * called plus the retry delay specified in the queue's - * [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig]. - * - *

[RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] returns - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a task that has already succeeded - * or permanently failed. - * - *

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()) {
-   *   TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]");
-   *   Task response = cloudTasksClient.runTask(name);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task runTask(TaskName name) { - RunTaskRequest request = - RunTaskRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return runTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Forces a task to run now. - * - *

When this method is called, Cloud Tasks will dispatch the task, even if the task is already - * running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta3.RateLimits] or is - * [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED]. - * - *

This command is meant to be used for manual debugging. For example, - * [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] can be used to retry a failed task - * after a fix has been made or to manually force a task to be dispatched now. - * - *

The dispatched task is returned. That is, the task that is returned contains the - * [status][Task.status] after the task is dispatched but before the task is received by its - * target. - * - *

If Cloud Tasks receives a successful response from the task's target, then the task will be - * deleted; otherwise the task's [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] - * will be reset to the time that [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] was - * called plus the retry delay specified in the queue's - * [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig]. - * - *

[RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] returns - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a task that has already succeeded - * or permanently failed. - * - *

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 name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString();
-   *   Task response = cloudTasksClient.runTask(name);
-   * }
-   * }
- * - * @param name Required. The task name. For example: - * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Task runTask(String name) { - RunTaskRequest request = RunTaskRequest.newBuilder().setName(name).build(); - return runTask(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Forces a task to run now. - * - *

When this method is called, Cloud Tasks will dispatch the task, even if the task is already - * running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta3.RateLimits] or is - * [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED]. - * - *

This command is meant to be used for manual debugging. For example, - * [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] can be used to retry a failed task - * after a fix has been made or to manually force a task to be dispatched now. - * - *

The dispatched task is returned. That is, the task that is returned contains the - * [status][Task.status] after the task is dispatched but before the task is received by its - * target. - * - *

If Cloud Tasks receives a successful response from the task's target, then the task will be - * deleted; otherwise the task's [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] - * will be reset to the time that [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] was - * called plus the retry delay specified in the queue's - * [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig]. - * - *

[RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] returns - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a task that has already succeeded - * or permanently failed. - * - *

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()) {
-   *   RunTaskRequest request =
-   *       RunTaskRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .build();
-   *   Task response = cloudTasksClient.runTask(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 Task runTask(RunTaskRequest request) { - return runTaskCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Forces a task to run now. - * - *

When this method is called, Cloud Tasks will dispatch the task, even if the task is already - * running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta3.RateLimits] or is - * [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED]. - * - *

This command is meant to be used for manual debugging. For example, - * [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] can be used to retry a failed task - * after a fix has been made or to manually force a task to be dispatched now. - * - *

The dispatched task is returned. That is, the task that is returned contains the - * [status][Task.status] after the task is dispatched but before the task is received by its - * target. - * - *

If Cloud Tasks receives a successful response from the task's target, then the task will be - * deleted; otherwise the task's [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] - * will be reset to the time that [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] was - * called plus the retry delay specified in the queue's - * [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig]. - * - *

[RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] returns - * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a task that has already succeeded - * or permanently failed. - * - *

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()) {
-   *   RunTaskRequest request =
-   *       RunTaskRequest.newBuilder()
-   *           .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString())
-   *           .build();
-   *   ApiFuture future = cloudTasksClient.runTaskCallable().futureCall(request);
-   *   // Do something.
-   *   Task response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable runTaskCallable() { - return stub.runTaskCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListQueuesPagedResponse - extends AbstractPagedListResponse< - ListQueuesRequest, - ListQueuesResponse, - Queue, - ListQueuesPage, - ListQueuesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListQueuesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListQueuesPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListQueuesPagedResponse(ListQueuesPage page) { - super(page, ListQueuesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListQueuesPage - extends AbstractPage { - - private ListQueuesPage( - PageContext context, - ListQueuesResponse response) { - super(context, response); - } - - private static ListQueuesPage createEmptyPage() { - return new ListQueuesPage(null, null); - } - - @Override - protected ListQueuesPage createPage( - PageContext context, - ListQueuesResponse response) { - return new ListQueuesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListQueuesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListQueuesRequest, - ListQueuesResponse, - Queue, - ListQueuesPage, - ListQueuesFixedSizeCollection> { - - private ListQueuesFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListQueuesFixedSizeCollection createEmptyCollection() { - return new ListQueuesFixedSizeCollection(null, 0); - } - - @Override - protected ListQueuesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListQueuesFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListTasksPagedResponse - extends AbstractPagedListResponse< - ListTasksRequest, ListTasksResponse, Task, ListTasksPage, ListTasksFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListTasksPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListTasksPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListTasksPagedResponse(ListTasksPage page) { - super(page, ListTasksFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListTasksPage - extends AbstractPage { - - private ListTasksPage( - PageContext context, - ListTasksResponse response) { - super(context, response); - } - - private static ListTasksPage createEmptyPage() { - return new ListTasksPage(null, null); - } - - @Override - protected ListTasksPage createPage( - PageContext context, - ListTasksResponse response) { - return new ListTasksPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListTasksFixedSizeCollection - extends AbstractFixedSizeCollection< - ListTasksRequest, ListTasksResponse, Task, ListTasksPage, ListTasksFixedSizeCollection> { - - private ListTasksFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListTasksFixedSizeCollection createEmptyCollection() { - return new ListTasksFixedSizeCollection(null, 0); - } - - @Override - protected ListTasksFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListTasksFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java deleted file mode 100644 index 0faadd46..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java +++ /dev/null @@ -1,367 +0,0 @@ -/* - * Copyright 2022 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.v2beta3; - -import static com.google.cloud.tasks.v2beta3.CloudTasksClient.ListQueuesPagedResponse; -import static com.google.cloud.tasks.v2beta3.CloudTasksClient.ListTasksPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.tasks.v2beta3.stub.CloudTasksStubSettings; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link CloudTasksClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (cloudtasks.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getQueue to 30 seconds: - * - *

{@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
- * CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder();
- * cloudTasksSettingsBuilder
- *     .getQueueSettings()
- *     .setRetrySettings(
- *         cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class CloudTasksSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to listQueues. */ - public PagedCallSettings - listQueuesSettings() { - return ((CloudTasksStubSettings) getStubSettings()).listQueuesSettings(); - } - - /** Returns the object with the settings used for calls to getQueue. */ - public UnaryCallSettings getQueueSettings() { - return ((CloudTasksStubSettings) getStubSettings()).getQueueSettings(); - } - - /** Returns the object with the settings used for calls to createQueue. */ - public UnaryCallSettings createQueueSettings() { - return ((CloudTasksStubSettings) getStubSettings()).createQueueSettings(); - } - - /** Returns the object with the settings used for calls to updateQueue. */ - public UnaryCallSettings updateQueueSettings() { - return ((CloudTasksStubSettings) getStubSettings()).updateQueueSettings(); - } - - /** Returns the object with the settings used for calls to deleteQueue. */ - public UnaryCallSettings deleteQueueSettings() { - return ((CloudTasksStubSettings) getStubSettings()).deleteQueueSettings(); - } - - /** Returns the object with the settings used for calls to purgeQueue. */ - public UnaryCallSettings purgeQueueSettings() { - return ((CloudTasksStubSettings) getStubSettings()).purgeQueueSettings(); - } - - /** Returns the object with the settings used for calls to pauseQueue. */ - public UnaryCallSettings pauseQueueSettings() { - return ((CloudTasksStubSettings) getStubSettings()).pauseQueueSettings(); - } - - /** Returns the object with the settings used for calls to resumeQueue. */ - public UnaryCallSettings resumeQueueSettings() { - return ((CloudTasksStubSettings) getStubSettings()).resumeQueueSettings(); - } - - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return ((CloudTasksStubSettings) getStubSettings()).getIamPolicySettings(); - } - - /** Returns the object with the settings used for calls to setIamPolicy. */ - public UnaryCallSettings setIamPolicySettings() { - return ((CloudTasksStubSettings) getStubSettings()).setIamPolicySettings(); - } - - /** Returns the object with the settings used for calls to testIamPermissions. */ - public UnaryCallSettings - testIamPermissionsSettings() { - return ((CloudTasksStubSettings) getStubSettings()).testIamPermissionsSettings(); - } - - /** Returns the object with the settings used for calls to listTasks. */ - public PagedCallSettings - listTasksSettings() { - return ((CloudTasksStubSettings) getStubSettings()).listTasksSettings(); - } - - /** Returns the object with the settings used for calls to getTask. */ - public UnaryCallSettings getTaskSettings() { - return ((CloudTasksStubSettings) getStubSettings()).getTaskSettings(); - } - - /** Returns the object with the settings used for calls to createTask. */ - public UnaryCallSettings createTaskSettings() { - return ((CloudTasksStubSettings) getStubSettings()).createTaskSettings(); - } - - /** Returns the object with the settings used for calls to deleteTask. */ - public UnaryCallSettings deleteTaskSettings() { - return ((CloudTasksStubSettings) getStubSettings()).deleteTaskSettings(); - } - - /** Returns the object with the settings used for calls to runTask. */ - public UnaryCallSettings runTaskSettings() { - return ((CloudTasksStubSettings) getStubSettings()).runTaskSettings(); - } - - public static final CloudTasksSettings create(CloudTasksStubSettings stub) throws IOException { - return new CloudTasksSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return CloudTasksStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return CloudTasksStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return CloudTasksStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return CloudTasksStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return CloudTasksStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return CloudTasksStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return CloudTasksStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return CloudTasksStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected CloudTasksSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for CloudTasksSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(CloudTasksStubSettings.newBuilder(clientContext)); - } - - protected Builder(CloudTasksSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(CloudTasksStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(CloudTasksStubSettings.newBuilder()); - } - - @BetaApi - private static Builder createHttpJsonDefault() { - return new Builder(CloudTasksStubSettings.newHttpJsonBuilder()); - } - - public CloudTasksStubSettings.Builder getStubSettingsBuilder() { - return ((CloudTasksStubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to listQueues. */ - public PagedCallSettings.Builder - listQueuesSettings() { - return getStubSettingsBuilder().listQueuesSettings(); - } - - /** Returns the builder for the settings used for calls to getQueue. */ - public UnaryCallSettings.Builder getQueueSettings() { - return getStubSettingsBuilder().getQueueSettings(); - } - - /** Returns the builder for the settings used for calls to createQueue. */ - public UnaryCallSettings.Builder createQueueSettings() { - return getStubSettingsBuilder().createQueueSettings(); - } - - /** Returns the builder for the settings used for calls to updateQueue. */ - public UnaryCallSettings.Builder updateQueueSettings() { - return getStubSettingsBuilder().updateQueueSettings(); - } - - /** Returns the builder for the settings used for calls to deleteQueue. */ - public UnaryCallSettings.Builder deleteQueueSettings() { - return getStubSettingsBuilder().deleteQueueSettings(); - } - - /** Returns the builder for the settings used for calls to purgeQueue. */ - public UnaryCallSettings.Builder purgeQueueSettings() { - return getStubSettingsBuilder().purgeQueueSettings(); - } - - /** Returns the builder for the settings used for calls to pauseQueue. */ - public UnaryCallSettings.Builder pauseQueueSettings() { - return getStubSettingsBuilder().pauseQueueSettings(); - } - - /** Returns the builder for the settings used for calls to resumeQueue. */ - public UnaryCallSettings.Builder resumeQueueSettings() { - return getStubSettingsBuilder().resumeQueueSettings(); - } - - /** Returns the builder for the settings used for calls to getIamPolicy. */ - public UnaryCallSettings.Builder getIamPolicySettings() { - return getStubSettingsBuilder().getIamPolicySettings(); - } - - /** Returns the builder for the settings used for calls to setIamPolicy. */ - public UnaryCallSettings.Builder setIamPolicySettings() { - return getStubSettingsBuilder().setIamPolicySettings(); - } - - /** Returns the builder for the settings used for calls to testIamPermissions. */ - public UnaryCallSettings.Builder - testIamPermissionsSettings() { - return getStubSettingsBuilder().testIamPermissionsSettings(); - } - - /** Returns the builder for the settings used for calls to listTasks. */ - public PagedCallSettings.Builder - listTasksSettings() { - return getStubSettingsBuilder().listTasksSettings(); - } - - /** Returns the builder for the settings used for calls to getTask. */ - public UnaryCallSettings.Builder getTaskSettings() { - return getStubSettingsBuilder().getTaskSettings(); - } - - /** Returns the builder for the settings used for calls to createTask. */ - public UnaryCallSettings.Builder createTaskSettings() { - return getStubSettingsBuilder().createTaskSettings(); - } - - /** Returns the builder for the settings used for calls to deleteTask. */ - public UnaryCallSettings.Builder deleteTaskSettings() { - return getStubSettingsBuilder().deleteTaskSettings(); - } - - /** Returns the builder for the settings used for calls to runTask. */ - public UnaryCallSettings.Builder runTaskSettings() { - return getStubSettingsBuilder().runTaskSettings(); - } - - @Override - public CloudTasksSettings build() throws IOException { - return new CloudTasksSettings(this); - } - } -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/gapic_metadata.json b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/gapic_metadata.json deleted file mode 100644 index 6e066ae0..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/gapic_metadata.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.cloud.tasks.v2beta3", - "libraryPackage": "com.google.cloud.tasks.v2beta3", - "services": { - "CloudTasks": { - "clients": { - "grpc": { - "libraryClient": "CloudTasksClient", - "rpcs": { - "CreateQueue": { - "methods": ["createQueue", "createQueue", "createQueue", "createQueueCallable"] - }, - "CreateTask": { - "methods": ["createTask", "createTask", "createTask", "createTaskCallable"] - }, - "DeleteQueue": { - "methods": ["deleteQueue", "deleteQueue", "deleteQueue", "deleteQueueCallable"] - }, - "DeleteTask": { - "methods": ["deleteTask", "deleteTask", "deleteTask", "deleteTaskCallable"] - }, - "GetIamPolicy": { - "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] - }, - "GetQueue": { - "methods": ["getQueue", "getQueue", "getQueue", "getQueueCallable"] - }, - "GetTask": { - "methods": ["getTask", "getTask", "getTask", "getTaskCallable"] - }, - "ListQueues": { - "methods": ["listQueues", "listQueues", "listQueues", "listQueuesPagedCallable", "listQueuesCallable"] - }, - "ListTasks": { - "methods": ["listTasks", "listTasks", "listTasks", "listTasksPagedCallable", "listTasksCallable"] - }, - "PauseQueue": { - "methods": ["pauseQueue", "pauseQueue", "pauseQueue", "pauseQueueCallable"] - }, - "PurgeQueue": { - "methods": ["purgeQueue", "purgeQueue", "purgeQueue", "purgeQueueCallable"] - }, - "ResumeQueue": { - "methods": ["resumeQueue", "resumeQueue", "resumeQueue", "resumeQueueCallable"] - }, - "RunTask": { - "methods": ["runTask", "runTask", "runTask", "runTaskCallable"] - }, - "SetIamPolicy": { - "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] - }, - "TestIamPermissions": { - "methods": ["testIamPermissions", "testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"] - }, - "UpdateQueue": { - "methods": ["updateQueue", "updateQueue", "updateQueueCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java deleted file mode 100644 index 2db7d5c3..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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. - */ - -/** - * The interfaces provided are listed below, along with usage samples. - * - *

======================= CloudTasksClient ======================= - * - *

Service Description: Cloud Tasks allows developers to manage the execution of background work - * in their applications. - * - *

Sample for CloudTasksClient: - * - *

{@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 name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
- *   Queue response = cloudTasksClient.getQueue(name);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.cloud.tasks.v2beta3; - -import javax.annotation.Generated; diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStub.java deleted file mode 100644 index 8183c88f..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStub.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.stub; - -import static com.google.cloud.tasks.v2beta3.CloudTasksClient.ListQueuesPagedResponse; -import static com.google.cloud.tasks.v2beta3.CloudTasksClient.ListTasksPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.tasks.v2beta3.CreateQueueRequest; -import com.google.cloud.tasks.v2beta3.CreateTaskRequest; -import com.google.cloud.tasks.v2beta3.DeleteQueueRequest; -import com.google.cloud.tasks.v2beta3.DeleteTaskRequest; -import com.google.cloud.tasks.v2beta3.GetQueueRequest; -import com.google.cloud.tasks.v2beta3.GetTaskRequest; -import com.google.cloud.tasks.v2beta3.ListQueuesRequest; -import com.google.cloud.tasks.v2beta3.ListQueuesResponse; -import com.google.cloud.tasks.v2beta3.ListTasksRequest; -import com.google.cloud.tasks.v2beta3.ListTasksResponse; -import com.google.cloud.tasks.v2beta3.PauseQueueRequest; -import com.google.cloud.tasks.v2beta3.PurgeQueueRequest; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.ResumeQueueRequest; -import com.google.cloud.tasks.v2beta3.RunTaskRequest; -import com.google.cloud.tasks.v2beta3.Task; -import com.google.cloud.tasks.v2beta3.UpdateQueueRequest; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the CloudTasks service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public abstract class CloudTasksStub implements BackgroundResource { - - public UnaryCallable listQueuesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listQueuesPagedCallable()"); - } - - public UnaryCallable listQueuesCallable() { - throw new UnsupportedOperationException("Not implemented: listQueuesCallable()"); - } - - public UnaryCallable getQueueCallable() { - throw new UnsupportedOperationException("Not implemented: getQueueCallable()"); - } - - public UnaryCallable createQueueCallable() { - throw new UnsupportedOperationException("Not implemented: createQueueCallable()"); - } - - public UnaryCallable updateQueueCallable() { - throw new UnsupportedOperationException("Not implemented: updateQueueCallable()"); - } - - public UnaryCallable deleteQueueCallable() { - throw new UnsupportedOperationException("Not implemented: deleteQueueCallable()"); - } - - public UnaryCallable purgeQueueCallable() { - throw new UnsupportedOperationException("Not implemented: purgeQueueCallable()"); - } - - public UnaryCallable pauseQueueCallable() { - throw new UnsupportedOperationException("Not implemented: pauseQueueCallable()"); - } - - public UnaryCallable resumeQueueCallable() { - throw new UnsupportedOperationException("Not implemented: resumeQueueCallable()"); - } - - public UnaryCallable getIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); - } - - public UnaryCallable setIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); - } - - public UnaryCallable - testIamPermissionsCallable() { - throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); - } - - public UnaryCallable listTasksPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listTasksPagedCallable()"); - } - - public UnaryCallable listTasksCallable() { - throw new UnsupportedOperationException("Not implemented: listTasksCallable()"); - } - - public UnaryCallable getTaskCallable() { - throw new UnsupportedOperationException("Not implemented: getTaskCallable()"); - } - - public UnaryCallable createTaskCallable() { - throw new UnsupportedOperationException("Not implemented: createTaskCallable()"); - } - - public UnaryCallable deleteTaskCallable() { - throw new UnsupportedOperationException("Not implemented: deleteTaskCallable()"); - } - - public UnaryCallable runTaskCallable() { - throw new UnsupportedOperationException("Not implemented: runTaskCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java deleted file mode 100644 index 8400acde..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java +++ /dev/null @@ -1,817 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.stub; - -import static com.google.cloud.tasks.v2beta3.CloudTasksClient.ListQueuesPagedResponse; -import static com.google.cloud.tasks.v2beta3.CloudTasksClient.ListTasksPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.tasks.v2beta3.CreateQueueRequest; -import com.google.cloud.tasks.v2beta3.CreateTaskRequest; -import com.google.cloud.tasks.v2beta3.DeleteQueueRequest; -import com.google.cloud.tasks.v2beta3.DeleteTaskRequest; -import com.google.cloud.tasks.v2beta3.GetQueueRequest; -import com.google.cloud.tasks.v2beta3.GetTaskRequest; -import com.google.cloud.tasks.v2beta3.ListQueuesRequest; -import com.google.cloud.tasks.v2beta3.ListQueuesResponse; -import com.google.cloud.tasks.v2beta3.ListTasksRequest; -import com.google.cloud.tasks.v2beta3.ListTasksResponse; -import com.google.cloud.tasks.v2beta3.PauseQueueRequest; -import com.google.cloud.tasks.v2beta3.PurgeQueueRequest; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.ResumeQueueRequest; -import com.google.cloud.tasks.v2beta3.RunTaskRequest; -import com.google.cloud.tasks.v2beta3.Task; -import com.google.cloud.tasks.v2beta3.UpdateQueueRequest; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link CloudTasksStub}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (cloudtasks.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getQueue to 30 seconds: - * - *

{@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
- * CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder();
- * cloudTasksSettingsBuilder
- *     .getQueueSettings()
- *     .setRetrySettings(
- *         cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class CloudTasksStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final PagedCallSettings - listQueuesSettings; - private final UnaryCallSettings getQueueSettings; - private final UnaryCallSettings createQueueSettings; - private final UnaryCallSettings updateQueueSettings; - private final UnaryCallSettings deleteQueueSettings; - private final UnaryCallSettings purgeQueueSettings; - private final UnaryCallSettings pauseQueueSettings; - private final UnaryCallSettings resumeQueueSettings; - private final UnaryCallSettings getIamPolicySettings; - private final UnaryCallSettings setIamPolicySettings; - private final UnaryCallSettings - testIamPermissionsSettings; - private final PagedCallSettings - listTasksSettings; - private final UnaryCallSettings getTaskSettings; - private final UnaryCallSettings createTaskSettings; - private final UnaryCallSettings deleteTaskSettings; - private final UnaryCallSettings runTaskSettings; - - private static final PagedListDescriptor - LIST_QUEUES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListQueuesRequest injectToken(ListQueuesRequest payload, String token) { - return ListQueuesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListQueuesRequest injectPageSize(ListQueuesRequest payload, int pageSize) { - return ListQueuesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListQueuesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListQueuesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListQueuesResponse payload) { - return payload.getQueuesList() == null - ? ImmutableList.of() - : payload.getQueuesList(); - } - }; - - private static final PagedListDescriptor - LIST_TASKS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListTasksRequest injectToken(ListTasksRequest payload, String token) { - return ListTasksRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListTasksRequest injectPageSize(ListTasksRequest payload, int pageSize) { - return ListTasksRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListTasksRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListTasksResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListTasksResponse payload) { - return payload.getTasksList() == null - ? ImmutableList.of() - : payload.getTasksList(); - } - }; - - private static final PagedListResponseFactory< - ListQueuesRequest, ListQueuesResponse, ListQueuesPagedResponse> - LIST_QUEUES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListQueuesRequest, ListQueuesResponse, ListQueuesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListQueuesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_QUEUES_PAGE_STR_DESC, request, context); - return ListQueuesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListTasksRequest, ListTasksResponse, ListTasksPagedResponse> - LIST_TASKS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListTasksRequest, ListTasksResponse, ListTasksPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListTasksRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_TASKS_PAGE_STR_DESC, request, context); - return ListTasksPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to listQueues. */ - public PagedCallSettings - listQueuesSettings() { - return listQueuesSettings; - } - - /** Returns the object with the settings used for calls to getQueue. */ - public UnaryCallSettings getQueueSettings() { - return getQueueSettings; - } - - /** Returns the object with the settings used for calls to createQueue. */ - public UnaryCallSettings createQueueSettings() { - return createQueueSettings; - } - - /** Returns the object with the settings used for calls to updateQueue. */ - public UnaryCallSettings updateQueueSettings() { - return updateQueueSettings; - } - - /** Returns the object with the settings used for calls to deleteQueue. */ - public UnaryCallSettings deleteQueueSettings() { - return deleteQueueSettings; - } - - /** Returns the object with the settings used for calls to purgeQueue. */ - public UnaryCallSettings purgeQueueSettings() { - return purgeQueueSettings; - } - - /** Returns the object with the settings used for calls to pauseQueue. */ - public UnaryCallSettings pauseQueueSettings() { - return pauseQueueSettings; - } - - /** Returns the object with the settings used for calls to resumeQueue. */ - public UnaryCallSettings resumeQueueSettings() { - return resumeQueueSettings; - } - - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return getIamPolicySettings; - } - - /** Returns the object with the settings used for calls to setIamPolicy. */ - public UnaryCallSettings setIamPolicySettings() { - return setIamPolicySettings; - } - - /** Returns the object with the settings used for calls to testIamPermissions. */ - public UnaryCallSettings - testIamPermissionsSettings() { - return testIamPermissionsSettings; - } - - /** Returns the object with the settings used for calls to listTasks. */ - public PagedCallSettings - listTasksSettings() { - return listTasksSettings; - } - - /** Returns the object with the settings used for calls to getTask. */ - public UnaryCallSettings getTaskSettings() { - return getTaskSettings; - } - - /** Returns the object with the settings used for calls to createTask. */ - public UnaryCallSettings createTaskSettings() { - return createTaskSettings; - } - - /** Returns the object with the settings used for calls to deleteTask. */ - public UnaryCallSettings deleteTaskSettings() { - return deleteTaskSettings; - } - - /** Returns the object with the settings used for calls to runTask. */ - public UnaryCallSettings runTaskSettings() { - return runTaskSettings; - } - - public CloudTasksStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcCloudTasksStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonCloudTasksStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "cloudtasks.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "cloudtasks.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(CloudTasksStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(CloudTasksStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return CloudTasksStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected CloudTasksStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - listQueuesSettings = settingsBuilder.listQueuesSettings().build(); - getQueueSettings = settingsBuilder.getQueueSettings().build(); - createQueueSettings = settingsBuilder.createQueueSettings().build(); - updateQueueSettings = settingsBuilder.updateQueueSettings().build(); - deleteQueueSettings = settingsBuilder.deleteQueueSettings().build(); - purgeQueueSettings = settingsBuilder.purgeQueueSettings().build(); - pauseQueueSettings = settingsBuilder.pauseQueueSettings().build(); - resumeQueueSettings = settingsBuilder.resumeQueueSettings().build(); - getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); - setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); - testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); - listTasksSettings = settingsBuilder.listTasksSettings().build(); - getTaskSettings = settingsBuilder.getTaskSettings().build(); - createTaskSettings = settingsBuilder.createTaskSettings().build(); - deleteTaskSettings = settingsBuilder.deleteTaskSettings().build(); - runTaskSettings = settingsBuilder.runTaskSettings().build(); - } - - /** Builder for CloudTasksStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final PagedCallSettings.Builder< - ListQueuesRequest, ListQueuesResponse, ListQueuesPagedResponse> - listQueuesSettings; - private final UnaryCallSettings.Builder getQueueSettings; - private final UnaryCallSettings.Builder createQueueSettings; - private final UnaryCallSettings.Builder updateQueueSettings; - private final UnaryCallSettings.Builder deleteQueueSettings; - private final UnaryCallSettings.Builder purgeQueueSettings; - private final UnaryCallSettings.Builder pauseQueueSettings; - private final UnaryCallSettings.Builder resumeQueueSettings; - private final UnaryCallSettings.Builder getIamPolicySettings; - private final UnaryCallSettings.Builder setIamPolicySettings; - private final UnaryCallSettings.Builder - testIamPermissionsSettings; - private final PagedCallSettings.Builder< - ListTasksRequest, ListTasksResponse, ListTasksPagedResponse> - listTasksSettings; - private final UnaryCallSettings.Builder getTaskSettings; - private final UnaryCallSettings.Builder createTaskSettings; - private final UnaryCallSettings.Builder deleteTaskSettings; - private final UnaryCallSettings.Builder runTaskSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "retry_policy_1_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); - definitions.put( - "no_retry_0_codes", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(10000L)) - .setInitialRpcTimeout(Duration.ofMillis(20000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(20000L)) - .setTotalTimeout(Duration.ofMillis(20000L)) - .build(); - definitions.put("retry_policy_1_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(20000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(20000L)) - .setTotalTimeout(Duration.ofMillis(20000L)) - .build(); - definitions.put("no_retry_0_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - listQueuesSettings = PagedCallSettings.newBuilder(LIST_QUEUES_PAGE_STR_FACT); - getQueueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createQueueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateQueueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteQueueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - purgeQueueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - pauseQueueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - resumeQueueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listTasksSettings = PagedCallSettings.newBuilder(LIST_TASKS_PAGE_STR_FACT); - getTaskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createTaskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteTaskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - runTaskSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listQueuesSettings, - getQueueSettings, - createQueueSettings, - updateQueueSettings, - deleteQueueSettings, - purgeQueueSettings, - pauseQueueSettings, - resumeQueueSettings, - getIamPolicySettings, - setIamPolicySettings, - testIamPermissionsSettings, - listTasksSettings, - getTaskSettings, - createTaskSettings, - deleteTaskSettings, - runTaskSettings); - initDefaults(this); - } - - protected Builder(CloudTasksStubSettings settings) { - super(settings); - - listQueuesSettings = settings.listQueuesSettings.toBuilder(); - getQueueSettings = settings.getQueueSettings.toBuilder(); - createQueueSettings = settings.createQueueSettings.toBuilder(); - updateQueueSettings = settings.updateQueueSettings.toBuilder(); - deleteQueueSettings = settings.deleteQueueSettings.toBuilder(); - purgeQueueSettings = settings.purgeQueueSettings.toBuilder(); - pauseQueueSettings = settings.pauseQueueSettings.toBuilder(); - resumeQueueSettings = settings.resumeQueueSettings.toBuilder(); - getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); - setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); - testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); - listTasksSettings = settings.listTasksSettings.toBuilder(); - getTaskSettings = settings.getTaskSettings.toBuilder(); - createTaskSettings = settings.createTaskSettings.toBuilder(); - deleteTaskSettings = settings.deleteTaskSettings.toBuilder(); - runTaskSettings = settings.runTaskSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listQueuesSettings, - getQueueSettings, - createQueueSettings, - updateQueueSettings, - deleteQueueSettings, - purgeQueueSettings, - pauseQueueSettings, - resumeQueueSettings, - getIamPolicySettings, - setIamPolicySettings, - testIamPermissionsSettings, - listTasksSettings, - getTaskSettings, - createTaskSettings, - deleteTaskSettings, - runTaskSettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .listQueuesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .getQueueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .createQueueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .updateQueueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .deleteQueueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .purgeQueueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .pauseQueueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .resumeQueueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .getIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .setIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .testIamPermissionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .listTasksSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .getTaskSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .createTaskSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - builder - .deleteTaskSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); - - builder - .runTaskSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to listQueues. */ - public PagedCallSettings.Builder - listQueuesSettings() { - return listQueuesSettings; - } - - /** Returns the builder for the settings used for calls to getQueue. */ - public UnaryCallSettings.Builder getQueueSettings() { - return getQueueSettings; - } - - /** Returns the builder for the settings used for calls to createQueue. */ - public UnaryCallSettings.Builder createQueueSettings() { - return createQueueSettings; - } - - /** Returns the builder for the settings used for calls to updateQueue. */ - public UnaryCallSettings.Builder updateQueueSettings() { - return updateQueueSettings; - } - - /** Returns the builder for the settings used for calls to deleteQueue. */ - public UnaryCallSettings.Builder deleteQueueSettings() { - return deleteQueueSettings; - } - - /** Returns the builder for the settings used for calls to purgeQueue. */ - public UnaryCallSettings.Builder purgeQueueSettings() { - return purgeQueueSettings; - } - - /** Returns the builder for the settings used for calls to pauseQueue. */ - public UnaryCallSettings.Builder pauseQueueSettings() { - return pauseQueueSettings; - } - - /** Returns the builder for the settings used for calls to resumeQueue. */ - public UnaryCallSettings.Builder resumeQueueSettings() { - return resumeQueueSettings; - } - - /** Returns the builder for the settings used for calls to getIamPolicy. */ - public UnaryCallSettings.Builder getIamPolicySettings() { - return getIamPolicySettings; - } - - /** Returns the builder for the settings used for calls to setIamPolicy. */ - public UnaryCallSettings.Builder setIamPolicySettings() { - return setIamPolicySettings; - } - - /** Returns the builder for the settings used for calls to testIamPermissions. */ - public UnaryCallSettings.Builder - testIamPermissionsSettings() { - return testIamPermissionsSettings; - } - - /** Returns the builder for the settings used for calls to listTasks. */ - public PagedCallSettings.Builder - listTasksSettings() { - return listTasksSettings; - } - - /** Returns the builder for the settings used for calls to getTask. */ - public UnaryCallSettings.Builder getTaskSettings() { - return getTaskSettings; - } - - /** Returns the builder for the settings used for calls to createTask. */ - public UnaryCallSettings.Builder createTaskSettings() { - return createTaskSettings; - } - - /** Returns the builder for the settings used for calls to deleteTask. */ - public UnaryCallSettings.Builder deleteTaskSettings() { - return deleteTaskSettings; - } - - /** Returns the builder for the settings used for calls to runTask. */ - public UnaryCallSettings.Builder runTaskSettings() { - return runTaskSettings; - } - - @Override - public CloudTasksStubSettings build() throws IOException { - return new CloudTasksStubSettings(this); - } - } -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksCallableFactory.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksCallableFactory.java deleted file mode 100644 index c9cb88d9..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the CloudTasks service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcCloudTasksCallableFactory implements GrpcStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, callSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java deleted file mode 100644 index 3538397e..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java +++ /dev/null @@ -1,617 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.stub; - -import static com.google.cloud.tasks.v2beta3.CloudTasksClient.ListQueuesPagedResponse; -import static com.google.cloud.tasks.v2beta3.CloudTasksClient.ListTasksPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.tasks.v2beta3.CreateQueueRequest; -import com.google.cloud.tasks.v2beta3.CreateTaskRequest; -import com.google.cloud.tasks.v2beta3.DeleteQueueRequest; -import com.google.cloud.tasks.v2beta3.DeleteTaskRequest; -import com.google.cloud.tasks.v2beta3.GetQueueRequest; -import com.google.cloud.tasks.v2beta3.GetTaskRequest; -import com.google.cloud.tasks.v2beta3.ListQueuesRequest; -import com.google.cloud.tasks.v2beta3.ListQueuesResponse; -import com.google.cloud.tasks.v2beta3.ListTasksRequest; -import com.google.cloud.tasks.v2beta3.ListTasksResponse; -import com.google.cloud.tasks.v2beta3.PauseQueueRequest; -import com.google.cloud.tasks.v2beta3.PurgeQueueRequest; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.ResumeQueueRequest; -import com.google.cloud.tasks.v2beta3.RunTaskRequest; -import com.google.cloud.tasks.v2beta3.Task; -import com.google.cloud.tasks.v2beta3.UpdateQueueRequest; -import com.google.common.collect.ImmutableMap; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the CloudTasks service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcCloudTasksStub extends CloudTasksStub { - private static final MethodDescriptor - listQueuesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/ListQueues") - .setRequestMarshaller(ProtoUtils.marshaller(ListQueuesRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ListQueuesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getQueueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/GetQueue") - .setRequestMarshaller(ProtoUtils.marshaller(GetQueueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Queue.getDefaultInstance())) - .build(); - - private static final MethodDescriptor createQueueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/CreateQueue") - .setRequestMarshaller(ProtoUtils.marshaller(CreateQueueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Queue.getDefaultInstance())) - .build(); - - private static final MethodDescriptor updateQueueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/UpdateQueue") - .setRequestMarshaller(ProtoUtils.marshaller(UpdateQueueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Queue.getDefaultInstance())) - .build(); - - private static final MethodDescriptor deleteQueueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/DeleteQueue") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteQueueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor purgeQueueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/PurgeQueue") - .setRequestMarshaller(ProtoUtils.marshaller(PurgeQueueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Queue.getDefaultInstance())) - .build(); - - private static final MethodDescriptor pauseQueueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/PauseQueue") - .setRequestMarshaller(ProtoUtils.marshaller(PauseQueueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Queue.getDefaultInstance())) - .build(); - - private static final MethodDescriptor resumeQueueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/ResumeQueue") - .setRequestMarshaller(ProtoUtils.marshaller(ResumeQueueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Queue.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/GetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .build(); - - private static final MethodDescriptor setIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/SetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - testIamPermissionsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/TestIamPermissions") - .setRequestMarshaller( - ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listTasksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/ListTasks") - .setRequestMarshaller(ProtoUtils.marshaller(ListTasksRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ListTasksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getTaskMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/GetTask") - .setRequestMarshaller(ProtoUtils.marshaller(GetTaskRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Task.getDefaultInstance())) - .build(); - - private static final MethodDescriptor createTaskMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/CreateTask") - .setRequestMarshaller(ProtoUtils.marshaller(CreateTaskRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Task.getDefaultInstance())) - .build(); - - private static final MethodDescriptor deleteTaskMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/DeleteTask") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteTaskRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor runTaskMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/RunTask") - .setRequestMarshaller(ProtoUtils.marshaller(RunTaskRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Task.getDefaultInstance())) - .build(); - - private final UnaryCallable listQueuesCallable; - private final UnaryCallable listQueuesPagedCallable; - private final UnaryCallable getQueueCallable; - private final UnaryCallable createQueueCallable; - private final UnaryCallable updateQueueCallable; - private final UnaryCallable deleteQueueCallable; - private final UnaryCallable purgeQueueCallable; - private final UnaryCallable pauseQueueCallable; - private final UnaryCallable resumeQueueCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; - private final UnaryCallable listTasksCallable; - private final UnaryCallable listTasksPagedCallable; - private final UnaryCallable getTaskCallable; - private final UnaryCallable createTaskCallable; - private final UnaryCallable deleteTaskCallable; - private final UnaryCallable runTaskCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcCloudTasksStub create(CloudTasksStubSettings settings) - throws IOException { - return new GrpcCloudTasksStub(settings, ClientContext.create(settings)); - } - - public static final GrpcCloudTasksStub create(ClientContext clientContext) throws IOException { - return new GrpcCloudTasksStub(CloudTasksStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcCloudTasksStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcCloudTasksStub( - CloudTasksStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcCloudTasksStub, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected GrpcCloudTasksStub(CloudTasksStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcCloudTasksCallableFactory()); - } - - /** - * Constructs an instance of GrpcCloudTasksStub, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected GrpcCloudTasksStub( - CloudTasksStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings listQueuesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listQueuesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getQueueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getQueueMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings createQueueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createQueueMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings updateQueueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateQueueMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("queue.name", String.valueOf(request.getQueue().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteQueueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteQueueMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings purgeQueueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(purgeQueueMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings pauseQueueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(pauseQueueMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings resumeQueueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(resumeQueueMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings getIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - }) - .build(); - GrpcCallSettings setIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - }) - .build(); - GrpcCallSettings - testIamPermissionsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(testIamPermissionsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - }) - .build(); - GrpcCallSettings listTasksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listTasksMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getTaskTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getTaskMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings createTaskTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createTaskMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteTaskTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteTaskMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings runTaskTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(runTaskMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - - this.listQueuesCallable = - callableFactory.createUnaryCallable( - listQueuesTransportSettings, settings.listQueuesSettings(), clientContext); - this.listQueuesPagedCallable = - callableFactory.createPagedCallable( - listQueuesTransportSettings, settings.listQueuesSettings(), clientContext); - this.getQueueCallable = - callableFactory.createUnaryCallable( - getQueueTransportSettings, settings.getQueueSettings(), clientContext); - this.createQueueCallable = - callableFactory.createUnaryCallable( - createQueueTransportSettings, settings.createQueueSettings(), clientContext); - this.updateQueueCallable = - callableFactory.createUnaryCallable( - updateQueueTransportSettings, settings.updateQueueSettings(), clientContext); - this.deleteQueueCallable = - callableFactory.createUnaryCallable( - deleteQueueTransportSettings, settings.deleteQueueSettings(), clientContext); - this.purgeQueueCallable = - callableFactory.createUnaryCallable( - purgeQueueTransportSettings, settings.purgeQueueSettings(), clientContext); - this.pauseQueueCallable = - callableFactory.createUnaryCallable( - pauseQueueTransportSettings, settings.pauseQueueSettings(), clientContext); - this.resumeQueueCallable = - callableFactory.createUnaryCallable( - resumeQueueTransportSettings, settings.resumeQueueSettings(), clientContext); - this.getIamPolicyCallable = - callableFactory.createUnaryCallable( - getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); - this.setIamPolicyCallable = - callableFactory.createUnaryCallable( - setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); - this.testIamPermissionsCallable = - callableFactory.createUnaryCallable( - testIamPermissionsTransportSettings, - settings.testIamPermissionsSettings(), - clientContext); - this.listTasksCallable = - callableFactory.createUnaryCallable( - listTasksTransportSettings, settings.listTasksSettings(), clientContext); - this.listTasksPagedCallable = - callableFactory.createPagedCallable( - listTasksTransportSettings, settings.listTasksSettings(), clientContext); - this.getTaskCallable = - callableFactory.createUnaryCallable( - getTaskTransportSettings, settings.getTaskSettings(), clientContext); - this.createTaskCallable = - callableFactory.createUnaryCallable( - createTaskTransportSettings, settings.createTaskSettings(), clientContext); - this.deleteTaskCallable = - callableFactory.createUnaryCallable( - deleteTaskTransportSettings, settings.deleteTaskSettings(), clientContext); - this.runTaskCallable = - callableFactory.createUnaryCallable( - runTaskTransportSettings, settings.runTaskSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable listQueuesCallable() { - return listQueuesCallable; - } - - @Override - public UnaryCallable listQueuesPagedCallable() { - return listQueuesPagedCallable; - } - - @Override - public UnaryCallable getQueueCallable() { - return getQueueCallable; - } - - @Override - public UnaryCallable createQueueCallable() { - return createQueueCallable; - } - - @Override - public UnaryCallable updateQueueCallable() { - return updateQueueCallable; - } - - @Override - public UnaryCallable deleteQueueCallable() { - return deleteQueueCallable; - } - - @Override - public UnaryCallable purgeQueueCallable() { - return purgeQueueCallable; - } - - @Override - public UnaryCallable pauseQueueCallable() { - return pauseQueueCallable; - } - - @Override - public UnaryCallable resumeQueueCallable() { - return resumeQueueCallable; - } - - @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; - } - - @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; - } - - @Override - public UnaryCallable - testIamPermissionsCallable() { - return testIamPermissionsCallable; - } - - @Override - public UnaryCallable listTasksCallable() { - return listTasksCallable; - } - - @Override - public UnaryCallable listTasksPagedCallable() { - return listTasksPagedCallable; - } - - @Override - public UnaryCallable getTaskCallable() { - return getTaskCallable; - } - - @Override - public UnaryCallable createTaskCallable() { - return createTaskCallable; - } - - @Override - public UnaryCallable deleteTaskCallable() { - return deleteTaskCallable; - } - - @Override - public UnaryCallable runTaskCallable() { - return runTaskCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksCallableFactory.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksCallableFactory.java deleted file mode 100644 index 954545e4..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the CloudTasks service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonCloudTasksCallableFactory - implements HttpJsonStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - HttpJsonCallSettings httpJsonCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createUnaryCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - HttpJsonCallSettings httpJsonCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createPagedCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - HttpJsonCallSettings httpJsonCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createBatchingCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - UnaryCallable innerCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); - HttpJsonOperationSnapshotCallable initialCallable = - new HttpJsonOperationSnapshotCallable( - innerCallable, - httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); - return HttpJsonCallableFactory.createOperationCallable( - callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - HttpJsonCallSettings httpJsonCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createServerStreamingCallable( - httpJsonCallSettings, callSettings, clientContext); - } -} diff --git a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksStub.java b/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksStub.java deleted file mode 100644 index 19987639..00000000 --- a/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/HttpJsonCloudTasksStub.java +++ /dev/null @@ -1,986 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.stub; - -import static com.google.cloud.tasks.v2beta3.CloudTasksClient.ListQueuesPagedResponse; -import static com.google.cloud.tasks.v2beta3.CloudTasksClient.ListTasksPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.tasks.v2beta3.CreateQueueRequest; -import com.google.cloud.tasks.v2beta3.CreateTaskRequest; -import com.google.cloud.tasks.v2beta3.DeleteQueueRequest; -import com.google.cloud.tasks.v2beta3.DeleteTaskRequest; -import com.google.cloud.tasks.v2beta3.GetQueueRequest; -import com.google.cloud.tasks.v2beta3.GetTaskRequest; -import com.google.cloud.tasks.v2beta3.ListQueuesRequest; -import com.google.cloud.tasks.v2beta3.ListQueuesResponse; -import com.google.cloud.tasks.v2beta3.ListTasksRequest; -import com.google.cloud.tasks.v2beta3.ListTasksResponse; -import com.google.cloud.tasks.v2beta3.PauseQueueRequest; -import com.google.cloud.tasks.v2beta3.PurgeQueueRequest; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.ResumeQueueRequest; -import com.google.cloud.tasks.v2beta3.RunTaskRequest; -import com.google.cloud.tasks.v2beta3.Task; -import com.google.cloud.tasks.v2beta3.UpdateQueueRequest; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the CloudTasks service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonCloudTasksStub extends CloudTasksStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); - - private static final ApiMethodDescriptor - listQueuesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/ListQueues") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta3/{parent=projects/*/locations/*}/queues", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - serializer.putQueryParam(fields, "readMask", request.getReadMask()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListQueuesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor getQueueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/GetQueue") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta3/{name=projects/*/locations/*/queues/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "readMask", request.getReadMask()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Queue.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor createQueueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/CreateQueue") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta3/{parent=projects/*/locations/*}/queues", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create().toBody("queue", request.getQueue(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Queue.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor updateQueueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/UpdateQueue") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta3/{queue.name=projects/*/locations/*/queues/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "queue.name", request.getQueue().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create().toBody("queue", request.getQueue(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Queue.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor deleteQueueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/DeleteQueue") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta3/{name=projects/*/locations/*/queues/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor purgeQueueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/PurgeQueue") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta3/{name=projects/*/locations/*/queues/*}:purge", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Queue.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor pauseQueueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/PauseQueue") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta3/{name=projects/*/locations/*/queues/*}:pause", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Queue.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor resumeQueueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/ResumeQueue") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta3/{name=projects/*/locations/*/queues/*}:resume", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Queue.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/GetIamPolicy") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta3/{resource=projects/*/locations/*/queues/*}:getIamPolicy", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - setIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/SetIamPolicy") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta3/{resource=projects/*/locations/*/queues/*}:setIamPolicy", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - testIamPermissionsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/TestIamPermissions") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta3/{resource=projects/*/locations/*/queues/*}:testIamPermissions", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listTasksMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/ListTasks") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta3/{parent=projects/*/locations/*/queues/*}/tasks", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - serializer.putQueryParam( - fields, "responseView", request.getResponseView()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListTasksResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor getTaskMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/GetTask") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "responseView", request.getResponseView()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Task.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor createTaskMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/CreateTask") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta3/{parent=projects/*/locations/*/queues/*}/tasks", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Task.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor deleteTaskMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/DeleteTask") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor runTaskMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.tasks.v2beta3.CloudTasks/RunTask") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}:run", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Task.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private final UnaryCallable listQueuesCallable; - private final UnaryCallable listQueuesPagedCallable; - private final UnaryCallable getQueueCallable; - private final UnaryCallable createQueueCallable; - private final UnaryCallable updateQueueCallable; - private final UnaryCallable deleteQueueCallable; - private final UnaryCallable purgeQueueCallable; - private final UnaryCallable pauseQueueCallable; - private final UnaryCallable resumeQueueCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; - private final UnaryCallable listTasksCallable; - private final UnaryCallable listTasksPagedCallable; - private final UnaryCallable getTaskCallable; - private final UnaryCallable createTaskCallable; - private final UnaryCallable deleteTaskCallable; - private final UnaryCallable runTaskCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonCloudTasksStub create(CloudTasksStubSettings settings) - throws IOException { - return new HttpJsonCloudTasksStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonCloudTasksStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonCloudTasksStub( - CloudTasksStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonCloudTasksStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonCloudTasksStub( - CloudTasksStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of HttpJsonCloudTasksStub, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected HttpJsonCloudTasksStub(CloudTasksStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new HttpJsonCloudTasksCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonCloudTasksStub, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected HttpJsonCloudTasksStub( - CloudTasksStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - - HttpJsonCallSettings listQueuesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listQueuesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getQueueTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getQueueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings createQueueTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createQueueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings updateQueueTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateQueueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteQueueTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteQueueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings purgeQueueTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(purgeQueueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings pauseQueueTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(pauseQueueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings resumeQueueTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(resumeQueueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getIamPolicyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getIamPolicyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings setIamPolicyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(setIamPolicyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - testIamPermissionsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(testIamPermissionsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings listTasksTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listTasksMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getTaskTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getTaskMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings createTaskTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createTaskMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteTaskTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteTaskMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings runTaskTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(runTaskMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - - this.listQueuesCallable = - callableFactory.createUnaryCallable( - listQueuesTransportSettings, settings.listQueuesSettings(), clientContext); - this.listQueuesPagedCallable = - callableFactory.createPagedCallable( - listQueuesTransportSettings, settings.listQueuesSettings(), clientContext); - this.getQueueCallable = - callableFactory.createUnaryCallable( - getQueueTransportSettings, settings.getQueueSettings(), clientContext); - this.createQueueCallable = - callableFactory.createUnaryCallable( - createQueueTransportSettings, settings.createQueueSettings(), clientContext); - this.updateQueueCallable = - callableFactory.createUnaryCallable( - updateQueueTransportSettings, settings.updateQueueSettings(), clientContext); - this.deleteQueueCallable = - callableFactory.createUnaryCallable( - deleteQueueTransportSettings, settings.deleteQueueSettings(), clientContext); - this.purgeQueueCallable = - callableFactory.createUnaryCallable( - purgeQueueTransportSettings, settings.purgeQueueSettings(), clientContext); - this.pauseQueueCallable = - callableFactory.createUnaryCallable( - pauseQueueTransportSettings, settings.pauseQueueSettings(), clientContext); - this.resumeQueueCallable = - callableFactory.createUnaryCallable( - resumeQueueTransportSettings, settings.resumeQueueSettings(), clientContext); - this.getIamPolicyCallable = - callableFactory.createUnaryCallable( - getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); - this.setIamPolicyCallable = - callableFactory.createUnaryCallable( - setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); - this.testIamPermissionsCallable = - callableFactory.createUnaryCallable( - testIamPermissionsTransportSettings, - settings.testIamPermissionsSettings(), - clientContext); - this.listTasksCallable = - callableFactory.createUnaryCallable( - listTasksTransportSettings, settings.listTasksSettings(), clientContext); - this.listTasksPagedCallable = - callableFactory.createPagedCallable( - listTasksTransportSettings, settings.listTasksSettings(), clientContext); - this.getTaskCallable = - callableFactory.createUnaryCallable( - getTaskTransportSettings, settings.getTaskSettings(), clientContext); - this.createTaskCallable = - callableFactory.createUnaryCallable( - createTaskTransportSettings, settings.createTaskSettings(), clientContext); - this.deleteTaskCallable = - callableFactory.createUnaryCallable( - deleteTaskTransportSettings, settings.deleteTaskSettings(), clientContext); - this.runTaskCallable = - callableFactory.createUnaryCallable( - runTaskTransportSettings, settings.runTaskSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(listQueuesMethodDescriptor); - methodDescriptors.add(getQueueMethodDescriptor); - methodDescriptors.add(createQueueMethodDescriptor); - methodDescriptors.add(updateQueueMethodDescriptor); - methodDescriptors.add(deleteQueueMethodDescriptor); - methodDescriptors.add(purgeQueueMethodDescriptor); - methodDescriptors.add(pauseQueueMethodDescriptor); - methodDescriptors.add(resumeQueueMethodDescriptor); - methodDescriptors.add(getIamPolicyMethodDescriptor); - methodDescriptors.add(setIamPolicyMethodDescriptor); - methodDescriptors.add(testIamPermissionsMethodDescriptor); - methodDescriptors.add(listTasksMethodDescriptor); - methodDescriptors.add(getTaskMethodDescriptor); - methodDescriptors.add(createTaskMethodDescriptor); - methodDescriptors.add(deleteTaskMethodDescriptor); - methodDescriptors.add(runTaskMethodDescriptor); - return methodDescriptors; - } - - @Override - public UnaryCallable listQueuesCallable() { - return listQueuesCallable; - } - - @Override - public UnaryCallable listQueuesPagedCallable() { - return listQueuesPagedCallable; - } - - @Override - public UnaryCallable getQueueCallable() { - return getQueueCallable; - } - - @Override - public UnaryCallable createQueueCallable() { - return createQueueCallable; - } - - @Override - public UnaryCallable updateQueueCallable() { - return updateQueueCallable; - } - - @Override - public UnaryCallable deleteQueueCallable() { - return deleteQueueCallable; - } - - @Override - public UnaryCallable purgeQueueCallable() { - return purgeQueueCallable; - } - - @Override - public UnaryCallable pauseQueueCallable() { - return pauseQueueCallable; - } - - @Override - public UnaryCallable resumeQueueCallable() { - return resumeQueueCallable; - } - - @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; - } - - @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; - } - - @Override - public UnaryCallable - testIamPermissionsCallable() { - return testIamPermissionsCallable; - } - - @Override - public UnaryCallable listTasksCallable() { - return listTasksCallable; - } - - @Override - public UnaryCallable listTasksPagedCallable() { - return listTasksPagedCallable; - } - - @Override - public UnaryCallable getTaskCallable() { - return getTaskCallable; - } - - @Override - public UnaryCallable createTaskCallable() { - return createTaskCallable; - } - - @Override - public UnaryCallable deleteTaskCallable() { - return deleteTaskCallable; - } - - @Override - public UnaryCallable runTaskCallable() { - return runTaskCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientHttpJsonTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientHttpJsonTest.java deleted file mode 100644 index d9613017..00000000 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientHttpJsonTest.java +++ /dev/null @@ -1,1602 +0,0 @@ -/* - * Copyright 2022 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.v2; - -import static com.google.cloud.tasks.v2.CloudTasksClient.ListQueuesPagedResponse; -import static com.google.cloud.tasks.v2.CloudTasksClient.ListTasksPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.tasks.v2.stub.HttpJsonCloudTasksStub; -import com.google.common.collect.Lists; -import com.google.iam.v1.AuditConfig; -import com.google.iam.v1.Binding; -import com.google.iam.v1.Policy; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.ByteString; -import com.google.protobuf.Duration; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class CloudTasksClientHttpJsonTest { - private static MockHttpService mockService; - private static CloudTasksClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonCloudTasksStub.getMethodDescriptors(), CloudTasksSettings.getDefaultEndpoint()); - CloudTasksSettings settings = - CloudTasksSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - CloudTasksSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = CloudTasksClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void listQueuesTest() throws Exception { - Queue responsesElement = Queue.newBuilder().build(); - ListQueuesResponse expectedResponse = - ListQueuesResponse.newBuilder() - .setNextPageToken("") - .addAllQueues(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListQueuesPagedResponse pagedListResponse = client.listQueues(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getQueuesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listQueuesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listQueues(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listQueuesTest2() throws Exception { - Queue responsesElement = Queue.newBuilder().build(); - ListQueuesResponse expectedResponse = - ListQueuesResponse.newBuilder() - .setNextPageToken("") - .addAllQueues(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListQueuesPagedResponse pagedListResponse = client.listQueues(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getQueuesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listQueuesExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - client.listQueues(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.getQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getQueueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.getQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - - Queue actualResponse = client.getQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getQueueExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - client.getQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Queue queue = Queue.newBuilder().build(); - - Queue actualResponse = client.createQueue(parent, queue); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createQueueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Queue queue = Queue.newBuilder().build(); - client.createQueue(parent, queue); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - Queue queue = Queue.newBuilder().build(); - - Queue actualResponse = client.createQueue(parent, queue); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createQueueExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - Queue queue = Queue.newBuilder().build(); - client.createQueue(parent, queue); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - Queue queue = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Queue actualResponse = client.updateQueue(queue, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateQueueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Queue queue = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateQueue(queue, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteQueueTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - client.deleteQueue(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteQueueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.deleteQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteQueueTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - - client.deleteQueue(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteQueueExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - client.deleteQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void purgeQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.purgeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void purgeQueueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.purgeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void purgeQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - - Queue actualResponse = client.purgeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void purgeQueueExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - client.purgeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void pauseQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.pauseQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void pauseQueueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.pauseQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void pauseQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - - Queue actualResponse = client.pauseQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void pauseQueueExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - client.pauseQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resumeQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.resumeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void resumeQueueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.resumeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resumeQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - - Queue actualResponse = client.resumeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void resumeQueueExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - client.resumeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getIamPolicyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getIamPolicyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void setIamPolicyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void setIamPolicyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - List permissions = new ArrayList<>(); - - TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void testIamPermissionsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - List permissions = new ArrayList<>(); - client.testIamPermissions(resource, permissions); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void testIamPermissionsTest2() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; - List permissions = new ArrayList<>(); - - TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void testIamPermissionsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; - List permissions = new ArrayList<>(); - client.testIamPermissions(resource, permissions); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTasksTest() throws Exception { - Task responsesElement = Task.newBuilder().build(); - ListTasksResponse expectedResponse = - ListTasksResponse.newBuilder() - .setNextPageToken("") - .addAllTasks(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - ListTasksPagedResponse pagedListResponse = client.listTasks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listTasksExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.listTasks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTasksTest2() throws Exception { - Task responsesElement = Task.newBuilder().build(); - ListTasksResponse expectedResponse = - ListTasksResponse.newBuilder() - .setNextPageToken("") - .addAllTasks(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; - - ListTasksPagedResponse pagedListResponse = client.listTasks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listTasksExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; - client.listTasks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTaskTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - - Task actualResponse = client.getTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getTaskExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - client.getTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTaskTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - - Task actualResponse = client.getTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getTaskExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - client.getTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTaskTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Task task = Task.newBuilder().build(); - - Task actualResponse = client.createTask(parent, task); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createTaskExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Task task = Task.newBuilder().build(); - client.createTask(parent, task); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTaskTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; - Task task = Task.newBuilder().build(); - - Task actualResponse = client.createTask(parent, task); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createTaskExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; - Task task = Task.newBuilder().build(); - client.createTask(parent, task); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTaskTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - - client.deleteTask(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteTaskExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - client.deleteTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTaskTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - - client.deleteTask(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteTaskExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - client.deleteTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void runTaskTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - - Task actualResponse = client.runTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void runTaskExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - client.runTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void runTaskTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - - Task actualResponse = client.runTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void runTaskExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - client.runTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java deleted file mode 100644 index a631eaf4..00000000 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java +++ /dev/null @@ -1,1413 +0,0 @@ -/* - * Copyright 2022 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.v2; - -import static com.google.cloud.tasks.v2.CloudTasksClient.ListQueuesPagedResponse; -import static com.google.cloud.tasks.v2.CloudTasksClient.ListTasksPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.resourcenames.ResourceName; -import com.google.common.collect.Lists; -import com.google.iam.v1.AuditConfig; -import com.google.iam.v1.Binding; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.ByteString; -import com.google.protobuf.Duration; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class CloudTasksClientTest { - private static MockCloudTasks mockCloudTasks; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private CloudTasksClient client; - - @BeforeClass - public static void startStaticServer() { - mockCloudTasks = new MockCloudTasks(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockCloudTasks)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - CloudTasksSettings settings = - CloudTasksSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = CloudTasksClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void listQueuesTest() throws Exception { - Queue responsesElement = Queue.newBuilder().build(); - ListQueuesResponse expectedResponse = - ListQueuesResponse.newBuilder() - .setNextPageToken("") - .addAllQueues(Arrays.asList(responsesElement)) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListQueuesPagedResponse pagedListResponse = client.listQueues(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getQueuesList().get(0), resources.get(0)); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListQueuesRequest actualRequest = ((ListQueuesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listQueuesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listQueues(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listQueuesTest2() throws Exception { - Queue responsesElement = Queue.newBuilder().build(); - ListQueuesResponse expectedResponse = - ListQueuesResponse.newBuilder() - .setNextPageToken("") - .addAllQueues(Arrays.asList(responsesElement)) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListQueuesPagedResponse pagedListResponse = client.listQueues(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getQueuesList().get(0), resources.get(0)); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListQueuesRequest actualRequest = ((ListQueuesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listQueuesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String parent = "parent-995424086"; - client.listQueues(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.getQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetQueueRequest actualRequest = ((GetQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getQueueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.getQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - Queue actualResponse = client.getQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetQueueRequest actualRequest = ((GetQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getQueueExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.getQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Queue queue = Queue.newBuilder().build(); - - Queue actualResponse = client.createQueue(parent, queue); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateQueueRequest actualRequest = ((CreateQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(queue, actualRequest.getQueue()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createQueueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Queue queue = Queue.newBuilder().build(); - client.createQueue(parent, queue); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Queue queue = Queue.newBuilder().build(); - - Queue actualResponse = client.createQueue(parent, queue); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateQueueRequest actualRequest = ((CreateQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(queue, actualRequest.getQueue()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createQueueExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String parent = "parent-995424086"; - Queue queue = Queue.newBuilder().build(); - client.createQueue(parent, queue); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - Queue queue = Queue.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Queue actualResponse = client.updateQueue(queue, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateQueueRequest actualRequest = ((UpdateQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(queue, actualRequest.getQueue()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateQueueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - Queue queue = Queue.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateQueue(queue, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteQueueTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - client.deleteQueue(name); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteQueueRequest actualRequest = ((DeleteQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteQueueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.deleteQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteQueueTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteQueue(name); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteQueueRequest actualRequest = ((DeleteQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteQueueExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.deleteQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void purgeQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.purgeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - PurgeQueueRequest actualRequest = ((PurgeQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void purgeQueueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.purgeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void purgeQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - Queue actualResponse = client.purgeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - PurgeQueueRequest actualRequest = ((PurgeQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void purgeQueueExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.purgeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void pauseQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.pauseQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - PauseQueueRequest actualRequest = ((PauseQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void pauseQueueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.pauseQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void pauseQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - Queue actualResponse = client.pauseQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - PauseQueueRequest actualRequest = ((PauseQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void pauseQueueExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.pauseQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resumeQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.resumeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ResumeQueueRequest actualRequest = ((ResumeQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void resumeQueueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.resumeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resumeQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setAppEngineRoutingOverride(AppEngineRouting.newBuilder().build()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - Queue actualResponse = client.resumeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ResumeQueueRequest actualRequest = ((ResumeQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void resumeQueueExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.resumeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource.toString(), actualRequest.getResource()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getIamPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String resource = "resource-341064690"; - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource, actualRequest.getResource()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getIamPolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String resource = "resource-341064690"; - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource.toString(), actualRequest.getResource()); - Assert.assertEquals(policy, actualRequest.getPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setIamPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String resource = "resource-341064690"; - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource, actualRequest.getResource()); - Assert.assertEquals(policy, actualRequest.getPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setIamPolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String resource = "resource-341064690"; - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockCloudTasks.addResponse(expectedResponse); - - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - List permissions = new ArrayList<>(); - - TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); - - Assert.assertEquals(resource.toString(), actualRequest.getResource()); - Assert.assertEquals(permissions, actualRequest.getPermissionsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void testIamPermissionsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - List permissions = new ArrayList<>(); - client.testIamPermissions(resource, permissions); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void testIamPermissionsTest2() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockCloudTasks.addResponse(expectedResponse); - - String resource = "resource-341064690"; - List permissions = new ArrayList<>(); - - TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); - - Assert.assertEquals(resource, actualRequest.getResource()); - Assert.assertEquals(permissions, actualRequest.getPermissionsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void testIamPermissionsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String resource = "resource-341064690"; - List permissions = new ArrayList<>(); - client.testIamPermissions(resource, permissions); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTasksTest() throws Exception { - Task responsesElement = Task.newBuilder().build(); - ListTasksResponse expectedResponse = - ListTasksResponse.newBuilder() - .setNextPageToken("") - .addAllTasks(Arrays.asList(responsesElement)) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - ListTasksPagedResponse pagedListResponse = client.listTasks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTasksRequest actualRequest = ((ListTasksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTasksExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.listTasks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTasksTest2() throws Exception { - Task responsesElement = Task.newBuilder().build(); - ListTasksResponse expectedResponse = - ListTasksResponse.newBuilder() - .setNextPageToken("") - .addAllTasks(Arrays.asList(responsesElement)) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListTasksPagedResponse pagedListResponse = client.listTasks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTasksRequest actualRequest = ((ListTasksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTasksExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String parent = "parent-995424086"; - client.listTasks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTaskTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - - Task actualResponse = client.getTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTaskRequest actualRequest = ((GetTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTaskExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - client.getTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTaskTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - Task actualResponse = client.getTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTaskRequest actualRequest = ((GetTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTaskExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.getTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTaskTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Task task = Task.newBuilder().build(); - - Task actualResponse = client.createTask(parent, task); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTaskRequest actualRequest = ((CreateTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(task, actualRequest.getTask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTaskExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Task task = Task.newBuilder().build(); - client.createTask(parent, task); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTaskTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Task task = Task.newBuilder().build(); - - Task actualResponse = client.createTask(parent, task); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTaskRequest actualRequest = ((CreateTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(task, actualRequest.getTask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTaskExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String parent = "parent-995424086"; - Task task = Task.newBuilder().build(); - client.createTask(parent, task); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTaskTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockCloudTasks.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - - client.deleteTask(name); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTaskRequest actualRequest = ((DeleteTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTaskExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - client.deleteTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTaskTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteTask(name); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTaskRequest actualRequest = ((DeleteTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTaskExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.deleteTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void runTaskTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - - Task actualResponse = client.runTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RunTaskRequest actualRequest = ((RunTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void runTaskExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - client.runTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void runTaskTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - Task actualResponse = client.runTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RunTaskRequest actualRequest = ((RunTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void runTaskExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.runTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasks.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasks.java deleted file mode 100644 index 227ffe64..00000000 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasks.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 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.v2; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockCloudTasks implements MockGrpcService { - private final MockCloudTasksImpl serviceImpl; - - public MockCloudTasks() { - serviceImpl = new MockCloudTasksImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java deleted file mode 100644 index aa591568..00000000 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java +++ /dev/null @@ -1,399 +0,0 @@ -/* - * Copyright 2022 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.v2; - -import com.google.api.core.BetaApi; -import com.google.cloud.tasks.v2.CloudTasksGrpc.CloudTasksImplBase; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockCloudTasksImpl extends CloudTasksImplBase { - private List requests; - private Queue responses; - - public MockCloudTasksImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void listQueues( - ListQueuesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListQueuesResponse) { - requests.add(request); - responseObserver.onNext(((ListQueuesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListQueues, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListQueuesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getQueue( - GetQueueRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof com.google.cloud.tasks.v2.Queue) { - requests.add(request); - responseObserver.onNext(((com.google.cloud.tasks.v2.Queue) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetQueue, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - com.google.cloud.tasks.v2.Queue.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createQueue( - CreateQueueRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof com.google.cloud.tasks.v2.Queue) { - requests.add(request); - responseObserver.onNext(((com.google.cloud.tasks.v2.Queue) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateQueue, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - com.google.cloud.tasks.v2.Queue.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateQueue( - UpdateQueueRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof com.google.cloud.tasks.v2.Queue) { - requests.add(request); - responseObserver.onNext(((com.google.cloud.tasks.v2.Queue) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateQueue, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - com.google.cloud.tasks.v2.Queue.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteQueue(DeleteQueueRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteQueue, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void purgeQueue( - PurgeQueueRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof com.google.cloud.tasks.v2.Queue) { - requests.add(request); - responseObserver.onNext(((com.google.cloud.tasks.v2.Queue) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method PurgeQueue, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - com.google.cloud.tasks.v2.Queue.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void pauseQueue( - PauseQueueRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof com.google.cloud.tasks.v2.Queue) { - requests.add(request); - responseObserver.onNext(((com.google.cloud.tasks.v2.Queue) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method PauseQueue, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - com.google.cloud.tasks.v2.Queue.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void resumeQueue( - ResumeQueueRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof com.google.cloud.tasks.v2.Queue) { - requests.add(request); - responseObserver.onNext(((com.google.cloud.tasks.v2.Queue) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ResumeQueue, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - com.google.cloud.tasks.v2.Queue.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Policy) { - requests.add(request); - responseObserver.onNext(((Policy) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Policy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Policy) { - requests.add(request); - responseObserver.onNext(((Policy) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Policy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void testIamPermissions( - TestIamPermissionsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TestIamPermissionsResponse) { - requests.add(request); - responseObserver.onNext(((TestIamPermissionsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method TestIamPermissions, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TestIamPermissionsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listTasks( - ListTasksRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListTasksResponse) { - requests.add(request); - responseObserver.onNext(((ListTasksResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListTasks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListTasksResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getTask(GetTaskRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Task) { - requests.add(request); - responseObserver.onNext(((Task) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetTask, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Task.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createTask(CreateTaskRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Task) { - requests.add(request); - responseObserver.onNext(((Task) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateTask, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Task.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteTask(DeleteTaskRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteTask, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void runTask(RunTaskRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Task) { - requests.add(request); - responseObserver.onNext(((Task) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method RunTask, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Task.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/it/ITSystemTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/it/ITSystemTest.java deleted file mode 100644 index 8b03d207..00000000 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/it/ITSystemTest.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright 2019 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.v2.it; - -import static org.junit.Assert.assertEquals; - -import com.google.cloud.ServiceOptions; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.CreateQueueRequest; -import com.google.cloud.tasks.v2.CreateTaskRequest; -import com.google.cloud.tasks.v2.DeleteQueueRequest; -import com.google.cloud.tasks.v2.DeleteTaskRequest; -import com.google.cloud.tasks.v2.GetQueueRequest; -import com.google.cloud.tasks.v2.GetTaskRequest; -import com.google.cloud.tasks.v2.HttpMethod; -import com.google.cloud.tasks.v2.HttpRequest; -import com.google.cloud.tasks.v2.ListQueuesRequest; -import com.google.cloud.tasks.v2.ListTasksRequest; -import com.google.cloud.tasks.v2.LocationName; -import com.google.cloud.tasks.v2.PauseQueueRequest; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.QueueName; -import com.google.cloud.tasks.v2.ResumeQueueRequest; -import com.google.cloud.tasks.v2.Task; -import com.google.cloud.tasks.v2.TaskName; -import com.google.protobuf.ByteString; -import java.io.IOException; -import java.nio.charset.Charset; -import java.util.UUID; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class ITSystemTest { - - private static final String PROJECT_ID = ServiceOptions.getDefaultProjectId(); - private static final String LOCATION = "us-central1"; - private static final String LOCATION_NAME = LocationName.of(PROJECT_ID, LOCATION).toString(); - private static final String ID = UUID.randomUUID().toString().substring(0, 8); - private static final String QUEUE_ID = "test-queue-" + ID; - private static final String QUEUE_NAME = QueueName.of(PROJECT_ID, LOCATION, QUEUE_ID).toString(); - private static final String TASK_ID = "test-task-" + ID; - private static final String TASK_NAME = - TaskName.of(PROJECT_ID, LOCATION, QUEUE_ID, TASK_ID).toString(); - private static final String URL = "https://example.com/taskhandler"; - private static final String PAYLOAD = "Hello, World!"; - private static Queue queue; - private static Task task; - private static CloudTasksClient client; - - @BeforeClass - public static void setUp() throws IOException { - - client = CloudTasksClient.create(); - - /* create queue */ - Queue createQueue = - Queue.newBuilder().setName(QUEUE_NAME).setState(Queue.State.RUNNING).build(); - CreateQueueRequest queueRequest = - CreateQueueRequest.newBuilder().setParent(LOCATION_NAME).setQueue(createQueue).build(); - queue = client.createQueue(queueRequest); - - /* create task */ - Task createTask = - Task.newBuilder() - .setName(TASK_NAME) - .setHttpRequest( - HttpRequest.newBuilder() - .setBody(ByteString.copyFrom(PAYLOAD, Charset.defaultCharset())) - .setUrl(URL) - .setHttpMethod(HttpMethod.POST) - .build()) - .build(); - CreateTaskRequest taskRequest = - CreateTaskRequest.newBuilder().setParent(QUEUE_NAME).setTask(createTask).build(); - task = client.createTask(taskRequest); - } - - @AfterClass - public static void tearDown() { - - /* delete task */ - DeleteTaskRequest taskRequest = DeleteTaskRequest.newBuilder().setName(TASK_NAME).build(); - client.deleteTask(taskRequest); - - /* delete queue */ - DeleteQueueRequest queueRequest = DeleteQueueRequest.newBuilder().setName(QUEUE_NAME).build(); - client.deleteQueue(queueRequest); - client.close(); - } - - @Test - public void listQueuesTest() { - ListQueuesRequest request = ListQueuesRequest.newBuilder().setParent(LOCATION_NAME).build(); - for (Queue actual : client.listQueues(request).iterateAll()) { - if (queue.getName().equals(actual.getName())) { - assertQueue(queue, actual); - } - } - } - - @Test - public void getQueueTest() { - GetQueueRequest request = GetQueueRequest.newBuilder().setName(QUEUE_NAME).build(); - assertQueue(queue, client.getQueue(request)); - } - - @Test - public void listTasksTest() { - ListTasksRequest request = ListTasksRequest.newBuilder().setParent(QUEUE_NAME).build(); - for (Task actual : client.listTasks(request).iterateAll()) { - if (task.getName().equals(actual.getName())) { - assertTask(task, actual); - } - } - } - - @Test - public void pauseQueueTest() { - PauseQueueRequest request = PauseQueueRequest.newBuilder().setName(QUEUE_NAME).build(); - Queue actual = client.pauseQueue(request); - assertEquals(Queue.State.PAUSED, actual.getState()); - } - - @Test - public void resumeQueueTest() { - ResumeQueueRequest request = ResumeQueueRequest.newBuilder().setName(QUEUE_NAME).build(); - Queue actual = client.resumeQueue(request); - assertEquals(Queue.State.RUNNING, actual.getState()); - } - - @Test - public void getTaskTest() { - GetTaskRequest request = GetTaskRequest.newBuilder().setName(TASK_NAME).build(); - assertTask(task, client.getTask(request)); - } - - private void assertQueue(Queue expected, Queue actual) { - assertEquals(expected.getName(), actual.getName()); - assertEquals(expected.getRateLimits(), actual.getRateLimits()); - assertEquals(expected.getRetryConfig(), actual.getRetryConfig()); - assertEquals(expected.getState(), actual.getState()); - } - - private void assertTask(Task expected, Task actual) { - assertEquals(expected.getName(), actual.getName()); - assertEquals(expected.getHttpRequest(), actual.getHttpRequest()); - assertEquals(expected.getCreateTime(), actual.getCreateTime()); - assertEquals(expected.getDispatchDeadline(), actual.getDispatchDeadline()); - assertEquals(expected.getView(), actual.getView()); - } -} diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientHttpJsonTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientHttpJsonTest.java deleted file mode 100644 index e7def613..00000000 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientHttpJsonTest.java +++ /dev/null @@ -1,1966 +0,0 @@ -/* - * Copyright 2022 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; - -import static com.google.cloud.tasks.v2beta2.CloudTasksClient.ListQueuesPagedResponse; -import static com.google.cloud.tasks.v2beta2.CloudTasksClient.ListTasksPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.tasks.v2beta2.stub.HttpJsonCloudTasksStub; -import com.google.common.collect.Lists; -import com.google.iam.v1.AuditConfig; -import com.google.iam.v1.Binding; -import com.google.iam.v1.Policy; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.ByteString; -import com.google.protobuf.Duration; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class CloudTasksClientHttpJsonTest { - private static MockHttpService mockService; - private static CloudTasksClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonCloudTasksStub.getMethodDescriptors(), CloudTasksSettings.getDefaultEndpoint()); - CloudTasksSettings settings = - CloudTasksSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - CloudTasksSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = CloudTasksClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void listQueuesTest() throws Exception { - Queue responsesElement = Queue.newBuilder().build(); - ListQueuesResponse expectedResponse = - ListQueuesResponse.newBuilder() - .setNextPageToken("") - .addAllQueues(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListQueuesPagedResponse pagedListResponse = client.listQueues(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getQueuesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listQueuesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listQueues(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listQueuesTest2() throws Exception { - Queue responsesElement = Queue.newBuilder().build(); - ListQueuesResponse expectedResponse = - ListQueuesResponse.newBuilder() - .setNextPageToken("") - .addAllQueues(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListQueuesPagedResponse pagedListResponse = client.listQueues(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getQueuesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listQueuesExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - client.listQueues(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.getQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getQueueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.getQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - - Queue actualResponse = client.getQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getQueueExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - client.getQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Queue queue = Queue.newBuilder().build(); - - Queue actualResponse = client.createQueue(parent, queue); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createQueueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Queue queue = Queue.newBuilder().build(); - client.createQueue(parent, queue); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - Queue queue = Queue.newBuilder().build(); - - Queue actualResponse = client.createQueue(parent, queue); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createQueueExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - Queue queue = Queue.newBuilder().build(); - client.createQueue(parent, queue); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - Queue queue = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Queue actualResponse = client.updateQueue(queue, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateQueueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Queue queue = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateQueue(queue, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteQueueTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - client.deleteQueue(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteQueueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.deleteQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteQueueTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - - client.deleteQueue(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteQueueExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - client.deleteQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void purgeQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.purgeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void purgeQueueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.purgeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void purgeQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - - Queue actualResponse = client.purgeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void purgeQueueExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - client.purgeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void pauseQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.pauseQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void pauseQueueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.pauseQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void pauseQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - - Queue actualResponse = client.pauseQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void pauseQueueExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - client.pauseQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resumeQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.resumeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void resumeQueueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.resumeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resumeQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - - Queue actualResponse = client.resumeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void resumeQueueExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - client.resumeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getIamPolicyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getIamPolicyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void setIamPolicyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void setIamPolicyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - List permissions = new ArrayList<>(); - - TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void testIamPermissionsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - List permissions = new ArrayList<>(); - client.testIamPermissions(resource, permissions); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void testIamPermissionsTest2() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; - List permissions = new ArrayList<>(); - - TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void testIamPermissionsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; - List permissions = new ArrayList<>(); - client.testIamPermissions(resource, permissions); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTasksTest() throws Exception { - Task responsesElement = Task.newBuilder().build(); - ListTasksResponse expectedResponse = - ListTasksResponse.newBuilder() - .setNextPageToken("") - .addAllTasks(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - ListTasksPagedResponse pagedListResponse = client.listTasks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listTasksExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.listTasks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTasksTest2() throws Exception { - Task responsesElement = Task.newBuilder().build(); - ListTasksResponse expectedResponse = - ListTasksResponse.newBuilder() - .setNextPageToken("") - .addAllTasks(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; - - ListTasksPagedResponse pagedListResponse = client.listTasks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listTasksExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; - client.listTasks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTaskTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setStatus(TaskStatus.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - - Task actualResponse = client.getTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getTaskExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - client.getTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTaskTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setStatus(TaskStatus.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - - Task actualResponse = client.getTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getTaskExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - client.getTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTaskTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setStatus(TaskStatus.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Task task = Task.newBuilder().build(); - - Task actualResponse = client.createTask(parent, task); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createTaskExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Task task = Task.newBuilder().build(); - client.createTask(parent, task); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTaskTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setStatus(TaskStatus.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; - Task task = Task.newBuilder().build(); - - Task actualResponse = client.createTask(parent, task); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createTaskExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; - Task task = Task.newBuilder().build(); - client.createTask(parent, task); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTaskTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - - client.deleteTask(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteTaskExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - client.deleteTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTaskTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - - client.deleteTask(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteTaskExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - client.deleteTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void leaseTasksTest() throws Exception { - LeaseTasksResponse expectedResponse = - LeaseTasksResponse.newBuilder().addAllTasks(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Duration leaseDuration = Duration.newBuilder().build(); - - LeaseTasksResponse actualResponse = client.leaseTasks(parent, leaseDuration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void leaseTasksExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Duration leaseDuration = Duration.newBuilder().build(); - client.leaseTasks(parent, leaseDuration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void leaseTasksTest2() throws Exception { - LeaseTasksResponse expectedResponse = - LeaseTasksResponse.newBuilder().addAllTasks(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; - Duration leaseDuration = Duration.newBuilder().build(); - - LeaseTasksResponse actualResponse = client.leaseTasks(parent, leaseDuration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void leaseTasksExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; - Duration leaseDuration = Duration.newBuilder().build(); - client.leaseTasks(parent, leaseDuration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void acknowledgeTaskTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - - client.acknowledgeTask(name, scheduleTime); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void acknowledgeTaskExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - client.acknowledgeTask(name, scheduleTime); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void acknowledgeTaskTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - Timestamp scheduleTime = Timestamp.newBuilder().build(); - - client.acknowledgeTask(name, scheduleTime); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void acknowledgeTaskExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - Timestamp scheduleTime = Timestamp.newBuilder().build(); - client.acknowledgeTask(name, scheduleTime); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void renewLeaseTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setStatus(TaskStatus.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - Duration leaseDuration = Duration.newBuilder().build(); - - Task actualResponse = client.renewLease(name, scheduleTime, leaseDuration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void renewLeaseExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - Duration leaseDuration = Duration.newBuilder().build(); - client.renewLease(name, scheduleTime, leaseDuration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void renewLeaseTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setStatus(TaskStatus.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - Timestamp scheduleTime = Timestamp.newBuilder().build(); - Duration leaseDuration = Duration.newBuilder().build(); - - Task actualResponse = client.renewLease(name, scheduleTime, leaseDuration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void renewLeaseExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - Timestamp scheduleTime = Timestamp.newBuilder().build(); - Duration leaseDuration = Duration.newBuilder().build(); - client.renewLease(name, scheduleTime, leaseDuration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void cancelLeaseTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setStatus(TaskStatus.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - - Task actualResponse = client.cancelLease(name, scheduleTime); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void cancelLeaseExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - client.cancelLease(name, scheduleTime); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void cancelLeaseTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setStatus(TaskStatus.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - Timestamp scheduleTime = Timestamp.newBuilder().build(); - - Task actualResponse = client.cancelLease(name, scheduleTime); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void cancelLeaseExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - Timestamp scheduleTime = Timestamp.newBuilder().build(); - client.cancelLease(name, scheduleTime); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void runTaskTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setStatus(TaskStatus.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - - Task actualResponse = client.runTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void runTaskExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - client.runTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void runTaskTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setStatus(TaskStatus.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - - Task actualResponse = client.runTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void runTaskExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - client.runTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java deleted file mode 100644 index 4494b6cd..00000000 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java +++ /dev/null @@ -1,1734 +0,0 @@ -/* - * Copyright 2022 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; - -import static com.google.cloud.tasks.v2beta2.CloudTasksClient.ListQueuesPagedResponse; -import static com.google.cloud.tasks.v2beta2.CloudTasksClient.ListTasksPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.resourcenames.ResourceName; -import com.google.common.collect.Lists; -import com.google.iam.v1.AuditConfig; -import com.google.iam.v1.Binding; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.ByteString; -import com.google.protobuf.Duration; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class CloudTasksClientTest { - private static MockCloudTasks mockCloudTasks; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private CloudTasksClient client; - - @BeforeClass - public static void startStaticServer() { - mockCloudTasks = new MockCloudTasks(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockCloudTasks)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - CloudTasksSettings settings = - CloudTasksSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = CloudTasksClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void listQueuesTest() throws Exception { - Queue responsesElement = Queue.newBuilder().build(); - ListQueuesResponse expectedResponse = - ListQueuesResponse.newBuilder() - .setNextPageToken("") - .addAllQueues(Arrays.asList(responsesElement)) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListQueuesPagedResponse pagedListResponse = client.listQueues(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getQueuesList().get(0), resources.get(0)); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListQueuesRequest actualRequest = ((ListQueuesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listQueuesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listQueues(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listQueuesTest2() throws Exception { - Queue responsesElement = Queue.newBuilder().build(); - ListQueuesResponse expectedResponse = - ListQueuesResponse.newBuilder() - .setNextPageToken("") - .addAllQueues(Arrays.asList(responsesElement)) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListQueuesPagedResponse pagedListResponse = client.listQueues(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getQueuesList().get(0), resources.get(0)); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListQueuesRequest actualRequest = ((ListQueuesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listQueuesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String parent = "parent-995424086"; - client.listQueues(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.getQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetQueueRequest actualRequest = ((GetQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getQueueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.getQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - Queue actualResponse = client.getQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetQueueRequest actualRequest = ((GetQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getQueueExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.getQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Queue queue = Queue.newBuilder().build(); - - Queue actualResponse = client.createQueue(parent, queue); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateQueueRequest actualRequest = ((CreateQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(queue, actualRequest.getQueue()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createQueueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Queue queue = Queue.newBuilder().build(); - client.createQueue(parent, queue); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Queue queue = Queue.newBuilder().build(); - - Queue actualResponse = client.createQueue(parent, queue); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateQueueRequest actualRequest = ((CreateQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(queue, actualRequest.getQueue()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createQueueExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String parent = "parent-995424086"; - Queue queue = Queue.newBuilder().build(); - client.createQueue(parent, queue); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - Queue queue = Queue.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Queue actualResponse = client.updateQueue(queue, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateQueueRequest actualRequest = ((UpdateQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(queue, actualRequest.getQueue()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateQueueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - Queue queue = Queue.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateQueue(queue, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteQueueTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - client.deleteQueue(name); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteQueueRequest actualRequest = ((DeleteQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteQueueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.deleteQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteQueueTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteQueue(name); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteQueueRequest actualRequest = ((DeleteQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteQueueExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.deleteQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void purgeQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.purgeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - PurgeQueueRequest actualRequest = ((PurgeQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void purgeQueueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.purgeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void purgeQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - Queue actualResponse = client.purgeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - PurgeQueueRequest actualRequest = ((PurgeQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void purgeQueueExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.purgeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void pauseQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.pauseQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - PauseQueueRequest actualRequest = ((PauseQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void pauseQueueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.pauseQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void pauseQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - Queue actualResponse = client.pauseQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - PauseQueueRequest actualRequest = ((PauseQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void pauseQueueExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.pauseQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resumeQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.resumeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ResumeQueueRequest actualRequest = ((ResumeQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void resumeQueueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.resumeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resumeQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - Queue actualResponse = client.resumeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ResumeQueueRequest actualRequest = ((ResumeQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void resumeQueueExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.resumeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource.toString(), actualRequest.getResource()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getIamPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String resource = "resource-341064690"; - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource, actualRequest.getResource()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getIamPolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String resource = "resource-341064690"; - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource.toString(), actualRequest.getResource()); - Assert.assertEquals(policy, actualRequest.getPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setIamPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String resource = "resource-341064690"; - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource, actualRequest.getResource()); - Assert.assertEquals(policy, actualRequest.getPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setIamPolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String resource = "resource-341064690"; - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockCloudTasks.addResponse(expectedResponse); - - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - List permissions = new ArrayList<>(); - - TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); - - Assert.assertEquals(resource.toString(), actualRequest.getResource()); - Assert.assertEquals(permissions, actualRequest.getPermissionsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void testIamPermissionsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - List permissions = new ArrayList<>(); - client.testIamPermissions(resource, permissions); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void testIamPermissionsTest2() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockCloudTasks.addResponse(expectedResponse); - - String resource = "resource-341064690"; - List permissions = new ArrayList<>(); - - TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); - - Assert.assertEquals(resource, actualRequest.getResource()); - Assert.assertEquals(permissions, actualRequest.getPermissionsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void testIamPermissionsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String resource = "resource-341064690"; - List permissions = new ArrayList<>(); - client.testIamPermissions(resource, permissions); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTasksTest() throws Exception { - Task responsesElement = Task.newBuilder().build(); - ListTasksResponse expectedResponse = - ListTasksResponse.newBuilder() - .setNextPageToken("") - .addAllTasks(Arrays.asList(responsesElement)) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - ListTasksPagedResponse pagedListResponse = client.listTasks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTasksRequest actualRequest = ((ListTasksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTasksExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.listTasks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTasksTest2() throws Exception { - Task responsesElement = Task.newBuilder().build(); - ListTasksResponse expectedResponse = - ListTasksResponse.newBuilder() - .setNextPageToken("") - .addAllTasks(Arrays.asList(responsesElement)) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListTasksPagedResponse pagedListResponse = client.listTasks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTasksRequest actualRequest = ((ListTasksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTasksExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String parent = "parent-995424086"; - client.listTasks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTaskTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setStatus(TaskStatus.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - - Task actualResponse = client.getTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTaskRequest actualRequest = ((GetTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTaskExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - client.getTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTaskTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setStatus(TaskStatus.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - Task actualResponse = client.getTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTaskRequest actualRequest = ((GetTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTaskExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.getTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTaskTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setStatus(TaskStatus.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Task task = Task.newBuilder().build(); - - Task actualResponse = client.createTask(parent, task); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTaskRequest actualRequest = ((CreateTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(task, actualRequest.getTask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTaskExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Task task = Task.newBuilder().build(); - client.createTask(parent, task); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTaskTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setStatus(TaskStatus.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Task task = Task.newBuilder().build(); - - Task actualResponse = client.createTask(parent, task); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTaskRequest actualRequest = ((CreateTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(task, actualRequest.getTask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTaskExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String parent = "parent-995424086"; - Task task = Task.newBuilder().build(); - client.createTask(parent, task); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTaskTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockCloudTasks.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - - client.deleteTask(name); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTaskRequest actualRequest = ((DeleteTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTaskExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - client.deleteTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTaskTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteTask(name); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTaskRequest actualRequest = ((DeleteTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTaskExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.deleteTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void leaseTasksTest() throws Exception { - LeaseTasksResponse expectedResponse = - LeaseTasksResponse.newBuilder().addAllTasks(new ArrayList()).build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Duration leaseDuration = Duration.newBuilder().build(); - - LeaseTasksResponse actualResponse = client.leaseTasks(parent, leaseDuration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - LeaseTasksRequest actualRequest = ((LeaseTasksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(leaseDuration, actualRequest.getLeaseDuration()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void leaseTasksExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Duration leaseDuration = Duration.newBuilder().build(); - client.leaseTasks(parent, leaseDuration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void leaseTasksTest2() throws Exception { - LeaseTasksResponse expectedResponse = - LeaseTasksResponse.newBuilder().addAllTasks(new ArrayList()).build(); - mockCloudTasks.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Duration leaseDuration = Duration.newBuilder().build(); - - LeaseTasksResponse actualResponse = client.leaseTasks(parent, leaseDuration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - LeaseTasksRequest actualRequest = ((LeaseTasksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(leaseDuration, actualRequest.getLeaseDuration()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void leaseTasksExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String parent = "parent-995424086"; - Duration leaseDuration = Duration.newBuilder().build(); - client.leaseTasks(parent, leaseDuration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void acknowledgeTaskTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockCloudTasks.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - - client.acknowledgeTask(name, scheduleTime); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - AcknowledgeTaskRequest actualRequest = ((AcknowledgeTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(scheduleTime, actualRequest.getScheduleTime()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void acknowledgeTaskExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - client.acknowledgeTask(name, scheduleTime); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void acknowledgeTaskTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - Timestamp scheduleTime = Timestamp.newBuilder().build(); - - client.acknowledgeTask(name, scheduleTime); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - AcknowledgeTaskRequest actualRequest = ((AcknowledgeTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(scheduleTime, actualRequest.getScheduleTime()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void acknowledgeTaskExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - Timestamp scheduleTime = Timestamp.newBuilder().build(); - client.acknowledgeTask(name, scheduleTime); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void renewLeaseTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setStatus(TaskStatus.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - Duration leaseDuration = Duration.newBuilder().build(); - - Task actualResponse = client.renewLease(name, scheduleTime, leaseDuration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RenewLeaseRequest actualRequest = ((RenewLeaseRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(scheduleTime, actualRequest.getScheduleTime()); - Assert.assertEquals(leaseDuration, actualRequest.getLeaseDuration()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void renewLeaseExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - Duration leaseDuration = Duration.newBuilder().build(); - client.renewLease(name, scheduleTime, leaseDuration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void renewLeaseTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setStatus(TaskStatus.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - Timestamp scheduleTime = Timestamp.newBuilder().build(); - Duration leaseDuration = Duration.newBuilder().build(); - - Task actualResponse = client.renewLease(name, scheduleTime, leaseDuration); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RenewLeaseRequest actualRequest = ((RenewLeaseRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(scheduleTime, actualRequest.getScheduleTime()); - Assert.assertEquals(leaseDuration, actualRequest.getLeaseDuration()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void renewLeaseExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - Timestamp scheduleTime = Timestamp.newBuilder().build(); - Duration leaseDuration = Duration.newBuilder().build(); - client.renewLease(name, scheduleTime, leaseDuration); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void cancelLeaseTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setStatus(TaskStatus.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - - Task actualResponse = client.cancelLease(name, scheduleTime); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CancelLeaseRequest actualRequest = ((CancelLeaseRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(scheduleTime, actualRequest.getScheduleTime()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void cancelLeaseExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - client.cancelLease(name, scheduleTime); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void cancelLeaseTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setStatus(TaskStatus.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - Timestamp scheduleTime = Timestamp.newBuilder().build(); - - Task actualResponse = client.cancelLease(name, scheduleTime); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CancelLeaseRequest actualRequest = ((CancelLeaseRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(scheduleTime, actualRequest.getScheduleTime()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void cancelLeaseExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - Timestamp scheduleTime = Timestamp.newBuilder().build(); - client.cancelLease(name, scheduleTime); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void runTaskTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setStatus(TaskStatus.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - - Task actualResponse = client.runTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RunTaskRequest actualRequest = ((RunTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void runTaskExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - client.runTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void runTaskTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setStatus(TaskStatus.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - Task actualResponse = client.runTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RunTaskRequest actualRequest = ((RunTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void runTaskExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.runTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasks.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasks.java deleted file mode 100644 index 38058fb7..00000000 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasks.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 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; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockCloudTasks implements MockGrpcService { - private final MockCloudTasksImpl serviceImpl; - - public MockCloudTasks() { - serviceImpl = new MockCloudTasksImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java deleted file mode 100644 index 703132e5..00000000 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java +++ /dev/null @@ -1,484 +0,0 @@ -/* - * Copyright 2022 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; - -import com.google.api.core.BetaApi; -import com.google.cloud.tasks.v2beta2.CloudTasksGrpc.CloudTasksImplBase; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockCloudTasksImpl extends CloudTasksImplBase { - private List requests; - private Queue responses; - - public MockCloudTasksImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void listQueues( - ListQueuesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListQueuesResponse) { - requests.add(request); - responseObserver.onNext(((ListQueuesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListQueues, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListQueuesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getQueue( - GetQueueRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof com.google.cloud.tasks.v2beta2.Queue) { - requests.add(request); - responseObserver.onNext(((com.google.cloud.tasks.v2beta2.Queue) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetQueue, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - com.google.cloud.tasks.v2beta2.Queue.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createQueue( - CreateQueueRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof com.google.cloud.tasks.v2beta2.Queue) { - requests.add(request); - responseObserver.onNext(((com.google.cloud.tasks.v2beta2.Queue) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateQueue, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - com.google.cloud.tasks.v2beta2.Queue.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateQueue( - UpdateQueueRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof com.google.cloud.tasks.v2beta2.Queue) { - requests.add(request); - responseObserver.onNext(((com.google.cloud.tasks.v2beta2.Queue) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateQueue, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - com.google.cloud.tasks.v2beta2.Queue.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteQueue(DeleteQueueRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteQueue, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void purgeQueue( - PurgeQueueRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof com.google.cloud.tasks.v2beta2.Queue) { - requests.add(request); - responseObserver.onNext(((com.google.cloud.tasks.v2beta2.Queue) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method PurgeQueue, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - com.google.cloud.tasks.v2beta2.Queue.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void pauseQueue( - PauseQueueRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof com.google.cloud.tasks.v2beta2.Queue) { - requests.add(request); - responseObserver.onNext(((com.google.cloud.tasks.v2beta2.Queue) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method PauseQueue, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - com.google.cloud.tasks.v2beta2.Queue.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void resumeQueue( - ResumeQueueRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof com.google.cloud.tasks.v2beta2.Queue) { - requests.add(request); - responseObserver.onNext(((com.google.cloud.tasks.v2beta2.Queue) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ResumeQueue, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - com.google.cloud.tasks.v2beta2.Queue.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Policy) { - requests.add(request); - responseObserver.onNext(((Policy) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Policy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Policy) { - requests.add(request); - responseObserver.onNext(((Policy) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Policy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void testIamPermissions( - TestIamPermissionsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TestIamPermissionsResponse) { - requests.add(request); - responseObserver.onNext(((TestIamPermissionsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method TestIamPermissions, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TestIamPermissionsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listTasks( - ListTasksRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListTasksResponse) { - requests.add(request); - responseObserver.onNext(((ListTasksResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListTasks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListTasksResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getTask(GetTaskRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Task) { - requests.add(request); - responseObserver.onNext(((Task) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetTask, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Task.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createTask(CreateTaskRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Task) { - requests.add(request); - responseObserver.onNext(((Task) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateTask, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Task.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteTask(DeleteTaskRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteTask, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void leaseTasks( - LeaseTasksRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof LeaseTasksResponse) { - requests.add(request); - responseObserver.onNext(((LeaseTasksResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method LeaseTasks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - LeaseTasksResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void acknowledgeTask( - AcknowledgeTaskRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method AcknowledgeTask, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void renewLease(RenewLeaseRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Task) { - requests.add(request); - responseObserver.onNext(((Task) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method RenewLease, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Task.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void cancelLease(CancelLeaseRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Task) { - requests.add(request); - responseObserver.onNext(((Task) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CancelLease, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Task.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void runTask(RunTaskRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Task) { - requests.add(request); - responseObserver.onNext(((Task) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method RunTask, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Task.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientHttpJsonTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientHttpJsonTest.java deleted file mode 100644 index 00cd0812..00000000 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientHttpJsonTest.java +++ /dev/null @@ -1,1628 +0,0 @@ -/* - * Copyright 2022 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.v2beta3; - -import static com.google.cloud.tasks.v2beta3.CloudTasksClient.ListQueuesPagedResponse; -import static com.google.cloud.tasks.v2beta3.CloudTasksClient.ListTasksPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.tasks.v2beta3.stub.HttpJsonCloudTasksStub; -import com.google.common.collect.Lists; -import com.google.iam.v1.AuditConfig; -import com.google.iam.v1.Binding; -import com.google.iam.v1.Policy; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.ByteString; -import com.google.protobuf.Duration; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class CloudTasksClientHttpJsonTest { - private static MockHttpService mockService; - private static CloudTasksClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonCloudTasksStub.getMethodDescriptors(), CloudTasksSettings.getDefaultEndpoint()); - CloudTasksSettings settings = - CloudTasksSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - CloudTasksSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = CloudTasksClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void listQueuesTest() throws Exception { - Queue responsesElement = Queue.newBuilder().build(); - ListQueuesResponse expectedResponse = - ListQueuesResponse.newBuilder() - .setNextPageToken("") - .addAllQueues(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListQueuesPagedResponse pagedListResponse = client.listQueues(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getQueuesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listQueuesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listQueues(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listQueuesTest2() throws Exception { - Queue responsesElement = Queue.newBuilder().build(); - ListQueuesResponse expectedResponse = - ListQueuesResponse.newBuilder() - .setNextPageToken("") - .addAllQueues(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListQueuesPagedResponse pagedListResponse = client.listQueues(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getQueuesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listQueuesExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - client.listQueues(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.getQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getQueueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.getQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - - Queue actualResponse = client.getQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getQueueExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - client.getQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Queue queue = Queue.newBuilder().build(); - - Queue actualResponse = client.createQueue(parent, queue); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createQueueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Queue queue = Queue.newBuilder().build(); - client.createQueue(parent, queue); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - Queue queue = Queue.newBuilder().build(); - - Queue actualResponse = client.createQueue(parent, queue); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createQueueExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - Queue queue = Queue.newBuilder().build(); - client.createQueue(parent, queue); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - Queue queue = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Queue actualResponse = client.updateQueue(queue, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateQueueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Queue queue = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateQueue(queue, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteQueueTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - client.deleteQueue(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteQueueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.deleteQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteQueueTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - - client.deleteQueue(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteQueueExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - client.deleteQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void purgeQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.purgeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void purgeQueueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.purgeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void purgeQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - - Queue actualResponse = client.purgeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void purgeQueueExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - client.purgeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void pauseQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.pauseQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void pauseQueueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.pauseQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void pauseQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - - Queue actualResponse = client.pauseQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void pauseQueueExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - client.pauseQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resumeQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.resumeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void resumeQueueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.resumeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resumeQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - - Queue actualResponse = client.resumeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void resumeQueueExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3918/locations/location-3918/queues/queue-3918"; - client.resumeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getIamPolicyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getIamPolicyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void setIamPolicyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void setIamPolicyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - List permissions = new ArrayList<>(); - - TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void testIamPermissionsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - List permissions = new ArrayList<>(); - client.testIamPermissions(resource, permissions); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void testIamPermissionsTest2() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; - List permissions = new ArrayList<>(); - - TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void testIamPermissionsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String resource = "projects/project-1711/locations/location-1711/queues/queue-1711"; - List permissions = new ArrayList<>(); - client.testIamPermissions(resource, permissions); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTasksTest() throws Exception { - Task responsesElement = Task.newBuilder().build(); - ListTasksResponse expectedResponse = - ListTasksResponse.newBuilder() - .setNextPageToken("") - .addAllTasks(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - ListTasksPagedResponse pagedListResponse = client.listTasks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listTasksExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.listTasks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTasksTest2() throws Exception { - Task responsesElement = Task.newBuilder().build(); - ListTasksResponse expectedResponse = - ListTasksResponse.newBuilder() - .setNextPageToken("") - .addAllTasks(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; - - ListTasksPagedResponse pagedListResponse = client.listTasks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listTasksExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; - client.listTasks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTaskTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - - Task actualResponse = client.getTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getTaskExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - client.getTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTaskTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - - Task actualResponse = client.getTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getTaskExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - client.getTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTaskTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Task task = Task.newBuilder().build(); - - Task actualResponse = client.createTask(parent, task); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createTaskExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Task task = Task.newBuilder().build(); - client.createTask(parent, task); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTaskTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; - Task task = Task.newBuilder().build(); - - Task actualResponse = client.createTask(parent, task); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createTaskExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-7117/locations/location-7117/queues/queue-7117"; - Task task = Task.newBuilder().build(); - client.createTask(parent, task); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTaskTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - - client.deleteTask(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteTaskExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - client.deleteTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTaskTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - - client.deleteTask(name); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteTaskExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - client.deleteTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void runTaskTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - - Task actualResponse = client.runTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void runTaskExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - client.runTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void runTaskTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - - Task actualResponse = client.runTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void runTaskExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-3612/locations/location-3612/queues/queue-3612/tasks/task-3612"; - client.runTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java deleted file mode 100644 index 626dc32c..00000000 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java +++ /dev/null @@ -1,1435 +0,0 @@ -/* - * Copyright 2022 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.v2beta3; - -import static com.google.cloud.tasks.v2beta3.CloudTasksClient.ListQueuesPagedResponse; -import static com.google.cloud.tasks.v2beta3.CloudTasksClient.ListTasksPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.resourcenames.ResourceName; -import com.google.common.collect.Lists; -import com.google.iam.v1.AuditConfig; -import com.google.iam.v1.Binding; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.ByteString; -import com.google.protobuf.Duration; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class CloudTasksClientTest { - private static MockCloudTasks mockCloudTasks; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private CloudTasksClient client; - - @BeforeClass - public static void startStaticServer() { - mockCloudTasks = new MockCloudTasks(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockCloudTasks)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - CloudTasksSettings settings = - CloudTasksSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = CloudTasksClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void listQueuesTest() throws Exception { - Queue responsesElement = Queue.newBuilder().build(); - ListQueuesResponse expectedResponse = - ListQueuesResponse.newBuilder() - .setNextPageToken("") - .addAllQueues(Arrays.asList(responsesElement)) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListQueuesPagedResponse pagedListResponse = client.listQueues(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getQueuesList().get(0), resources.get(0)); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListQueuesRequest actualRequest = ((ListQueuesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listQueuesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listQueues(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listQueuesTest2() throws Exception { - Queue responsesElement = Queue.newBuilder().build(); - ListQueuesResponse expectedResponse = - ListQueuesResponse.newBuilder() - .setNextPageToken("") - .addAllQueues(Arrays.asList(responsesElement)) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListQueuesPagedResponse pagedListResponse = client.listQueues(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getQueuesList().get(0), resources.get(0)); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListQueuesRequest actualRequest = ((ListQueuesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listQueuesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String parent = "parent-995424086"; - client.listQueues(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.getQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetQueueRequest actualRequest = ((GetQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getQueueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.getQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - Queue actualResponse = client.getQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetQueueRequest actualRequest = ((GetQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getQueueExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.getQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Queue queue = Queue.newBuilder().build(); - - Queue actualResponse = client.createQueue(parent, queue); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateQueueRequest actualRequest = ((CreateQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(queue, actualRequest.getQueue()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createQueueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Queue queue = Queue.newBuilder().build(); - client.createQueue(parent, queue); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Queue queue = Queue.newBuilder().build(); - - Queue actualResponse = client.createQueue(parent, queue); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateQueueRequest actualRequest = ((CreateQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(queue, actualRequest.getQueue()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createQueueExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String parent = "parent-995424086"; - Queue queue = Queue.newBuilder().build(); - client.createQueue(parent, queue); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - Queue queue = Queue.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Queue actualResponse = client.updateQueue(queue, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateQueueRequest actualRequest = ((UpdateQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(queue, actualRequest.getQueue()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateQueueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - Queue queue = Queue.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateQueue(queue, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteQueueTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - client.deleteQueue(name); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteQueueRequest actualRequest = ((DeleteQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteQueueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.deleteQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteQueueTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteQueue(name); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteQueueRequest actualRequest = ((DeleteQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteQueueExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.deleteQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void purgeQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.purgeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - PurgeQueueRequest actualRequest = ((PurgeQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void purgeQueueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.purgeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void purgeQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - Queue actualResponse = client.purgeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - PurgeQueueRequest actualRequest = ((PurgeQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void purgeQueueExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.purgeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void pauseQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.pauseQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - PauseQueueRequest actualRequest = ((PauseQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void pauseQueueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.pauseQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void pauseQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - Queue actualResponse = client.pauseQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - PauseQueueRequest actualRequest = ((PauseQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void pauseQueueExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.pauseQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resumeQueueTest() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Queue actualResponse = client.resumeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ResumeQueueRequest actualRequest = ((ResumeQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void resumeQueueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.resumeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void resumeQueueTest2() throws Exception { - Queue expectedResponse = - Queue.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setRateLimits(RateLimits.newBuilder().build()) - .setRetryConfig(RetryConfig.newBuilder().build()) - .setPurgeTime(Timestamp.newBuilder().build()) - .setTaskTtl(Duration.newBuilder().build()) - .setTombstoneTtl(Duration.newBuilder().build()) - .setStackdriverLoggingConfig(StackdriverLoggingConfig.newBuilder().build()) - .setStats(QueueStats.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - Queue actualResponse = client.resumeQueue(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ResumeQueueRequest actualRequest = ((ResumeQueueRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void resumeQueueExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.resumeQueue(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource.toString(), actualRequest.getResource()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getIamPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String resource = "resource-341064690"; - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource, actualRequest.getResource()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getIamPolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String resource = "resource-341064690"; - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource.toString(), actualRequest.getResource()); - Assert.assertEquals(policy, actualRequest.getPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setIamPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String resource = "resource-341064690"; - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource, actualRequest.getResource()); - Assert.assertEquals(policy, actualRequest.getPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setIamPolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String resource = "resource-341064690"; - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockCloudTasks.addResponse(expectedResponse); - - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - List permissions = new ArrayList<>(); - - TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); - - Assert.assertEquals(resource.toString(), actualRequest.getResource()); - Assert.assertEquals(permissions, actualRequest.getPermissionsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void testIamPermissionsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - List permissions = new ArrayList<>(); - client.testIamPermissions(resource, permissions); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void testIamPermissionsTest2() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockCloudTasks.addResponse(expectedResponse); - - String resource = "resource-341064690"; - List permissions = new ArrayList<>(); - - TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); - - Assert.assertEquals(resource, actualRequest.getResource()); - Assert.assertEquals(permissions, actualRequest.getPermissionsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void testIamPermissionsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String resource = "resource-341064690"; - List permissions = new ArrayList<>(); - client.testIamPermissions(resource, permissions); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTasksTest() throws Exception { - Task responsesElement = Task.newBuilder().build(); - ListTasksResponse expectedResponse = - ListTasksResponse.newBuilder() - .setNextPageToken("") - .addAllTasks(Arrays.asList(responsesElement)) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - - ListTasksPagedResponse pagedListResponse = client.listTasks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTasksRequest actualRequest = ((ListTasksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTasksExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - client.listTasks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTasksTest2() throws Exception { - Task responsesElement = Task.newBuilder().build(); - ListTasksResponse expectedResponse = - ListTasksResponse.newBuilder() - .setNextPageToken("") - .addAllTasks(Arrays.asList(responsesElement)) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListTasksPagedResponse pagedListResponse = client.listTasks(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTasksList().get(0), resources.get(0)); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTasksRequest actualRequest = ((ListTasksRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTasksExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String parent = "parent-995424086"; - client.listTasks(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTaskTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - - Task actualResponse = client.getTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTaskRequest actualRequest = ((GetTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTaskExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - client.getTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTaskTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - Task actualResponse = client.getTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTaskRequest actualRequest = ((GetTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTaskExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.getTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTaskTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Task task = Task.newBuilder().build(); - - Task actualResponse = client.createTask(parent, task); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTaskRequest actualRequest = ((CreateTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(task, actualRequest.getTask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTaskExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Task task = Task.newBuilder().build(); - client.createTask(parent, task); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTaskTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Task task = Task.newBuilder().build(); - - Task actualResponse = client.createTask(parent, task); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTaskRequest actualRequest = ((CreateTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(task, actualRequest.getTask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTaskExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String parent = "parent-995424086"; - Task task = Task.newBuilder().build(); - client.createTask(parent, task); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTaskTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockCloudTasks.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - - client.deleteTask(name); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTaskRequest actualRequest = ((DeleteTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTaskExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - client.deleteTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTaskTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteTask(name); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTaskRequest actualRequest = ((DeleteTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTaskExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.deleteTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void runTaskTest() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - - Task actualResponse = client.runTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RunTaskRequest actualRequest = ((RunTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void runTaskExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - client.runTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void runTaskTest2() throws Exception { - Task expectedResponse = - Task.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setCreateTime(Timestamp.newBuilder().build()) - .setDispatchDeadline(Duration.newBuilder().build()) - .setDispatchCount(-1217252086) - .setResponseCount(424727441) - .setFirstAttempt(Attempt.newBuilder().build()) - .setLastAttempt(Attempt.newBuilder().build()) - .build(); - mockCloudTasks.addResponse(expectedResponse); - - String name = "name3373707"; - - Task actualResponse = client.runTask(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudTasks.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RunTaskRequest actualRequest = ((RunTaskRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void runTaskExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudTasks.addException(exception); - - try { - String name = "name3373707"; - client.runTask(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksSmokeTest.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksSmokeTest.java deleted file mode 100644 index 3faeb1d3..00000000 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksSmokeTest.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2019 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.v2beta3; - -import static org.junit.Assert.fail; - -import com.google.api.gax.rpc.AlreadyExistsException; -import com.google.common.base.Preconditions; -import com.google.protobuf.ByteString; -import java.io.IOException; -import java.nio.charset.Charset; -import java.util.logging.Level; -import java.util.logging.Logger; -import org.junit.BeforeClass; -import org.junit.Test; - -public class CloudTasksSmokeTest { - private static final String PROJECT_ENV_NAME = "GOOGLE_CLOUD_PROJECT"; - private static final String LEGACY_PROJECT_ENV_NAME = "GCLOUD_PROJECT"; - private static final String LOCATION_ENV_NAME = "GOOGLE_CLOUD_LOCATION"; - private static final String DEFAULT_LOCATION_ID = "us-central1"; - private static final String QUEUE_ID = "default"; - static Queue queue; - - public static void main(String args[]) { - Logger.getLogger("").setLevel(Level.WARNING); - try { - createTask(getProjectId(), getLocationId(), QUEUE_ID); - System.out.println("OK"); - } catch (IOException e) { - System.err.println("Failed with exception:"); - e.printStackTrace(System.err); - System.exit(1); - } - } - - @BeforeClass - public static void setupQueue() { - String queueName = QueueName.of(getProjectId(), getLocationId(), QUEUE_ID).toString(); - try (CloudTasksClient client = CloudTasksClient.create()) { - Queue q = Queue.newBuilder().setName(queueName).build(); - try { - - queue = client.createQueue(LocationName.of(getProjectId(), getLocationId()), q); - } catch (AlreadyExistsException e) { - queue = client.getQueue(queueName); - } - } catch (IOException e) { - fail("Failed to create queue: " + e.getMessage()); - } - } - - @Test - public void run() { - main(null); - } - - public static void createTask(String project, String location, String queue) throws IOException { - try (CloudTasksClient client = CloudTasksClient.create()) { - String url = "https://example.com/taskhandler"; - String payload = "Hello, World!"; - - // Construct the fully qualified queue name. - String queuePath = QueueName.of(project, location, queue).toString(); - - // Construct the task body. - Task.Builder taskBuilder = - Task.newBuilder() - .setHttpRequest( - HttpRequest.newBuilder() - .setBody(ByteString.copyFrom(payload, Charset.defaultCharset())) - .setUrl(url) - .setHttpMethod(HttpMethod.POST) - .build()); - - // Send create task request. - Task task = client.createTask(queuePath, taskBuilder.build()); - System.out.println("Task created: " + task.getName()); - } - } - - private static String getProjectId() { - String projectId = System.getProperty(PROJECT_ENV_NAME, System.getenv(PROJECT_ENV_NAME)); - if (projectId == null) { - projectId = - System.getProperty(LEGACY_PROJECT_ENV_NAME, System.getenv(LEGACY_PROJECT_ENV_NAME)); - } - Preconditions.checkArgument(projectId != null, "A project ID is required."); - return projectId; - } - - private static String getLocationId() { - String locationId = System.getProperty(LOCATION_ENV_NAME, System.getenv(LOCATION_ENV_NAME)); - if (locationId == null) { - return DEFAULT_LOCATION_ID; - } - return locationId; - } -} diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasks.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasks.java deleted file mode 100644 index ae10f963..00000000 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasks.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 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.v2beta3; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockCloudTasks implements MockGrpcService { - private final MockCloudTasksImpl serviceImpl; - - public MockCloudTasks() { - serviceImpl = new MockCloudTasksImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java b/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java deleted file mode 100644 index 4e2a3a2d..00000000 --- a/google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java +++ /dev/null @@ -1,402 +0,0 @@ -/* - * Copyright 2022 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.v2beta3; - -import com.google.api.core.BetaApi; -import com.google.cloud.tasks.v2beta3.CloudTasksGrpc.CloudTasksImplBase; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockCloudTasksImpl extends CloudTasksImplBase { - private List requests; - private Queue responses; - - public MockCloudTasksImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void listQueues( - ListQueuesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListQueuesResponse) { - requests.add(request); - responseObserver.onNext(((ListQueuesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListQueues, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListQueuesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getQueue( - GetQueueRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof com.google.cloud.tasks.v2beta3.Queue) { - requests.add(request); - responseObserver.onNext(((com.google.cloud.tasks.v2beta3.Queue) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetQueue, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - com.google.cloud.tasks.v2beta3.Queue.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createQueue( - CreateQueueRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof com.google.cloud.tasks.v2beta3.Queue) { - requests.add(request); - responseObserver.onNext(((com.google.cloud.tasks.v2beta3.Queue) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateQueue, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - com.google.cloud.tasks.v2beta3.Queue.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateQueue( - UpdateQueueRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof com.google.cloud.tasks.v2beta3.Queue) { - requests.add(request); - responseObserver.onNext(((com.google.cloud.tasks.v2beta3.Queue) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateQueue, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - com.google.cloud.tasks.v2beta3.Queue.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteQueue(DeleteQueueRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteQueue, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void purgeQueue( - PurgeQueueRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof com.google.cloud.tasks.v2beta3.Queue) { - requests.add(request); - responseObserver.onNext(((com.google.cloud.tasks.v2beta3.Queue) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method PurgeQueue, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - com.google.cloud.tasks.v2beta3.Queue.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void pauseQueue( - PauseQueueRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof com.google.cloud.tasks.v2beta3.Queue) { - requests.add(request); - responseObserver.onNext(((com.google.cloud.tasks.v2beta3.Queue) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method PauseQueue, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - com.google.cloud.tasks.v2beta3.Queue.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void resumeQueue( - ResumeQueueRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof com.google.cloud.tasks.v2beta3.Queue) { - requests.add(request); - responseObserver.onNext(((com.google.cloud.tasks.v2beta3.Queue) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ResumeQueue, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - com.google.cloud.tasks.v2beta3.Queue.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Policy) { - requests.add(request); - responseObserver.onNext(((Policy) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Policy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Policy) { - requests.add(request); - responseObserver.onNext(((Policy) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Policy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void testIamPermissions( - TestIamPermissionsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TestIamPermissionsResponse) { - requests.add(request); - responseObserver.onNext(((TestIamPermissionsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method TestIamPermissions, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TestIamPermissionsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listTasks( - ListTasksRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListTasksResponse) { - requests.add(request); - responseObserver.onNext(((ListTasksResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListTasks, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListTasksResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getTask(GetTaskRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Task) { - requests.add(request); - responseObserver.onNext(((Task) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetTask, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Task.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createTask(CreateTaskRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Task) { - requests.add(request); - responseObserver.onNext(((Task) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateTask, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Task.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteTask(DeleteTaskRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteTask, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void runTask(RunTaskRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Task) { - requests.add(request); - responseObserver.onNext(((Task) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method RunTask, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Task.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/grpc-google-cloud-tasks-v2/pom.xml b/grpc-google-cloud-tasks-v2/pom.xml deleted file mode 100644 index f430b8cb..00000000 --- a/grpc-google-cloud-tasks-v2/pom.xml +++ /dev/null @@ -1,69 +0,0 @@ - - 4.0.0 - com.google.api.grpc - grpc-google-cloud-tasks-v2 - 2.3.12 - grpc-google-cloud-tasks-v2 - GRPC library for grpc-google-cloud-tasks-v2 - - com.google.cloud - google-cloud-tasks-parent - 2.3.12 - - - - io.grpc - grpc-api - - - io.grpc - grpc-stub - - - io.grpc - grpc-protobuf - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-cloud-tasks-v2 - - - com.google.guava - guava - - - com.google.api.grpc - proto-google-iam-v1 - - - - - - java9 - - [9,) - - - - javax.annotation - javax.annotation-api - - - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - \ No newline at end of file diff --git a/grpc-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksGrpc.java b/grpc-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksGrpc.java deleted file mode 100644 index 7ce92264..00000000 --- a/grpc-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksGrpc.java +++ /dev/null @@ -1,2356 +0,0 @@ -/* - * Copyright 2020 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.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Cloud Tasks allows developers to manage the execution of background
- * work in their applications.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/tasks/v2/cloudtasks.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CloudTasksGrpc { - - private CloudTasksGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.tasks.v2.CloudTasks"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.ListQueuesRequest, com.google.cloud.tasks.v2.ListQueuesResponse> - getListQueuesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListQueues", - requestType = com.google.cloud.tasks.v2.ListQueuesRequest.class, - responseType = com.google.cloud.tasks.v2.ListQueuesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.ListQueuesRequest, com.google.cloud.tasks.v2.ListQueuesResponse> - getListQueuesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.ListQueuesRequest, - com.google.cloud.tasks.v2.ListQueuesResponse> - getListQueuesMethod; - if ((getListQueuesMethod = CloudTasksGrpc.getListQueuesMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getListQueuesMethod = CloudTasksGrpc.getListQueuesMethod) == null) { - CloudTasksGrpc.getListQueuesMethod = - getListQueuesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListQueues")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.ListQueuesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.ListQueuesResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("ListQueues")) - .build(); - } - } - } - return getListQueuesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.GetQueueRequest, com.google.cloud.tasks.v2.Queue> - getGetQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetQueue", - requestType = com.google.cloud.tasks.v2.GetQueueRequest.class, - responseType = com.google.cloud.tasks.v2.Queue.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.GetQueueRequest, com.google.cloud.tasks.v2.Queue> - getGetQueueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.GetQueueRequest, com.google.cloud.tasks.v2.Queue> - getGetQueueMethod; - if ((getGetQueueMethod = CloudTasksGrpc.getGetQueueMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getGetQueueMethod = CloudTasksGrpc.getGetQueueMethod) == null) { - CloudTasksGrpc.getGetQueueMethod = - getGetQueueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.GetQueueRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.Queue.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("GetQueue")) - .build(); - } - } - } - return getGetQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.CreateQueueRequest, com.google.cloud.tasks.v2.Queue> - getCreateQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateQueue", - requestType = com.google.cloud.tasks.v2.CreateQueueRequest.class, - responseType = com.google.cloud.tasks.v2.Queue.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.CreateQueueRequest, com.google.cloud.tasks.v2.Queue> - getCreateQueueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.CreateQueueRequest, com.google.cloud.tasks.v2.Queue> - getCreateQueueMethod; - if ((getCreateQueueMethod = CloudTasksGrpc.getCreateQueueMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getCreateQueueMethod = CloudTasksGrpc.getCreateQueueMethod) == null) { - CloudTasksGrpc.getCreateQueueMethod = - getCreateQueueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.CreateQueueRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.Queue.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("CreateQueue")) - .build(); - } - } - } - return getCreateQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.UpdateQueueRequest, com.google.cloud.tasks.v2.Queue> - getUpdateQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateQueue", - requestType = com.google.cloud.tasks.v2.UpdateQueueRequest.class, - responseType = com.google.cloud.tasks.v2.Queue.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.UpdateQueueRequest, com.google.cloud.tasks.v2.Queue> - getUpdateQueueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.UpdateQueueRequest, com.google.cloud.tasks.v2.Queue> - getUpdateQueueMethod; - if ((getUpdateQueueMethod = CloudTasksGrpc.getUpdateQueueMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getUpdateQueueMethod = CloudTasksGrpc.getUpdateQueueMethod) == null) { - CloudTasksGrpc.getUpdateQueueMethod = - getUpdateQueueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.UpdateQueueRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.Queue.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("UpdateQueue")) - .build(); - } - } - } - return getUpdateQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.DeleteQueueRequest, com.google.protobuf.Empty> - getDeleteQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteQueue", - requestType = com.google.cloud.tasks.v2.DeleteQueueRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.DeleteQueueRequest, com.google.protobuf.Empty> - getDeleteQueueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.DeleteQueueRequest, com.google.protobuf.Empty> - getDeleteQueueMethod; - if ((getDeleteQueueMethod = CloudTasksGrpc.getDeleteQueueMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getDeleteQueueMethod = CloudTasksGrpc.getDeleteQueueMethod) == null) { - CloudTasksGrpc.getDeleteQueueMethod = - getDeleteQueueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.DeleteQueueRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("DeleteQueue")) - .build(); - } - } - } - return getDeleteQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.PurgeQueueRequest, com.google.cloud.tasks.v2.Queue> - getPurgeQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PurgeQueue", - requestType = com.google.cloud.tasks.v2.PurgeQueueRequest.class, - responseType = com.google.cloud.tasks.v2.Queue.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.PurgeQueueRequest, com.google.cloud.tasks.v2.Queue> - getPurgeQueueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.PurgeQueueRequest, com.google.cloud.tasks.v2.Queue> - getPurgeQueueMethod; - if ((getPurgeQueueMethod = CloudTasksGrpc.getPurgeQueueMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getPurgeQueueMethod = CloudTasksGrpc.getPurgeQueueMethod) == null) { - CloudTasksGrpc.getPurgeQueueMethod = - getPurgeQueueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.PurgeQueueRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.Queue.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("PurgeQueue")) - .build(); - } - } - } - return getPurgeQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.PauseQueueRequest, com.google.cloud.tasks.v2.Queue> - getPauseQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PauseQueue", - requestType = com.google.cloud.tasks.v2.PauseQueueRequest.class, - responseType = com.google.cloud.tasks.v2.Queue.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.PauseQueueRequest, com.google.cloud.tasks.v2.Queue> - getPauseQueueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.PauseQueueRequest, com.google.cloud.tasks.v2.Queue> - getPauseQueueMethod; - if ((getPauseQueueMethod = CloudTasksGrpc.getPauseQueueMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getPauseQueueMethod = CloudTasksGrpc.getPauseQueueMethod) == null) { - CloudTasksGrpc.getPauseQueueMethod = - getPauseQueueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PauseQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.PauseQueueRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.Queue.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("PauseQueue")) - .build(); - } - } - } - return getPauseQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.ResumeQueueRequest, com.google.cloud.tasks.v2.Queue> - getResumeQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResumeQueue", - requestType = com.google.cloud.tasks.v2.ResumeQueueRequest.class, - responseType = com.google.cloud.tasks.v2.Queue.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.ResumeQueueRequest, com.google.cloud.tasks.v2.Queue> - getResumeQueueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.ResumeQueueRequest, com.google.cloud.tasks.v2.Queue> - getResumeQueueMethod; - if ((getResumeQueueMethod = CloudTasksGrpc.getResumeQueueMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getResumeQueueMethod = CloudTasksGrpc.getResumeQueueMethod) == null) { - CloudTasksGrpc.getResumeQueueMethod = - getResumeQueueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResumeQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.ResumeQueueRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.Queue.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("ResumeQueue")) - .build(); - } - } - } - return getResumeQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor - getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = CloudTasksGrpc.getGetIamPolicyMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getGetIamPolicyMethod = CloudTasksGrpc.getGetIamPolicyMethod) == null) { - CloudTasksGrpc.getGetIamPolicyMethod = - getGetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor - getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = CloudTasksGrpc.getSetIamPolicyMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getSetIamPolicyMethod = CloudTasksGrpc.getSetIamPolicyMethod) == null) { - CloudTasksGrpc.getSetIamPolicyMethod = - getSetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = CloudTasksGrpc.getTestIamPermissionsMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getTestIamPermissionsMethod = CloudTasksGrpc.getTestIamPermissionsMethod) == null) { - CloudTasksGrpc.getTestIamPermissionsMethod = - getTestIamPermissionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new CloudTasksMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.ListTasksRequest, com.google.cloud.tasks.v2.ListTasksResponse> - getListTasksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTasks", - requestType = com.google.cloud.tasks.v2.ListTasksRequest.class, - responseType = com.google.cloud.tasks.v2.ListTasksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.ListTasksRequest, com.google.cloud.tasks.v2.ListTasksResponse> - getListTasksMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.ListTasksRequest, com.google.cloud.tasks.v2.ListTasksResponse> - getListTasksMethod; - if ((getListTasksMethod = CloudTasksGrpc.getListTasksMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getListTasksMethod = CloudTasksGrpc.getListTasksMethod) == null) { - CloudTasksGrpc.getListTasksMethod = - getListTasksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTasks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.ListTasksRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.ListTasksResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("ListTasks")) - .build(); - } - } - } - return getListTasksMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.GetTaskRequest, com.google.cloud.tasks.v2.Task> - getGetTaskMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTask", - requestType = com.google.cloud.tasks.v2.GetTaskRequest.class, - responseType = com.google.cloud.tasks.v2.Task.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.GetTaskRequest, com.google.cloud.tasks.v2.Task> - getGetTaskMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.GetTaskRequest, com.google.cloud.tasks.v2.Task> - getGetTaskMethod; - if ((getGetTaskMethod = CloudTasksGrpc.getGetTaskMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getGetTaskMethod = CloudTasksGrpc.getGetTaskMethod) == null) { - CloudTasksGrpc.getGetTaskMethod = - getGetTaskMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTask")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.GetTaskRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.Task.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("GetTask")) - .build(); - } - } - } - return getGetTaskMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.CreateTaskRequest, com.google.cloud.tasks.v2.Task> - getCreateTaskMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTask", - requestType = com.google.cloud.tasks.v2.CreateTaskRequest.class, - responseType = com.google.cloud.tasks.v2.Task.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.CreateTaskRequest, com.google.cloud.tasks.v2.Task> - getCreateTaskMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.CreateTaskRequest, com.google.cloud.tasks.v2.Task> - getCreateTaskMethod; - if ((getCreateTaskMethod = CloudTasksGrpc.getCreateTaskMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getCreateTaskMethod = CloudTasksGrpc.getCreateTaskMethod) == null) { - CloudTasksGrpc.getCreateTaskMethod = - getCreateTaskMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTask")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.CreateTaskRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.Task.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("CreateTask")) - .build(); - } - } - } - return getCreateTaskMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.DeleteTaskRequest, com.google.protobuf.Empty> - getDeleteTaskMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteTask", - requestType = com.google.cloud.tasks.v2.DeleteTaskRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.DeleteTaskRequest, com.google.protobuf.Empty> - getDeleteTaskMethod() { - io.grpc.MethodDescriptor - getDeleteTaskMethod; - if ((getDeleteTaskMethod = CloudTasksGrpc.getDeleteTaskMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getDeleteTaskMethod = CloudTasksGrpc.getDeleteTaskMethod) == null) { - CloudTasksGrpc.getDeleteTaskMethod = - getDeleteTaskMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTask")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.DeleteTaskRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("DeleteTask")) - .build(); - } - } - } - return getDeleteTaskMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.RunTaskRequest, com.google.cloud.tasks.v2.Task> - getRunTaskMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RunTask", - requestType = com.google.cloud.tasks.v2.RunTaskRequest.class, - responseType = com.google.cloud.tasks.v2.Task.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.RunTaskRequest, com.google.cloud.tasks.v2.Task> - getRunTaskMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2.RunTaskRequest, com.google.cloud.tasks.v2.Task> - getRunTaskMethod; - if ((getRunTaskMethod = CloudTasksGrpc.getRunTaskMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getRunTaskMethod = CloudTasksGrpc.getRunTaskMethod) == null) { - CloudTasksGrpc.getRunTaskMethod = - getRunTaskMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunTask")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.RunTaskRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2.Task.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("RunTask")) - .build(); - } - } - } - return getRunTaskMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static CloudTasksStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudTasksStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudTasksStub(channel, callOptions); - } - }; - return CloudTasksStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CloudTasksBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudTasksBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudTasksBlockingStub(channel, callOptions); - } - }; - return CloudTasksBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static CloudTasksFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudTasksFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudTasksFutureStub(channel, callOptions); - } - }; - return CloudTasksFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Cloud Tasks allows developers to manage the execution of background
-   * work in their applications.
-   * 
- */ - public abstract static class CloudTasksImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists queues.
-     * Queues are returned in lexicographical order.
-     * 
- */ - public void listQueues( - com.google.cloud.tasks.v2.ListQueuesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListQueuesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a queue.
-     * 
- */ - public void getQueue( - com.google.cloud.tasks.v2.GetQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetQueueMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a queue.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public void createQueue( - com.google.cloud.tasks.v2.CreateQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateQueueMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a queue.
-     * This method creates the queue if it does not exist and updates
-     * the queue if it does exist.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public void updateQueue( - com.google.cloud.tasks.v2.UpdateQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateQueueMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a queue.
-     * This command will delete the queue even if it has tasks in it.
-     * Note: If you delete a queue, a queue with the same name can't be created
-     * for 7 days.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public void deleteQueue( - com.google.cloud.tasks.v2.DeleteQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteQueueMethod(), responseObserver); - } - - /** - * - * - *
-     * Purges a queue by deleting all of its tasks.
-     * All tasks created before this method is called are permanently deleted.
-     * Purge operations can take up to one minute to take effect. Tasks
-     * might be dispatched before the purge takes effect. A purge is irreversible.
-     * 
- */ - public void purgeQueue( - com.google.cloud.tasks.v2.PurgeQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPurgeQueueMethod(), responseObserver); - } - - /** - * - * - *
-     * Pauses the queue.
-     * If a queue is paused then the system will stop dispatching tasks
-     * until the queue is resumed via
-     * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. Tasks can still be added
-     * when the queue is paused. A queue is paused if its
-     * [state][google.cloud.tasks.v2.Queue.state] is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED].
-     * 
- */ - public void pauseQueue( - com.google.cloud.tasks.v2.PauseQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPauseQueueMethod(), responseObserver); - } - - /** - * - * - *
-     * Resume a queue.
-     * This method resumes a queue after it has been
-     * [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED] or
-     * [DISABLED][google.cloud.tasks.v2.Queue.State.DISABLED]. The state of a queue is stored
-     * in the queue's [state][google.cloud.tasks.v2.Queue.state]; after calling this method it
-     * will be set to [RUNNING][google.cloud.tasks.v2.Queue.State.RUNNING].
-     * WARNING: Resuming many high-QPS queues at the same time can
-     * lead to target overloading. If you are resuming high-QPS
-     * queues, follow the 500/50/5 pattern described in
-     * [Managing Cloud Tasks Scaling
-     * Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
-     * 
- */ - public void resumeQueue( - com.google.cloud.tasks.v2.ResumeQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getResumeQueueMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a [Queue][google.cloud.tasks.v2.Queue].
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.getIamPolicy`
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Replaces any existing
-     * policy.
-     * Note: The Cloud Console does not check queue-level IAM permissions yet.
-     * Project-level permissions are required to use the Cloud Console.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.setIamPolicy`
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2.Queue].
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the tasks in a queue.
-     * By default, only the [BASIC][google.cloud.tasks.v2.Task.View.BASIC] view is retrieved
-     * due to performance considerations;
-     * [response_view][google.cloud.tasks.v2.ListTasksRequest.response_view] controls the
-     * subset of information which is returned.
-     * The tasks may be returned in any order. The ordering may change at any
-     * time.
-     * 
- */ - public void listTasks( - com.google.cloud.tasks.v2.ListTasksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTasksMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a task.
-     * 
- */ - public void getTask( - com.google.cloud.tasks.v2.GetTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTaskMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a task and adds it to a queue.
-     * Tasks cannot be updated after creation; there is no UpdateTask command.
-     * * The maximum task size is 100KB.
-     * 
- */ - public void createTask( - com.google.cloud.tasks.v2.CreateTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTaskMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a task.
-     * A task can be deleted if it is scheduled or dispatched. A task
-     * cannot be deleted if it has executed successfully or permanently
-     * failed.
-     * 
- */ - public void deleteTask( - com.google.cloud.tasks.v2.DeleteTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTaskMethod(), responseObserver); - } - - /** - * - * - *
-     * Forces a task to run now.
-     * When this method is called, Cloud Tasks will dispatch the task, even if
-     * the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits] or
-     * is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED].
-     * This command is meant to be used for manual debugging. For
-     * example, [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] can be used to retry a failed
-     * task after a fix has been made or to manually force a task to be
-     * dispatched now.
-     * The dispatched task is returned. That is, the task that is returned
-     * contains the [status][Task.status] after the task is dispatched but
-     * before the task is received by its target.
-     * If Cloud Tasks receives a successful response from the task's
-     * target, then the task will be deleted; otherwise the task's
-     * [schedule_time][google.cloud.tasks.v2.Task.schedule_time] will be reset to the time that
-     * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] was called plus the retry delay specified
-     * in the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig].
-     * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] returns
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a
-     * task that has already succeeded or permanently failed.
-     * 
- */ - public void runTask( - com.google.cloud.tasks.v2.RunTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunTaskMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListQueuesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2.ListQueuesRequest, - com.google.cloud.tasks.v2.ListQueuesResponse>(this, METHODID_LIST_QUEUES))) - .addMethod( - getGetQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2.GetQueueRequest, com.google.cloud.tasks.v2.Queue>( - this, METHODID_GET_QUEUE))) - .addMethod( - getCreateQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2.CreateQueueRequest, - com.google.cloud.tasks.v2.Queue>(this, METHODID_CREATE_QUEUE))) - .addMethod( - getUpdateQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2.UpdateQueueRequest, - com.google.cloud.tasks.v2.Queue>(this, METHODID_UPDATE_QUEUE))) - .addMethod( - getDeleteQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2.DeleteQueueRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_QUEUE))) - .addMethod( - getPurgeQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2.PurgeQueueRequest, com.google.cloud.tasks.v2.Queue>( - this, METHODID_PURGE_QUEUE))) - .addMethod( - getPauseQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2.PauseQueueRequest, com.google.cloud.tasks.v2.Queue>( - this, METHODID_PAUSE_QUEUE))) - .addMethod( - getResumeQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2.ResumeQueueRequest, - com.google.cloud.tasks.v2.Queue>(this, METHODID_RESUME_QUEUE))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .addMethod( - getListTasksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2.ListTasksRequest, - com.google.cloud.tasks.v2.ListTasksResponse>(this, METHODID_LIST_TASKS))) - .addMethod( - getGetTaskMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2.GetTaskRequest, com.google.cloud.tasks.v2.Task>( - this, METHODID_GET_TASK))) - .addMethod( - getCreateTaskMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2.CreateTaskRequest, com.google.cloud.tasks.v2.Task>( - this, METHODID_CREATE_TASK))) - .addMethod( - getDeleteTaskMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2.DeleteTaskRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_TASK))) - .addMethod( - getRunTaskMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2.RunTaskRequest, com.google.cloud.tasks.v2.Task>( - this, METHODID_RUN_TASK))) - .build(); - } - } - - /** - * - * - *
-   * Cloud Tasks allows developers to manage the execution of background
-   * work in their applications.
-   * 
- */ - public static final class CloudTasksStub extends io.grpc.stub.AbstractAsyncStub { - private CloudTasksStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudTasksStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudTasksStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists queues.
-     * Queues are returned in lexicographical order.
-     * 
- */ - public void listQueues( - com.google.cloud.tasks.v2.ListQueuesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListQueuesMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets a queue.
-     * 
- */ - public void getQueue( - com.google.cloud.tasks.v2.GetQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetQueueMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a queue.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public void createQueue( - com.google.cloud.tasks.v2.CreateQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateQueueMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a queue.
-     * This method creates the queue if it does not exist and updates
-     * the queue if it does exist.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public void updateQueue( - com.google.cloud.tasks.v2.UpdateQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateQueueMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a queue.
-     * This command will delete the queue even if it has tasks in it.
-     * Note: If you delete a queue, a queue with the same name can't be created
-     * for 7 days.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public void deleteQueue( - com.google.cloud.tasks.v2.DeleteQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Purges a queue by deleting all of its tasks.
-     * All tasks created before this method is called are permanently deleted.
-     * Purge operations can take up to one minute to take effect. Tasks
-     * might be dispatched before the purge takes effect. A purge is irreversible.
-     * 
- */ - public void purgeQueue( - com.google.cloud.tasks.v2.PurgeQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPurgeQueueMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Pauses the queue.
-     * If a queue is paused then the system will stop dispatching tasks
-     * until the queue is resumed via
-     * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. Tasks can still be added
-     * when the queue is paused. A queue is paused if its
-     * [state][google.cloud.tasks.v2.Queue.state] is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED].
-     * 
- */ - public void pauseQueue( - com.google.cloud.tasks.v2.PauseQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPauseQueueMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Resume a queue.
-     * This method resumes a queue after it has been
-     * [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED] or
-     * [DISABLED][google.cloud.tasks.v2.Queue.State.DISABLED]. The state of a queue is stored
-     * in the queue's [state][google.cloud.tasks.v2.Queue.state]; after calling this method it
-     * will be set to [RUNNING][google.cloud.tasks.v2.Queue.State.RUNNING].
-     * WARNING: Resuming many high-QPS queues at the same time can
-     * lead to target overloading. If you are resuming high-QPS
-     * queues, follow the 500/50/5 pattern described in
-     * [Managing Cloud Tasks Scaling
-     * Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
-     * 
- */ - public void resumeQueue( - com.google.cloud.tasks.v2.ResumeQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResumeQueueMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a [Queue][google.cloud.tasks.v2.Queue].
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.getIamPolicy`
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Replaces any existing
-     * policy.
-     * Note: The Cloud Console does not check queue-level IAM permissions yet.
-     * Project-level permissions are required to use the Cloud Console.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.setIamPolicy`
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2.Queue].
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists the tasks in a queue.
-     * By default, only the [BASIC][google.cloud.tasks.v2.Task.View.BASIC] view is retrieved
-     * due to performance considerations;
-     * [response_view][google.cloud.tasks.v2.ListTasksRequest.response_view] controls the
-     * subset of information which is returned.
-     * The tasks may be returned in any order. The ordering may change at any
-     * time.
-     * 
- */ - public void listTasks( - com.google.cloud.tasks.v2.ListTasksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTasksMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets a task.
-     * 
- */ - public void getTask( - com.google.cloud.tasks.v2.GetTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTaskMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a task and adds it to a queue.
-     * Tasks cannot be updated after creation; there is no UpdateTask command.
-     * * The maximum task size is 100KB.
-     * 
- */ - public void createTask( - com.google.cloud.tasks.v2.CreateTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTaskMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Deletes a task.
-     * A task can be deleted if it is scheduled or dispatched. A task
-     * cannot be deleted if it has executed successfully or permanently
-     * failed.
-     * 
- */ - public void deleteTask( - com.google.cloud.tasks.v2.DeleteTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTaskMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Forces a task to run now.
-     * When this method is called, Cloud Tasks will dispatch the task, even if
-     * the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits] or
-     * is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED].
-     * This command is meant to be used for manual debugging. For
-     * example, [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] can be used to retry a failed
-     * task after a fix has been made or to manually force a task to be
-     * dispatched now.
-     * The dispatched task is returned. That is, the task that is returned
-     * contains the [status][Task.status] after the task is dispatched but
-     * before the task is received by its target.
-     * If Cloud Tasks receives a successful response from the task's
-     * target, then the task will be deleted; otherwise the task's
-     * [schedule_time][google.cloud.tasks.v2.Task.schedule_time] will be reset to the time that
-     * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] was called plus the retry delay specified
-     * in the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig].
-     * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] returns
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a
-     * task that has already succeeded or permanently failed.
-     * 
- */ - public void runTask( - com.google.cloud.tasks.v2.RunTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRunTaskMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * - * - *
-   * Cloud Tasks allows developers to manage the execution of background
-   * work in their applications.
-   * 
- */ - public static final class CloudTasksBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private CloudTasksBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudTasksBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudTasksBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists queues.
-     * Queues are returned in lexicographical order.
-     * 
- */ - public com.google.cloud.tasks.v2.ListQueuesResponse listQueues( - com.google.cloud.tasks.v2.ListQueuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListQueuesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a queue.
-     * 
- */ - public com.google.cloud.tasks.v2.Queue getQueue( - com.google.cloud.tasks.v2.GetQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetQueueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a queue.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public com.google.cloud.tasks.v2.Queue createQueue( - com.google.cloud.tasks.v2.CreateQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateQueueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a queue.
-     * This method creates the queue if it does not exist and updates
-     * the queue if it does exist.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public com.google.cloud.tasks.v2.Queue updateQueue( - com.google.cloud.tasks.v2.UpdateQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateQueueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a queue.
-     * This command will delete the queue even if it has tasks in it.
-     * Note: If you delete a queue, a queue with the same name can't be created
-     * for 7 days.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public com.google.protobuf.Empty deleteQueue( - com.google.cloud.tasks.v2.DeleteQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteQueueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Purges a queue by deleting all of its tasks.
-     * All tasks created before this method is called are permanently deleted.
-     * Purge operations can take up to one minute to take effect. Tasks
-     * might be dispatched before the purge takes effect. A purge is irreversible.
-     * 
- */ - public com.google.cloud.tasks.v2.Queue purgeQueue( - com.google.cloud.tasks.v2.PurgeQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPurgeQueueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Pauses the queue.
-     * If a queue is paused then the system will stop dispatching tasks
-     * until the queue is resumed via
-     * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. Tasks can still be added
-     * when the queue is paused. A queue is paused if its
-     * [state][google.cloud.tasks.v2.Queue.state] is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED].
-     * 
- */ - public com.google.cloud.tasks.v2.Queue pauseQueue( - com.google.cloud.tasks.v2.PauseQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPauseQueueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Resume a queue.
-     * This method resumes a queue after it has been
-     * [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED] or
-     * [DISABLED][google.cloud.tasks.v2.Queue.State.DISABLED]. The state of a queue is stored
-     * in the queue's [state][google.cloud.tasks.v2.Queue.state]; after calling this method it
-     * will be set to [RUNNING][google.cloud.tasks.v2.Queue.State.RUNNING].
-     * WARNING: Resuming many high-QPS queues at the same time can
-     * lead to target overloading. If you are resuming high-QPS
-     * queues, follow the 500/50/5 pattern described in
-     * [Managing Cloud Tasks Scaling
-     * Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
-     * 
- */ - public com.google.cloud.tasks.v2.Queue resumeQueue( - com.google.cloud.tasks.v2.ResumeQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResumeQueueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the access control policy for a [Queue][google.cloud.tasks.v2.Queue].
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.getIamPolicy`
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Replaces any existing
-     * policy.
-     * Note: The Cloud Console does not check queue-level IAM permissions yet.
-     * Project-level permissions are required to use the Cloud Console.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.setIamPolicy`
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2.Queue].
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the tasks in a queue.
-     * By default, only the [BASIC][google.cloud.tasks.v2.Task.View.BASIC] view is retrieved
-     * due to performance considerations;
-     * [response_view][google.cloud.tasks.v2.ListTasksRequest.response_view] controls the
-     * subset of information which is returned.
-     * The tasks may be returned in any order. The ordering may change at any
-     * time.
-     * 
- */ - public com.google.cloud.tasks.v2.ListTasksResponse listTasks( - com.google.cloud.tasks.v2.ListTasksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTasksMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a task.
-     * 
- */ - public com.google.cloud.tasks.v2.Task getTask( - com.google.cloud.tasks.v2.GetTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTaskMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a task and adds it to a queue.
-     * Tasks cannot be updated after creation; there is no UpdateTask command.
-     * * The maximum task size is 100KB.
-     * 
- */ - public com.google.cloud.tasks.v2.Task createTask( - com.google.cloud.tasks.v2.CreateTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateTaskMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a task.
-     * A task can be deleted if it is scheduled or dispatched. A task
-     * cannot be deleted if it has executed successfully or permanently
-     * failed.
-     * 
- */ - public com.google.protobuf.Empty deleteTask( - com.google.cloud.tasks.v2.DeleteTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTaskMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Forces a task to run now.
-     * When this method is called, Cloud Tasks will dispatch the task, even if
-     * the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits] or
-     * is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED].
-     * This command is meant to be used for manual debugging. For
-     * example, [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] can be used to retry a failed
-     * task after a fix has been made or to manually force a task to be
-     * dispatched now.
-     * The dispatched task is returned. That is, the task that is returned
-     * contains the [status][Task.status] after the task is dispatched but
-     * before the task is received by its target.
-     * If Cloud Tasks receives a successful response from the task's
-     * target, then the task will be deleted; otherwise the task's
-     * [schedule_time][google.cloud.tasks.v2.Task.schedule_time] will be reset to the time that
-     * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] was called plus the retry delay specified
-     * in the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig].
-     * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] returns
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a
-     * task that has already succeeded or permanently failed.
-     * 
- */ - public com.google.cloud.tasks.v2.Task runTask( - com.google.cloud.tasks.v2.RunTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRunTaskMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Cloud Tasks allows developers to manage the execution of background
-   * work in their applications.
-   * 
- */ - public static final class CloudTasksFutureStub - extends io.grpc.stub.AbstractFutureStub { - private CloudTasksFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudTasksFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists queues.
-     * Queues are returned in lexicographical order.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.tasks.v2.ListQueuesResponse> - listQueues(com.google.cloud.tasks.v2.ListQueuesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListQueuesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a queue.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getQueue(com.google.cloud.tasks.v2.GetQueueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetQueueMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a queue.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createQueue(com.google.cloud.tasks.v2.CreateQueueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateQueueMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a queue.
-     * This method creates the queue if it does not exist and updates
-     * the queue if it does exist.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateQueue(com.google.cloud.tasks.v2.UpdateQueueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateQueueMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a queue.
-     * This command will delete the queue even if it has tasks in it.
-     * Note: If you delete a queue, a queue with the same name can't be created
-     * for 7 days.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteQueue(com.google.cloud.tasks.v2.DeleteQueueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Purges a queue by deleting all of its tasks.
-     * All tasks created before this method is called are permanently deleted.
-     * Purge operations can take up to one minute to take effect. Tasks
-     * might be dispatched before the purge takes effect. A purge is irreversible.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - purgeQueue(com.google.cloud.tasks.v2.PurgeQueueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPurgeQueueMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Pauses the queue.
-     * If a queue is paused then the system will stop dispatching tasks
-     * until the queue is resumed via
-     * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. Tasks can still be added
-     * when the queue is paused. A queue is paused if its
-     * [state][google.cloud.tasks.v2.Queue.state] is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - pauseQueue(com.google.cloud.tasks.v2.PauseQueueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPauseQueueMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Resume a queue.
-     * This method resumes a queue after it has been
-     * [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED] or
-     * [DISABLED][google.cloud.tasks.v2.Queue.State.DISABLED]. The state of a queue is stored
-     * in the queue's [state][google.cloud.tasks.v2.Queue.state]; after calling this method it
-     * will be set to [RUNNING][google.cloud.tasks.v2.Queue.State.RUNNING].
-     * WARNING: Resuming many high-QPS queues at the same time can
-     * lead to target overloading. If you are resuming high-QPS
-     * queues, follow the 500/50/5 pattern described in
-     * [Managing Cloud Tasks Scaling
-     * Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - resumeQueue(com.google.cloud.tasks.v2.ResumeQueueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResumeQueueMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the access control policy for a [Queue][google.cloud.tasks.v2.Queue].
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.getIamPolicy`
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Replaces any existing
-     * policy.
-     * Note: The Cloud Console does not check queue-level IAM permissions yet.
-     * Project-level permissions are required to use the Cloud Console.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.setIamPolicy`
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2.Queue].
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the tasks in a queue.
-     * By default, only the [BASIC][google.cloud.tasks.v2.Task.View.BASIC] view is retrieved
-     * due to performance considerations;
-     * [response_view][google.cloud.tasks.v2.ListTasksRequest.response_view] controls the
-     * subset of information which is returned.
-     * The tasks may be returned in any order. The ordering may change at any
-     * time.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.tasks.v2.ListTasksResponse> - listTasks(com.google.cloud.tasks.v2.ListTasksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTasksMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a task.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getTask(com.google.cloud.tasks.v2.GetTaskRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTaskMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a task and adds it to a queue.
-     * Tasks cannot be updated after creation; there is no UpdateTask command.
-     * * The maximum task size is 100KB.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createTask(com.google.cloud.tasks.v2.CreateTaskRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateTaskMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a task.
-     * A task can be deleted if it is scheduled or dispatched. A task
-     * cannot be deleted if it has executed successfully or permanently
-     * failed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteTask( - com.google.cloud.tasks.v2.DeleteTaskRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteTaskMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Forces a task to run now.
-     * When this method is called, Cloud Tasks will dispatch the task, even if
-     * the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits] or
-     * is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED].
-     * This command is meant to be used for manual debugging. For
-     * example, [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] can be used to retry a failed
-     * task after a fix has been made or to manually force a task to be
-     * dispatched now.
-     * The dispatched task is returned. That is, the task that is returned
-     * contains the [status][Task.status] after the task is dispatched but
-     * before the task is received by its target.
-     * If Cloud Tasks receives a successful response from the task's
-     * target, then the task will be deleted; otherwise the task's
-     * [schedule_time][google.cloud.tasks.v2.Task.schedule_time] will be reset to the time that
-     * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] was called plus the retry delay specified
-     * in the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig].
-     * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] returns
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a
-     * task that has already succeeded or permanently failed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - runTask(com.google.cloud.tasks.v2.RunTaskRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRunTaskMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_QUEUES = 0; - private static final int METHODID_GET_QUEUE = 1; - private static final int METHODID_CREATE_QUEUE = 2; - private static final int METHODID_UPDATE_QUEUE = 3; - private static final int METHODID_DELETE_QUEUE = 4; - private static final int METHODID_PURGE_QUEUE = 5; - private static final int METHODID_PAUSE_QUEUE = 6; - private static final int METHODID_RESUME_QUEUE = 7; - private static final int METHODID_GET_IAM_POLICY = 8; - private static final int METHODID_SET_IAM_POLICY = 9; - private static final int METHODID_TEST_IAM_PERMISSIONS = 10; - private static final int METHODID_LIST_TASKS = 11; - private static final int METHODID_GET_TASK = 12; - private static final int METHODID_CREATE_TASK = 13; - private static final int METHODID_DELETE_TASK = 14; - private static final int METHODID_RUN_TASK = 15; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final CloudTasksImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CloudTasksImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_QUEUES: - serviceImpl.listQueues( - (com.google.cloud.tasks.v2.ListQueuesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_QUEUE: - serviceImpl.getQueue( - (com.google.cloud.tasks.v2.GetQueueRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_QUEUE: - serviceImpl.createQueue( - (com.google.cloud.tasks.v2.CreateQueueRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_QUEUE: - serviceImpl.updateQueue( - (com.google.cloud.tasks.v2.UpdateQueueRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_QUEUE: - serviceImpl.deleteQueue( - (com.google.cloud.tasks.v2.DeleteQueueRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PURGE_QUEUE: - serviceImpl.purgeQueue( - (com.google.cloud.tasks.v2.PurgeQueueRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PAUSE_QUEUE: - serviceImpl.pauseQueue( - (com.google.cloud.tasks.v2.PauseQueueRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESUME_QUEUE: - serviceImpl.resumeQueue( - (com.google.cloud.tasks.v2.ResumeQueueRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_TASKS: - serviceImpl.listTasks( - (com.google.cloud.tasks.v2.ListTasksRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_TASK: - serviceImpl.getTask( - (com.google.cloud.tasks.v2.GetTaskRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_TASK: - serviceImpl.createTask( - (com.google.cloud.tasks.v2.CreateTaskRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_TASK: - serviceImpl.deleteTask( - (com.google.cloud.tasks.v2.DeleteTaskRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RUN_TASK: - serviceImpl.runTask( - (com.google.cloud.tasks.v2.RunTaskRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class CloudTasksBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CloudTasksBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CloudTasks"); - } - } - - private static final class CloudTasksFileDescriptorSupplier - extends CloudTasksBaseDescriptorSupplier { - CloudTasksFileDescriptorSupplier() {} - } - - private static final class CloudTasksMethodDescriptorSupplier - extends CloudTasksBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CloudTasksMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (CloudTasksGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CloudTasksFileDescriptorSupplier()) - .addMethod(getListQueuesMethod()) - .addMethod(getGetQueueMethod()) - .addMethod(getCreateQueueMethod()) - .addMethod(getUpdateQueueMethod()) - .addMethod(getDeleteQueueMethod()) - .addMethod(getPurgeQueueMethod()) - .addMethod(getPauseQueueMethod()) - .addMethod(getResumeQueueMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .addMethod(getListTasksMethod()) - .addMethod(getGetTaskMethod()) - .addMethod(getCreateTaskMethod()) - .addMethod(getDeleteTaskMethod()) - .addMethod(getRunTaskMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-tasks-v2beta2/pom.xml b/grpc-google-cloud-tasks-v2beta2/pom.xml deleted file mode 100644 index a4d4714e..00000000 --- a/grpc-google-cloud-tasks-v2beta2/pom.xml +++ /dev/null @@ -1,69 +0,0 @@ - - 4.0.0 - com.google.api.grpc - grpc-google-cloud-tasks-v2beta2 - 0.93.12 - grpc-google-cloud-tasks-v2beta2 - GRPC library for grpc-google-cloud-tasks-v2beta2 - - com.google.cloud - google-cloud-tasks-parent - 2.3.12 - - - - io.grpc - grpc-api - - - io.grpc - grpc-stub - - - io.grpc - grpc-protobuf - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-cloud-tasks-v2beta2 - - - com.google.guava - guava - - - com.google.api.grpc - proto-google-iam-v1 - - - - - - java9 - - [9,) - - - - javax.annotation - javax.annotation-api - - - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - \ No newline at end of file diff --git a/grpc-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksGrpc.java b/grpc-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksGrpc.java deleted file mode 100644 index 4471b15a..00000000 --- a/grpc-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksGrpc.java +++ /dev/null @@ -1,2985 +0,0 @@ -/* - * Copyright 2020 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; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Cloud Tasks allows developers to manage the execution of background
- * work in their applications.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/tasks/v2beta2/cloudtasks.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CloudTasksGrpc { - - private CloudTasksGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.tasks.v2beta2.CloudTasks"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.ListQueuesRequest, - com.google.cloud.tasks.v2beta2.ListQueuesResponse> - getListQueuesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListQueues", - requestType = com.google.cloud.tasks.v2beta2.ListQueuesRequest.class, - responseType = com.google.cloud.tasks.v2beta2.ListQueuesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.ListQueuesRequest, - com.google.cloud.tasks.v2beta2.ListQueuesResponse> - getListQueuesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.ListQueuesRequest, - com.google.cloud.tasks.v2beta2.ListQueuesResponse> - getListQueuesMethod; - if ((getListQueuesMethod = CloudTasksGrpc.getListQueuesMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getListQueuesMethod = CloudTasksGrpc.getListQueuesMethod) == null) { - CloudTasksGrpc.getListQueuesMethod = - getListQueuesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListQueues")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.ListQueuesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.ListQueuesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("ListQueues")) - .build(); - } - } - } - return getListQueuesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.GetQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getGetQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetQueue", - requestType = com.google.cloud.tasks.v2beta2.GetQueueRequest.class, - responseType = com.google.cloud.tasks.v2beta2.Queue.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.GetQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getGetQueueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.GetQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getGetQueueMethod; - if ((getGetQueueMethod = CloudTasksGrpc.getGetQueueMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getGetQueueMethod = CloudTasksGrpc.getGetQueueMethod) == null) { - CloudTasksGrpc.getGetQueueMethod = - getGetQueueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.GetQueueRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.Queue.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("GetQueue")) - .build(); - } - } - } - return getGetQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.CreateQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getCreateQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateQueue", - requestType = com.google.cloud.tasks.v2beta2.CreateQueueRequest.class, - responseType = com.google.cloud.tasks.v2beta2.Queue.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.CreateQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getCreateQueueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.CreateQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getCreateQueueMethod; - if ((getCreateQueueMethod = CloudTasksGrpc.getCreateQueueMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getCreateQueueMethod = CloudTasksGrpc.getCreateQueueMethod) == null) { - CloudTasksGrpc.getCreateQueueMethod = - getCreateQueueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.CreateQueueRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.Queue.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("CreateQueue")) - .build(); - } - } - } - return getCreateQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.UpdateQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getUpdateQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateQueue", - requestType = com.google.cloud.tasks.v2beta2.UpdateQueueRequest.class, - responseType = com.google.cloud.tasks.v2beta2.Queue.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.UpdateQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getUpdateQueueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.UpdateQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getUpdateQueueMethod; - if ((getUpdateQueueMethod = CloudTasksGrpc.getUpdateQueueMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getUpdateQueueMethod = CloudTasksGrpc.getUpdateQueueMethod) == null) { - CloudTasksGrpc.getUpdateQueueMethod = - getUpdateQueueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.UpdateQueueRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.Queue.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("UpdateQueue")) - .build(); - } - } - } - return getUpdateQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.DeleteQueueRequest, com.google.protobuf.Empty> - getDeleteQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteQueue", - requestType = com.google.cloud.tasks.v2beta2.DeleteQueueRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.DeleteQueueRequest, com.google.protobuf.Empty> - getDeleteQueueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.DeleteQueueRequest, com.google.protobuf.Empty> - getDeleteQueueMethod; - if ((getDeleteQueueMethod = CloudTasksGrpc.getDeleteQueueMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getDeleteQueueMethod = CloudTasksGrpc.getDeleteQueueMethod) == null) { - CloudTasksGrpc.getDeleteQueueMethod = - getDeleteQueueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.DeleteQueueRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("DeleteQueue")) - .build(); - } - } - } - return getDeleteQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.PurgeQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getPurgeQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PurgeQueue", - requestType = com.google.cloud.tasks.v2beta2.PurgeQueueRequest.class, - responseType = com.google.cloud.tasks.v2beta2.Queue.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.PurgeQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getPurgeQueueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.PurgeQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getPurgeQueueMethod; - if ((getPurgeQueueMethod = CloudTasksGrpc.getPurgeQueueMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getPurgeQueueMethod = CloudTasksGrpc.getPurgeQueueMethod) == null) { - CloudTasksGrpc.getPurgeQueueMethod = - getPurgeQueueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.PurgeQueueRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.Queue.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("PurgeQueue")) - .build(); - } - } - } - return getPurgeQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.PauseQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getPauseQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PauseQueue", - requestType = com.google.cloud.tasks.v2beta2.PauseQueueRequest.class, - responseType = com.google.cloud.tasks.v2beta2.Queue.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.PauseQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getPauseQueueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.PauseQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getPauseQueueMethod; - if ((getPauseQueueMethod = CloudTasksGrpc.getPauseQueueMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getPauseQueueMethod = CloudTasksGrpc.getPauseQueueMethod) == null) { - CloudTasksGrpc.getPauseQueueMethod = - getPauseQueueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PauseQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.PauseQueueRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.Queue.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("PauseQueue")) - .build(); - } - } - } - return getPauseQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.ResumeQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getResumeQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResumeQueue", - requestType = com.google.cloud.tasks.v2beta2.ResumeQueueRequest.class, - responseType = com.google.cloud.tasks.v2beta2.Queue.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.ResumeQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getResumeQueueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.ResumeQueueRequest, com.google.cloud.tasks.v2beta2.Queue> - getResumeQueueMethod; - if ((getResumeQueueMethod = CloudTasksGrpc.getResumeQueueMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getResumeQueueMethod = CloudTasksGrpc.getResumeQueueMethod) == null) { - CloudTasksGrpc.getResumeQueueMethod = - getResumeQueueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResumeQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.ResumeQueueRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.Queue.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("ResumeQueue")) - .build(); - } - } - } - return getResumeQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor - getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = CloudTasksGrpc.getGetIamPolicyMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getGetIamPolicyMethod = CloudTasksGrpc.getGetIamPolicyMethod) == null) { - CloudTasksGrpc.getGetIamPolicyMethod = - getGetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor - getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = CloudTasksGrpc.getSetIamPolicyMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getSetIamPolicyMethod = CloudTasksGrpc.getSetIamPolicyMethod) == null) { - CloudTasksGrpc.getSetIamPolicyMethod = - getSetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = CloudTasksGrpc.getTestIamPermissionsMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getTestIamPermissionsMethod = CloudTasksGrpc.getTestIamPermissionsMethod) == null) { - CloudTasksGrpc.getTestIamPermissionsMethod = - getTestIamPermissionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new CloudTasksMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.ListTasksRequest, - com.google.cloud.tasks.v2beta2.ListTasksResponse> - getListTasksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTasks", - requestType = com.google.cloud.tasks.v2beta2.ListTasksRequest.class, - responseType = com.google.cloud.tasks.v2beta2.ListTasksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.ListTasksRequest, - com.google.cloud.tasks.v2beta2.ListTasksResponse> - getListTasksMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.ListTasksRequest, - com.google.cloud.tasks.v2beta2.ListTasksResponse> - getListTasksMethod; - if ((getListTasksMethod = CloudTasksGrpc.getListTasksMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getListTasksMethod = CloudTasksGrpc.getListTasksMethod) == null) { - CloudTasksGrpc.getListTasksMethod = - getListTasksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTasks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.ListTasksRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.ListTasksResponse - .getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("ListTasks")) - .build(); - } - } - } - return getListTasksMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.GetTaskRequest, com.google.cloud.tasks.v2beta2.Task> - getGetTaskMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTask", - requestType = com.google.cloud.tasks.v2beta2.GetTaskRequest.class, - responseType = com.google.cloud.tasks.v2beta2.Task.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.GetTaskRequest, com.google.cloud.tasks.v2beta2.Task> - getGetTaskMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.GetTaskRequest, com.google.cloud.tasks.v2beta2.Task> - getGetTaskMethod; - if ((getGetTaskMethod = CloudTasksGrpc.getGetTaskMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getGetTaskMethod = CloudTasksGrpc.getGetTaskMethod) == null) { - CloudTasksGrpc.getGetTaskMethod = - getGetTaskMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTask")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.GetTaskRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.Task.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("GetTask")) - .build(); - } - } - } - return getGetTaskMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.CreateTaskRequest, com.google.cloud.tasks.v2beta2.Task> - getCreateTaskMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTask", - requestType = com.google.cloud.tasks.v2beta2.CreateTaskRequest.class, - responseType = com.google.cloud.tasks.v2beta2.Task.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.CreateTaskRequest, com.google.cloud.tasks.v2beta2.Task> - getCreateTaskMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.CreateTaskRequest, com.google.cloud.tasks.v2beta2.Task> - getCreateTaskMethod; - if ((getCreateTaskMethod = CloudTasksGrpc.getCreateTaskMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getCreateTaskMethod = CloudTasksGrpc.getCreateTaskMethod) == null) { - CloudTasksGrpc.getCreateTaskMethod = - getCreateTaskMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTask")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.CreateTaskRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.Task.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("CreateTask")) - .build(); - } - } - } - return getCreateTaskMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.DeleteTaskRequest, com.google.protobuf.Empty> - getDeleteTaskMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteTask", - requestType = com.google.cloud.tasks.v2beta2.DeleteTaskRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.DeleteTaskRequest, com.google.protobuf.Empty> - getDeleteTaskMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.DeleteTaskRequest, com.google.protobuf.Empty> - getDeleteTaskMethod; - if ((getDeleteTaskMethod = CloudTasksGrpc.getDeleteTaskMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getDeleteTaskMethod = CloudTasksGrpc.getDeleteTaskMethod) == null) { - CloudTasksGrpc.getDeleteTaskMethod = - getDeleteTaskMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTask")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.DeleteTaskRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("DeleteTask")) - .build(); - } - } - } - return getDeleteTaskMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.LeaseTasksRequest, - com.google.cloud.tasks.v2beta2.LeaseTasksResponse> - getLeaseTasksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LeaseTasks", - requestType = com.google.cloud.tasks.v2beta2.LeaseTasksRequest.class, - responseType = com.google.cloud.tasks.v2beta2.LeaseTasksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.LeaseTasksRequest, - com.google.cloud.tasks.v2beta2.LeaseTasksResponse> - getLeaseTasksMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.LeaseTasksRequest, - com.google.cloud.tasks.v2beta2.LeaseTasksResponse> - getLeaseTasksMethod; - if ((getLeaseTasksMethod = CloudTasksGrpc.getLeaseTasksMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getLeaseTasksMethod = CloudTasksGrpc.getLeaseTasksMethod) == null) { - CloudTasksGrpc.getLeaseTasksMethod = - getLeaseTasksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LeaseTasks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.LeaseTasksRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.LeaseTasksResponse - .getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("LeaseTasks")) - .build(); - } - } - } - return getLeaseTasksMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest, com.google.protobuf.Empty> - getAcknowledgeTaskMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AcknowledgeTask", - requestType = com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest, com.google.protobuf.Empty> - getAcknowledgeTaskMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest, com.google.protobuf.Empty> - getAcknowledgeTaskMethod; - if ((getAcknowledgeTaskMethod = CloudTasksGrpc.getAcknowledgeTaskMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getAcknowledgeTaskMethod = CloudTasksGrpc.getAcknowledgeTaskMethod) == null) { - CloudTasksGrpc.getAcknowledgeTaskMethod = - getAcknowledgeTaskMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AcknowledgeTask")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new CloudTasksMethodDescriptorSupplier("AcknowledgeTask")) - .build(); - } - } - } - return getAcknowledgeTaskMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.RenewLeaseRequest, com.google.cloud.tasks.v2beta2.Task> - getRenewLeaseMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RenewLease", - requestType = com.google.cloud.tasks.v2beta2.RenewLeaseRequest.class, - responseType = com.google.cloud.tasks.v2beta2.Task.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.RenewLeaseRequest, com.google.cloud.tasks.v2beta2.Task> - getRenewLeaseMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.RenewLeaseRequest, com.google.cloud.tasks.v2beta2.Task> - getRenewLeaseMethod; - if ((getRenewLeaseMethod = CloudTasksGrpc.getRenewLeaseMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getRenewLeaseMethod = CloudTasksGrpc.getRenewLeaseMethod) == null) { - CloudTasksGrpc.getRenewLeaseMethod = - getRenewLeaseMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RenewLease")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.RenewLeaseRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.Task.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("RenewLease")) - .build(); - } - } - } - return getRenewLeaseMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.CancelLeaseRequest, com.google.cloud.tasks.v2beta2.Task> - getCancelLeaseMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CancelLease", - requestType = com.google.cloud.tasks.v2beta2.CancelLeaseRequest.class, - responseType = com.google.cloud.tasks.v2beta2.Task.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.CancelLeaseRequest, com.google.cloud.tasks.v2beta2.Task> - getCancelLeaseMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.CancelLeaseRequest, com.google.cloud.tasks.v2beta2.Task> - getCancelLeaseMethod; - if ((getCancelLeaseMethod = CloudTasksGrpc.getCancelLeaseMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getCancelLeaseMethod = CloudTasksGrpc.getCancelLeaseMethod) == null) { - CloudTasksGrpc.getCancelLeaseMethod = - getCancelLeaseMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelLease")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.CancelLeaseRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.Task.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("CancelLease")) - .build(); - } - } - } - return getCancelLeaseMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.RunTaskRequest, com.google.cloud.tasks.v2beta2.Task> - getRunTaskMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RunTask", - requestType = com.google.cloud.tasks.v2beta2.RunTaskRequest.class, - responseType = com.google.cloud.tasks.v2beta2.Task.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.RunTaskRequest, com.google.cloud.tasks.v2beta2.Task> - getRunTaskMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta2.RunTaskRequest, com.google.cloud.tasks.v2beta2.Task> - getRunTaskMethod; - if ((getRunTaskMethod = CloudTasksGrpc.getRunTaskMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getRunTaskMethod = CloudTasksGrpc.getRunTaskMethod) == null) { - CloudTasksGrpc.getRunTaskMethod = - getRunTaskMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunTask")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.RunTaskRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta2.Task.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("RunTask")) - .build(); - } - } - } - return getRunTaskMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static CloudTasksStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudTasksStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudTasksStub(channel, callOptions); - } - }; - return CloudTasksStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CloudTasksBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudTasksBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudTasksBlockingStub(channel, callOptions); - } - }; - return CloudTasksBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static CloudTasksFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudTasksFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudTasksFutureStub(channel, callOptions); - } - }; - return CloudTasksFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Cloud Tasks allows developers to manage the execution of background
-   * work in their applications.
-   * 
- */ - public abstract static class CloudTasksImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists queues.
-     * Queues are returned in lexicographical order.
-     * 
- */ - public void listQueues( - com.google.cloud.tasks.v2beta2.ListQueuesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListQueuesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a queue.
-     * 
- */ - public void getQueue( - com.google.cloud.tasks.v2beta2.GetQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetQueueMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a queue.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public void createQueue( - com.google.cloud.tasks.v2beta2.CreateQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateQueueMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a queue.
-     * This method creates the queue if it does not exist and updates
-     * the queue if it does exist.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public void updateQueue( - com.google.cloud.tasks.v2beta2.UpdateQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateQueueMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a queue.
-     * This command will delete the queue even if it has tasks in it.
-     * Note: If you delete a queue, a queue with the same name can't be created
-     * for 7 days.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public void deleteQueue( - com.google.cloud.tasks.v2beta2.DeleteQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteQueueMethod(), responseObserver); - } - - /** - * - * - *
-     * Purges a queue by deleting all of its tasks.
-     * All tasks created before this method is called are permanently deleted.
-     * Purge operations can take up to one minute to take effect. Tasks
-     * might be dispatched before the purge takes effect. A purge is irreversible.
-     * 
- */ - public void purgeQueue( - com.google.cloud.tasks.v2beta2.PurgeQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPurgeQueueMethod(), responseObserver); - } - - /** - * - * - *
-     * Pauses the queue.
-     * If a queue is paused then the system will stop dispatching tasks
-     * until the queue is resumed via
-     * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue]. Tasks can still be added
-     * when the queue is paused. A queue is paused if its
-     * [state][google.cloud.tasks.v2beta2.Queue.state] is [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED].
-     * 
- */ - public void pauseQueue( - com.google.cloud.tasks.v2beta2.PauseQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPauseQueueMethod(), responseObserver); - } - - /** - * - * - *
-     * Resume a queue.
-     * This method resumes a queue after it has been
-     * [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED] or
-     * [DISABLED][google.cloud.tasks.v2beta2.Queue.State.DISABLED]. The state of a queue is stored
-     * in the queue's [state][google.cloud.tasks.v2beta2.Queue.state]; after calling this method it
-     * will be set to [RUNNING][google.cloud.tasks.v2beta2.Queue.State.RUNNING].
-     * WARNING: Resuming many high-QPS queues at the same time can
-     * lead to target overloading. If you are resuming high-QPS
-     * queues, follow the 500/50/5 pattern described in
-     * [Managing Cloud Tasks Scaling
-     * Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
-     * 
- */ - public void resumeQueue( - com.google.cloud.tasks.v2beta2.ResumeQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getResumeQueueMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue].
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.getIamPolicy`
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Replaces any existing
-     * policy.
-     * Note: The Cloud Console does not check queue-level IAM permissions yet.
-     * Project-level permissions are required to use the Cloud Console.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.setIamPolicy`
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta2.Queue].
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the tasks in a queue.
-     * By default, only the [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC] view is retrieved
-     * due to performance considerations;
-     * [response_view][google.cloud.tasks.v2beta2.ListTasksRequest.response_view] controls the
-     * subset of information which is returned.
-     * The tasks may be returned in any order. The ordering may change at any
-     * time.
-     * 
- */ - public void listTasks( - com.google.cloud.tasks.v2beta2.ListTasksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTasksMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a task.
-     * 
- */ - public void getTask( - com.google.cloud.tasks.v2beta2.GetTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTaskMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a task and adds it to a queue.
-     * Tasks cannot be updated after creation; there is no UpdateTask command.
-     * * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum task size is
-     *   100KB.
-     * * For [pull queues][google.cloud.tasks.v2beta2.PullTarget], the maximum task size is 1MB.
-     * 
- */ - public void createTask( - com.google.cloud.tasks.v2beta2.CreateTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTaskMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a task.
-     * A task can be deleted if it is scheduled or dispatched. A task
-     * cannot be deleted if it has completed successfully or permanently
-     * failed.
-     * 
- */ - public void deleteTask( - com.google.cloud.tasks.v2beta2.DeleteTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTaskMethod(), responseObserver); - } - - /** - * - * - *
-     * Leases tasks from a pull queue for
-     * [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
-     * This method is invoked by the worker to obtain a lease. The
-     * worker must acknowledge the task via
-     * [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] after they have
-     * performed the work associated with the task.
-     * The [payload][google.cloud.tasks.v2beta2.PullMessage.payload] is intended to store data that
-     * the worker needs to perform the work associated with the task. To
-     * return the payloads in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse], set
-     * [response_view][google.cloud.tasks.v2beta2.LeaseTasksRequest.response_view] to
-     * [FULL][google.cloud.tasks.v2beta2.Task.View.FULL].
-     * A maximum of 10 qps of [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks]
-     * requests are allowed per
-     * queue. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED]
-     * is returned when this limit is
-     * exceeded. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED]
-     * is also returned when
-     * [max_tasks_dispatched_per_second][google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second]
-     * is exceeded.
-     * 
- */ - public void leaseTasks( - com.google.cloud.tasks.v2beta2.LeaseTasksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLeaseTasksMethod(), responseObserver); - } - - /** - * - * - *
-     * Acknowledges a pull task.
-     * The worker, that is, the entity that
-     * [leased][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] this task must call this method
-     * to indicate that the work associated with the task has finished.
-     * The worker must acknowledge a task within the
-     * [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration] or the lease
-     * will expire and the task will become available to be leased
-     * again. After the task is acknowledged, it will not be returned
-     * by a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks],
-     * [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask], or
-     * [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks].
-     * 
- */ - public void acknowledgeTask( - com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAcknowledgeTaskMethod(), responseObserver); - } - - /** - * - * - *
-     * Renew the current lease of a pull task.
-     * The worker can use this method to extend the lease by a new
-     * duration, starting from now. The new task lease will be
-     * returned in the task's [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
-     * 
- */ - public void renewLease( - com.google.cloud.tasks.v2beta2.RenewLeaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRenewLeaseMethod(), responseObserver); - } - - /** - * - * - *
-     * Cancel a pull task's lease.
-     * The worker can use this method to cancel a task's lease by
-     * setting its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] to now. This will
-     * make the task available to be leased to the next caller of
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks].
-     * 
- */ - public void cancelLease( - com.google.cloud.tasks.v2beta2.CancelLeaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCancelLeaseMethod(), responseObserver); - } - - /** - * - * - *
-     * Forces a task to run now.
-     * When this method is called, Cloud Tasks will dispatch the task, even if
-     * the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta2.RateLimits] or
-     * is [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED].
-     * This command is meant to be used for manual debugging. For
-     * example, [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] can be used to retry a failed
-     * task after a fix has been made or to manually force a task to be
-     * dispatched now.
-     * The dispatched task is returned. That is, the task that is returned
-     * contains the [status][google.cloud.tasks.v2beta2.Task.status] after the task is dispatched but
-     * before the task is received by its target.
-     * If Cloud Tasks receives a successful response from the task's
-     * target, then the task will be deleted; otherwise the task's
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be reset to the time that
-     * [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] was called plus the retry delay specified
-     * in the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig].
-     * [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] returns
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a
-     * task that has already succeeded or permanently failed.
-     * [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] cannot be called on a
-     * [pull task][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- */ - public void runTask( - com.google.cloud.tasks.v2beta2.RunTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunTaskMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListQueuesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta2.ListQueuesRequest, - com.google.cloud.tasks.v2beta2.ListQueuesResponse>( - this, METHODID_LIST_QUEUES))) - .addMethod( - getGetQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta2.GetQueueRequest, - com.google.cloud.tasks.v2beta2.Queue>(this, METHODID_GET_QUEUE))) - .addMethod( - getCreateQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta2.CreateQueueRequest, - com.google.cloud.tasks.v2beta2.Queue>(this, METHODID_CREATE_QUEUE))) - .addMethod( - getUpdateQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta2.UpdateQueueRequest, - com.google.cloud.tasks.v2beta2.Queue>(this, METHODID_UPDATE_QUEUE))) - .addMethod( - getDeleteQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta2.DeleteQueueRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_QUEUE))) - .addMethod( - getPurgeQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta2.PurgeQueueRequest, - com.google.cloud.tasks.v2beta2.Queue>(this, METHODID_PURGE_QUEUE))) - .addMethod( - getPauseQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta2.PauseQueueRequest, - com.google.cloud.tasks.v2beta2.Queue>(this, METHODID_PAUSE_QUEUE))) - .addMethod( - getResumeQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta2.ResumeQueueRequest, - com.google.cloud.tasks.v2beta2.Queue>(this, METHODID_RESUME_QUEUE))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .addMethod( - getListTasksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta2.ListTasksRequest, - com.google.cloud.tasks.v2beta2.ListTasksResponse>(this, METHODID_LIST_TASKS))) - .addMethod( - getGetTaskMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta2.GetTaskRequest, - com.google.cloud.tasks.v2beta2.Task>(this, METHODID_GET_TASK))) - .addMethod( - getCreateTaskMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta2.CreateTaskRequest, - com.google.cloud.tasks.v2beta2.Task>(this, METHODID_CREATE_TASK))) - .addMethod( - getDeleteTaskMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta2.DeleteTaskRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_TASK))) - .addMethod( - getLeaseTasksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta2.LeaseTasksRequest, - com.google.cloud.tasks.v2beta2.LeaseTasksResponse>( - this, METHODID_LEASE_TASKS))) - .addMethod( - getAcknowledgeTaskMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest, - com.google.protobuf.Empty>(this, METHODID_ACKNOWLEDGE_TASK))) - .addMethod( - getRenewLeaseMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta2.RenewLeaseRequest, - com.google.cloud.tasks.v2beta2.Task>(this, METHODID_RENEW_LEASE))) - .addMethod( - getCancelLeaseMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta2.CancelLeaseRequest, - com.google.cloud.tasks.v2beta2.Task>(this, METHODID_CANCEL_LEASE))) - .addMethod( - getRunTaskMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta2.RunTaskRequest, - com.google.cloud.tasks.v2beta2.Task>(this, METHODID_RUN_TASK))) - .build(); - } - } - - /** - * - * - *
-   * Cloud Tasks allows developers to manage the execution of background
-   * work in their applications.
-   * 
- */ - public static final class CloudTasksStub extends io.grpc.stub.AbstractAsyncStub { - private CloudTasksStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudTasksStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudTasksStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists queues.
-     * Queues are returned in lexicographical order.
-     * 
- */ - public void listQueues( - com.google.cloud.tasks.v2beta2.ListQueuesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListQueuesMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets a queue.
-     * 
- */ - public void getQueue( - com.google.cloud.tasks.v2beta2.GetQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetQueueMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a queue.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public void createQueue( - com.google.cloud.tasks.v2beta2.CreateQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateQueueMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a queue.
-     * This method creates the queue if it does not exist and updates
-     * the queue if it does exist.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public void updateQueue( - com.google.cloud.tasks.v2beta2.UpdateQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateQueueMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a queue.
-     * This command will delete the queue even if it has tasks in it.
-     * Note: If you delete a queue, a queue with the same name can't be created
-     * for 7 days.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public void deleteQueue( - com.google.cloud.tasks.v2beta2.DeleteQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Purges a queue by deleting all of its tasks.
-     * All tasks created before this method is called are permanently deleted.
-     * Purge operations can take up to one minute to take effect. Tasks
-     * might be dispatched before the purge takes effect. A purge is irreversible.
-     * 
- */ - public void purgeQueue( - com.google.cloud.tasks.v2beta2.PurgeQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPurgeQueueMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Pauses the queue.
-     * If a queue is paused then the system will stop dispatching tasks
-     * until the queue is resumed via
-     * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue]. Tasks can still be added
-     * when the queue is paused. A queue is paused if its
-     * [state][google.cloud.tasks.v2beta2.Queue.state] is [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED].
-     * 
- */ - public void pauseQueue( - com.google.cloud.tasks.v2beta2.PauseQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPauseQueueMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Resume a queue.
-     * This method resumes a queue after it has been
-     * [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED] or
-     * [DISABLED][google.cloud.tasks.v2beta2.Queue.State.DISABLED]. The state of a queue is stored
-     * in the queue's [state][google.cloud.tasks.v2beta2.Queue.state]; after calling this method it
-     * will be set to [RUNNING][google.cloud.tasks.v2beta2.Queue.State.RUNNING].
-     * WARNING: Resuming many high-QPS queues at the same time can
-     * lead to target overloading. If you are resuming high-QPS
-     * queues, follow the 500/50/5 pattern described in
-     * [Managing Cloud Tasks Scaling
-     * Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
-     * 
- */ - public void resumeQueue( - com.google.cloud.tasks.v2beta2.ResumeQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResumeQueueMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue].
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.getIamPolicy`
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Replaces any existing
-     * policy.
-     * Note: The Cloud Console does not check queue-level IAM permissions yet.
-     * Project-level permissions are required to use the Cloud Console.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.setIamPolicy`
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta2.Queue].
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists the tasks in a queue.
-     * By default, only the [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC] view is retrieved
-     * due to performance considerations;
-     * [response_view][google.cloud.tasks.v2beta2.ListTasksRequest.response_view] controls the
-     * subset of information which is returned.
-     * The tasks may be returned in any order. The ordering may change at any
-     * time.
-     * 
- */ - public void listTasks( - com.google.cloud.tasks.v2beta2.ListTasksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTasksMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets a task.
-     * 
- */ - public void getTask( - com.google.cloud.tasks.v2beta2.GetTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTaskMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a task and adds it to a queue.
-     * Tasks cannot be updated after creation; there is no UpdateTask command.
-     * * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum task size is
-     *   100KB.
-     * * For [pull queues][google.cloud.tasks.v2beta2.PullTarget], the maximum task size is 1MB.
-     * 
- */ - public void createTask( - com.google.cloud.tasks.v2beta2.CreateTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTaskMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Deletes a task.
-     * A task can be deleted if it is scheduled or dispatched. A task
-     * cannot be deleted if it has completed successfully or permanently
-     * failed.
-     * 
- */ - public void deleteTask( - com.google.cloud.tasks.v2beta2.DeleteTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTaskMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Leases tasks from a pull queue for
-     * [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
-     * This method is invoked by the worker to obtain a lease. The
-     * worker must acknowledge the task via
-     * [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] after they have
-     * performed the work associated with the task.
-     * The [payload][google.cloud.tasks.v2beta2.PullMessage.payload] is intended to store data that
-     * the worker needs to perform the work associated with the task. To
-     * return the payloads in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse], set
-     * [response_view][google.cloud.tasks.v2beta2.LeaseTasksRequest.response_view] to
-     * [FULL][google.cloud.tasks.v2beta2.Task.View.FULL].
-     * A maximum of 10 qps of [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks]
-     * requests are allowed per
-     * queue. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED]
-     * is returned when this limit is
-     * exceeded. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED]
-     * is also returned when
-     * [max_tasks_dispatched_per_second][google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second]
-     * is exceeded.
-     * 
- */ - public void leaseTasks( - com.google.cloud.tasks.v2beta2.LeaseTasksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLeaseTasksMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Acknowledges a pull task.
-     * The worker, that is, the entity that
-     * [leased][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] this task must call this method
-     * to indicate that the work associated with the task has finished.
-     * The worker must acknowledge a task within the
-     * [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration] or the lease
-     * will expire and the task will become available to be leased
-     * again. After the task is acknowledged, it will not be returned
-     * by a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks],
-     * [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask], or
-     * [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks].
-     * 
- */ - public void acknowledgeTask( - com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAcknowledgeTaskMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Renew the current lease of a pull task.
-     * The worker can use this method to extend the lease by a new
-     * duration, starting from now. The new task lease will be
-     * returned in the task's [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
-     * 
- */ - public void renewLease( - com.google.cloud.tasks.v2beta2.RenewLeaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRenewLeaseMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Cancel a pull task's lease.
-     * The worker can use this method to cancel a task's lease by
-     * setting its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] to now. This will
-     * make the task available to be leased to the next caller of
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks].
-     * 
- */ - public void cancelLease( - com.google.cloud.tasks.v2beta2.CancelLeaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCancelLeaseMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Forces a task to run now.
-     * When this method is called, Cloud Tasks will dispatch the task, even if
-     * the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta2.RateLimits] or
-     * is [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED].
-     * This command is meant to be used for manual debugging. For
-     * example, [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] can be used to retry a failed
-     * task after a fix has been made or to manually force a task to be
-     * dispatched now.
-     * The dispatched task is returned. That is, the task that is returned
-     * contains the [status][google.cloud.tasks.v2beta2.Task.status] after the task is dispatched but
-     * before the task is received by its target.
-     * If Cloud Tasks receives a successful response from the task's
-     * target, then the task will be deleted; otherwise the task's
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be reset to the time that
-     * [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] was called plus the retry delay specified
-     * in the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig].
-     * [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] returns
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a
-     * task that has already succeeded or permanently failed.
-     * [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] cannot be called on a
-     * [pull task][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- */ - public void runTask( - com.google.cloud.tasks.v2beta2.RunTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRunTaskMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * - * - *
-   * Cloud Tasks allows developers to manage the execution of background
-   * work in their applications.
-   * 
- */ - public static final class CloudTasksBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private CloudTasksBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudTasksBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudTasksBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists queues.
-     * Queues are returned in lexicographical order.
-     * 
- */ - public com.google.cloud.tasks.v2beta2.ListQueuesResponse listQueues( - com.google.cloud.tasks.v2beta2.ListQueuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListQueuesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a queue.
-     * 
- */ - public com.google.cloud.tasks.v2beta2.Queue getQueue( - com.google.cloud.tasks.v2beta2.GetQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetQueueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a queue.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public com.google.cloud.tasks.v2beta2.Queue createQueue( - com.google.cloud.tasks.v2beta2.CreateQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateQueueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a queue.
-     * This method creates the queue if it does not exist and updates
-     * the queue if it does exist.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public com.google.cloud.tasks.v2beta2.Queue updateQueue( - com.google.cloud.tasks.v2beta2.UpdateQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateQueueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a queue.
-     * This command will delete the queue even if it has tasks in it.
-     * Note: If you delete a queue, a queue with the same name can't be created
-     * for 7 days.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public com.google.protobuf.Empty deleteQueue( - com.google.cloud.tasks.v2beta2.DeleteQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteQueueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Purges a queue by deleting all of its tasks.
-     * All tasks created before this method is called are permanently deleted.
-     * Purge operations can take up to one minute to take effect. Tasks
-     * might be dispatched before the purge takes effect. A purge is irreversible.
-     * 
- */ - public com.google.cloud.tasks.v2beta2.Queue purgeQueue( - com.google.cloud.tasks.v2beta2.PurgeQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPurgeQueueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Pauses the queue.
-     * If a queue is paused then the system will stop dispatching tasks
-     * until the queue is resumed via
-     * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue]. Tasks can still be added
-     * when the queue is paused. A queue is paused if its
-     * [state][google.cloud.tasks.v2beta2.Queue.state] is [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED].
-     * 
- */ - public com.google.cloud.tasks.v2beta2.Queue pauseQueue( - com.google.cloud.tasks.v2beta2.PauseQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPauseQueueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Resume a queue.
-     * This method resumes a queue after it has been
-     * [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED] or
-     * [DISABLED][google.cloud.tasks.v2beta2.Queue.State.DISABLED]. The state of a queue is stored
-     * in the queue's [state][google.cloud.tasks.v2beta2.Queue.state]; after calling this method it
-     * will be set to [RUNNING][google.cloud.tasks.v2beta2.Queue.State.RUNNING].
-     * WARNING: Resuming many high-QPS queues at the same time can
-     * lead to target overloading. If you are resuming high-QPS
-     * queues, follow the 500/50/5 pattern described in
-     * [Managing Cloud Tasks Scaling
-     * Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
-     * 
- */ - public com.google.cloud.tasks.v2beta2.Queue resumeQueue( - com.google.cloud.tasks.v2beta2.ResumeQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResumeQueueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue].
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.getIamPolicy`
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Replaces any existing
-     * policy.
-     * Note: The Cloud Console does not check queue-level IAM permissions yet.
-     * Project-level permissions are required to use the Cloud Console.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.setIamPolicy`
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta2.Queue].
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the tasks in a queue.
-     * By default, only the [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC] view is retrieved
-     * due to performance considerations;
-     * [response_view][google.cloud.tasks.v2beta2.ListTasksRequest.response_view] controls the
-     * subset of information which is returned.
-     * The tasks may be returned in any order. The ordering may change at any
-     * time.
-     * 
- */ - public com.google.cloud.tasks.v2beta2.ListTasksResponse listTasks( - com.google.cloud.tasks.v2beta2.ListTasksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTasksMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a task.
-     * 
- */ - public com.google.cloud.tasks.v2beta2.Task getTask( - com.google.cloud.tasks.v2beta2.GetTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTaskMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a task and adds it to a queue.
-     * Tasks cannot be updated after creation; there is no UpdateTask command.
-     * * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum task size is
-     *   100KB.
-     * * For [pull queues][google.cloud.tasks.v2beta2.PullTarget], the maximum task size is 1MB.
-     * 
- */ - public com.google.cloud.tasks.v2beta2.Task createTask( - com.google.cloud.tasks.v2beta2.CreateTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateTaskMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a task.
-     * A task can be deleted if it is scheduled or dispatched. A task
-     * cannot be deleted if it has completed successfully or permanently
-     * failed.
-     * 
- */ - public com.google.protobuf.Empty deleteTask( - com.google.cloud.tasks.v2beta2.DeleteTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTaskMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Leases tasks from a pull queue for
-     * [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
-     * This method is invoked by the worker to obtain a lease. The
-     * worker must acknowledge the task via
-     * [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] after they have
-     * performed the work associated with the task.
-     * The [payload][google.cloud.tasks.v2beta2.PullMessage.payload] is intended to store data that
-     * the worker needs to perform the work associated with the task. To
-     * return the payloads in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse], set
-     * [response_view][google.cloud.tasks.v2beta2.LeaseTasksRequest.response_view] to
-     * [FULL][google.cloud.tasks.v2beta2.Task.View.FULL].
-     * A maximum of 10 qps of [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks]
-     * requests are allowed per
-     * queue. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED]
-     * is returned when this limit is
-     * exceeded. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED]
-     * is also returned when
-     * [max_tasks_dispatched_per_second][google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second]
-     * is exceeded.
-     * 
- */ - public com.google.cloud.tasks.v2beta2.LeaseTasksResponse leaseTasks( - com.google.cloud.tasks.v2beta2.LeaseTasksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLeaseTasksMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Acknowledges a pull task.
-     * The worker, that is, the entity that
-     * [leased][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] this task must call this method
-     * to indicate that the work associated with the task has finished.
-     * The worker must acknowledge a task within the
-     * [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration] or the lease
-     * will expire and the task will become available to be leased
-     * again. After the task is acknowledged, it will not be returned
-     * by a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks],
-     * [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask], or
-     * [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks].
-     * 
- */ - public com.google.protobuf.Empty acknowledgeTask( - com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAcknowledgeTaskMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Renew the current lease of a pull task.
-     * The worker can use this method to extend the lease by a new
-     * duration, starting from now. The new task lease will be
-     * returned in the task's [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
-     * 
- */ - public com.google.cloud.tasks.v2beta2.Task renewLease( - com.google.cloud.tasks.v2beta2.RenewLeaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRenewLeaseMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Cancel a pull task's lease.
-     * The worker can use this method to cancel a task's lease by
-     * setting its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] to now. This will
-     * make the task available to be leased to the next caller of
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks].
-     * 
- */ - public com.google.cloud.tasks.v2beta2.Task cancelLease( - com.google.cloud.tasks.v2beta2.CancelLeaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCancelLeaseMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Forces a task to run now.
-     * When this method is called, Cloud Tasks will dispatch the task, even if
-     * the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta2.RateLimits] or
-     * is [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED].
-     * This command is meant to be used for manual debugging. For
-     * example, [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] can be used to retry a failed
-     * task after a fix has been made or to manually force a task to be
-     * dispatched now.
-     * The dispatched task is returned. That is, the task that is returned
-     * contains the [status][google.cloud.tasks.v2beta2.Task.status] after the task is dispatched but
-     * before the task is received by its target.
-     * If Cloud Tasks receives a successful response from the task's
-     * target, then the task will be deleted; otherwise the task's
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be reset to the time that
-     * [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] was called plus the retry delay specified
-     * in the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig].
-     * [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] returns
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a
-     * task that has already succeeded or permanently failed.
-     * [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] cannot be called on a
-     * [pull task][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- */ - public com.google.cloud.tasks.v2beta2.Task runTask( - com.google.cloud.tasks.v2beta2.RunTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRunTaskMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Cloud Tasks allows developers to manage the execution of background
-   * work in their applications.
-   * 
- */ - public static final class CloudTasksFutureStub - extends io.grpc.stub.AbstractFutureStub { - private CloudTasksFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudTasksFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists queues.
-     * Queues are returned in lexicographical order.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.tasks.v2beta2.ListQueuesResponse> - listQueues(com.google.cloud.tasks.v2beta2.ListQueuesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListQueuesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a queue.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getQueue(com.google.cloud.tasks.v2beta2.GetQueueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetQueueMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a queue.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createQueue(com.google.cloud.tasks.v2beta2.CreateQueueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateQueueMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a queue.
-     * This method creates the queue if it does not exist and updates
-     * the queue if it does exist.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateQueue(com.google.cloud.tasks.v2beta2.UpdateQueueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateQueueMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a queue.
-     * This command will delete the queue even if it has tasks in it.
-     * Note: If you delete a queue, a queue with the same name can't be created
-     * for 7 days.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteQueue(com.google.cloud.tasks.v2beta2.DeleteQueueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Purges a queue by deleting all of its tasks.
-     * All tasks created before this method is called are permanently deleted.
-     * Purge operations can take up to one minute to take effect. Tasks
-     * might be dispatched before the purge takes effect. A purge is irreversible.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - purgeQueue(com.google.cloud.tasks.v2beta2.PurgeQueueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPurgeQueueMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Pauses the queue.
-     * If a queue is paused then the system will stop dispatching tasks
-     * until the queue is resumed via
-     * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue]. Tasks can still be added
-     * when the queue is paused. A queue is paused if its
-     * [state][google.cloud.tasks.v2beta2.Queue.state] is [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - pauseQueue(com.google.cloud.tasks.v2beta2.PauseQueueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPauseQueueMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Resume a queue.
-     * This method resumes a queue after it has been
-     * [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED] or
-     * [DISABLED][google.cloud.tasks.v2beta2.Queue.State.DISABLED]. The state of a queue is stored
-     * in the queue's [state][google.cloud.tasks.v2beta2.Queue.state]; after calling this method it
-     * will be set to [RUNNING][google.cloud.tasks.v2beta2.Queue.State.RUNNING].
-     * WARNING: Resuming many high-QPS queues at the same time can
-     * lead to target overloading. If you are resuming high-QPS
-     * queues, follow the 500/50/5 pattern described in
-     * [Managing Cloud Tasks Scaling
-     * Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - resumeQueue(com.google.cloud.tasks.v2beta2.ResumeQueueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResumeQueueMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue].
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.getIamPolicy`
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Replaces any existing
-     * policy.
-     * Note: The Cloud Console does not check queue-level IAM permissions yet.
-     * Project-level permissions are required to use the Cloud Console.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.setIamPolicy`
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta2.Queue].
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the tasks in a queue.
-     * By default, only the [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC] view is retrieved
-     * due to performance considerations;
-     * [response_view][google.cloud.tasks.v2beta2.ListTasksRequest.response_view] controls the
-     * subset of information which is returned.
-     * The tasks may be returned in any order. The ordering may change at any
-     * time.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.tasks.v2beta2.ListTasksResponse> - listTasks(com.google.cloud.tasks.v2beta2.ListTasksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTasksMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a task.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getTask(com.google.cloud.tasks.v2beta2.GetTaskRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTaskMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a task and adds it to a queue.
-     * Tasks cannot be updated after creation; there is no UpdateTask command.
-     * * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum task size is
-     *   100KB.
-     * * For [pull queues][google.cloud.tasks.v2beta2.PullTarget], the maximum task size is 1MB.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createTask(com.google.cloud.tasks.v2beta2.CreateTaskRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateTaskMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a task.
-     * A task can be deleted if it is scheduled or dispatched. A task
-     * cannot be deleted if it has completed successfully or permanently
-     * failed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteTask( - com.google.cloud.tasks.v2beta2.DeleteTaskRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteTaskMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Leases tasks from a pull queue for
-     * [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
-     * This method is invoked by the worker to obtain a lease. The
-     * worker must acknowledge the task via
-     * [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] after they have
-     * performed the work associated with the task.
-     * The [payload][google.cloud.tasks.v2beta2.PullMessage.payload] is intended to store data that
-     * the worker needs to perform the work associated with the task. To
-     * return the payloads in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse], set
-     * [response_view][google.cloud.tasks.v2beta2.LeaseTasksRequest.response_view] to
-     * [FULL][google.cloud.tasks.v2beta2.Task.View.FULL].
-     * A maximum of 10 qps of [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks]
-     * requests are allowed per
-     * queue. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED]
-     * is returned when this limit is
-     * exceeded. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED]
-     * is also returned when
-     * [max_tasks_dispatched_per_second][google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second]
-     * is exceeded.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.tasks.v2beta2.LeaseTasksResponse> - leaseTasks(com.google.cloud.tasks.v2beta2.LeaseTasksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLeaseTasksMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Acknowledges a pull task.
-     * The worker, that is, the entity that
-     * [leased][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] this task must call this method
-     * to indicate that the work associated with the task has finished.
-     * The worker must acknowledge a task within the
-     * [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration] or the lease
-     * will expire and the task will become available to be leased
-     * again. After the task is acknowledged, it will not be returned
-     * by a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks],
-     * [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask], or
-     * [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - acknowledgeTask(com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAcknowledgeTaskMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Renew the current lease of a pull task.
-     * The worker can use this method to extend the lease by a new
-     * duration, starting from now. The new task lease will be
-     * returned in the task's [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - renewLease(com.google.cloud.tasks.v2beta2.RenewLeaseRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRenewLeaseMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Cancel a pull task's lease.
-     * The worker can use this method to cancel a task's lease by
-     * setting its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] to now. This will
-     * make the task available to be leased to the next caller of
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - cancelLease(com.google.cloud.tasks.v2beta2.CancelLeaseRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCancelLeaseMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Forces a task to run now.
-     * When this method is called, Cloud Tasks will dispatch the task, even if
-     * the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta2.RateLimits] or
-     * is [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED].
-     * This command is meant to be used for manual debugging. For
-     * example, [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] can be used to retry a failed
-     * task after a fix has been made or to manually force a task to be
-     * dispatched now.
-     * The dispatched task is returned. That is, the task that is returned
-     * contains the [status][google.cloud.tasks.v2beta2.Task.status] after the task is dispatched but
-     * before the task is received by its target.
-     * If Cloud Tasks receives a successful response from the task's
-     * target, then the task will be deleted; otherwise the task's
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be reset to the time that
-     * [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] was called plus the retry delay specified
-     * in the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig].
-     * [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] returns
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a
-     * task that has already succeeded or permanently failed.
-     * [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] cannot be called on a
-     * [pull task][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - runTask(com.google.cloud.tasks.v2beta2.RunTaskRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRunTaskMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_QUEUES = 0; - private static final int METHODID_GET_QUEUE = 1; - private static final int METHODID_CREATE_QUEUE = 2; - private static final int METHODID_UPDATE_QUEUE = 3; - private static final int METHODID_DELETE_QUEUE = 4; - private static final int METHODID_PURGE_QUEUE = 5; - private static final int METHODID_PAUSE_QUEUE = 6; - private static final int METHODID_RESUME_QUEUE = 7; - private static final int METHODID_GET_IAM_POLICY = 8; - private static final int METHODID_SET_IAM_POLICY = 9; - private static final int METHODID_TEST_IAM_PERMISSIONS = 10; - private static final int METHODID_LIST_TASKS = 11; - private static final int METHODID_GET_TASK = 12; - private static final int METHODID_CREATE_TASK = 13; - private static final int METHODID_DELETE_TASK = 14; - private static final int METHODID_LEASE_TASKS = 15; - private static final int METHODID_ACKNOWLEDGE_TASK = 16; - private static final int METHODID_RENEW_LEASE = 17; - private static final int METHODID_CANCEL_LEASE = 18; - private static final int METHODID_RUN_TASK = 19; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final CloudTasksImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CloudTasksImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_QUEUES: - serviceImpl.listQueues( - (com.google.cloud.tasks.v2beta2.ListQueuesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_QUEUE: - serviceImpl.getQueue( - (com.google.cloud.tasks.v2beta2.GetQueueRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_QUEUE: - serviceImpl.createQueue( - (com.google.cloud.tasks.v2beta2.CreateQueueRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_QUEUE: - serviceImpl.updateQueue( - (com.google.cloud.tasks.v2beta2.UpdateQueueRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_QUEUE: - serviceImpl.deleteQueue( - (com.google.cloud.tasks.v2beta2.DeleteQueueRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PURGE_QUEUE: - serviceImpl.purgeQueue( - (com.google.cloud.tasks.v2beta2.PurgeQueueRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PAUSE_QUEUE: - serviceImpl.pauseQueue( - (com.google.cloud.tasks.v2beta2.PauseQueueRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESUME_QUEUE: - serviceImpl.resumeQueue( - (com.google.cloud.tasks.v2beta2.ResumeQueueRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_TASKS: - serviceImpl.listTasks( - (com.google.cloud.tasks.v2beta2.ListTasksRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_TASK: - serviceImpl.getTask( - (com.google.cloud.tasks.v2beta2.GetTaskRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_TASK: - serviceImpl.createTask( - (com.google.cloud.tasks.v2beta2.CreateTaskRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_TASK: - serviceImpl.deleteTask( - (com.google.cloud.tasks.v2beta2.DeleteTaskRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LEASE_TASKS: - serviceImpl.leaseTasks( - (com.google.cloud.tasks.v2beta2.LeaseTasksRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_ACKNOWLEDGE_TASK: - serviceImpl.acknowledgeTask( - (com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RENEW_LEASE: - serviceImpl.renewLease( - (com.google.cloud.tasks.v2beta2.RenewLeaseRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CANCEL_LEASE: - serviceImpl.cancelLease( - (com.google.cloud.tasks.v2beta2.CancelLeaseRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RUN_TASK: - serviceImpl.runTask( - (com.google.cloud.tasks.v2beta2.RunTaskRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class CloudTasksBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CloudTasksBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CloudTasks"); - } - } - - private static final class CloudTasksFileDescriptorSupplier - extends CloudTasksBaseDescriptorSupplier { - CloudTasksFileDescriptorSupplier() {} - } - - private static final class CloudTasksMethodDescriptorSupplier - extends CloudTasksBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CloudTasksMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (CloudTasksGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CloudTasksFileDescriptorSupplier()) - .addMethod(getListQueuesMethod()) - .addMethod(getGetQueueMethod()) - .addMethod(getCreateQueueMethod()) - .addMethod(getUpdateQueueMethod()) - .addMethod(getDeleteQueueMethod()) - .addMethod(getPurgeQueueMethod()) - .addMethod(getPauseQueueMethod()) - .addMethod(getResumeQueueMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .addMethod(getListTasksMethod()) - .addMethod(getGetTaskMethod()) - .addMethod(getCreateTaskMethod()) - .addMethod(getDeleteTaskMethod()) - .addMethod(getLeaseTasksMethod()) - .addMethod(getAcknowledgeTaskMethod()) - .addMethod(getRenewLeaseMethod()) - .addMethod(getCancelLeaseMethod()) - .addMethod(getRunTaskMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-tasks-v2beta3/pom.xml b/grpc-google-cloud-tasks-v2beta3/pom.xml deleted file mode 100644 index dc9d55de..00000000 --- a/grpc-google-cloud-tasks-v2beta3/pom.xml +++ /dev/null @@ -1,69 +0,0 @@ - - 4.0.0 - com.google.api.grpc - grpc-google-cloud-tasks-v2beta3 - 0.93.12 - grpc-google-cloud-tasks-v2beta3 - GRPC library for grpc-google-cloud-tasks-v2beta3 - - com.google.cloud - google-cloud-tasks-parent - 2.3.12 - - - - io.grpc - grpc-api - - - io.grpc - grpc-stub - - - io.grpc - grpc-protobuf - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-cloud-tasks-v2beta3 - - - com.google.guava - guava - - - com.google.api.grpc - proto-google-iam-v1 - - - - - - java9 - - [9,) - - - - javax.annotation - javax.annotation-api - - - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - \ No newline at end of file diff --git a/grpc-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksGrpc.java b/grpc-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksGrpc.java deleted file mode 100644 index f661a208..00000000 --- a/grpc-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksGrpc.java +++ /dev/null @@ -1,2381 +0,0 @@ -/* - * Copyright 2020 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.v2beta3; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Cloud Tasks allows developers to manage the execution of background
- * work in their applications.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/tasks/v2beta3/cloudtasks.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CloudTasksGrpc { - - private CloudTasksGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.tasks.v2beta3.CloudTasks"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.ListQueuesRequest, - com.google.cloud.tasks.v2beta3.ListQueuesResponse> - getListQueuesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListQueues", - requestType = com.google.cloud.tasks.v2beta3.ListQueuesRequest.class, - responseType = com.google.cloud.tasks.v2beta3.ListQueuesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.ListQueuesRequest, - com.google.cloud.tasks.v2beta3.ListQueuesResponse> - getListQueuesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.ListQueuesRequest, - com.google.cloud.tasks.v2beta3.ListQueuesResponse> - getListQueuesMethod; - if ((getListQueuesMethod = CloudTasksGrpc.getListQueuesMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getListQueuesMethod = CloudTasksGrpc.getListQueuesMethod) == null) { - CloudTasksGrpc.getListQueuesMethod = - getListQueuesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListQueues")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.ListQueuesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.ListQueuesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("ListQueues")) - .build(); - } - } - } - return getListQueuesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.GetQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getGetQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetQueue", - requestType = com.google.cloud.tasks.v2beta3.GetQueueRequest.class, - responseType = com.google.cloud.tasks.v2beta3.Queue.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.GetQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getGetQueueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.GetQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getGetQueueMethod; - if ((getGetQueueMethod = CloudTasksGrpc.getGetQueueMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getGetQueueMethod = CloudTasksGrpc.getGetQueueMethod) == null) { - CloudTasksGrpc.getGetQueueMethod = - getGetQueueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.GetQueueRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.Queue.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("GetQueue")) - .build(); - } - } - } - return getGetQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.CreateQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getCreateQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateQueue", - requestType = com.google.cloud.tasks.v2beta3.CreateQueueRequest.class, - responseType = com.google.cloud.tasks.v2beta3.Queue.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.CreateQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getCreateQueueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.CreateQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getCreateQueueMethod; - if ((getCreateQueueMethod = CloudTasksGrpc.getCreateQueueMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getCreateQueueMethod = CloudTasksGrpc.getCreateQueueMethod) == null) { - CloudTasksGrpc.getCreateQueueMethod = - getCreateQueueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.CreateQueueRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.Queue.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("CreateQueue")) - .build(); - } - } - } - return getCreateQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.UpdateQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getUpdateQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateQueue", - requestType = com.google.cloud.tasks.v2beta3.UpdateQueueRequest.class, - responseType = com.google.cloud.tasks.v2beta3.Queue.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.UpdateQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getUpdateQueueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.UpdateQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getUpdateQueueMethod; - if ((getUpdateQueueMethod = CloudTasksGrpc.getUpdateQueueMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getUpdateQueueMethod = CloudTasksGrpc.getUpdateQueueMethod) == null) { - CloudTasksGrpc.getUpdateQueueMethod = - getUpdateQueueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.UpdateQueueRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.Queue.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("UpdateQueue")) - .build(); - } - } - } - return getUpdateQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.DeleteQueueRequest, com.google.protobuf.Empty> - getDeleteQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteQueue", - requestType = com.google.cloud.tasks.v2beta3.DeleteQueueRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.DeleteQueueRequest, com.google.protobuf.Empty> - getDeleteQueueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.DeleteQueueRequest, com.google.protobuf.Empty> - getDeleteQueueMethod; - if ((getDeleteQueueMethod = CloudTasksGrpc.getDeleteQueueMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getDeleteQueueMethod = CloudTasksGrpc.getDeleteQueueMethod) == null) { - CloudTasksGrpc.getDeleteQueueMethod = - getDeleteQueueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.DeleteQueueRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("DeleteQueue")) - .build(); - } - } - } - return getDeleteQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.PurgeQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getPurgeQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PurgeQueue", - requestType = com.google.cloud.tasks.v2beta3.PurgeQueueRequest.class, - responseType = com.google.cloud.tasks.v2beta3.Queue.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.PurgeQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getPurgeQueueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.PurgeQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getPurgeQueueMethod; - if ((getPurgeQueueMethod = CloudTasksGrpc.getPurgeQueueMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getPurgeQueueMethod = CloudTasksGrpc.getPurgeQueueMethod) == null) { - CloudTasksGrpc.getPurgeQueueMethod = - getPurgeQueueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PurgeQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.PurgeQueueRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.Queue.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("PurgeQueue")) - .build(); - } - } - } - return getPurgeQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.PauseQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getPauseQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PauseQueue", - requestType = com.google.cloud.tasks.v2beta3.PauseQueueRequest.class, - responseType = com.google.cloud.tasks.v2beta3.Queue.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.PauseQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getPauseQueueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.PauseQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getPauseQueueMethod; - if ((getPauseQueueMethod = CloudTasksGrpc.getPauseQueueMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getPauseQueueMethod = CloudTasksGrpc.getPauseQueueMethod) == null) { - CloudTasksGrpc.getPauseQueueMethod = - getPauseQueueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PauseQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.PauseQueueRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.Queue.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("PauseQueue")) - .build(); - } - } - } - return getPauseQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.ResumeQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getResumeQueueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResumeQueue", - requestType = com.google.cloud.tasks.v2beta3.ResumeQueueRequest.class, - responseType = com.google.cloud.tasks.v2beta3.Queue.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.ResumeQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getResumeQueueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.ResumeQueueRequest, com.google.cloud.tasks.v2beta3.Queue> - getResumeQueueMethod; - if ((getResumeQueueMethod = CloudTasksGrpc.getResumeQueueMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getResumeQueueMethod = CloudTasksGrpc.getResumeQueueMethod) == null) { - CloudTasksGrpc.getResumeQueueMethod = - getResumeQueueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResumeQueue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.ResumeQueueRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.Queue.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("ResumeQueue")) - .build(); - } - } - } - return getResumeQueueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor - getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = CloudTasksGrpc.getGetIamPolicyMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getGetIamPolicyMethod = CloudTasksGrpc.getGetIamPolicyMethod) == null) { - CloudTasksGrpc.getGetIamPolicyMethod = - getGetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor - getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = CloudTasksGrpc.getSetIamPolicyMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getSetIamPolicyMethod = CloudTasksGrpc.getSetIamPolicyMethod) == null) { - CloudTasksGrpc.getSetIamPolicyMethod = - getSetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = CloudTasksGrpc.getTestIamPermissionsMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getTestIamPermissionsMethod = CloudTasksGrpc.getTestIamPermissionsMethod) == null) { - CloudTasksGrpc.getTestIamPermissionsMethod = - getTestIamPermissionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new CloudTasksMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.ListTasksRequest, - com.google.cloud.tasks.v2beta3.ListTasksResponse> - getListTasksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTasks", - requestType = com.google.cloud.tasks.v2beta3.ListTasksRequest.class, - responseType = com.google.cloud.tasks.v2beta3.ListTasksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.ListTasksRequest, - com.google.cloud.tasks.v2beta3.ListTasksResponse> - getListTasksMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.ListTasksRequest, - com.google.cloud.tasks.v2beta3.ListTasksResponse> - getListTasksMethod; - if ((getListTasksMethod = CloudTasksGrpc.getListTasksMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getListTasksMethod = CloudTasksGrpc.getListTasksMethod) == null) { - CloudTasksGrpc.getListTasksMethod = - getListTasksMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTasks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.ListTasksRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.ListTasksResponse - .getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("ListTasks")) - .build(); - } - } - } - return getListTasksMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.GetTaskRequest, com.google.cloud.tasks.v2beta3.Task> - getGetTaskMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTask", - requestType = com.google.cloud.tasks.v2beta3.GetTaskRequest.class, - responseType = com.google.cloud.tasks.v2beta3.Task.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.GetTaskRequest, com.google.cloud.tasks.v2beta3.Task> - getGetTaskMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.GetTaskRequest, com.google.cloud.tasks.v2beta3.Task> - getGetTaskMethod; - if ((getGetTaskMethod = CloudTasksGrpc.getGetTaskMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getGetTaskMethod = CloudTasksGrpc.getGetTaskMethod) == null) { - CloudTasksGrpc.getGetTaskMethod = - getGetTaskMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTask")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.GetTaskRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.Task.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("GetTask")) - .build(); - } - } - } - return getGetTaskMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.CreateTaskRequest, com.google.cloud.tasks.v2beta3.Task> - getCreateTaskMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTask", - requestType = com.google.cloud.tasks.v2beta3.CreateTaskRequest.class, - responseType = com.google.cloud.tasks.v2beta3.Task.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.CreateTaskRequest, com.google.cloud.tasks.v2beta3.Task> - getCreateTaskMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.CreateTaskRequest, com.google.cloud.tasks.v2beta3.Task> - getCreateTaskMethod; - if ((getCreateTaskMethod = CloudTasksGrpc.getCreateTaskMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getCreateTaskMethod = CloudTasksGrpc.getCreateTaskMethod) == null) { - CloudTasksGrpc.getCreateTaskMethod = - getCreateTaskMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTask")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.CreateTaskRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.Task.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("CreateTask")) - .build(); - } - } - } - return getCreateTaskMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.DeleteTaskRequest, com.google.protobuf.Empty> - getDeleteTaskMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteTask", - requestType = com.google.cloud.tasks.v2beta3.DeleteTaskRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.DeleteTaskRequest, com.google.protobuf.Empty> - getDeleteTaskMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.DeleteTaskRequest, com.google.protobuf.Empty> - getDeleteTaskMethod; - if ((getDeleteTaskMethod = CloudTasksGrpc.getDeleteTaskMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getDeleteTaskMethod = CloudTasksGrpc.getDeleteTaskMethod) == null) { - CloudTasksGrpc.getDeleteTaskMethod = - getDeleteTaskMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTask")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.DeleteTaskRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("DeleteTask")) - .build(); - } - } - } - return getDeleteTaskMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.RunTaskRequest, com.google.cloud.tasks.v2beta3.Task> - getRunTaskMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RunTask", - requestType = com.google.cloud.tasks.v2beta3.RunTaskRequest.class, - responseType = com.google.cloud.tasks.v2beta3.Task.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.RunTaskRequest, com.google.cloud.tasks.v2beta3.Task> - getRunTaskMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.tasks.v2beta3.RunTaskRequest, com.google.cloud.tasks.v2beta3.Task> - getRunTaskMethod; - if ((getRunTaskMethod = CloudTasksGrpc.getRunTaskMethod) == null) { - synchronized (CloudTasksGrpc.class) { - if ((getRunTaskMethod = CloudTasksGrpc.getRunTaskMethod) == null) { - CloudTasksGrpc.getRunTaskMethod = - getRunTaskMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunTask")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.RunTaskRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.tasks.v2beta3.Task.getDefaultInstance())) - .setSchemaDescriptor(new CloudTasksMethodDescriptorSupplier("RunTask")) - .build(); - } - } - } - return getRunTaskMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static CloudTasksStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudTasksStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudTasksStub(channel, callOptions); - } - }; - return CloudTasksStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CloudTasksBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudTasksBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudTasksBlockingStub(channel, callOptions); - } - }; - return CloudTasksBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static CloudTasksFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public CloudTasksFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudTasksFutureStub(channel, callOptions); - } - }; - return CloudTasksFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Cloud Tasks allows developers to manage the execution of background
-   * work in their applications.
-   * 
- */ - public abstract static class CloudTasksImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists queues.
-     * Queues are returned in lexicographical order.
-     * 
- */ - public void listQueues( - com.google.cloud.tasks.v2beta3.ListQueuesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListQueuesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a queue.
-     * 
- */ - public void getQueue( - com.google.cloud.tasks.v2beta3.GetQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetQueueMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a queue.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public void createQueue( - com.google.cloud.tasks.v2beta3.CreateQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateQueueMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a queue.
-     * This method creates the queue if it does not exist and updates
-     * the queue if it does exist.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public void updateQueue( - com.google.cloud.tasks.v2beta3.UpdateQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateQueueMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a queue.
-     * This command will delete the queue even if it has tasks in it.
-     * Note: If you delete a queue, a queue with the same name can't be created
-     * for 7 days.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public void deleteQueue( - com.google.cloud.tasks.v2beta3.DeleteQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteQueueMethod(), responseObserver); - } - - /** - * - * - *
-     * Purges a queue by deleting all of its tasks.
-     * All tasks created before this method is called are permanently deleted.
-     * Purge operations can take up to one minute to take effect. Tasks
-     * might be dispatched before the purge takes effect. A purge is irreversible.
-     * 
- */ - public void purgeQueue( - com.google.cloud.tasks.v2beta3.PurgeQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPurgeQueueMethod(), responseObserver); - } - - /** - * - * - *
-     * Pauses the queue.
-     * If a queue is paused then the system will stop dispatching tasks
-     * until the queue is resumed via
-     * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue]. Tasks can still be added
-     * when the queue is paused. A queue is paused if its
-     * [state][google.cloud.tasks.v2beta3.Queue.state] is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED].
-     * 
- */ - public void pauseQueue( - com.google.cloud.tasks.v2beta3.PauseQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPauseQueueMethod(), responseObserver); - } - - /** - * - * - *
-     * Resume a queue.
-     * This method resumes a queue after it has been
-     * [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED] or
-     * [DISABLED][google.cloud.tasks.v2beta3.Queue.State.DISABLED]. The state of a queue is stored
-     * in the queue's [state][google.cloud.tasks.v2beta3.Queue.state]; after calling this method it
-     * will be set to [RUNNING][google.cloud.tasks.v2beta3.Queue.State.RUNNING].
-     * WARNING: Resuming many high-QPS queues at the same time can
-     * lead to target overloading. If you are resuming high-QPS
-     * queues, follow the 500/50/5 pattern described in
-     * [Managing Cloud Tasks Scaling
-     * Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
-     * 
- */ - public void resumeQueue( - com.google.cloud.tasks.v2beta3.ResumeQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getResumeQueueMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue].
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.getIamPolicy`
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Replaces any existing
-     * policy.
-     * Note: The Cloud Console does not check queue-level IAM permissions yet.
-     * Project-level permissions are required to use the Cloud Console.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.setIamPolicy`
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta3.Queue].
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the tasks in a queue.
-     * By default, only the [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC] view is retrieved
-     * due to performance considerations;
-     * [response_view][google.cloud.tasks.v2beta3.ListTasksRequest.response_view] controls the
-     * subset of information which is returned.
-     * The tasks may be returned in any order. The ordering may change at any
-     * time.
-     * 
- */ - public void listTasks( - com.google.cloud.tasks.v2beta3.ListTasksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTasksMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a task.
-     * 
- */ - public void getTask( - com.google.cloud.tasks.v2beta3.GetTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTaskMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a task and adds it to a queue.
-     * Tasks cannot be updated after creation; there is no UpdateTask command.
-     * * The maximum task size is 100KB.
-     * 
- */ - public void createTask( - com.google.cloud.tasks.v2beta3.CreateTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTaskMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a task.
-     * A task can be deleted if it is scheduled or dispatched. A task
-     * cannot be deleted if it has executed successfully or permanently
-     * failed.
-     * 
- */ - public void deleteTask( - com.google.cloud.tasks.v2beta3.DeleteTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTaskMethod(), responseObserver); - } - - /** - * - * - *
-     * Forces a task to run now.
-     * When this method is called, Cloud Tasks will dispatch the task, even if
-     * the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta3.RateLimits] or
-     * is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED].
-     * This command is meant to be used for manual debugging. For
-     * example, [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] can be used to retry a failed
-     * task after a fix has been made or to manually force a task to be
-     * dispatched now.
-     * The dispatched task is returned. That is, the task that is returned
-     * contains the [status][Task.status] after the task is dispatched but
-     * before the task is received by its target.
-     * If Cloud Tasks receives a successful response from the task's
-     * target, then the task will be deleted; otherwise the task's
-     * [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] will be reset to the time that
-     * [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] was called plus the retry delay specified
-     * in the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig].
-     * [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] returns
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a
-     * task that has already succeeded or permanently failed.
-     * 
- */ - public void runTask( - com.google.cloud.tasks.v2beta3.RunTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunTaskMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListQueuesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta3.ListQueuesRequest, - com.google.cloud.tasks.v2beta3.ListQueuesResponse>( - this, METHODID_LIST_QUEUES))) - .addMethod( - getGetQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta3.GetQueueRequest, - com.google.cloud.tasks.v2beta3.Queue>(this, METHODID_GET_QUEUE))) - .addMethod( - getCreateQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta3.CreateQueueRequest, - com.google.cloud.tasks.v2beta3.Queue>(this, METHODID_CREATE_QUEUE))) - .addMethod( - getUpdateQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta3.UpdateQueueRequest, - com.google.cloud.tasks.v2beta3.Queue>(this, METHODID_UPDATE_QUEUE))) - .addMethod( - getDeleteQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta3.DeleteQueueRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_QUEUE))) - .addMethod( - getPurgeQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta3.PurgeQueueRequest, - com.google.cloud.tasks.v2beta3.Queue>(this, METHODID_PURGE_QUEUE))) - .addMethod( - getPauseQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta3.PauseQueueRequest, - com.google.cloud.tasks.v2beta3.Queue>(this, METHODID_PAUSE_QUEUE))) - .addMethod( - getResumeQueueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta3.ResumeQueueRequest, - com.google.cloud.tasks.v2beta3.Queue>(this, METHODID_RESUME_QUEUE))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .addMethod( - getListTasksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta3.ListTasksRequest, - com.google.cloud.tasks.v2beta3.ListTasksResponse>(this, METHODID_LIST_TASKS))) - .addMethod( - getGetTaskMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta3.GetTaskRequest, - com.google.cloud.tasks.v2beta3.Task>(this, METHODID_GET_TASK))) - .addMethod( - getCreateTaskMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta3.CreateTaskRequest, - com.google.cloud.tasks.v2beta3.Task>(this, METHODID_CREATE_TASK))) - .addMethod( - getDeleteTaskMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta3.DeleteTaskRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_TASK))) - .addMethod( - getRunTaskMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.tasks.v2beta3.RunTaskRequest, - com.google.cloud.tasks.v2beta3.Task>(this, METHODID_RUN_TASK))) - .build(); - } - } - - /** - * - * - *
-   * Cloud Tasks allows developers to manage the execution of background
-   * work in their applications.
-   * 
- */ - public static final class CloudTasksStub extends io.grpc.stub.AbstractAsyncStub { - private CloudTasksStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudTasksStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudTasksStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists queues.
-     * Queues are returned in lexicographical order.
-     * 
- */ - public void listQueues( - com.google.cloud.tasks.v2beta3.ListQueuesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListQueuesMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets a queue.
-     * 
- */ - public void getQueue( - com.google.cloud.tasks.v2beta3.GetQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetQueueMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a queue.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public void createQueue( - com.google.cloud.tasks.v2beta3.CreateQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateQueueMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a queue.
-     * This method creates the queue if it does not exist and updates
-     * the queue if it does exist.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public void updateQueue( - com.google.cloud.tasks.v2beta3.UpdateQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateQueueMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a queue.
-     * This command will delete the queue even if it has tasks in it.
-     * Note: If you delete a queue, a queue with the same name can't be created
-     * for 7 days.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public void deleteQueue( - com.google.cloud.tasks.v2beta3.DeleteQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Purges a queue by deleting all of its tasks.
-     * All tasks created before this method is called are permanently deleted.
-     * Purge operations can take up to one minute to take effect. Tasks
-     * might be dispatched before the purge takes effect. A purge is irreversible.
-     * 
- */ - public void purgeQueue( - com.google.cloud.tasks.v2beta3.PurgeQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPurgeQueueMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Pauses the queue.
-     * If a queue is paused then the system will stop dispatching tasks
-     * until the queue is resumed via
-     * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue]. Tasks can still be added
-     * when the queue is paused. A queue is paused if its
-     * [state][google.cloud.tasks.v2beta3.Queue.state] is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED].
-     * 
- */ - public void pauseQueue( - com.google.cloud.tasks.v2beta3.PauseQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPauseQueueMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Resume a queue.
-     * This method resumes a queue after it has been
-     * [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED] or
-     * [DISABLED][google.cloud.tasks.v2beta3.Queue.State.DISABLED]. The state of a queue is stored
-     * in the queue's [state][google.cloud.tasks.v2beta3.Queue.state]; after calling this method it
-     * will be set to [RUNNING][google.cloud.tasks.v2beta3.Queue.State.RUNNING].
-     * WARNING: Resuming many high-QPS queues at the same time can
-     * lead to target overloading. If you are resuming high-QPS
-     * queues, follow the 500/50/5 pattern described in
-     * [Managing Cloud Tasks Scaling
-     * Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
-     * 
- */ - public void resumeQueue( - com.google.cloud.tasks.v2beta3.ResumeQueueRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResumeQueueMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue].
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.getIamPolicy`
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Replaces any existing
-     * policy.
-     * Note: The Cloud Console does not check queue-level IAM permissions yet.
-     * Project-level permissions are required to use the Cloud Console.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.setIamPolicy`
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta3.Queue].
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists the tasks in a queue.
-     * By default, only the [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC] view is retrieved
-     * due to performance considerations;
-     * [response_view][google.cloud.tasks.v2beta3.ListTasksRequest.response_view] controls the
-     * subset of information which is returned.
-     * The tasks may be returned in any order. The ordering may change at any
-     * time.
-     * 
- */ - public void listTasks( - com.google.cloud.tasks.v2beta3.ListTasksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTasksMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets a task.
-     * 
- */ - public void getTask( - com.google.cloud.tasks.v2beta3.GetTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTaskMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Creates a task and adds it to a queue.
-     * Tasks cannot be updated after creation; there is no UpdateTask command.
-     * * The maximum task size is 100KB.
-     * 
- */ - public void createTask( - com.google.cloud.tasks.v2beta3.CreateTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTaskMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Deletes a task.
-     * A task can be deleted if it is scheduled or dispatched. A task
-     * cannot be deleted if it has executed successfully or permanently
-     * failed.
-     * 
- */ - public void deleteTask( - com.google.cloud.tasks.v2beta3.DeleteTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTaskMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Forces a task to run now.
-     * When this method is called, Cloud Tasks will dispatch the task, even if
-     * the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta3.RateLimits] or
-     * is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED].
-     * This command is meant to be used for manual debugging. For
-     * example, [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] can be used to retry a failed
-     * task after a fix has been made or to manually force a task to be
-     * dispatched now.
-     * The dispatched task is returned. That is, the task that is returned
-     * contains the [status][Task.status] after the task is dispatched but
-     * before the task is received by its target.
-     * If Cloud Tasks receives a successful response from the task's
-     * target, then the task will be deleted; otherwise the task's
-     * [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] will be reset to the time that
-     * [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] was called plus the retry delay specified
-     * in the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig].
-     * [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] returns
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a
-     * task that has already succeeded or permanently failed.
-     * 
- */ - public void runTask( - com.google.cloud.tasks.v2beta3.RunTaskRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRunTaskMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * - * - *
-   * Cloud Tasks allows developers to manage the execution of background
-   * work in their applications.
-   * 
- */ - public static final class CloudTasksBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private CloudTasksBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudTasksBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudTasksBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists queues.
-     * Queues are returned in lexicographical order.
-     * 
- */ - public com.google.cloud.tasks.v2beta3.ListQueuesResponse listQueues( - com.google.cloud.tasks.v2beta3.ListQueuesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListQueuesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a queue.
-     * 
- */ - public com.google.cloud.tasks.v2beta3.Queue getQueue( - com.google.cloud.tasks.v2beta3.GetQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetQueueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a queue.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public com.google.cloud.tasks.v2beta3.Queue createQueue( - com.google.cloud.tasks.v2beta3.CreateQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateQueueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a queue.
-     * This method creates the queue if it does not exist and updates
-     * the queue if it does exist.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public com.google.cloud.tasks.v2beta3.Queue updateQueue( - com.google.cloud.tasks.v2beta3.UpdateQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateQueueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a queue.
-     * This command will delete the queue even if it has tasks in it.
-     * Note: If you delete a queue, a queue with the same name can't be created
-     * for 7 days.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public com.google.protobuf.Empty deleteQueue( - com.google.cloud.tasks.v2beta3.DeleteQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteQueueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Purges a queue by deleting all of its tasks.
-     * All tasks created before this method is called are permanently deleted.
-     * Purge operations can take up to one minute to take effect. Tasks
-     * might be dispatched before the purge takes effect. A purge is irreversible.
-     * 
- */ - public com.google.cloud.tasks.v2beta3.Queue purgeQueue( - com.google.cloud.tasks.v2beta3.PurgeQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPurgeQueueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Pauses the queue.
-     * If a queue is paused then the system will stop dispatching tasks
-     * until the queue is resumed via
-     * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue]. Tasks can still be added
-     * when the queue is paused. A queue is paused if its
-     * [state][google.cloud.tasks.v2beta3.Queue.state] is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED].
-     * 
- */ - public com.google.cloud.tasks.v2beta3.Queue pauseQueue( - com.google.cloud.tasks.v2beta3.PauseQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPauseQueueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Resume a queue.
-     * This method resumes a queue after it has been
-     * [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED] or
-     * [DISABLED][google.cloud.tasks.v2beta3.Queue.State.DISABLED]. The state of a queue is stored
-     * in the queue's [state][google.cloud.tasks.v2beta3.Queue.state]; after calling this method it
-     * will be set to [RUNNING][google.cloud.tasks.v2beta3.Queue.State.RUNNING].
-     * WARNING: Resuming many high-QPS queues at the same time can
-     * lead to target overloading. If you are resuming high-QPS
-     * queues, follow the 500/50/5 pattern described in
-     * [Managing Cloud Tasks Scaling
-     * Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
-     * 
- */ - public com.google.cloud.tasks.v2beta3.Queue resumeQueue( - com.google.cloud.tasks.v2beta3.ResumeQueueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResumeQueueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue].
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.getIamPolicy`
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Replaces any existing
-     * policy.
-     * Note: The Cloud Console does not check queue-level IAM permissions yet.
-     * Project-level permissions are required to use the Cloud Console.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.setIamPolicy`
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta3.Queue].
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the tasks in a queue.
-     * By default, only the [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC] view is retrieved
-     * due to performance considerations;
-     * [response_view][google.cloud.tasks.v2beta3.ListTasksRequest.response_view] controls the
-     * subset of information which is returned.
-     * The tasks may be returned in any order. The ordering may change at any
-     * time.
-     * 
- */ - public com.google.cloud.tasks.v2beta3.ListTasksResponse listTasks( - com.google.cloud.tasks.v2beta3.ListTasksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTasksMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a task.
-     * 
- */ - public com.google.cloud.tasks.v2beta3.Task getTask( - com.google.cloud.tasks.v2beta3.GetTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTaskMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a task and adds it to a queue.
-     * Tasks cannot be updated after creation; there is no UpdateTask command.
-     * * The maximum task size is 100KB.
-     * 
- */ - public com.google.cloud.tasks.v2beta3.Task createTask( - com.google.cloud.tasks.v2beta3.CreateTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateTaskMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a task.
-     * A task can be deleted if it is scheduled or dispatched. A task
-     * cannot be deleted if it has executed successfully or permanently
-     * failed.
-     * 
- */ - public com.google.protobuf.Empty deleteTask( - com.google.cloud.tasks.v2beta3.DeleteTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTaskMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Forces a task to run now.
-     * When this method is called, Cloud Tasks will dispatch the task, even if
-     * the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta3.RateLimits] or
-     * is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED].
-     * This command is meant to be used for manual debugging. For
-     * example, [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] can be used to retry a failed
-     * task after a fix has been made or to manually force a task to be
-     * dispatched now.
-     * The dispatched task is returned. That is, the task that is returned
-     * contains the [status][Task.status] after the task is dispatched but
-     * before the task is received by its target.
-     * If Cloud Tasks receives a successful response from the task's
-     * target, then the task will be deleted; otherwise the task's
-     * [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] will be reset to the time that
-     * [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] was called plus the retry delay specified
-     * in the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig].
-     * [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] returns
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a
-     * task that has already succeeded or permanently failed.
-     * 
- */ - public com.google.cloud.tasks.v2beta3.Task runTask( - com.google.cloud.tasks.v2beta3.RunTaskRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRunTaskMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Cloud Tasks allows developers to manage the execution of background
-   * work in their applications.
-   * 
- */ - public static final class CloudTasksFutureStub - extends io.grpc.stub.AbstractFutureStub { - private CloudTasksFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudTasksFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudTasksFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists queues.
-     * Queues are returned in lexicographical order.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.tasks.v2beta3.ListQueuesResponse> - listQueues(com.google.cloud.tasks.v2beta3.ListQueuesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListQueuesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a queue.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getQueue(com.google.cloud.tasks.v2beta3.GetQueueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetQueueMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a queue.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createQueue(com.google.cloud.tasks.v2beta3.CreateQueueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateQueueMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a queue.
-     * This method creates the queue if it does not exist and updates
-     * the queue if it does exist.
-     * Queues created with this method allow tasks to live for a maximum of 31
-     * days. After a task is 31 days old, the task will be deleted regardless of whether
-     * it was dispatched or not.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updateQueue(com.google.cloud.tasks.v2beta3.UpdateQueueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateQueueMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a queue.
-     * This command will delete the queue even if it has tasks in it.
-     * Note: If you delete a queue, a queue with the same name can't be created
-     * for 7 days.
-     * WARNING: Using this method may have unintended side effects if you are
-     * using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
-     * Read
-     * [Overview of Queue Management and
-     * queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using
-     * this method.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteQueue(com.google.cloud.tasks.v2beta3.DeleteQueueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteQueueMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Purges a queue by deleting all of its tasks.
-     * All tasks created before this method is called are permanently deleted.
-     * Purge operations can take up to one minute to take effect. Tasks
-     * might be dispatched before the purge takes effect. A purge is irreversible.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - purgeQueue(com.google.cloud.tasks.v2beta3.PurgeQueueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPurgeQueueMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Pauses the queue.
-     * If a queue is paused then the system will stop dispatching tasks
-     * until the queue is resumed via
-     * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue]. Tasks can still be added
-     * when the queue is paused. A queue is paused if its
-     * [state][google.cloud.tasks.v2beta3.Queue.state] is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED].
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - pauseQueue(com.google.cloud.tasks.v2beta3.PauseQueueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPauseQueueMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Resume a queue.
-     * This method resumes a queue after it has been
-     * [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED] or
-     * [DISABLED][google.cloud.tasks.v2beta3.Queue.State.DISABLED]. The state of a queue is stored
-     * in the queue's [state][google.cloud.tasks.v2beta3.Queue.state]; after calling this method it
-     * will be set to [RUNNING][google.cloud.tasks.v2beta3.Queue.State.RUNNING].
-     * WARNING: Resuming many high-QPS queues at the same time can
-     * lead to target overloading. If you are resuming high-QPS
-     * queues, follow the 500/50/5 pattern described in
-     * [Managing Cloud Tasks Scaling
-     * Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - resumeQueue(com.google.cloud.tasks.v2beta3.ResumeQueueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResumeQueueMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue].
-     * Returns an empty policy if the resource exists and does not have a policy
-     * set.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.getIamPolicy`
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Replaces any existing
-     * policy.
-     * Note: The Cloud Console does not check queue-level IAM permissions yet.
-     * Project-level permissions are required to use the Cloud Console.
-     * Authorization requires the following
-     * [Google IAM](https://cloud.google.com/iam) permission on the specified
-     * resource parent:
-     * * `cloudtasks.queues.setIamPolicy`
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta3.Queue].
-     * If the resource does not exist, this will return an empty set of
-     * permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error.
-     * Note: This operation is designed to be used for building permission-aware
-     * UIs and command-line tools, not for authorization checking. This operation
-     * may "fail open" without warning.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the tasks in a queue.
-     * By default, only the [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC] view is retrieved
-     * due to performance considerations;
-     * [response_view][google.cloud.tasks.v2beta3.ListTasksRequest.response_view] controls the
-     * subset of information which is returned.
-     * The tasks may be returned in any order. The ordering may change at any
-     * time.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.tasks.v2beta3.ListTasksResponse> - listTasks(com.google.cloud.tasks.v2beta3.ListTasksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTasksMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a task.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getTask(com.google.cloud.tasks.v2beta3.GetTaskRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTaskMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a task and adds it to a queue.
-     * Tasks cannot be updated after creation; there is no UpdateTask command.
-     * * The maximum task size is 100KB.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createTask(com.google.cloud.tasks.v2beta3.CreateTaskRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateTaskMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a task.
-     * A task can be deleted if it is scheduled or dispatched. A task
-     * cannot be deleted if it has executed successfully or permanently
-     * failed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteTask( - com.google.cloud.tasks.v2beta3.DeleteTaskRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteTaskMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Forces a task to run now.
-     * When this method is called, Cloud Tasks will dispatch the task, even if
-     * the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta3.RateLimits] or
-     * is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED].
-     * This command is meant to be used for manual debugging. For
-     * example, [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] can be used to retry a failed
-     * task after a fix has been made or to manually force a task to be
-     * dispatched now.
-     * The dispatched task is returned. That is, the task that is returned
-     * contains the [status][Task.status] after the task is dispatched but
-     * before the task is received by its target.
-     * If Cloud Tasks receives a successful response from the task's
-     * target, then the task will be deleted; otherwise the task's
-     * [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] will be reset to the time that
-     * [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] was called plus the retry delay specified
-     * in the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig].
-     * [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] returns
-     * [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a
-     * task that has already succeeded or permanently failed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - runTask(com.google.cloud.tasks.v2beta3.RunTaskRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRunTaskMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_QUEUES = 0; - private static final int METHODID_GET_QUEUE = 1; - private static final int METHODID_CREATE_QUEUE = 2; - private static final int METHODID_UPDATE_QUEUE = 3; - private static final int METHODID_DELETE_QUEUE = 4; - private static final int METHODID_PURGE_QUEUE = 5; - private static final int METHODID_PAUSE_QUEUE = 6; - private static final int METHODID_RESUME_QUEUE = 7; - private static final int METHODID_GET_IAM_POLICY = 8; - private static final int METHODID_SET_IAM_POLICY = 9; - private static final int METHODID_TEST_IAM_PERMISSIONS = 10; - private static final int METHODID_LIST_TASKS = 11; - private static final int METHODID_GET_TASK = 12; - private static final int METHODID_CREATE_TASK = 13; - private static final int METHODID_DELETE_TASK = 14; - private static final int METHODID_RUN_TASK = 15; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final CloudTasksImplBase serviceImpl; - private final int methodId; - - MethodHandlers(CloudTasksImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_QUEUES: - serviceImpl.listQueues( - (com.google.cloud.tasks.v2beta3.ListQueuesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_QUEUE: - serviceImpl.getQueue( - (com.google.cloud.tasks.v2beta3.GetQueueRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_QUEUE: - serviceImpl.createQueue( - (com.google.cloud.tasks.v2beta3.CreateQueueRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_QUEUE: - serviceImpl.updateQueue( - (com.google.cloud.tasks.v2beta3.UpdateQueueRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_QUEUE: - serviceImpl.deleteQueue( - (com.google.cloud.tasks.v2beta3.DeleteQueueRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PURGE_QUEUE: - serviceImpl.purgeQueue( - (com.google.cloud.tasks.v2beta3.PurgeQueueRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PAUSE_QUEUE: - serviceImpl.pauseQueue( - (com.google.cloud.tasks.v2beta3.PauseQueueRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESUME_QUEUE: - serviceImpl.resumeQueue( - (com.google.cloud.tasks.v2beta3.ResumeQueueRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_TASKS: - serviceImpl.listTasks( - (com.google.cloud.tasks.v2beta3.ListTasksRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_TASK: - serviceImpl.getTask( - (com.google.cloud.tasks.v2beta3.GetTaskRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_TASK: - serviceImpl.createTask( - (com.google.cloud.tasks.v2beta3.CreateTaskRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_TASK: - serviceImpl.deleteTask( - (com.google.cloud.tasks.v2beta3.DeleteTaskRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RUN_TASK: - serviceImpl.runTask( - (com.google.cloud.tasks.v2beta3.RunTaskRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class CloudTasksBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - CloudTasksBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("CloudTasks"); - } - } - - private static final class CloudTasksFileDescriptorSupplier - extends CloudTasksBaseDescriptorSupplier { - CloudTasksFileDescriptorSupplier() {} - } - - private static final class CloudTasksMethodDescriptorSupplier - extends CloudTasksBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - CloudTasksMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (CloudTasksGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new CloudTasksFileDescriptorSupplier()) - .addMethod(getListQueuesMethod()) - .addMethod(getGetQueueMethod()) - .addMethod(getCreateQueueMethod()) - .addMethod(getUpdateQueueMethod()) - .addMethod(getDeleteQueueMethod()) - .addMethod(getPurgeQueueMethod()) - .addMethod(getPauseQueueMethod()) - .addMethod(getResumeQueueMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .addMethod(getListTasksMethod()) - .addMethod(getGetTaskMethod()) - .addMethod(getCreateTaskMethod()) - .addMethod(getDeleteTaskMethod()) - .addMethod(getRunTaskMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java.header b/java.header deleted file mode 100644 index d0970ba7..00000000 --- a/java.header +++ /dev/null @@ -1,15 +0,0 @@ -^/\*$ -^ \* Copyright \d\d\d\d,? Google (Inc\.|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\.$ -^ \*/$ diff --git a/license-checks.xml b/license-checks.xml deleted file mode 100644 index 6597fced..00000000 --- a/license-checks.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 5833e84c..00000000 --- a/pom.xml +++ /dev/null @@ -1,211 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-tasks-parent - pom - 2.3.12 - Google Cloud Tasks Parent - https://github.com/googleapis/java-tasks - - Java idiomatic client for Google Cloud Platform services. - - - - com.google.cloud - google-cloud-shared-config - 1.5.3 - - - - - chingor - Jeff Ching - chingor@google.com - Google - - Developer - - - - - Google LLC - - - scm:git:git@github.com:googleapis/java-tasks.git - scm:git:git@github.com:googleapis/java-tasks.git - https://github.com/googleapis/java-tasks - HEAD - - - https://github.com/googleapis/java-tasks/issues - GitHub Issues - - - - - Apache-2.0 - https://www.apache.org/licenses/LICENSE-2.0.txt - - - - - UTF-8 - UTF-8 - github - google-cloud-tasks-parent - - - - - - com.google.api.grpc - proto-google-cloud-tasks-v2beta3 - 0.93.12 - - - com.google.api.grpc - proto-google-cloud-tasks-v2beta2 - 0.93.12 - - - com.google.api.grpc - proto-google-cloud-tasks-v2 - 2.3.12 - - - com.google.api.grpc - grpc-google-cloud-tasks-v2beta3 - 0.93.12 - - - com.google.api.grpc - grpc-google-cloud-tasks-v2beta2 - 0.93.12 - - - com.google.api.grpc - grpc-google-cloud-tasks-v2 - 2.3.12 - - - com.google.cloud - google-cloud-tasks - 2.3.12 - - - - com.google.cloud - google-cloud-shared-dependencies - 3.0.4 - pom - import - - - - junit - junit - 4.13.2 - test - - - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - org.objenesis:objenesis - javax.annotation:javax.annotation-api - - - - - - - - - google-cloud-tasks - grpc-google-cloud-tasks-v2beta3 - grpc-google-cloud-tasks-v2beta2 - grpc-google-cloud-tasks-v2 - proto-google-cloud-tasks-v2beta3 - proto-google-cloud-tasks-v2beta2 - proto-google-cloud-tasks-v2 - google-cloud-tasks-bom - - - - - - org.apache.maven.plugins - maven-project-info-reports-plugin - 3.4.1 - - - - index - dependency-info - team - ci-management - issue-management - licenses - scm - dependency-management - distribution-management - summary - modules - - - - - true - ${site.installationModule} - jar - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.4.1 - - - html - - aggregate - javadoc - - - - - none - protected - true - ${project.build.directory}/javadoc - - - Test helpers packages - com.google.cloud.testing - - - SPI packages - com.google.cloud.spi* - - - - - https://grpc.io/grpc-java/javadoc/ - https://developers.google.com/protocol-buffers/docs/reference/java/ - https://googleapis.dev/java/google-auth-library/latest/ - https://googleapis.dev/java/gax/latest/ - https://googleapis.github.io/api-common-java/ - - - - - - diff --git a/proto-google-cloud-tasks-v2/clirr-ignored-differences.xml b/proto-google-cloud-tasks-v2/clirr-ignored-differences.xml deleted file mode 100644 index 11dfe1e1..00000000 --- a/proto-google-cloud-tasks-v2/clirr-ignored-differences.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - 7012 - com/google/cloud/tasks/v2/*OrBuilder - * get*(*) - - - 7012 - com/google/cloud/tasks/v2/*OrBuilder - boolean contains*(*) - - - 7012 - com/google/cloud/tasks/v2/*OrBuilder - boolean has*(*) - - diff --git a/proto-google-cloud-tasks-v2/pom.xml b/proto-google-cloud-tasks-v2/pom.xml deleted file mode 100644 index 0b7d88a4..00000000 --- a/proto-google-cloud-tasks-v2/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - 4.0.0 - com.google.api.grpc - proto-google-cloud-tasks-v2 - 2.3.12 - proto-google-cloud-tasks-v2 - PROTO library for proto-google-cloud-tasks-v2 - - com.google.cloud - google-cloud-tasks-parent - 2.3.12 - - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-common-protos - - - com.google.api - api-common - - - com.google.guava - guava - - - com.google.api.grpc - proto-google-iam-v1 - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - \ No newline at end of file diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequest.java deleted file mode 100644 index a50df814..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequest.java +++ /dev/null @@ -1,2044 +0,0 @@ -/* - * Copyright 2020 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/v2/target.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * App Engine HTTP request.
- * The message defines the HTTP request that is sent to an App Engine app when
- * the task is dispatched.
- * Using [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] requires
- * [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
- * Google IAM permission for the project
- * and the following scope:
- * `https://www.googleapis.com/auth/cloud-platform`
- * The task will be delivered to the App Engine app which belongs to the same
- * project as the queue. For more information, see
- * [How Requests are
- * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
- * and how routing is affected by
- * [dispatch
- * files](https://cloud.google.com/appengine/docs/python/config/dispatchref).
- * Traffic is encrypted during transport and never leaves Google datacenters.
- * Because this traffic is carried over a communication mechanism internal to
- * Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS).
- * The request to the handler, however, will appear to have used the HTTP
- * protocol.
- * The [AppEngineRouting][google.cloud.tasks.v2.AppEngineRouting] used to construct the URL that the task is
- * delivered to can be set at the queue-level or task-level:
- * * If [app_engine_routing_override is set on the
- *    queue][Queue.app_engine_routing_override], this value is used for all
- *    tasks in the queue, no matter what the setting is for the [task-level
- *    app_engine_routing][AppEngineHttpRequest.app_engine_routing].
- * The `url` that the task will be sent to is:
- * * `url =` [host][google.cloud.tasks.v2.AppEngineRouting.host] `+`
- *   [relative_uri][google.cloud.tasks.v2.AppEngineHttpRequest.relative_uri]
- * Tasks can be dispatched to secure app handlers, unsecure app handlers, and
- * URIs restricted with
- * [`login:
- * admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref).
- * Because tasks are not run as any user, they cannot be dispatched to URIs
- * restricted with
- * [`login:
- * required`](https://cloud.google.com/appengine/docs/standard/python/config/appref)
- * Task dispatches also do not follow redirects.
- * The task attempt has succeeded if the app's request handler returns an HTTP
- * response code in the range [`200` - `299`]. The task attempt has failed if
- * the app's handler returns a non-2xx response code or Cloud Tasks does
- * not receive response before the [deadline][google.cloud.tasks.v2.Task.dispatch_deadline]. Failed
- * tasks will be retried according to the
- * [retry configuration][google.cloud.tasks.v2.Queue.retry_config]. `503` (Service Unavailable) is
- * considered an App Engine system error instead of an application error and
- * will cause Cloud Tasks' traffic congestion control to temporarily throttle
- * the queue's dispatches. Unlike other types of task targets, a `429` (Too Many
- * Requests) response from an app handler does not cause traffic congestion
- * control to throttle the queue.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.AppEngineHttpRequest} - */ -public final class AppEngineHttpRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.AppEngineHttpRequest) - AppEngineHttpRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use AppEngineHttpRequest.newBuilder() to construct. - private AppEngineHttpRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AppEngineHttpRequest() { - httpMethod_ = 0; - relativeUri_ = ""; - body_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AppEngineHttpRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_AppEngineHttpRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetHeaders(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_AppEngineHttpRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.AppEngineHttpRequest.class, - com.google.cloud.tasks.v2.AppEngineHttpRequest.Builder.class); - } - - public static final int HTTP_METHOD_FIELD_NUMBER = 1; - private int httpMethod_; - /** - * - * - *
-   * The HTTP method to use for the request. The default is POST.
-   * The app's request handler for the task's target URL must be able to handle
-   * HTTP requests with this http_method, otherwise the task attempt will fail
-   * with error code 405 (Method Not Allowed). See
-   * [Writing a push task request
-   * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-   * and the documentation for the request handlers in the language your app is
-   * written in e.g.
-   * [Python Request
-   * Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass).
-   * 
- * - * .google.cloud.tasks.v2.HttpMethod http_method = 1; - * - * @return The enum numeric value on the wire for httpMethod. - */ - @java.lang.Override - public int getHttpMethodValue() { - return httpMethod_; - } - /** - * - * - *
-   * The HTTP method to use for the request. The default is POST.
-   * The app's request handler for the task's target URL must be able to handle
-   * HTTP requests with this http_method, otherwise the task attempt will fail
-   * with error code 405 (Method Not Allowed). See
-   * [Writing a push task request
-   * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-   * and the documentation for the request handlers in the language your app is
-   * written in e.g.
-   * [Python Request
-   * Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass).
-   * 
- * - * .google.cloud.tasks.v2.HttpMethod http_method = 1; - * - * @return The httpMethod. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.HttpMethod getHttpMethod() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2.HttpMethod result = - com.google.cloud.tasks.v2.HttpMethod.valueOf(httpMethod_); - return result == null ? com.google.cloud.tasks.v2.HttpMethod.UNRECOGNIZED : result; - } - - public static final int APP_ENGINE_ROUTING_FIELD_NUMBER = 2; - private com.google.cloud.tasks.v2.AppEngineRouting appEngineRouting_; - /** - * - * - *
-   * Task-level setting for App Engine routing.
-   * * If [app_engine_routing_override is set on the
-   *    queue][Queue.app_engine_routing_override], this value is used for all
-   *    tasks in the queue, no matter what the setting is for the [task-level
-   *    app_engine_routing][AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2; - * - * @return Whether the appEngineRouting field is set. - */ - @java.lang.Override - public boolean hasAppEngineRouting() { - return appEngineRouting_ != null; - } - /** - * - * - *
-   * Task-level setting for App Engine routing.
-   * * If [app_engine_routing_override is set on the
-   *    queue][Queue.app_engine_routing_override], this value is used for all
-   *    tasks in the queue, no matter what the setting is for the [task-level
-   *    app_engine_routing][AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2; - * - * @return The appEngineRouting. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.AppEngineRouting getAppEngineRouting() { - return appEngineRouting_ == null - ? com.google.cloud.tasks.v2.AppEngineRouting.getDefaultInstance() - : appEngineRouting_; - } - /** - * - * - *
-   * Task-level setting for App Engine routing.
-   * * If [app_engine_routing_override is set on the
-   *    queue][Queue.app_engine_routing_override], this value is used for all
-   *    tasks in the queue, no matter what the setting is for the [task-level
-   *    app_engine_routing][AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder getAppEngineRoutingOrBuilder() { - return getAppEngineRouting(); - } - - public static final int RELATIVE_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object relativeUri_; - /** - * - * - *
-   * The relative URI.
-   * The relative URI must begin with "/" and must be a valid HTTP relative URI.
-   * It can contain a path and query string arguments.
-   * If the relative URI is empty, then the root path "/" will be used.
-   * No spaces are allowed, and the maximum length allowed is 2083 characters.
-   * 
- * - * string relative_uri = 3; - * - * @return The relativeUri. - */ - @java.lang.Override - public java.lang.String getRelativeUri() { - java.lang.Object ref = relativeUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - relativeUri_ = s; - return s; - } - } - /** - * - * - *
-   * The relative URI.
-   * The relative URI must begin with "/" and must be a valid HTTP relative URI.
-   * It can contain a path and query string arguments.
-   * If the relative URI is empty, then the root path "/" will be used.
-   * No spaces are allowed, and the maximum length allowed is 2083 characters.
-   * 
- * - * string relative_uri = 3; - * - * @return The bytes for relativeUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRelativeUriBytes() { - java.lang.Object ref = relativeUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - relativeUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HEADERS_FIELD_NUMBER = 4; - - private static final class HeadersDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_AppEngineHttpRequest_HeadersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField headers_; - - private com.google.protobuf.MapField internalGetHeaders() { - if (headers_ == null) { - return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); - } - return headers_; - } - - public int getHeadersCount() { - return internalGetHeaders().getMap().size(); - } - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public boolean containsHeaders(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetHeaders().getMap().containsKey(key); - } - /** Use {@link #getHeadersMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHeaders() { - return getHeadersMap(); - } - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public java.util.Map getHeadersMap() { - return internalGetHeaders().getMap(); - } - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHeaders().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public java.lang.String getHeadersOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHeaders().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int BODY_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString body_; - /** - * - * - *
-   * HTTP request body.
-   * A request body is allowed only if the HTTP method is POST or PUT. It is
-   * an error to set a body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2.HttpMethod].
-   * 
- * - * bytes body = 5; - * - * @return The body. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBody() { - return body_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (httpMethod_ != com.google.cloud.tasks.v2.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) { - output.writeEnum(1, httpMethod_); - } - if (appEngineRouting_ != null) { - output.writeMessage(2, getAppEngineRouting()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativeUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, relativeUri_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetHeaders(), HeadersDefaultEntryHolder.defaultEntry, 4); - if (!body_.isEmpty()) { - output.writeBytes(5, body_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (httpMethod_ != com.google.cloud.tasks.v2.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, httpMethod_); - } - if (appEngineRouting_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAppEngineRouting()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativeUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, relativeUri_); - } - for (java.util.Map.Entry entry : - internalGetHeaders().getMap().entrySet()) { - com.google.protobuf.MapEntry headers__ = - HeadersDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, headers__); - } - if (!body_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, body_); - } - 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.v2.AppEngineHttpRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.AppEngineHttpRequest other = - (com.google.cloud.tasks.v2.AppEngineHttpRequest) obj; - - if (httpMethod_ != other.httpMethod_) return false; - if (hasAppEngineRouting() != other.hasAppEngineRouting()) return false; - if (hasAppEngineRouting()) { - if (!getAppEngineRouting().equals(other.getAppEngineRouting())) return false; - } - if (!getRelativeUri().equals(other.getRelativeUri())) return false; - if (!internalGetHeaders().equals(other.internalGetHeaders())) return false; - 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) + HTTP_METHOD_FIELD_NUMBER; - hash = (53 * hash) + httpMethod_; - if (hasAppEngineRouting()) { - hash = (37 * hash) + APP_ENGINE_ROUTING_FIELD_NUMBER; - hash = (53 * hash) + getAppEngineRouting().hashCode(); - } - hash = (37 * hash) + RELATIVE_URI_FIELD_NUMBER; - hash = (53 * hash) + getRelativeUri().hashCode(); - if (!internalGetHeaders().getMap().isEmpty()) { - hash = (37 * hash) + HEADERS_FIELD_NUMBER; - hash = (53 * hash) + internalGetHeaders().hashCode(); - } - 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.v2.AppEngineHttpRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.AppEngineHttpRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.AppEngineHttpRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.AppEngineHttpRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.AppEngineHttpRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.AppEngineHttpRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.AppEngineHttpRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.AppEngineHttpRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.AppEngineHttpRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.AppEngineHttpRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.AppEngineHttpRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.AppEngineHttpRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.AppEngineHttpRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * App Engine HTTP request.
-   * The message defines the HTTP request that is sent to an App Engine app when
-   * the task is dispatched.
-   * Using [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] requires
-   * [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
-   * Google IAM permission for the project
-   * and the following scope:
-   * `https://www.googleapis.com/auth/cloud-platform`
-   * The task will be delivered to the App Engine app which belongs to the same
-   * project as the queue. For more information, see
-   * [How Requests are
-   * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-   * and how routing is affected by
-   * [dispatch
-   * files](https://cloud.google.com/appengine/docs/python/config/dispatchref).
-   * Traffic is encrypted during transport and never leaves Google datacenters.
-   * Because this traffic is carried over a communication mechanism internal to
-   * Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS).
-   * The request to the handler, however, will appear to have used the HTTP
-   * protocol.
-   * The [AppEngineRouting][google.cloud.tasks.v2.AppEngineRouting] used to construct the URL that the task is
-   * delivered to can be set at the queue-level or task-level:
-   * * If [app_engine_routing_override is set on the
-   *    queue][Queue.app_engine_routing_override], this value is used for all
-   *    tasks in the queue, no matter what the setting is for the [task-level
-   *    app_engine_routing][AppEngineHttpRequest.app_engine_routing].
-   * The `url` that the task will be sent to is:
-   * * `url =` [host][google.cloud.tasks.v2.AppEngineRouting.host] `+`
-   *   [relative_uri][google.cloud.tasks.v2.AppEngineHttpRequest.relative_uri]
-   * Tasks can be dispatched to secure app handlers, unsecure app handlers, and
-   * URIs restricted with
-   * [`login:
-   * admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref).
-   * Because tasks are not run as any user, they cannot be dispatched to URIs
-   * restricted with
-   * [`login:
-   * required`](https://cloud.google.com/appengine/docs/standard/python/config/appref)
-   * Task dispatches also do not follow redirects.
-   * The task attempt has succeeded if the app's request handler returns an HTTP
-   * response code in the range [`200` - `299`]. The task attempt has failed if
-   * the app's handler returns a non-2xx response code or Cloud Tasks does
-   * not receive response before the [deadline][google.cloud.tasks.v2.Task.dispatch_deadline]. Failed
-   * tasks will be retried according to the
-   * [retry configuration][google.cloud.tasks.v2.Queue.retry_config]. `503` (Service Unavailable) is
-   * considered an App Engine system error instead of an application error and
-   * will cause Cloud Tasks' traffic congestion control to temporarily throttle
-   * the queue's dispatches. Unlike other types of task targets, a `429` (Too Many
-   * Requests) response from an app handler does not cause traffic congestion
-   * control to throttle the queue.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.AppEngineHttpRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.AppEngineHttpRequest) - com.google.cloud.tasks.v2.AppEngineHttpRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_AppEngineHttpRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetHeaders(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - return internalGetMutableHeaders(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_AppEngineHttpRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.AppEngineHttpRequest.class, - com.google.cloud.tasks.v2.AppEngineHttpRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.AppEngineHttpRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - httpMethod_ = 0; - - if (appEngineRoutingBuilder_ == null) { - appEngineRouting_ = null; - } else { - appEngineRouting_ = null; - appEngineRoutingBuilder_ = null; - } - relativeUri_ = ""; - - internalGetMutableHeaders().clear(); - body_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_AppEngineHttpRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.AppEngineHttpRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.AppEngineHttpRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.AppEngineHttpRequest build() { - com.google.cloud.tasks.v2.AppEngineHttpRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.AppEngineHttpRequest buildPartial() { - com.google.cloud.tasks.v2.AppEngineHttpRequest result = - new com.google.cloud.tasks.v2.AppEngineHttpRequest(this); - int from_bitField0_ = bitField0_; - result.httpMethod_ = httpMethod_; - if (appEngineRoutingBuilder_ == null) { - result.appEngineRouting_ = appEngineRouting_; - } else { - result.appEngineRouting_ = appEngineRoutingBuilder_.build(); - } - result.relativeUri_ = relativeUri_; - result.headers_ = internalGetHeaders(); - result.headers_.makeImmutable(); - result.body_ = body_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.AppEngineHttpRequest) { - return mergeFrom((com.google.cloud.tasks.v2.AppEngineHttpRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.AppEngineHttpRequest other) { - if (other == com.google.cloud.tasks.v2.AppEngineHttpRequest.getDefaultInstance()) return this; - if (other.httpMethod_ != 0) { - setHttpMethodValue(other.getHttpMethodValue()); - } - if (other.hasAppEngineRouting()) { - mergeAppEngineRouting(other.getAppEngineRouting()); - } - if (!other.getRelativeUri().isEmpty()) { - relativeUri_ = other.relativeUri_; - onChanged(); - } - internalGetMutableHeaders().mergeFrom(other.internalGetHeaders()); - if (other.getBody() != com.google.protobuf.ByteString.EMPTY) { - setBody(other.getBody()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - httpMethod_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - input.readMessage( - getAppEngineRoutingFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - relativeUri_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry headers__ = - input.readMessage( - HeadersDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableHeaders() - .getMutableMap() - .put(headers__.getKey(), headers__.getValue()); - break; - } // case 34 - case 42: - { - body_ = input.readBytes(); - - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int httpMethod_ = 0; - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * The app's request handler for the task's target URL must be able to handle
-     * HTTP requests with this http_method, otherwise the task attempt will fail
-     * with error code 405 (Method Not Allowed). See
-     * [Writing a push task request
-     * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-     * and the documentation for the request handlers in the language your app is
-     * written in e.g.
-     * [Python Request
-     * Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass).
-     * 
- * - * .google.cloud.tasks.v2.HttpMethod http_method = 1; - * - * @return The enum numeric value on the wire for httpMethod. - */ - @java.lang.Override - public int getHttpMethodValue() { - return httpMethod_; - } - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * The app's request handler for the task's target URL must be able to handle
-     * HTTP requests with this http_method, otherwise the task attempt will fail
-     * with error code 405 (Method Not Allowed). See
-     * [Writing a push task request
-     * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-     * and the documentation for the request handlers in the language your app is
-     * written in e.g.
-     * [Python Request
-     * Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass).
-     * 
- * - * .google.cloud.tasks.v2.HttpMethod http_method = 1; - * - * @param value The enum numeric value on the wire for httpMethod to set. - * @return This builder for chaining. - */ - public Builder setHttpMethodValue(int value) { - - httpMethod_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * The app's request handler for the task's target URL must be able to handle
-     * HTTP requests with this http_method, otherwise the task attempt will fail
-     * with error code 405 (Method Not Allowed). See
-     * [Writing a push task request
-     * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-     * and the documentation for the request handlers in the language your app is
-     * written in e.g.
-     * [Python Request
-     * Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass).
-     * 
- * - * .google.cloud.tasks.v2.HttpMethod http_method = 1; - * - * @return The httpMethod. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.HttpMethod getHttpMethod() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2.HttpMethod result = - com.google.cloud.tasks.v2.HttpMethod.valueOf(httpMethod_); - return result == null ? com.google.cloud.tasks.v2.HttpMethod.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * The app's request handler for the task's target URL must be able to handle
-     * HTTP requests with this http_method, otherwise the task attempt will fail
-     * with error code 405 (Method Not Allowed). See
-     * [Writing a push task request
-     * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-     * and the documentation for the request handlers in the language your app is
-     * written in e.g.
-     * [Python Request
-     * Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass).
-     * 
- * - * .google.cloud.tasks.v2.HttpMethod http_method = 1; - * - * @param value The httpMethod to set. - * @return This builder for chaining. - */ - public Builder setHttpMethod(com.google.cloud.tasks.v2.HttpMethod value) { - if (value == null) { - throw new NullPointerException(); - } - - httpMethod_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * The app's request handler for the task's target URL must be able to handle
-     * HTTP requests with this http_method, otherwise the task attempt will fail
-     * with error code 405 (Method Not Allowed). See
-     * [Writing a push task request
-     * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-     * and the documentation for the request handlers in the language your app is
-     * written in e.g.
-     * [Python Request
-     * Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass).
-     * 
- * - * .google.cloud.tasks.v2.HttpMethod http_method = 1; - * - * @return This builder for chaining. - */ - public Builder clearHttpMethod() { - - httpMethod_ = 0; - onChanged(); - return this; - } - - private com.google.cloud.tasks.v2.AppEngineRouting appEngineRouting_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.AppEngineRouting, - com.google.cloud.tasks.v2.AppEngineRouting.Builder, - com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder> - appEngineRoutingBuilder_; - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * * If [app_engine_routing_override is set on the
-     *    queue][Queue.app_engine_routing_override], this value is used for all
-     *    tasks in the queue, no matter what the setting is for the [task-level
-     *    app_engine_routing][AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2; - * - * @return Whether the appEngineRouting field is set. - */ - public boolean hasAppEngineRouting() { - return appEngineRoutingBuilder_ != null || appEngineRouting_ != null; - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * * If [app_engine_routing_override is set on the
-     *    queue][Queue.app_engine_routing_override], this value is used for all
-     *    tasks in the queue, no matter what the setting is for the [task-level
-     *    app_engine_routing][AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2; - * - * @return The appEngineRouting. - */ - public com.google.cloud.tasks.v2.AppEngineRouting getAppEngineRouting() { - if (appEngineRoutingBuilder_ == null) { - return appEngineRouting_ == null - ? com.google.cloud.tasks.v2.AppEngineRouting.getDefaultInstance() - : appEngineRouting_; - } else { - return appEngineRoutingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * * If [app_engine_routing_override is set on the
-     *    queue][Queue.app_engine_routing_override], this value is used for all
-     *    tasks in the queue, no matter what the setting is for the [task-level
-     *    app_engine_routing][AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2; - */ - public Builder setAppEngineRouting(com.google.cloud.tasks.v2.AppEngineRouting value) { - if (appEngineRoutingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - appEngineRouting_ = value; - onChanged(); - } else { - appEngineRoutingBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * * If [app_engine_routing_override is set on the
-     *    queue][Queue.app_engine_routing_override], this value is used for all
-     *    tasks in the queue, no matter what the setting is for the [task-level
-     *    app_engine_routing][AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2; - */ - public Builder setAppEngineRouting( - com.google.cloud.tasks.v2.AppEngineRouting.Builder builderForValue) { - if (appEngineRoutingBuilder_ == null) { - appEngineRouting_ = builderForValue.build(); - onChanged(); - } else { - appEngineRoutingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * * If [app_engine_routing_override is set on the
-     *    queue][Queue.app_engine_routing_override], this value is used for all
-     *    tasks in the queue, no matter what the setting is for the [task-level
-     *    app_engine_routing][AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2; - */ - public Builder mergeAppEngineRouting(com.google.cloud.tasks.v2.AppEngineRouting value) { - if (appEngineRoutingBuilder_ == null) { - if (appEngineRouting_ != null) { - appEngineRouting_ = - com.google.cloud.tasks.v2.AppEngineRouting.newBuilder(appEngineRouting_) - .mergeFrom(value) - .buildPartial(); - } else { - appEngineRouting_ = value; - } - onChanged(); - } else { - appEngineRoutingBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * * If [app_engine_routing_override is set on the
-     *    queue][Queue.app_engine_routing_override], this value is used for all
-     *    tasks in the queue, no matter what the setting is for the [task-level
-     *    app_engine_routing][AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2; - */ - public Builder clearAppEngineRouting() { - if (appEngineRoutingBuilder_ == null) { - appEngineRouting_ = null; - onChanged(); - } else { - appEngineRouting_ = null; - appEngineRoutingBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * * If [app_engine_routing_override is set on the
-     *    queue][Queue.app_engine_routing_override], this value is used for all
-     *    tasks in the queue, no matter what the setting is for the [task-level
-     *    app_engine_routing][AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2; - */ - public com.google.cloud.tasks.v2.AppEngineRouting.Builder getAppEngineRoutingBuilder() { - - onChanged(); - return getAppEngineRoutingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * * If [app_engine_routing_override is set on the
-     *    queue][Queue.app_engine_routing_override], this value is used for all
-     *    tasks in the queue, no matter what the setting is for the [task-level
-     *    app_engine_routing][AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2; - */ - public com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder getAppEngineRoutingOrBuilder() { - if (appEngineRoutingBuilder_ != null) { - return appEngineRoutingBuilder_.getMessageOrBuilder(); - } else { - return appEngineRouting_ == null - ? com.google.cloud.tasks.v2.AppEngineRouting.getDefaultInstance() - : appEngineRouting_; - } - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * * If [app_engine_routing_override is set on the
-     *    queue][Queue.app_engine_routing_override], this value is used for all
-     *    tasks in the queue, no matter what the setting is for the [task-level
-     *    app_engine_routing][AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.AppEngineRouting, - com.google.cloud.tasks.v2.AppEngineRouting.Builder, - com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder> - getAppEngineRoutingFieldBuilder() { - if (appEngineRoutingBuilder_ == null) { - appEngineRoutingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.AppEngineRouting, - com.google.cloud.tasks.v2.AppEngineRouting.Builder, - com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder>( - getAppEngineRouting(), getParentForChildren(), isClean()); - appEngineRouting_ = null; - } - return appEngineRoutingBuilder_; - } - - private java.lang.Object relativeUri_ = ""; - /** - * - * - *
-     * The relative URI.
-     * The relative URI must begin with "/" and must be a valid HTTP relative URI.
-     * It can contain a path and query string arguments.
-     * If the relative URI is empty, then the root path "/" will be used.
-     * No spaces are allowed, and the maximum length allowed is 2083 characters.
-     * 
- * - * string relative_uri = 3; - * - * @return The relativeUri. - */ - public java.lang.String getRelativeUri() { - java.lang.Object ref = relativeUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - relativeUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The relative URI.
-     * The relative URI must begin with "/" and must be a valid HTTP relative URI.
-     * It can contain a path and query string arguments.
-     * If the relative URI is empty, then the root path "/" will be used.
-     * No spaces are allowed, and the maximum length allowed is 2083 characters.
-     * 
- * - * string relative_uri = 3; - * - * @return The bytes for relativeUri. - */ - public com.google.protobuf.ByteString getRelativeUriBytes() { - java.lang.Object ref = relativeUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - relativeUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The relative URI.
-     * The relative URI must begin with "/" and must be a valid HTTP relative URI.
-     * It can contain a path and query string arguments.
-     * If the relative URI is empty, then the root path "/" will be used.
-     * No spaces are allowed, and the maximum length allowed is 2083 characters.
-     * 
- * - * string relative_uri = 3; - * - * @param value The relativeUri to set. - * @return This builder for chaining. - */ - public Builder setRelativeUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - relativeUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The relative URI.
-     * The relative URI must begin with "/" and must be a valid HTTP relative URI.
-     * It can contain a path and query string arguments.
-     * If the relative URI is empty, then the root path "/" will be used.
-     * No spaces are allowed, and the maximum length allowed is 2083 characters.
-     * 
- * - * string relative_uri = 3; - * - * @return This builder for chaining. - */ - public Builder clearRelativeUri() { - - relativeUri_ = getDefaultInstance().getRelativeUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * The relative URI.
-     * The relative URI must begin with "/" and must be a valid HTTP relative URI.
-     * It can contain a path and query string arguments.
-     * If the relative URI is empty, then the root path "/" will be used.
-     * No spaces are allowed, and the maximum length allowed is 2083 characters.
-     * 
- * - * string relative_uri = 3; - * - * @param value The bytes for relativeUri to set. - * @return This builder for chaining. - */ - public Builder setRelativeUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - relativeUri_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField headers_; - - private com.google.protobuf.MapField internalGetHeaders() { - if (headers_ == null) { - return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); - } - return headers_; - } - - private com.google.protobuf.MapField - internalGetMutableHeaders() { - onChanged(); - ; - if (headers_ == null) { - headers_ = com.google.protobuf.MapField.newMapField(HeadersDefaultEntryHolder.defaultEntry); - } - if (!headers_.isMutable()) { - headers_ = headers_.copy(); - } - return headers_; - } - - public int getHeadersCount() { - return internalGetHeaders().getMap().size(); - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-     * Repeated headers are not supported but a header value can contain commas.
-     * Cloud Tasks sets some headers to default values:
-     * * `User-Agent`: By default, this header is
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-     *   This header can be modified, but Cloud Tasks will append
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-     *   modified `User-Agent`.
-     * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud
-     * Tasks sets the following headers:
-     * * `Content-Type`: By default, the `Content-Type` header is set to
-     *   `"application/octet-stream"`. The default can be overridden by explicitly
-     *   setting `Content-Type` to a particular media type when the
-     *   [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-     *   For example, `Content-Type` can be set to `"application/json"`.
-     * * `Content-Length`: This is computed by Cloud Tasks. This value is
-     *   output only.   It cannot be changed.
-     * The headers below cannot be set or overridden:
-     * * `Host`
-     * * `X-Google-*`
-     * * `X-AppEngine-*`
-     * In addition, Cloud Tasks sets some headers when the task is dispatched,
-     * such as headers containing information about the task; see
-     * [request
-     * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-     * These headers are set only when the task is dispatched, so they are not
-     * visible when the task is returned in a Cloud Tasks response.
-     * Although there is no specific limit for the maximum number of headers or
-     * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more
-     * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation.
-     * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public boolean containsHeaders(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetHeaders().getMap().containsKey(key); - } - /** Use {@link #getHeadersMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHeaders() { - return getHeadersMap(); - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-     * Repeated headers are not supported but a header value can contain commas.
-     * Cloud Tasks sets some headers to default values:
-     * * `User-Agent`: By default, this header is
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-     *   This header can be modified, but Cloud Tasks will append
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-     *   modified `User-Agent`.
-     * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud
-     * Tasks sets the following headers:
-     * * `Content-Type`: By default, the `Content-Type` header is set to
-     *   `"application/octet-stream"`. The default can be overridden by explicitly
-     *   setting `Content-Type` to a particular media type when the
-     *   [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-     *   For example, `Content-Type` can be set to `"application/json"`.
-     * * `Content-Length`: This is computed by Cloud Tasks. This value is
-     *   output only.   It cannot be changed.
-     * The headers below cannot be set or overridden:
-     * * `Host`
-     * * `X-Google-*`
-     * * `X-AppEngine-*`
-     * In addition, Cloud Tasks sets some headers when the task is dispatched,
-     * such as headers containing information about the task; see
-     * [request
-     * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-     * These headers are set only when the task is dispatched, so they are not
-     * visible when the task is returned in a Cloud Tasks response.
-     * Although there is no specific limit for the maximum number of headers or
-     * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more
-     * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation.
-     * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public java.util.Map getHeadersMap() { - return internalGetHeaders().getMap(); - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-     * Repeated headers are not supported but a header value can contain commas.
-     * Cloud Tasks sets some headers to default values:
-     * * `User-Agent`: By default, this header is
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-     *   This header can be modified, but Cloud Tasks will append
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-     *   modified `User-Agent`.
-     * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud
-     * Tasks sets the following headers:
-     * * `Content-Type`: By default, the `Content-Type` header is set to
-     *   `"application/octet-stream"`. The default can be overridden by explicitly
-     *   setting `Content-Type` to a particular media type when the
-     *   [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-     *   For example, `Content-Type` can be set to `"application/json"`.
-     * * `Content-Length`: This is computed by Cloud Tasks. This value is
-     *   output only.   It cannot be changed.
-     * The headers below cannot be set or overridden:
-     * * `Host`
-     * * `X-Google-*`
-     * * `X-AppEngine-*`
-     * In addition, Cloud Tasks sets some headers when the task is dispatched,
-     * such as headers containing information about the task; see
-     * [request
-     * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-     * These headers are set only when the task is dispatched, so they are not
-     * visible when the task is returned in a Cloud Tasks response.
-     * Although there is no specific limit for the maximum number of headers or
-     * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more
-     * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation.
-     * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public java.lang.String getHeadersOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHeaders().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-     * Repeated headers are not supported but a header value can contain commas.
-     * Cloud Tasks sets some headers to default values:
-     * * `User-Agent`: By default, this header is
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-     *   This header can be modified, but Cloud Tasks will append
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-     *   modified `User-Agent`.
-     * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud
-     * Tasks sets the following headers:
-     * * `Content-Type`: By default, the `Content-Type` header is set to
-     *   `"application/octet-stream"`. The default can be overridden by explicitly
-     *   setting `Content-Type` to a particular media type when the
-     *   [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-     *   For example, `Content-Type` can be set to `"application/json"`.
-     * * `Content-Length`: This is computed by Cloud Tasks. This value is
-     *   output only.   It cannot be changed.
-     * The headers below cannot be set or overridden:
-     * * `Host`
-     * * `X-Google-*`
-     * * `X-AppEngine-*`
-     * In addition, Cloud Tasks sets some headers when the task is dispatched,
-     * such as headers containing information about the task; see
-     * [request
-     * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-     * These headers are set only when the task is dispatched, so they are not
-     * visible when the task is returned in a Cloud Tasks response.
-     * Although there is no specific limit for the maximum number of headers or
-     * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more
-     * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation.
-     * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public java.lang.String getHeadersOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHeaders().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearHeaders() { - internalGetMutableHeaders().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-     * Repeated headers are not supported but a header value can contain commas.
-     * Cloud Tasks sets some headers to default values:
-     * * `User-Agent`: By default, this header is
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-     *   This header can be modified, but Cloud Tasks will append
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-     *   modified `User-Agent`.
-     * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud
-     * Tasks sets the following headers:
-     * * `Content-Type`: By default, the `Content-Type` header is set to
-     *   `"application/octet-stream"`. The default can be overridden by explicitly
-     *   setting `Content-Type` to a particular media type when the
-     *   [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-     *   For example, `Content-Type` can be set to `"application/json"`.
-     * * `Content-Length`: This is computed by Cloud Tasks. This value is
-     *   output only.   It cannot be changed.
-     * The headers below cannot be set or overridden:
-     * * `Host`
-     * * `X-Google-*`
-     * * `X-AppEngine-*`
-     * In addition, Cloud Tasks sets some headers when the task is dispatched,
-     * such as headers containing information about the task; see
-     * [request
-     * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-     * These headers are set only when the task is dispatched, so they are not
-     * visible when the task is returned in a Cloud Tasks response.
-     * Although there is no specific limit for the maximum number of headers or
-     * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more
-     * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation.
-     * 
- * - * map<string, string> headers = 4; - */ - public Builder removeHeaders(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableHeaders().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableHeaders() { - return internalGetMutableHeaders().getMutableMap(); - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-     * Repeated headers are not supported but a header value can contain commas.
-     * Cloud Tasks sets some headers to default values:
-     * * `User-Agent`: By default, this header is
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-     *   This header can be modified, but Cloud Tasks will append
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-     *   modified `User-Agent`.
-     * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud
-     * Tasks sets the following headers:
-     * * `Content-Type`: By default, the `Content-Type` header is set to
-     *   `"application/octet-stream"`. The default can be overridden by explicitly
-     *   setting `Content-Type` to a particular media type when the
-     *   [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-     *   For example, `Content-Type` can be set to `"application/json"`.
-     * * `Content-Length`: This is computed by Cloud Tasks. This value is
-     *   output only.   It cannot be changed.
-     * The headers below cannot be set or overridden:
-     * * `Host`
-     * * `X-Google-*`
-     * * `X-AppEngine-*`
-     * In addition, Cloud Tasks sets some headers when the task is dispatched,
-     * such as headers containing information about the task; see
-     * [request
-     * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-     * These headers are set only when the task is dispatched, so they are not
-     * visible when the task is returned in a Cloud Tasks response.
-     * Although there is no specific limit for the maximum number of headers or
-     * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more
-     * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation.
-     * 
- * - * map<string, string> headers = 4; - */ - public Builder putHeaders(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableHeaders().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-     * Repeated headers are not supported but a header value can contain commas.
-     * Cloud Tasks sets some headers to default values:
-     * * `User-Agent`: By default, this header is
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-     *   This header can be modified, but Cloud Tasks will append
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-     *   modified `User-Agent`.
-     * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud
-     * Tasks sets the following headers:
-     * * `Content-Type`: By default, the `Content-Type` header is set to
-     *   `"application/octet-stream"`. The default can be overridden by explicitly
-     *   setting `Content-Type` to a particular media type when the
-     *   [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-     *   For example, `Content-Type` can be set to `"application/json"`.
-     * * `Content-Length`: This is computed by Cloud Tasks. This value is
-     *   output only.   It cannot be changed.
-     * The headers below cannot be set or overridden:
-     * * `Host`
-     * * `X-Google-*`
-     * * `X-AppEngine-*`
-     * In addition, Cloud Tasks sets some headers when the task is dispatched,
-     * such as headers containing information about the task; see
-     * [request
-     * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-     * These headers are set only when the task is dispatched, so they are not
-     * visible when the task is returned in a Cloud Tasks response.
-     * Although there is no specific limit for the maximum number of headers or
-     * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more
-     * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation.
-     * 
- * - * map<string, string> headers = 4; - */ - public Builder putAllHeaders(java.util.Map values) { - internalGetMutableHeaders().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; - /** - * - * - *
-     * HTTP request body.
-     * A request body is allowed only if the HTTP method is POST or PUT. It is
-     * an error to set a body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2.HttpMethod].
-     * 
- * - * bytes body = 5; - * - * @return The body. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBody() { - return body_; - } - /** - * - * - *
-     * HTTP request body.
-     * A request body is allowed only if the HTTP method is POST or PUT. It is
-     * an error to set a body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2.HttpMethod].
-     * 
- * - * bytes body = 5; - * - * @param value The body to set. - * @return This builder for chaining. - */ - public Builder setBody(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - body_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * HTTP request body.
-     * A request body is allowed only if the HTTP method is POST or PUT. It is
-     * an error to set a body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2.HttpMethod].
-     * 
- * - * bytes body = 5; - * - * @return This builder for chaining. - */ - public Builder clearBody() { - - body_ = getDefaultInstance().getBody(); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.AppEngineHttpRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.AppEngineHttpRequest) - private static final com.google.cloud.tasks.v2.AppEngineHttpRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.AppEngineHttpRequest(); - } - - public static com.google.cloud.tasks.v2.AppEngineHttpRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AppEngineHttpRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.AppEngineHttpRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequestOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequestOrBuilder.java deleted file mode 100644 index e2387d20..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequestOrBuilder.java +++ /dev/null @@ -1,382 +0,0 @@ -/* - * Copyright 2020 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/v2/target.proto - -package com.google.cloud.tasks.v2; - -public interface AppEngineHttpRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.AppEngineHttpRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The HTTP method to use for the request. The default is POST.
-   * The app's request handler for the task's target URL must be able to handle
-   * HTTP requests with this http_method, otherwise the task attempt will fail
-   * with error code 405 (Method Not Allowed). See
-   * [Writing a push task request
-   * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-   * and the documentation for the request handlers in the language your app is
-   * written in e.g.
-   * [Python Request
-   * Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass).
-   * 
- * - * .google.cloud.tasks.v2.HttpMethod http_method = 1; - * - * @return The enum numeric value on the wire for httpMethod. - */ - int getHttpMethodValue(); - /** - * - * - *
-   * The HTTP method to use for the request. The default is POST.
-   * The app's request handler for the task's target URL must be able to handle
-   * HTTP requests with this http_method, otherwise the task attempt will fail
-   * with error code 405 (Method Not Allowed). See
-   * [Writing a push task request
-   * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-   * and the documentation for the request handlers in the language your app is
-   * written in e.g.
-   * [Python Request
-   * Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass).
-   * 
- * - * .google.cloud.tasks.v2.HttpMethod http_method = 1; - * - * @return The httpMethod. - */ - com.google.cloud.tasks.v2.HttpMethod getHttpMethod(); - - /** - * - * - *
-   * Task-level setting for App Engine routing.
-   * * If [app_engine_routing_override is set on the
-   *    queue][Queue.app_engine_routing_override], this value is used for all
-   *    tasks in the queue, no matter what the setting is for the [task-level
-   *    app_engine_routing][AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2; - * - * @return Whether the appEngineRouting field is set. - */ - boolean hasAppEngineRouting(); - /** - * - * - *
-   * Task-level setting for App Engine routing.
-   * * If [app_engine_routing_override is set on the
-   *    queue][Queue.app_engine_routing_override], this value is used for all
-   *    tasks in the queue, no matter what the setting is for the [task-level
-   *    app_engine_routing][AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2; - * - * @return The appEngineRouting. - */ - com.google.cloud.tasks.v2.AppEngineRouting getAppEngineRouting(); - /** - * - * - *
-   * Task-level setting for App Engine routing.
-   * * If [app_engine_routing_override is set on the
-   *    queue][Queue.app_engine_routing_override], this value is used for all
-   *    tasks in the queue, no matter what the setting is for the [task-level
-   *    app_engine_routing][AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing = 2; - */ - com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder getAppEngineRoutingOrBuilder(); - - /** - * - * - *
-   * The relative URI.
-   * The relative URI must begin with "/" and must be a valid HTTP relative URI.
-   * It can contain a path and query string arguments.
-   * If the relative URI is empty, then the root path "/" will be used.
-   * No spaces are allowed, and the maximum length allowed is 2083 characters.
-   * 
- * - * string relative_uri = 3; - * - * @return The relativeUri. - */ - java.lang.String getRelativeUri(); - /** - * - * - *
-   * The relative URI.
-   * The relative URI must begin with "/" and must be a valid HTTP relative URI.
-   * It can contain a path and query string arguments.
-   * If the relative URI is empty, then the root path "/" will be used.
-   * No spaces are allowed, and the maximum length allowed is 2083 characters.
-   * 
- * - * string relative_uri = 3; - * - * @return The bytes for relativeUri. - */ - com.google.protobuf.ByteString getRelativeUriBytes(); - - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - int getHeadersCount(); - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - boolean containsHeaders(java.lang.String key); - /** Use {@link #getHeadersMap()} instead. */ - @java.lang.Deprecated - java.util.Map getHeaders(); - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - java.util.Map getHeadersMap(); - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - - /* nullable */ - java.lang.String getHeadersOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - java.lang.String getHeadersOrThrow(java.lang.String key); - - /** - * - * - *
-   * HTTP request body.
-   * A request body is allowed only if the HTTP method is POST or PUT. It is
-   * an error to set a body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2.HttpMethod].
-   * 
- * - * bytes body = 5; - * - * @return The body. - */ - com.google.protobuf.ByteString getBody(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRouting.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRouting.java deleted file mode 100644 index 88f0708b..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRouting.java +++ /dev/null @@ -1,1488 +0,0 @@ -/* - * Copyright 2020 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/v2/target.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * App Engine Routing.
- * Defines routing characteristics specific to App Engine - service, version,
- * and instance.
- * For more information about services, versions, and instances see
- * [An Overview of App
- * Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
- * [Microservices Architecture on Google App
- * Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
- * [App Engine Standard request
- * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
- * and [App Engine Flex request
- * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
- * Using [AppEngineRouting][google.cloud.tasks.v2.AppEngineRouting] requires
- * [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
- * Google IAM permission for the project
- * and the following scope:
- * `https://www.googleapis.com/auth/cloud-platform`
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.AppEngineRouting} - */ -public final class AppEngineRouting extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.AppEngineRouting) - AppEngineRoutingOrBuilder { - private static final long serialVersionUID = 0L; - // Use AppEngineRouting.newBuilder() to construct. - private AppEngineRouting(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AppEngineRouting() { - service_ = ""; - version_ = ""; - instance_ = ""; - host_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AppEngineRouting(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_AppEngineRouting_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_AppEngineRouting_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.AppEngineRouting.class, - com.google.cloud.tasks.v2.AppEngineRouting.Builder.class); - } - - public static final int SERVICE_FIELD_NUMBER = 1; - private volatile java.lang.Object service_; - /** - * - * - *
-   * App service.
-   * By default, the task is sent to the service which is the default
-   * service when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string service = 1; - * - * @return The service. - */ - @java.lang.Override - public java.lang.String getService() { - java.lang.Object ref = service_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - service_ = s; - return s; - } - } - /** - * - * - *
-   * App service.
-   * By default, the task is sent to the service which is the default
-   * service when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string service = 1; - * - * @return The bytes for service. - */ - @java.lang.Override - public com.google.protobuf.ByteString getServiceBytes() { - java.lang.Object ref = service_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - service_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object version_; - /** - * - * - *
-   * App version.
-   * By default, the task is sent to the version which is the default
-   * version when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string version = 2; - * - * @return The version. - */ - @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - * - * - *
-   * App version.
-   * By default, the task is sent to the version which is the default
-   * version when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string version = 2; - * - * @return The bytes for version. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INSTANCE_FIELD_NUMBER = 3; - private volatile java.lang.Object instance_; - /** - * - * - *
-   * App instance.
-   * By default, the task is sent to an instance which is available when
-   * the task is attempted.
-   * Requests can only be sent to a specific instance if
-   * [manual scaling is used in App Engine
-   * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-   * App Engine Flex does not support instances. For more information, see
-   * [App Engine Standard request
-   * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-   * and [App Engine Flex request
-   * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-   * 
- * - * string instance = 3; - * - * @return The instance. - */ - @java.lang.Override - public java.lang.String getInstance() { - java.lang.Object ref = instance_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instance_ = s; - return s; - } - } - /** - * - * - *
-   * App instance.
-   * By default, the task is sent to an instance which is available when
-   * the task is attempted.
-   * Requests can only be sent to a specific instance if
-   * [manual scaling is used in App Engine
-   * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-   * App Engine Flex does not support instances. For more information, see
-   * [App Engine Standard request
-   * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-   * and [App Engine Flex request
-   * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-   * 
- * - * string instance = 3; - * - * @return The bytes for instance. - */ - @java.lang.Override - public com.google.protobuf.ByteString getInstanceBytes() { - java.lang.Object ref = instance_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instance_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HOST_FIELD_NUMBER = 4; - private volatile java.lang.Object host_; - /** - * - * - *
-   * Output only. The host that the task is sent to.
-   * The host is constructed from the domain name of the app associated with
-   * the queue's project ID (for example <app-id>.appspot.com), and the
-   * [service][google.cloud.tasks.v2.AppEngineRouting.service], [version][google.cloud.tasks.v2.AppEngineRouting.version],
-   * and [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. Tasks which were created using
-   * the App Engine SDK might have a custom domain name.
-   * For more information, see
-   * [How Requests are
-   * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-   * 
- * - * string host = 4; - * - * @return The host. - */ - @java.lang.Override - public java.lang.String getHost() { - java.lang.Object ref = host_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - host_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The host that the task is sent to.
-   * The host is constructed from the domain name of the app associated with
-   * the queue's project ID (for example <app-id>.appspot.com), and the
-   * [service][google.cloud.tasks.v2.AppEngineRouting.service], [version][google.cloud.tasks.v2.AppEngineRouting.version],
-   * and [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. Tasks which were created using
-   * the App Engine SDK might have a custom domain name.
-   * For more information, see
-   * [How Requests are
-   * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-   * 
- * - * string host = 4; - * - * @return The bytes for host. - */ - @java.lang.Override - public com.google.protobuf.ByteString getHostBytes() { - java.lang.Object ref = host_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - host_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instance_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, host_); - } - 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(service_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instance_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, host_); - } - 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.v2.AppEngineRouting)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.AppEngineRouting other = - (com.google.cloud.tasks.v2.AppEngineRouting) obj; - - if (!getService().equals(other.getService())) return false; - if (!getVersion().equals(other.getVersion())) return false; - if (!getInstance().equals(other.getInstance())) return false; - if (!getHost().equals(other.getHost())) return false; - if (!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) + SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getService().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + INSTANCE_FIELD_NUMBER; - hash = (53 * hash) + getInstance().hashCode(); - hash = (37 * hash) + HOST_FIELD_NUMBER; - hash = (53 * hash) + getHost().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.AppEngineRouting parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.AppEngineRouting parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.AppEngineRouting parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.AppEngineRouting parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.AppEngineRouting parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.AppEngineRouting parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.AppEngineRouting parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.AppEngineRouting parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.AppEngineRouting parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.AppEngineRouting parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.AppEngineRouting parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.AppEngineRouting parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.AppEngineRouting prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * App Engine Routing.
-   * Defines routing characteristics specific to App Engine - service, version,
-   * and instance.
-   * For more information about services, versions, and instances see
-   * [An Overview of App
-   * Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
-   * [Microservices Architecture on Google App
-   * Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
-   * [App Engine Standard request
-   * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
-   * and [App Engine Flex request
-   * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-   * Using [AppEngineRouting][google.cloud.tasks.v2.AppEngineRouting] requires
-   * [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
-   * Google IAM permission for the project
-   * and the following scope:
-   * `https://www.googleapis.com/auth/cloud-platform`
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.AppEngineRouting} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.AppEngineRouting) - com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_AppEngineRouting_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_AppEngineRouting_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.AppEngineRouting.class, - com.google.cloud.tasks.v2.AppEngineRouting.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.AppEngineRouting.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - service_ = ""; - - version_ = ""; - - instance_ = ""; - - host_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_AppEngineRouting_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.AppEngineRouting getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.AppEngineRouting.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.AppEngineRouting build() { - com.google.cloud.tasks.v2.AppEngineRouting result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.AppEngineRouting buildPartial() { - com.google.cloud.tasks.v2.AppEngineRouting result = - new com.google.cloud.tasks.v2.AppEngineRouting(this); - result.service_ = service_; - result.version_ = version_; - result.instance_ = instance_; - result.host_ = host_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.AppEngineRouting) { - return mergeFrom((com.google.cloud.tasks.v2.AppEngineRouting) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.AppEngineRouting other) { - if (other == com.google.cloud.tasks.v2.AppEngineRouting.getDefaultInstance()) return this; - if (!other.getService().isEmpty()) { - service_ = other.service_; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (!other.getInstance().isEmpty()) { - instance_ = other.instance_; - onChanged(); - } - if (!other.getHost().isEmpty()) { - host_ = other.host_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - service_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - version_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - instance_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - host_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object service_ = ""; - /** - * - * - *
-     * App service.
-     * By default, the task is sent to the service which is the default
-     * service when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string service = 1; - * - * @return The service. - */ - public java.lang.String getService() { - java.lang.Object ref = service_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - service_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * App service.
-     * By default, the task is sent to the service which is the default
-     * service when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string service = 1; - * - * @return The bytes for service. - */ - public com.google.protobuf.ByteString getServiceBytes() { - java.lang.Object ref = service_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - service_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * App service.
-     * By default, the task is sent to the service which is the default
-     * service when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string service = 1; - * - * @param value The service to set. - * @return This builder for chaining. - */ - public Builder setService(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - service_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * App service.
-     * By default, the task is sent to the service which is the default
-     * service when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string service = 1; - * - * @return This builder for chaining. - */ - public Builder clearService() { - - service_ = getDefaultInstance().getService(); - onChanged(); - return this; - } - /** - * - * - *
-     * App service.
-     * By default, the task is sent to the service which is the default
-     * service when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string service = 1; - * - * @param value The bytes for service to set. - * @return This builder for chaining. - */ - public Builder setServiceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - service_ = value; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - * - * - *
-     * App version.
-     * By default, the task is sent to the version which is the default
-     * version when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string version = 2; - * - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * App version.
-     * By default, the task is sent to the version which is the default
-     * version when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string version = 2; - * - * @return The bytes for version. - */ - public com.google.protobuf.ByteString getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * App version.
-     * By default, the task is sent to the version which is the default
-     * version when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string version = 2; - * - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * App version.
-     * By default, the task is sent to the version which is the default
-     * version when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string version = 2; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - * - * - *
-     * App version.
-     * By default, the task is sent to the version which is the default
-     * version when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string version = 2; - * - * @param value The bytes for version to set. - * @return This builder for chaining. - */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private java.lang.Object instance_ = ""; - /** - * - * - *
-     * App instance.
-     * By default, the task is sent to an instance which is available when
-     * the task is attempted.
-     * Requests can only be sent to a specific instance if
-     * [manual scaling is used in App Engine
-     * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-     * App Engine Flex does not support instances. For more information, see
-     * [App Engine Standard request
-     * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-     * and [App Engine Flex request
-     * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-     * 
- * - * string instance = 3; - * - * @return The instance. - */ - public java.lang.String getInstance() { - java.lang.Object ref = instance_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instance_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * App instance.
-     * By default, the task is sent to an instance which is available when
-     * the task is attempted.
-     * Requests can only be sent to a specific instance if
-     * [manual scaling is used in App Engine
-     * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-     * App Engine Flex does not support instances. For more information, see
-     * [App Engine Standard request
-     * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-     * and [App Engine Flex request
-     * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-     * 
- * - * string instance = 3; - * - * @return The bytes for instance. - */ - public com.google.protobuf.ByteString getInstanceBytes() { - java.lang.Object ref = instance_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instance_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * App instance.
-     * By default, the task is sent to an instance which is available when
-     * the task is attempted.
-     * Requests can only be sent to a specific instance if
-     * [manual scaling is used in App Engine
-     * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-     * App Engine Flex does not support instances. For more information, see
-     * [App Engine Standard request
-     * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-     * and [App Engine Flex request
-     * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-     * 
- * - * string instance = 3; - * - * @param value The instance to set. - * @return This builder for chaining. - */ - public Builder setInstance(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - instance_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * App instance.
-     * By default, the task is sent to an instance which is available when
-     * the task is attempted.
-     * Requests can only be sent to a specific instance if
-     * [manual scaling is used in App Engine
-     * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-     * App Engine Flex does not support instances. For more information, see
-     * [App Engine Standard request
-     * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-     * and [App Engine Flex request
-     * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-     * 
- * - * string instance = 3; - * - * @return This builder for chaining. - */ - public Builder clearInstance() { - - instance_ = getDefaultInstance().getInstance(); - onChanged(); - return this; - } - /** - * - * - *
-     * App instance.
-     * By default, the task is sent to an instance which is available when
-     * the task is attempted.
-     * Requests can only be sent to a specific instance if
-     * [manual scaling is used in App Engine
-     * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-     * App Engine Flex does not support instances. For more information, see
-     * [App Engine Standard request
-     * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-     * and [App Engine Flex request
-     * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-     * 
- * - * string instance = 3; - * - * @param value The bytes for instance to set. - * @return This builder for chaining. - */ - public Builder setInstanceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - instance_ = value; - onChanged(); - return this; - } - - private java.lang.Object host_ = ""; - /** - * - * - *
-     * Output only. The host that the task is sent to.
-     * The host is constructed from the domain name of the app associated with
-     * the queue's project ID (for example <app-id>.appspot.com), and the
-     * [service][google.cloud.tasks.v2.AppEngineRouting.service], [version][google.cloud.tasks.v2.AppEngineRouting.version],
-     * and [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. Tasks which were created using
-     * the App Engine SDK might have a custom domain name.
-     * For more information, see
-     * [How Requests are
-     * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-     * 
- * - * string host = 4; - * - * @return The host. - */ - public java.lang.String getHost() { - java.lang.Object ref = host_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - host_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The host that the task is sent to.
-     * The host is constructed from the domain name of the app associated with
-     * the queue's project ID (for example <app-id>.appspot.com), and the
-     * [service][google.cloud.tasks.v2.AppEngineRouting.service], [version][google.cloud.tasks.v2.AppEngineRouting.version],
-     * and [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. Tasks which were created using
-     * the App Engine SDK might have a custom domain name.
-     * For more information, see
-     * [How Requests are
-     * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-     * 
- * - * string host = 4; - * - * @return The bytes for host. - */ - public com.google.protobuf.ByteString getHostBytes() { - java.lang.Object ref = host_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - host_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The host that the task is sent to.
-     * The host is constructed from the domain name of the app associated with
-     * the queue's project ID (for example <app-id>.appspot.com), and the
-     * [service][google.cloud.tasks.v2.AppEngineRouting.service], [version][google.cloud.tasks.v2.AppEngineRouting.version],
-     * and [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. Tasks which were created using
-     * the App Engine SDK might have a custom domain name.
-     * For more information, see
-     * [How Requests are
-     * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-     * 
- * - * string host = 4; - * - * @param value The host to set. - * @return This builder for chaining. - */ - public Builder setHost(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - host_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The host that the task is sent to.
-     * The host is constructed from the domain name of the app associated with
-     * the queue's project ID (for example <app-id>.appspot.com), and the
-     * [service][google.cloud.tasks.v2.AppEngineRouting.service], [version][google.cloud.tasks.v2.AppEngineRouting.version],
-     * and [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. Tasks which were created using
-     * the App Engine SDK might have a custom domain name.
-     * For more information, see
-     * [How Requests are
-     * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-     * 
- * - * string host = 4; - * - * @return This builder for chaining. - */ - public Builder clearHost() { - - host_ = getDefaultInstance().getHost(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The host that the task is sent to.
-     * The host is constructed from the domain name of the app associated with
-     * the queue's project ID (for example <app-id>.appspot.com), and the
-     * [service][google.cloud.tasks.v2.AppEngineRouting.service], [version][google.cloud.tasks.v2.AppEngineRouting.version],
-     * and [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. Tasks which were created using
-     * the App Engine SDK might have a custom domain name.
-     * For more information, see
-     * [How Requests are
-     * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-     * 
- * - * string host = 4; - * - * @param value The bytes for host to set. - * @return This builder for chaining. - */ - public Builder setHostBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - host_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.AppEngineRouting) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.AppEngineRouting) - private static final com.google.cloud.tasks.v2.AppEngineRouting DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.AppEngineRouting(); - } - - public static com.google.cloud.tasks.v2.AppEngineRouting getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AppEngineRouting parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.AppEngineRouting getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRoutingOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRoutingOrBuilder.java deleted file mode 100644 index 9399556f..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRoutingOrBuilder.java +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Copyright 2020 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/v2/target.proto - -package com.google.cloud.tasks.v2; - -public interface AppEngineRoutingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.AppEngineRouting) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * App service.
-   * By default, the task is sent to the service which is the default
-   * service when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string service = 1; - * - * @return The service. - */ - java.lang.String getService(); - /** - * - * - *
-   * App service.
-   * By default, the task is sent to the service which is the default
-   * service when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string service = 1; - * - * @return The bytes for service. - */ - com.google.protobuf.ByteString getServiceBytes(); - - /** - * - * - *
-   * App version.
-   * By default, the task is sent to the version which is the default
-   * version when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string version = 2; - * - * @return The version. - */ - java.lang.String getVersion(); - /** - * - * - *
-   * App version.
-   * By default, the task is sent to the version which is the default
-   * version when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string version = 2; - * - * @return The bytes for version. - */ - com.google.protobuf.ByteString getVersionBytes(); - - /** - * - * - *
-   * App instance.
-   * By default, the task is sent to an instance which is available when
-   * the task is attempted.
-   * Requests can only be sent to a specific instance if
-   * [manual scaling is used in App Engine
-   * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-   * App Engine Flex does not support instances. For more information, see
-   * [App Engine Standard request
-   * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-   * and [App Engine Flex request
-   * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-   * 
- * - * string instance = 3; - * - * @return The instance. - */ - java.lang.String getInstance(); - /** - * - * - *
-   * App instance.
-   * By default, the task is sent to an instance which is available when
-   * the task is attempted.
-   * Requests can only be sent to a specific instance if
-   * [manual scaling is used in App Engine
-   * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-   * App Engine Flex does not support instances. For more information, see
-   * [App Engine Standard request
-   * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-   * and [App Engine Flex request
-   * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-   * 
- * - * string instance = 3; - * - * @return The bytes for instance. - */ - com.google.protobuf.ByteString getInstanceBytes(); - - /** - * - * - *
-   * Output only. The host that the task is sent to.
-   * The host is constructed from the domain name of the app associated with
-   * the queue's project ID (for example <app-id>.appspot.com), and the
-   * [service][google.cloud.tasks.v2.AppEngineRouting.service], [version][google.cloud.tasks.v2.AppEngineRouting.version],
-   * and [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. Tasks which were created using
-   * the App Engine SDK might have a custom domain name.
-   * For more information, see
-   * [How Requests are
-   * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-   * 
- * - * string host = 4; - * - * @return The host. - */ - java.lang.String getHost(); - /** - * - * - *
-   * Output only. The host that the task is sent to.
-   * The host is constructed from the domain name of the app associated with
-   * the queue's project ID (for example <app-id>.appspot.com), and the
-   * [service][google.cloud.tasks.v2.AppEngineRouting.service], [version][google.cloud.tasks.v2.AppEngineRouting.version],
-   * and [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. Tasks which were created using
-   * the App Engine SDK might have a custom domain name.
-   * For more information, see
-   * [How Requests are
-   * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-   * 
- * - * string host = 4; - * - * @return The bytes for host. - */ - com.google.protobuf.ByteString getHostBytes(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Attempt.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Attempt.java deleted file mode 100644 index 50d28417..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Attempt.java +++ /dev/null @@ -1,1552 +0,0 @@ -/* - * Copyright 2020 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/v2/task.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * The status of a task attempt.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.Attempt} - */ -public final class Attempt extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.Attempt) - AttemptOrBuilder { - private static final long serialVersionUID = 0L; - // Use Attempt.newBuilder() to construct. - private Attempt(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Attempt() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Attempt(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.TaskProto - .internal_static_google_cloud_tasks_v2_Attempt_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.TaskProto - .internal_static_google_cloud_tasks_v2_Attempt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.Attempt.class, - com.google.cloud.tasks.v2.Attempt.Builder.class); - } - - public static final int SCHEDULE_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp scheduleTime_; - /** - * - * - *
-   * Output only. The time that this attempt was scheduled.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - * - * @return Whether the scheduleTime field is set. - */ - @java.lang.Override - public boolean hasScheduleTime() { - return scheduleTime_ != null; - } - /** - * - * - *
-   * Output only. The time that this attempt was scheduled.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - * - * @return The scheduleTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } - /** - * - * - *
-   * Output only. The time that this attempt was scheduled.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { - return getScheduleTime(); - } - - public static final int DISPATCH_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp dispatchTime_; - /** - * - * - *
-   * Output only. The time that this attempt was dispatched.
-   * `dispatch_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - * - * @return Whether the dispatchTime field is set. - */ - @java.lang.Override - public boolean hasDispatchTime() { - return dispatchTime_ != null; - } - /** - * - * - *
-   * Output only. The time that this attempt was dispatched.
-   * `dispatch_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - * - * @return The dispatchTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getDispatchTime() { - return dispatchTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dispatchTime_; - } - /** - * - * - *
-   * Output only. The time that this attempt was dispatched.
-   * `dispatch_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getDispatchTimeOrBuilder() { - return getDispatchTime(); - } - - public static final int RESPONSE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp responseTime_; - /** - * - * - *
-   * Output only. The time that this attempt response was received.
-   * `response_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp response_time = 3; - * - * @return Whether the responseTime field is set. - */ - @java.lang.Override - public boolean hasResponseTime() { - return responseTime_ != null; - } - /** - * - * - *
-   * Output only. The time that this attempt response was received.
-   * `response_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp response_time = 3; - * - * @return The responseTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getResponseTime() { - return responseTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : responseTime_; - } - /** - * - * - *
-   * Output only. The time that this attempt response was received.
-   * `response_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() { - return getResponseTime(); - } - - public static final int RESPONSE_STATUS_FIELD_NUMBER = 4; - private com.google.rpc.Status responseStatus_; - /** - * - * - *
-   * Output only. The response from the worker for this attempt.
-   * If `response_time` is unset, then the task has not been attempted or is
-   * currently running and the `response_status` field is meaningless.
-   * 
- * - * .google.rpc.Status response_status = 4; - * - * @return Whether the responseStatus field is set. - */ - @java.lang.Override - public boolean hasResponseStatus() { - return responseStatus_ != null; - } - /** - * - * - *
-   * Output only. The response from the worker for this attempt.
-   * If `response_time` is unset, then the task has not been attempted or is
-   * currently running and the `response_status` field is meaningless.
-   * 
- * - * .google.rpc.Status response_status = 4; - * - * @return The responseStatus. - */ - @java.lang.Override - public com.google.rpc.Status getResponseStatus() { - return responseStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : responseStatus_; - } - /** - * - * - *
-   * Output only. The response from the worker for this attempt.
-   * If `response_time` is unset, then the task has not been attempted or is
-   * currently running and the `response_status` field is meaningless.
-   * 
- * - * .google.rpc.Status response_status = 4; - */ - @java.lang.Override - public com.google.rpc.StatusOrBuilder getResponseStatusOrBuilder() { - return getResponseStatus(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (scheduleTime_ != null) { - output.writeMessage(1, getScheduleTime()); - } - if (dispatchTime_ != null) { - output.writeMessage(2, getDispatchTime()); - } - if (responseTime_ != null) { - output.writeMessage(3, getResponseTime()); - } - if (responseStatus_ != null) { - output.writeMessage(4, getResponseStatus()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getScheduleTime()); - } - if (dispatchTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDispatchTime()); - } - if (responseTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResponseTime()); - } - if (responseStatus_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResponseStatus()); - } - size += 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.v2.Attempt)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.Attempt other = (com.google.cloud.tasks.v2.Attempt) obj; - - if (hasScheduleTime() != other.hasScheduleTime()) return false; - if (hasScheduleTime()) { - if (!getScheduleTime().equals(other.getScheduleTime())) return false; - } - if (hasDispatchTime() != other.hasDispatchTime()) return false; - if (hasDispatchTime()) { - if (!getDispatchTime().equals(other.getDispatchTime())) return false; - } - if (hasResponseTime() != other.hasResponseTime()) return false; - if (hasResponseTime()) { - if (!getResponseTime().equals(other.getResponseTime())) return false; - } - if (hasResponseStatus() != other.hasResponseStatus()) return false; - if (hasResponseStatus()) { - if (!getResponseStatus().equals(other.getResponseStatus())) return false; - } - if (!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 (hasScheduleTime()) { - hash = (37 * hash) + SCHEDULE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getScheduleTime().hashCode(); - } - if (hasDispatchTime()) { - hash = (37 * hash) + DISPATCH_TIME_FIELD_NUMBER; - hash = (53 * hash) + getDispatchTime().hashCode(); - } - if (hasResponseTime()) { - hash = (37 * hash) + RESPONSE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getResponseTime().hashCode(); - } - if (hasResponseStatus()) { - hash = (37 * hash) + RESPONSE_STATUS_FIELD_NUMBER; - hash = (53 * hash) + getResponseStatus().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.Attempt parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.Attempt parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.Attempt parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.Attempt parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.Attempt parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.Attempt parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.Attempt parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.Attempt parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.Attempt parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.Attempt parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.Attempt parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.Attempt parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.Attempt prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The status of a task attempt.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.Attempt} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.Attempt) - com.google.cloud.tasks.v2.AttemptOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.TaskProto - .internal_static_google_cloud_tasks_v2_Attempt_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.TaskProto - .internal_static_google_cloud_tasks_v2_Attempt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.Attempt.class, - com.google.cloud.tasks.v2.Attempt.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.Attempt.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = null; - } else { - scheduleTime_ = null; - scheduleTimeBuilder_ = null; - } - if (dispatchTimeBuilder_ == null) { - dispatchTime_ = null; - } else { - dispatchTime_ = null; - dispatchTimeBuilder_ = null; - } - if (responseTimeBuilder_ == null) { - responseTime_ = null; - } else { - responseTime_ = null; - responseTimeBuilder_ = null; - } - if (responseStatusBuilder_ == null) { - responseStatus_ = null; - } else { - responseStatus_ = null; - responseStatusBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.TaskProto - .internal_static_google_cloud_tasks_v2_Attempt_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.Attempt getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.Attempt.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.Attempt build() { - com.google.cloud.tasks.v2.Attempt result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.Attempt buildPartial() { - com.google.cloud.tasks.v2.Attempt result = new com.google.cloud.tasks.v2.Attempt(this); - if (scheduleTimeBuilder_ == null) { - result.scheduleTime_ = scheduleTime_; - } else { - result.scheduleTime_ = scheduleTimeBuilder_.build(); - } - if (dispatchTimeBuilder_ == null) { - result.dispatchTime_ = dispatchTime_; - } else { - result.dispatchTime_ = dispatchTimeBuilder_.build(); - } - if (responseTimeBuilder_ == null) { - result.responseTime_ = responseTime_; - } else { - result.responseTime_ = responseTimeBuilder_.build(); - } - if (responseStatusBuilder_ == null) { - result.responseStatus_ = responseStatus_; - } else { - result.responseStatus_ = responseStatusBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.Attempt) { - return mergeFrom((com.google.cloud.tasks.v2.Attempt) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.Attempt other) { - if (other == com.google.cloud.tasks.v2.Attempt.getDefaultInstance()) return this; - if (other.hasScheduleTime()) { - mergeScheduleTime(other.getScheduleTime()); - } - if (other.hasDispatchTime()) { - mergeDispatchTime(other.getDispatchTime()); - } - if (other.hasResponseTime()) { - mergeResponseTime(other.getResponseTime()); - } - if (other.hasResponseStatus()) { - mergeResponseStatus(other.getResponseStatus()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getDispatchTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getResponseTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getResponseStatusFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.protobuf.Timestamp scheduleTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - scheduleTimeBuilder_; - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - * - * @return Whether the scheduleTime field is set. - */ - public boolean hasScheduleTime() { - return scheduleTimeBuilder_ != null || scheduleTime_ != null; - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - * - * @return The scheduleTime. - */ - public com.google.protobuf.Timestamp getScheduleTime() { - if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } else { - return scheduleTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - public Builder setScheduleTime(com.google.protobuf.Timestamp value) { - if (scheduleTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduleTime_ = value; - onChanged(); - } else { - scheduleTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = builderForValue.build(); - onChanged(); - } else { - scheduleTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { - if (scheduleTimeBuilder_ == null) { - if (scheduleTime_ != null) { - scheduleTime_ = - com.google.protobuf.Timestamp.newBuilder(scheduleTime_) - .mergeFrom(value) - .buildPartial(); - } else { - scheduleTime_ = value; - } - onChanged(); - } else { - scheduleTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - public Builder clearScheduleTime() { - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = null; - onChanged(); - } else { - scheduleTime_ = null; - scheduleTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { - - onChanged(); - return getScheduleTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { - if (scheduleTimeBuilder_ != null) { - return scheduleTimeBuilder_.getMessageOrBuilder(); - } else { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getScheduleTimeFieldBuilder() { - if (scheduleTimeBuilder_ == null) { - scheduleTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getScheduleTime(), getParentForChildren(), isClean()); - scheduleTime_ = null; - } - return scheduleTimeBuilder_; - } - - private com.google.protobuf.Timestamp dispatchTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - dispatchTimeBuilder_; - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - * - * @return Whether the dispatchTime field is set. - */ - public boolean hasDispatchTime() { - return dispatchTimeBuilder_ != null || dispatchTime_ != null; - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - * - * @return The dispatchTime. - */ - public com.google.protobuf.Timestamp getDispatchTime() { - if (dispatchTimeBuilder_ == null) { - return dispatchTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dispatchTime_; - } else { - return dispatchTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - public Builder setDispatchTime(com.google.protobuf.Timestamp value) { - if (dispatchTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dispatchTime_ = value; - onChanged(); - } else { - dispatchTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - public Builder setDispatchTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (dispatchTimeBuilder_ == null) { - dispatchTime_ = builderForValue.build(); - onChanged(); - } else { - dispatchTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - public Builder mergeDispatchTime(com.google.protobuf.Timestamp value) { - if (dispatchTimeBuilder_ == null) { - if (dispatchTime_ != null) { - dispatchTime_ = - com.google.protobuf.Timestamp.newBuilder(dispatchTime_) - .mergeFrom(value) - .buildPartial(); - } else { - dispatchTime_ = value; - } - onChanged(); - } else { - dispatchTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - public Builder clearDispatchTime() { - if (dispatchTimeBuilder_ == null) { - dispatchTime_ = null; - onChanged(); - } else { - dispatchTime_ = null; - dispatchTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - public com.google.protobuf.Timestamp.Builder getDispatchTimeBuilder() { - - onChanged(); - return getDispatchTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - public com.google.protobuf.TimestampOrBuilder getDispatchTimeOrBuilder() { - if (dispatchTimeBuilder_ != null) { - return dispatchTimeBuilder_.getMessageOrBuilder(); - } else { - return dispatchTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dispatchTime_; - } - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getDispatchTimeFieldBuilder() { - if (dispatchTimeBuilder_ == null) { - dispatchTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDispatchTime(), getParentForChildren(), isClean()); - dispatchTime_ = null; - } - return dispatchTimeBuilder_; - } - - private com.google.protobuf.Timestamp responseTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - responseTimeBuilder_; - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - * - * @return Whether the responseTime field is set. - */ - public boolean hasResponseTime() { - return responseTimeBuilder_ != null || responseTime_ != null; - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - * - * @return The responseTime. - */ - public com.google.protobuf.Timestamp getResponseTime() { - if (responseTimeBuilder_ == null) { - return responseTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : responseTime_; - } else { - return responseTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - public Builder setResponseTime(com.google.protobuf.Timestamp value) { - if (responseTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - responseTime_ = value; - onChanged(); - } else { - responseTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - public Builder setResponseTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (responseTimeBuilder_ == null) { - responseTime_ = builderForValue.build(); - onChanged(); - } else { - responseTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - public Builder mergeResponseTime(com.google.protobuf.Timestamp value) { - if (responseTimeBuilder_ == null) { - if (responseTime_ != null) { - responseTime_ = - com.google.protobuf.Timestamp.newBuilder(responseTime_) - .mergeFrom(value) - .buildPartial(); - } else { - responseTime_ = value; - } - onChanged(); - } else { - responseTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - public Builder clearResponseTime() { - if (responseTimeBuilder_ == null) { - responseTime_ = null; - onChanged(); - } else { - responseTime_ = null; - responseTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - public com.google.protobuf.Timestamp.Builder getResponseTimeBuilder() { - - onChanged(); - return getResponseTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() { - if (responseTimeBuilder_ != null) { - return responseTimeBuilder_.getMessageOrBuilder(); - } else { - return responseTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : responseTime_; - } - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getResponseTimeFieldBuilder() { - if (responseTimeBuilder_ == null) { - responseTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getResponseTime(), getParentForChildren(), isClean()); - responseTime_ = null; - } - return responseTimeBuilder_; - } - - private com.google.rpc.Status responseStatus_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - responseStatusBuilder_; - /** - * - * - *
-     * Output only. The response from the worker for this attempt.
-     * If `response_time` is unset, then the task has not been attempted or is
-     * currently running and the `response_status` field is meaningless.
-     * 
- * - * .google.rpc.Status response_status = 4; - * - * @return Whether the responseStatus field is set. - */ - public boolean hasResponseStatus() { - return responseStatusBuilder_ != null || responseStatus_ != null; - } - /** - * - * - *
-     * Output only. The response from the worker for this attempt.
-     * If `response_time` is unset, then the task has not been attempted or is
-     * currently running and the `response_status` field is meaningless.
-     * 
- * - * .google.rpc.Status response_status = 4; - * - * @return The responseStatus. - */ - public com.google.rpc.Status getResponseStatus() { - if (responseStatusBuilder_ == null) { - return responseStatus_ == null - ? com.google.rpc.Status.getDefaultInstance() - : responseStatus_; - } else { - return responseStatusBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The response from the worker for this attempt.
-     * If `response_time` is unset, then the task has not been attempted or is
-     * currently running and the `response_status` field is meaningless.
-     * 
- * - * .google.rpc.Status response_status = 4; - */ - public Builder setResponseStatus(com.google.rpc.Status value) { - if (responseStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - responseStatus_ = value; - onChanged(); - } else { - responseStatusBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The response from the worker for this attempt.
-     * If `response_time` is unset, then the task has not been attempted or is
-     * currently running and the `response_status` field is meaningless.
-     * 
- * - * .google.rpc.Status response_status = 4; - */ - public Builder setResponseStatus(com.google.rpc.Status.Builder builderForValue) { - if (responseStatusBuilder_ == null) { - responseStatus_ = builderForValue.build(); - onChanged(); - } else { - responseStatusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The response from the worker for this attempt.
-     * If `response_time` is unset, then the task has not been attempted or is
-     * currently running and the `response_status` field is meaningless.
-     * 
- * - * .google.rpc.Status response_status = 4; - */ - public Builder mergeResponseStatus(com.google.rpc.Status value) { - if (responseStatusBuilder_ == null) { - if (responseStatus_ != null) { - responseStatus_ = - com.google.rpc.Status.newBuilder(responseStatus_).mergeFrom(value).buildPartial(); - } else { - responseStatus_ = value; - } - onChanged(); - } else { - responseStatusBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The response from the worker for this attempt.
-     * If `response_time` is unset, then the task has not been attempted or is
-     * currently running and the `response_status` field is meaningless.
-     * 
- * - * .google.rpc.Status response_status = 4; - */ - public Builder clearResponseStatus() { - if (responseStatusBuilder_ == null) { - responseStatus_ = null; - onChanged(); - } else { - responseStatus_ = null; - responseStatusBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The response from the worker for this attempt.
-     * If `response_time` is unset, then the task has not been attempted or is
-     * currently running and the `response_status` field is meaningless.
-     * 
- * - * .google.rpc.Status response_status = 4; - */ - public com.google.rpc.Status.Builder getResponseStatusBuilder() { - - onChanged(); - return getResponseStatusFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The response from the worker for this attempt.
-     * If `response_time` is unset, then the task has not been attempted or is
-     * currently running and the `response_status` field is meaningless.
-     * 
- * - * .google.rpc.Status response_status = 4; - */ - public com.google.rpc.StatusOrBuilder getResponseStatusOrBuilder() { - if (responseStatusBuilder_ != null) { - return responseStatusBuilder_.getMessageOrBuilder(); - } else { - return responseStatus_ == null - ? com.google.rpc.Status.getDefaultInstance() - : responseStatus_; - } - } - /** - * - * - *
-     * Output only. The response from the worker for this attempt.
-     * If `response_time` is unset, then the task has not been attempted or is
-     * currently running and the `response_status` field is meaningless.
-     * 
- * - * .google.rpc.Status response_status = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - getResponseStatusFieldBuilder() { - if (responseStatusBuilder_ == null) { - responseStatusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - getResponseStatus(), getParentForChildren(), isClean()); - responseStatus_ = null; - } - return responseStatusBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.Attempt) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.Attempt) - private static final com.google.cloud.tasks.v2.Attempt DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.Attempt(); - } - - public static com.google.cloud.tasks.v2.Attempt getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Attempt parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.Attempt getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AttemptOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AttemptOrBuilder.java deleted file mode 100644 index 3b1276d7..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AttemptOrBuilder.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Copyright 2020 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/v2/task.proto - -package com.google.cloud.tasks.v2; - -public interface AttemptOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.Attempt) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The time that this attempt was scheduled.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - * - * @return Whether the scheduleTime field is set. - */ - boolean hasScheduleTime(); - /** - * - * - *
-   * Output only. The time that this attempt was scheduled.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - * - * @return The scheduleTime. - */ - com.google.protobuf.Timestamp getScheduleTime(); - /** - * - * - *
-   * Output only. The time that this attempt was scheduled.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The time that this attempt was dispatched.
-   * `dispatch_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - * - * @return Whether the dispatchTime field is set. - */ - boolean hasDispatchTime(); - /** - * - * - *
-   * Output only. The time that this attempt was dispatched.
-   * `dispatch_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - * - * @return The dispatchTime. - */ - com.google.protobuf.Timestamp getDispatchTime(); - /** - * - * - *
-   * Output only. The time that this attempt was dispatched.
-   * `dispatch_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - com.google.protobuf.TimestampOrBuilder getDispatchTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The time that this attempt response was received.
-   * `response_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp response_time = 3; - * - * @return Whether the responseTime field is set. - */ - boolean hasResponseTime(); - /** - * - * - *
-   * Output only. The time that this attempt response was received.
-   * `response_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp response_time = 3; - * - * @return The responseTime. - */ - com.google.protobuf.Timestamp getResponseTime(); - /** - * - * - *
-   * Output only. The time that this attempt response was received.
-   * `response_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The response from the worker for this attempt.
-   * If `response_time` is unset, then the task has not been attempted or is
-   * currently running and the `response_status` field is meaningless.
-   * 
- * - * .google.rpc.Status response_status = 4; - * - * @return Whether the responseStatus field is set. - */ - boolean hasResponseStatus(); - /** - * - * - *
-   * Output only. The response from the worker for this attempt.
-   * If `response_time` is unset, then the task has not been attempted or is
-   * currently running and the `response_status` field is meaningless.
-   * 
- * - * .google.rpc.Status response_status = 4; - * - * @return The responseStatus. - */ - com.google.rpc.Status getResponseStatus(); - /** - * - * - *
-   * Output only. The response from the worker for this attempt.
-   * If `response_time` is unset, then the task has not been attempted or is
-   * currently running and the `response_status` field is meaningless.
-   * 
- * - * .google.rpc.Status response_status = 4; - */ - com.google.rpc.StatusOrBuilder getResponseStatusOrBuilder(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksProto.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksProto.java deleted file mode 100644 index afa82be4..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksProto.java +++ /dev/null @@ -1,378 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -public final class CloudTasksProto { - private CloudTasksProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_ListQueuesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_ListQueuesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_ListQueuesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_ListQueuesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_GetQueueRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_GetQueueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_CreateQueueRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_CreateQueueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_UpdateQueueRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_UpdateQueueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_DeleteQueueRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_DeleteQueueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_PurgeQueueRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_PurgeQueueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_PauseQueueRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_PauseQueueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_ResumeQueueRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_ResumeQueueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_ListTasksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_ListTasksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_ListTasksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_ListTasksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_GetTaskRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_GetTaskRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_CreateTaskRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_CreateTaskRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_DeleteTaskRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_DeleteTaskRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_RunTaskRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_RunTaskRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n&google/cloud/tasks/v2/cloudtasks.proto" - + "\022\025google.cloud.tasks.v2\032\034google/api/anno" - + "tations.proto\032\027google/api/client.proto\032\037" - + "google/api/field_behavior.proto\032\031google/" - + "api/resource.proto\032!google/cloud/tasks/v" - + "2/queue.proto\032 google/cloud/tasks/v2/tas" - + "k.proto\032\036google/iam/v1/iam_policy.proto\032" - + "\032google/iam/v1/policy.proto\032\033google/prot" - + "obuf/empty.proto\032 google/protobuf/field_" - + "mask.proto\"\203\001\n\021ListQueuesRequest\0227\n\006pare" - + "nt\030\001 \001(\tB\'\340A\002\372A!\022\037cloudtasks.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\"[\n\022ListQueuesRe" - + "sponse\022,\n\006queues\030\001 \003(\0132\034.google.cloud.ta" - + "sks.v2.Queue\022\027\n\017next_page_token\030\002 \001(\t\"H\n" - + "\017GetQueueRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037" - + "cloudtasks.googleapis.com/Queue\"\177\n\022Creat" - + "eQueueRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037c" - + "loudtasks.googleapis.com/Queue\0220\n\005queue\030" - + "\002 \001(\0132\034.google.cloud.tasks.v2.QueueB\003\340A\002" - + "\"w\n\022UpdateQueueRequest\0220\n\005queue\030\001 \001(\0132\034." - + "google.cloud.tasks.v2.QueueB\003\340A\002\022/\n\013upda" - + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" - + "k\"K\n\022DeleteQueueRequest\0225\n\004name\030\001 \001(\tB\'\340" - + "A\002\372A!\n\037cloudtasks.googleapis.com/Queue\"J" - + "\n\021PurgeQueueRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A" - + "!\n\037cloudtasks.googleapis.com/Queue\"J\n\021Pa" - + "useQueueRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037c" - + "loudtasks.googleapis.com/Queue\"K\n\022Resume" - + "QueueRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037clou" - + "dtasks.googleapis.com/Queue\"\252\001\n\020ListTask" - + "sRequest\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036cloudt" - + "asks.googleapis.com/Task\0227\n\rresponse_vie" - + "w\030\002 \001(\0162 .google.cloud.tasks.v2.Task.Vie" - + "w\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t" - + "\"X\n\021ListTasksResponse\022*\n\005tasks\030\001 \003(\0132\033.g" - + "oogle.cloud.tasks.v2.Task\022\027\n\017next_page_t" - + "oken\030\002 \001(\t\"\177\n\016GetTaskRequest\0224\n\004name\030\001 \001" - + "(\tB&\340A\002\372A \n\036cloudtasks.googleapis.com/Ta" - + "sk\0227\n\rresponse_view\030\002 \001(\0162 .google.cloud" - + ".tasks.v2.Task.View\"\264\001\n\021CreateTaskReques" - + "t\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036cloudtasks.go" - + "ogleapis.com/Task\022.\n\004task\030\002 \001(\0132\033.google" - + ".cloud.tasks.v2.TaskB\003\340A\002\0227\n\rresponse_vi" - + "ew\030\003 \001(\0162 .google.cloud.tasks.v2.Task.Vi" - + "ew\"I\n\021DeleteTaskRequest\0224\n\004name\030\001 \001(\tB&\340" - + "A\002\372A \n\036cloudtasks.googleapis.com/Task\"\177\n" - + "\016RunTaskRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036c" - + "loudtasks.googleapis.com/Task\0227\n\rrespons" - + "e_view\030\002 \001(\0162 .google.cloud.tasks.v2.Tas" - + "k.View2\335\024\n\nCloudTasks\022\236\001\n\nListQueues\022(.g" - + "oogle.cloud.tasks.v2.ListQueuesRequest\032)" - + ".google.cloud.tasks.v2.ListQueuesRespons" - + "e\";\202\323\344\223\002,\022*/v2/{parent=projects/*/locati" - + "ons/*}/queues\332A\006parent\022\213\001\n\010GetQueue\022&.go" - + "ogle.cloud.tasks.v2.GetQueueRequest\032\034.go" - + "ogle.cloud.tasks.v2.Queue\"9\202\323\344\223\002,\022*/v2/{" - + "name=projects/*/locations/*/queues/*}\332A\004" - + "name\022\240\001\n\013CreateQueue\022).google.cloud.task" - + "s.v2.CreateQueueRequest\032\034.google.cloud.t" - + "asks.v2.Queue\"H\202\323\344\223\0023\"*/v2/{parent=proje" - + "cts/*/locations/*}/queues:\005queue\332A\014paren" - + "t,queue\022\253\001\n\013UpdateQueue\022).google.cloud.t" - + "asks.v2.UpdateQueueRequest\032\034.google.clou" - + "d.tasks.v2.Queue\"S\202\323\344\223\002920/v2/{queue.nam" - + "e=projects/*/locations/*/queues/*}:\005queu" - + "e\332A\021queue,update_mask\022\213\001\n\013DeleteQueue\022)." - + "google.cloud.tasks.v2.DeleteQueueRequest" - + "\032\026.google.protobuf.Empty\"9\202\323\344\223\002,**/v2/{n" - + "ame=projects/*/locations/*/queues/*}\332A\004n" - + "ame\022\230\001\n\nPurgeQueue\022(.google.cloud.tasks." - + "v2.PurgeQueueRequest\032\034.google.cloud.task" - + "s.v2.Queue\"B\202\323\344\223\0025\"0/v2/{name=projects/*" - + "/locations/*/queues/*}:purge:\001*\332A\004name\022\230" - + "\001\n\nPauseQueue\022(.google.cloud.tasks.v2.Pa" - + "useQueueRequest\032\034.google.cloud.tasks.v2." - + "Queue\"B\202\323\344\223\0025\"0/v2/{name=projects/*/loca" - + "tions/*/queues/*}:pause:\001*\332A\004name\022\233\001\n\013Re" - + "sumeQueue\022).google.cloud.tasks.v2.Resume" - + "QueueRequest\032\034.google.cloud.tasks.v2.Que" - + "ue\"C\202\323\344\223\0026\"1/v2/{name=projects/*/locatio" - + "ns/*/queues/*}:resume:\001*\332A\004name\022\234\001\n\014GetI" - + "amPolicy\022\".google.iam.v1.GetIamPolicyReq" - + "uest\032\025.google.iam.v1.Policy\"Q\202\323\344\223\002@\";/v2" - + "/{resource=projects/*/locations/*/queues" - + "/*}:getIamPolicy:\001*\332A\010resource\022\243\001\n\014SetIa" - + "mPolicy\022\".google.iam.v1.SetIamPolicyRequ" - + "est\032\025.google.iam.v1.Policy\"X\202\323\344\223\002@\";/v2/" - + "{resource=projects/*/locations/*/queues/" - + "*}:setIamPolicy:\001*\332A\017resource,policy\022\316\001\n" - + "\022TestIamPermissions\022(.google.iam.v1.Test" - + "IamPermissionsRequest\032).google.iam.v1.Te" - + "stIamPermissionsResponse\"c\202\323\344\223\002F\"A/v2/{r" - + "esource=projects/*/locations/*/queues/*}" - + ":testIamPermissions:\001*\332A\024resource,permis" - + "sions\022\243\001\n\tListTasks\022\'.google.cloud.tasks" - + ".v2.ListTasksRequest\032(.google.cloud.task" - + "s.v2.ListTasksResponse\"C\202\323\344\223\0024\0222/v2/{par" - + "ent=projects/*/locations/*/queues/*}/tas" - + "ks\332A\006parent\022\220\001\n\007GetTask\022%.google.cloud.t" - + "asks.v2.GetTaskRequest\032\033.google.cloud.ta" - + "sks.v2.Task\"A\202\323\344\223\0024\0222/v2/{name=projects/" - + "*/locations/*/queues/*/tasks/*}\332A\004name\022\240" - + "\001\n\nCreateTask\022(.google.cloud.tasks.v2.Cr" - + "eateTaskRequest\032\033.google.cloud.tasks.v2." - + "Task\"K\202\323\344\223\0027\"2/v2/{parent=projects/*/loc" - + "ations/*/queues/*}/tasks:\001*\332A\013parent,tas" - + "k\022\221\001\n\nDeleteTask\022(.google.cloud.tasks.v2" - + ".DeleteTaskRequest\032\026.google.protobuf.Emp" - + "ty\"A\202\323\344\223\0024*2/v2/{name=projects/*/locatio" - + "ns/*/queues/*/tasks/*}\332A\004name\022\227\001\n\007RunTas" - + "k\022%.google.cloud.tasks.v2.RunTaskRequest" - + "\032\033.google.cloud.tasks.v2.Task\"H\202\323\344\223\002;\"6/" - + "v2/{name=projects/*/locations/*/queues/*" - + "/tasks/*}:run:\001*\332A\004name\032M\312A\031cloudtasks.g" - + "oogleapis.com\322A.https://www.googleapis.c" - + "om/auth/cloud-platformBr\n\031com.google.clo" - + "ud.tasks.v2B\017CloudTasksProtoP\001Z:google.g" - + "olang.org/genproto/googleapis/cloud/task" - + "s/v2;tasks\242\002\005TASKSb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.tasks.v2.QueueProto.getDescriptor(), - com.google.cloud.tasks.v2.TaskProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_tasks_v2_ListQueuesRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_tasks_v2_ListQueuesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_ListQueuesRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_tasks_v2_ListQueuesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_tasks_v2_ListQueuesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_ListQueuesResponse_descriptor, - new java.lang.String[] { - "Queues", "NextPageToken", - }); - internal_static_google_cloud_tasks_v2_GetQueueRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_tasks_v2_GetQueueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_GetQueueRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_tasks_v2_CreateQueueRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_tasks_v2_CreateQueueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_CreateQueueRequest_descriptor, - new java.lang.String[] { - "Parent", "Queue", - }); - internal_static_google_cloud_tasks_v2_UpdateQueueRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_tasks_v2_UpdateQueueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_UpdateQueueRequest_descriptor, - new java.lang.String[] { - "Queue", "UpdateMask", - }); - internal_static_google_cloud_tasks_v2_DeleteQueueRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_tasks_v2_DeleteQueueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_DeleteQueueRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_tasks_v2_PurgeQueueRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_tasks_v2_PurgeQueueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_PurgeQueueRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_tasks_v2_PauseQueueRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_tasks_v2_PauseQueueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_PauseQueueRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_tasks_v2_ResumeQueueRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_tasks_v2_ResumeQueueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_ResumeQueueRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_tasks_v2_ListTasksRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_tasks_v2_ListTasksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_ListTasksRequest_descriptor, - new java.lang.String[] { - "Parent", "ResponseView", "PageSize", "PageToken", - }); - internal_static_google_cloud_tasks_v2_ListTasksResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_tasks_v2_ListTasksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_ListTasksResponse_descriptor, - new java.lang.String[] { - "Tasks", "NextPageToken", - }); - internal_static_google_cloud_tasks_v2_GetTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_tasks_v2_GetTaskRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_GetTaskRequest_descriptor, - new java.lang.String[] { - "Name", "ResponseView", - }); - internal_static_google_cloud_tasks_v2_CreateTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_tasks_v2_CreateTaskRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_CreateTaskRequest_descriptor, - new java.lang.String[] { - "Parent", "Task", "ResponseView", - }); - internal_static_google_cloud_tasks_v2_DeleteTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_tasks_v2_DeleteTaskRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_DeleteTaskRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_tasks_v2_RunTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_tasks_v2_RunTaskRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_RunTaskRequest_descriptor, - new java.lang.String[] { - "Name", "ResponseView", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.tasks.v2.QueueProto.getDescriptor(); - com.google.cloud.tasks.v2.TaskProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequest.java deleted file mode 100644 index a53dab61..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequest.java +++ /dev/null @@ -1,936 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * Request message for [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.CreateQueueRequest} - */ -public final class CreateQueueRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.CreateQueueRequest) - CreateQueueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateQueueRequest.newBuilder() to construct. - private CreateQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateQueueRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateQueueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_CreateQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_CreateQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.CreateQueueRequest.class, - com.google.cloud.tasks.v2.CreateQueueRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The location name in which the queue will be created.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * The list of allowed locations can be obtained by calling Cloud
-   * Tasks' implementation of
-   * [ListLocations][google.cloud.location.Locations.ListLocations].
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The location name in which the queue will be created.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * The list of allowed locations can be obtained by calling Cloud
-   * Tasks' implementation of
-   * [ListLocations][google.cloud.location.Locations.ListLocations].
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUEUE_FIELD_NUMBER = 2; - private com.google.cloud.tasks.v2.Queue queue_; - /** - * - * - *
-   * Required. The queue to create.
-   * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue.
-   * 
- * - * .google.cloud.tasks.v2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the queue field is set. - */ - @java.lang.Override - public boolean hasQueue() { - return queue_ != null; - } - /** - * - * - *
-   * Required. The queue to create.
-   * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue.
-   * 
- * - * .google.cloud.tasks.v2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The queue. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.Queue getQueue() { - return queue_ == null ? com.google.cloud.tasks.v2.Queue.getDefaultInstance() : queue_; - } - /** - * - * - *
-   * Required. The queue to create.
-   * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue.
-   * 
- * - * .google.cloud.tasks.v2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.QueueOrBuilder getQueueOrBuilder() { - return getQueue(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (queue_ != null) { - output.writeMessage(2, getQueue()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (queue_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQueue()); - } - 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.v2.CreateQueueRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.CreateQueueRequest other = - (com.google.cloud.tasks.v2.CreateQueueRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasQueue() != other.hasQueue()) return false; - if (hasQueue()) { - if (!getQueue().equals(other.getQueue())) return false; - } - if (!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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasQueue()) { - hash = (37 * hash) + QUEUE_FIELD_NUMBER; - hash = (53 * hash) + getQueue().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.CreateQueueRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.CreateQueueRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.CreateQueueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.CreateQueueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.CreateQueueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.CreateQueueRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.CreateQueueRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.CreateQueueRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.CreateQueueRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.CreateQueueRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.CreateQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.CreateQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.CreateQueueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.CreateQueueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.CreateQueueRequest) - com.google.cloud.tasks.v2.CreateQueueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_CreateQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_CreateQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.CreateQueueRequest.class, - com.google.cloud.tasks.v2.CreateQueueRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.CreateQueueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (queueBuilder_ == null) { - queue_ = null; - } else { - queue_ = null; - queueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_CreateQueueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.CreateQueueRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.CreateQueueRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.CreateQueueRequest build() { - com.google.cloud.tasks.v2.CreateQueueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.CreateQueueRequest buildPartial() { - com.google.cloud.tasks.v2.CreateQueueRequest result = - new com.google.cloud.tasks.v2.CreateQueueRequest(this); - result.parent_ = parent_; - if (queueBuilder_ == null) { - result.queue_ = queue_; - } else { - result.queue_ = queueBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.CreateQueueRequest) { - return mergeFrom((com.google.cloud.tasks.v2.CreateQueueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.CreateQueueRequest other) { - if (other == com.google.cloud.tasks.v2.CreateQueueRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasQueue()) { - mergeQueue(other.getQueue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getQueueFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The location name in which the queue will be created.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * The list of allowed locations can be obtained by calling Cloud
-     * Tasks' implementation of
-     * [ListLocations][google.cloud.location.Locations.ListLocations].
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The location name in which the queue will be created.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * The list of allowed locations can be obtained by calling Cloud
-     * Tasks' implementation of
-     * [ListLocations][google.cloud.location.Locations.ListLocations].
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The location name in which the queue will be created.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * The list of allowed locations can be obtained by calling Cloud
-     * Tasks' implementation of
-     * [ListLocations][google.cloud.location.Locations.ListLocations].
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location name in which the queue will be created.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * The list of allowed locations can be obtained by calling Cloud
-     * Tasks' implementation of
-     * [ListLocations][google.cloud.location.Locations.ListLocations].
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location name in which the queue will be created.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * The list of allowed locations can be obtained by calling Cloud
-     * Tasks' implementation of
-     * [ListLocations][google.cloud.location.Locations.ListLocations].
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.cloud.tasks.v2.Queue queue_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.Queue, - com.google.cloud.tasks.v2.Queue.Builder, - com.google.cloud.tasks.v2.QueueOrBuilder> - queueBuilder_; - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the queue field is set. - */ - public boolean hasQueue() { - return queueBuilder_ != null || queue_ != null; - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The queue. - */ - public com.google.cloud.tasks.v2.Queue getQueue() { - if (queueBuilder_ == null) { - return queue_ == null ? com.google.cloud.tasks.v2.Queue.getDefaultInstance() : queue_; - } else { - return queueBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setQueue(com.google.cloud.tasks.v2.Queue value) { - if (queueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queue_ = value; - onChanged(); - } else { - queueBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setQueue(com.google.cloud.tasks.v2.Queue.Builder builderForValue) { - if (queueBuilder_ == null) { - queue_ = builderForValue.build(); - onChanged(); - } else { - queueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeQueue(com.google.cloud.tasks.v2.Queue value) { - if (queueBuilder_ == null) { - if (queue_ != null) { - queue_ = - com.google.cloud.tasks.v2.Queue.newBuilder(queue_).mergeFrom(value).buildPartial(); - } else { - queue_ = value; - } - onChanged(); - } else { - queueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearQueue() { - if (queueBuilder_ == null) { - queue_ = null; - onChanged(); - } else { - queue_ = null; - queueBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.tasks.v2.Queue.Builder getQueueBuilder() { - - onChanged(); - return getQueueFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.tasks.v2.QueueOrBuilder getQueueOrBuilder() { - if (queueBuilder_ != null) { - return queueBuilder_.getMessageOrBuilder(); - } else { - return queue_ == null ? com.google.cloud.tasks.v2.Queue.getDefaultInstance() : queue_; - } - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.Queue, - com.google.cloud.tasks.v2.Queue.Builder, - com.google.cloud.tasks.v2.QueueOrBuilder> - getQueueFieldBuilder() { - if (queueBuilder_ == null) { - queueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.Queue, - com.google.cloud.tasks.v2.Queue.Builder, - com.google.cloud.tasks.v2.QueueOrBuilder>( - getQueue(), getParentForChildren(), isClean()); - queue_ = null; - } - return queueBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.CreateQueueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.CreateQueueRequest) - private static final com.google.cloud.tasks.v2.CreateQueueRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.CreateQueueRequest(); - } - - public static com.google.cloud.tasks.v2.CreateQueueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateQueueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.CreateQueueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequestOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequestOrBuilder.java deleted file mode 100644 index b858724d..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequestOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -public interface CreateQueueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.CreateQueueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The location name in which the queue will be created.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * The list of allowed locations can be obtained by calling Cloud
-   * Tasks' implementation of
-   * [ListLocations][google.cloud.location.Locations.ListLocations].
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The location name in which the queue will be created.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * The list of allowed locations can be obtained by calling Cloud
-   * Tasks' implementation of
-   * [ListLocations][google.cloud.location.Locations.ListLocations].
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The queue to create.
-   * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue.
-   * 
- * - * .google.cloud.tasks.v2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the queue field is set. - */ - boolean hasQueue(); - /** - * - * - *
-   * Required. The queue to create.
-   * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue.
-   * 
- * - * .google.cloud.tasks.v2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The queue. - */ - com.google.cloud.tasks.v2.Queue getQueue(); - /** - * - * - *
-   * Required. The queue to create.
-   * [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue.
-   * 
- * - * .google.cloud.tasks.v2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.tasks.v2.QueueOrBuilder getQueueOrBuilder(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequest.java deleted file mode 100644 index 83ac22c1..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequest.java +++ /dev/null @@ -1,1436 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * Request message for [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.CreateTaskRequest} - */ -public final class CreateTaskRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.CreateTaskRequest) - CreateTaskRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateTaskRequest.newBuilder() to construct. - private CreateTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateTaskRequest() { - parent_ = ""; - responseView_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateTaskRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_CreateTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_CreateTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.CreateTaskRequest.class, - com.google.cloud.tasks.v2.CreateTaskRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * The queue must already exist.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * The queue must already exist.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TASK_FIELD_NUMBER = 2; - private com.google.cloud.tasks.v2.Task task_; - /** - * - * - *
-   * Required. The task to add.
-   * Task names have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-   * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a
-   * name is not specified then the system will generate a random
-   * unique task id, which will be set in the task returned in the
-   * [response][google.cloud.tasks.v2.Task.name].
-   * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the
-   * past then Cloud Tasks will set it to the current time.
-   * Task De-duplication:
-   * Explicitly specifying a task ID enables task de-duplication.  If
-   * a task's ID is identical to that of an existing task or a task
-   * that was deleted or executed recently then the call will fail
-   * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-   * If the task's queue was created using Cloud Tasks, then another task with
-   * the same name can't be created for ~1hour after the original task was
-   * deleted or executed. If the task's queue was created using queue.yaml or
-   * queue.xml, then another task with the same name can't be created
-   * for ~9days after the original task was deleted or executed.
-   * Because there is an extra lookup cost to identify duplicate task
-   * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly
-   * increased latency. Using hashed strings for the task id or for
-   * the prefix of the task id is recommended. Choosing task ids that
-   * are sequential or have sequential prefixes, for example using a
-   * timestamp, causes an increase in latency and error rates in all
-   * task commands. The infrastructure relies on an approximately
-   * uniform distribution of task ids to store and serve tasks
-   * efficiently.
-   * 
- * - * .google.cloud.tasks.v2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the task field is set. - */ - @java.lang.Override - public boolean hasTask() { - return task_ != null; - } - /** - * - * - *
-   * Required. The task to add.
-   * Task names have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-   * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a
-   * name is not specified then the system will generate a random
-   * unique task id, which will be set in the task returned in the
-   * [response][google.cloud.tasks.v2.Task.name].
-   * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the
-   * past then Cloud Tasks will set it to the current time.
-   * Task De-duplication:
-   * Explicitly specifying a task ID enables task de-duplication.  If
-   * a task's ID is identical to that of an existing task or a task
-   * that was deleted or executed recently then the call will fail
-   * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-   * If the task's queue was created using Cloud Tasks, then another task with
-   * the same name can't be created for ~1hour after the original task was
-   * deleted or executed. If the task's queue was created using queue.yaml or
-   * queue.xml, then another task with the same name can't be created
-   * for ~9days after the original task was deleted or executed.
-   * Because there is an extra lookup cost to identify duplicate task
-   * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly
-   * increased latency. Using hashed strings for the task id or for
-   * the prefix of the task id is recommended. Choosing task ids that
-   * are sequential or have sequential prefixes, for example using a
-   * timestamp, causes an increase in latency and error rates in all
-   * task commands. The infrastructure relies on an approximately
-   * uniform distribution of task ids to store and serve tasks
-   * efficiently.
-   * 
- * - * .google.cloud.tasks.v2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The task. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.Task getTask() { - return task_ == null ? com.google.cloud.tasks.v2.Task.getDefaultInstance() : task_; - } - /** - * - * - *
-   * Required. The task to add.
-   * Task names have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-   * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a
-   * name is not specified then the system will generate a random
-   * unique task id, which will be set in the task returned in the
-   * [response][google.cloud.tasks.v2.Task.name].
-   * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the
-   * past then Cloud Tasks will set it to the current time.
-   * Task De-duplication:
-   * Explicitly specifying a task ID enables task de-duplication.  If
-   * a task's ID is identical to that of an existing task or a task
-   * that was deleted or executed recently then the call will fail
-   * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-   * If the task's queue was created using Cloud Tasks, then another task with
-   * the same name can't be created for ~1hour after the original task was
-   * deleted or executed. If the task's queue was created using queue.yaml or
-   * queue.xml, then another task with the same name can't be created
-   * for ~9days after the original task was deleted or executed.
-   * Because there is an extra lookup cost to identify duplicate task
-   * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly
-   * increased latency. Using hashed strings for the task id or for
-   * the prefix of the task id is recommended. Choosing task ids that
-   * are sequential or have sequential prefixes, for example using a
-   * timestamp, causes an increase in latency and error rates in all
-   * task commands. The infrastructure relies on an approximately
-   * uniform distribution of task ids to store and serve tasks
-   * efficiently.
-   * 
- * - * .google.cloud.tasks.v2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.TaskOrBuilder getTaskOrBuilder() { - return getTask(); - } - - public static final int RESPONSE_VIEW_FIELD_NUMBER = 3; - private int responseView_; - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 3; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 3; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2.Task.View result = - com.google.cloud.tasks.v2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2.Task.View.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (task_ != null) { - output.writeMessage(2, getTask()); - } - if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - output.writeEnum(3, responseView_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (task_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTask()); - } - if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, responseView_); - } - size += 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.v2.CreateTaskRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.CreateTaskRequest other = - (com.google.cloud.tasks.v2.CreateTaskRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasTask() != other.hasTask()) return false; - if (hasTask()) { - if (!getTask().equals(other.getTask())) return false; - } - if (responseView_ != other.responseView_) return false; - if (!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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasTask()) { - hash = (37 * hash) + TASK_FIELD_NUMBER; - hash = (53 * hash) + getTask().hashCode(); - } - hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; - hash = (53 * hash) + responseView_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.CreateTaskRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.CreateTaskRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.CreateTaskRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.CreateTaskRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.CreateTaskRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.CreateTaskRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.CreateTaskRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.CreateTaskRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.CreateTaskRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.CreateTaskRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.CreateTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.CreateTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.CreateTaskRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.CreateTaskRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.CreateTaskRequest) - com.google.cloud.tasks.v2.CreateTaskRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_CreateTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_CreateTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.CreateTaskRequest.class, - com.google.cloud.tasks.v2.CreateTaskRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.CreateTaskRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (taskBuilder_ == null) { - task_ = null; - } else { - task_ = null; - taskBuilder_ = null; - } - responseView_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_CreateTaskRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.CreateTaskRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.CreateTaskRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.CreateTaskRequest build() { - com.google.cloud.tasks.v2.CreateTaskRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.CreateTaskRequest buildPartial() { - com.google.cloud.tasks.v2.CreateTaskRequest result = - new com.google.cloud.tasks.v2.CreateTaskRequest(this); - result.parent_ = parent_; - if (taskBuilder_ == null) { - result.task_ = task_; - } else { - result.task_ = taskBuilder_.build(); - } - result.responseView_ = responseView_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.CreateTaskRequest) { - return mergeFrom((com.google.cloud.tasks.v2.CreateTaskRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.CreateTaskRequest other) { - if (other == com.google.cloud.tasks.v2.CreateTaskRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasTask()) { - mergeTask(other.getTask()); - } - if (other.responseView_ != 0) { - setResponseViewValue(other.getResponseViewValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getTaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 24: - { - responseView_ = input.readEnum(); - - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * The queue must already exist.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * The queue must already exist.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * The queue must already exist.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * The queue must already exist.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * The queue must already exist.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.cloud.tasks.v2.Task task_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.Task, - com.google.cloud.tasks.v2.Task.Builder, - com.google.cloud.tasks.v2.TaskOrBuilder> - taskBuilder_; - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or executed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or executed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or executed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the task field is set. - */ - public boolean hasTask() { - return taskBuilder_ != null || task_ != null; - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or executed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or executed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or executed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The task. - */ - public com.google.cloud.tasks.v2.Task getTask() { - if (taskBuilder_ == null) { - return task_ == null ? com.google.cloud.tasks.v2.Task.getDefaultInstance() : task_; - } else { - return taskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or executed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or executed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or executed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setTask(com.google.cloud.tasks.v2.Task value) { - if (taskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - task_ = value; - onChanged(); - } else { - taskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or executed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or executed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or executed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setTask(com.google.cloud.tasks.v2.Task.Builder builderForValue) { - if (taskBuilder_ == null) { - task_ = builderForValue.build(); - onChanged(); - } else { - taskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or executed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or executed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or executed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeTask(com.google.cloud.tasks.v2.Task value) { - if (taskBuilder_ == null) { - if (task_ != null) { - task_ = com.google.cloud.tasks.v2.Task.newBuilder(task_).mergeFrom(value).buildPartial(); - } else { - task_ = value; - } - onChanged(); - } else { - taskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or executed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or executed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or executed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearTask() { - if (taskBuilder_ == null) { - task_ = null; - onChanged(); - } else { - task_ = null; - taskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or executed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or executed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or executed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.cloud.tasks.v2.Task.Builder getTaskBuilder() { - - onChanged(); - return getTaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or executed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or executed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or executed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.cloud.tasks.v2.TaskOrBuilder getTaskOrBuilder() { - if (taskBuilder_ != null) { - return taskBuilder_.getMessageOrBuilder(); - } else { - return task_ == null ? com.google.cloud.tasks.v2.Task.getDefaultInstance() : task_; - } - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or executed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or executed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or executed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.Task, - com.google.cloud.tasks.v2.Task.Builder, - com.google.cloud.tasks.v2.TaskOrBuilder> - getTaskFieldBuilder() { - if (taskBuilder_ == null) { - taskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.Task, - com.google.cloud.tasks.v2.Task.Builder, - com.google.cloud.tasks.v2.TaskOrBuilder>( - getTask(), getParentForChildren(), isClean()); - task_ = null; - } - return taskBuilder_; - } - - private int responseView_ = 0; - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 3; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 3; - * - * @param value The enum numeric value on the wire for responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseViewValue(int value) { - - responseView_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 3; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2.Task.View result = - com.google.cloud.tasks.v2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2.Task.View.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 3; - * - * @param value The responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseView(com.google.cloud.tasks.v2.Task.View value) { - if (value == null) { - throw new NullPointerException(); - } - - responseView_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 3; - * - * @return This builder for chaining. - */ - public Builder clearResponseView() { - - responseView_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.CreateTaskRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.CreateTaskRequest) - private static final com.google.cloud.tasks.v2.CreateTaskRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.CreateTaskRequest(); - } - - public static com.google.cloud.tasks.v2.CreateTaskRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTaskRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.CreateTaskRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequestOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequestOrBuilder.java deleted file mode 100644 index 6ec3193b..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequestOrBuilder.java +++ /dev/null @@ -1,217 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -public interface CreateTaskRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.CreateTaskRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * The queue must already exist.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * The queue must already exist.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The task to add.
-   * Task names have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-   * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a
-   * name is not specified then the system will generate a random
-   * unique task id, which will be set in the task returned in the
-   * [response][google.cloud.tasks.v2.Task.name].
-   * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the
-   * past then Cloud Tasks will set it to the current time.
-   * Task De-duplication:
-   * Explicitly specifying a task ID enables task de-duplication.  If
-   * a task's ID is identical to that of an existing task or a task
-   * that was deleted or executed recently then the call will fail
-   * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-   * If the task's queue was created using Cloud Tasks, then another task with
-   * the same name can't be created for ~1hour after the original task was
-   * deleted or executed. If the task's queue was created using queue.yaml or
-   * queue.xml, then another task with the same name can't be created
-   * for ~9days after the original task was deleted or executed.
-   * Because there is an extra lookup cost to identify duplicate task
-   * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly
-   * increased latency. Using hashed strings for the task id or for
-   * the prefix of the task id is recommended. Choosing task ids that
-   * are sequential or have sequential prefixes, for example using a
-   * timestamp, causes an increase in latency and error rates in all
-   * task commands. The infrastructure relies on an approximately
-   * uniform distribution of task ids to store and serve tasks
-   * efficiently.
-   * 
- * - * .google.cloud.tasks.v2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the task field is set. - */ - boolean hasTask(); - /** - * - * - *
-   * Required. The task to add.
-   * Task names have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-   * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a
-   * name is not specified then the system will generate a random
-   * unique task id, which will be set in the task returned in the
-   * [response][google.cloud.tasks.v2.Task.name].
-   * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the
-   * past then Cloud Tasks will set it to the current time.
-   * Task De-duplication:
-   * Explicitly specifying a task ID enables task de-duplication.  If
-   * a task's ID is identical to that of an existing task or a task
-   * that was deleted or executed recently then the call will fail
-   * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-   * If the task's queue was created using Cloud Tasks, then another task with
-   * the same name can't be created for ~1hour after the original task was
-   * deleted or executed. If the task's queue was created using queue.yaml or
-   * queue.xml, then another task with the same name can't be created
-   * for ~9days after the original task was deleted or executed.
-   * Because there is an extra lookup cost to identify duplicate task
-   * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly
-   * increased latency. Using hashed strings for the task id or for
-   * the prefix of the task id is recommended. Choosing task ids that
-   * are sequential or have sequential prefixes, for example using a
-   * timestamp, causes an increase in latency and error rates in all
-   * task commands. The infrastructure relies on an approximately
-   * uniform distribution of task ids to store and serve tasks
-   * efficiently.
-   * 
- * - * .google.cloud.tasks.v2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The task. - */ - com.google.cloud.tasks.v2.Task getTask(); - /** - * - * - *
-   * Required. The task to add.
-   * Task names have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-   * The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a
-   * name is not specified then the system will generate a random
-   * unique task id, which will be set in the task returned in the
-   * [response][google.cloud.tasks.v2.Task.name].
-   * If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the
-   * past then Cloud Tasks will set it to the current time.
-   * Task De-duplication:
-   * Explicitly specifying a task ID enables task de-duplication.  If
-   * a task's ID is identical to that of an existing task or a task
-   * that was deleted or executed recently then the call will fail
-   * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-   * If the task's queue was created using Cloud Tasks, then another task with
-   * the same name can't be created for ~1hour after the original task was
-   * deleted or executed. If the task's queue was created using queue.yaml or
-   * queue.xml, then another task with the same name can't be created
-   * for ~9days after the original task was deleted or executed.
-   * Because there is an extra lookup cost to identify duplicate task
-   * names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly
-   * increased latency. Using hashed strings for the task id or for
-   * the prefix of the task id is recommended. Choosing task ids that
-   * are sequential or have sequential prefixes, for example using a
-   * timestamp, causes an increase in latency and error rates in all
-   * task commands. The infrastructure relies on an approximately
-   * uniform distribution of task ids to store and serve tasks
-   * efficiently.
-   * 
- * - * .google.cloud.tasks.v2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.tasks.v2.TaskOrBuilder getTaskOrBuilder(); - - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 3; - * - * @return The enum numeric value on the wire for responseView. - */ - int getResponseViewValue(); - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 3; - * - * @return The responseView. - */ - com.google.cloud.tasks.v2.Task.View getResponseView(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequest.java deleted file mode 100644 index fa90ab88..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequest.java +++ /dev/null @@ -1,635 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * Request message for [DeleteQueue][google.cloud.tasks.v2.CloudTasks.DeleteQueue].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.DeleteQueueRequest} - */ -public final class DeleteQueueRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.DeleteQueueRequest) - DeleteQueueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteQueueRequest.newBuilder() to construct. - private DeleteQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteQueueRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteQueueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_DeleteQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_DeleteQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.DeleteQueueRequest.class, - com.google.cloud.tasks.v2.DeleteQueueRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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.v2.DeleteQueueRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.DeleteQueueRequest other = - (com.google.cloud.tasks.v2.DeleteQueueRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.DeleteQueueRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.DeleteQueueRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.DeleteQueueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.DeleteQueueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.DeleteQueueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.DeleteQueueRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.DeleteQueueRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.DeleteQueueRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.DeleteQueueRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.DeleteQueueRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.DeleteQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.DeleteQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.DeleteQueueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [DeleteQueue][google.cloud.tasks.v2.CloudTasks.DeleteQueue].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.DeleteQueueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.DeleteQueueRequest) - com.google.cloud.tasks.v2.DeleteQueueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_DeleteQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_DeleteQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.DeleteQueueRequest.class, - com.google.cloud.tasks.v2.DeleteQueueRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.DeleteQueueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_DeleteQueueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.DeleteQueueRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.DeleteQueueRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.DeleteQueueRequest build() { - com.google.cloud.tasks.v2.DeleteQueueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.DeleteQueueRequest buildPartial() { - com.google.cloud.tasks.v2.DeleteQueueRequest result = - new com.google.cloud.tasks.v2.DeleteQueueRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.DeleteQueueRequest) { - return mergeFrom((com.google.cloud.tasks.v2.DeleteQueueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.DeleteQueueRequest other) { - if (other == com.google.cloud.tasks.v2.DeleteQueueRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.DeleteQueueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.DeleteQueueRequest) - private static final com.google.cloud.tasks.v2.DeleteQueueRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.DeleteQueueRequest(); - } - - public static com.google.cloud.tasks.v2.DeleteQueueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteQueueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.DeleteQueueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequestOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequestOrBuilder.java deleted file mode 100644 index c38f781e..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -public interface DeleteQueueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.DeleteQueueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequest.java deleted file mode 100644 index 7efd2848..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequest.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * Request message for deleting a task using
- * [DeleteTask][google.cloud.tasks.v2.CloudTasks.DeleteTask].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.DeleteTaskRequest} - */ -public final class DeleteTaskRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.DeleteTaskRequest) - DeleteTaskRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteTaskRequest.newBuilder() to construct. - private DeleteTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteTaskRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteTaskRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_DeleteTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_DeleteTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.DeleteTaskRequest.class, - com.google.cloud.tasks.v2.DeleteTaskRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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.v2.DeleteTaskRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.DeleteTaskRequest other = - (com.google.cloud.tasks.v2.DeleteTaskRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.DeleteTaskRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.DeleteTaskRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.DeleteTaskRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.DeleteTaskRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.DeleteTaskRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.DeleteTaskRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.DeleteTaskRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.DeleteTaskRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.DeleteTaskRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.DeleteTaskRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.DeleteTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.DeleteTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.DeleteTaskRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for deleting a task using
-   * [DeleteTask][google.cloud.tasks.v2.CloudTasks.DeleteTask].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.DeleteTaskRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.DeleteTaskRequest) - com.google.cloud.tasks.v2.DeleteTaskRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_DeleteTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_DeleteTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.DeleteTaskRequest.class, - com.google.cloud.tasks.v2.DeleteTaskRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.DeleteTaskRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_DeleteTaskRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.DeleteTaskRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.DeleteTaskRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.DeleteTaskRequest build() { - com.google.cloud.tasks.v2.DeleteTaskRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.DeleteTaskRequest buildPartial() { - com.google.cloud.tasks.v2.DeleteTaskRequest result = - new com.google.cloud.tasks.v2.DeleteTaskRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.DeleteTaskRequest) { - return mergeFrom((com.google.cloud.tasks.v2.DeleteTaskRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.DeleteTaskRequest other) { - if (other == com.google.cloud.tasks.v2.DeleteTaskRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.DeleteTaskRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.DeleteTaskRequest) - private static final com.google.cloud.tasks.v2.DeleteTaskRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.DeleteTaskRequest(); - } - - public static com.google.cloud.tasks.v2.DeleteTaskRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTaskRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.DeleteTaskRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequestOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequestOrBuilder.java deleted file mode 100644 index 0e7ab341..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -public interface DeleteTaskRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.DeleteTaskRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequest.java deleted file mode 100644 index aefa898b..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequest.java +++ /dev/null @@ -1,635 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * Request message for [GetQueue][google.cloud.tasks.v2.CloudTasks.GetQueue].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.GetQueueRequest} - */ -public final class GetQueueRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.GetQueueRequest) - GetQueueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetQueueRequest.newBuilder() to construct. - private GetQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetQueueRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetQueueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_GetQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_GetQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.GetQueueRequest.class, - com.google.cloud.tasks.v2.GetQueueRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The resource name of the queue. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The resource name of the queue. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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.v2.GetQueueRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.GetQueueRequest other = - (com.google.cloud.tasks.v2.GetQueueRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.GetQueueRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.GetQueueRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.GetQueueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.GetQueueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.GetQueueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.GetQueueRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.GetQueueRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.GetQueueRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.GetQueueRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.GetQueueRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.GetQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.GetQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.GetQueueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [GetQueue][google.cloud.tasks.v2.CloudTasks.GetQueue].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.GetQueueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.GetQueueRequest) - com.google.cloud.tasks.v2.GetQueueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_GetQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_GetQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.GetQueueRequest.class, - com.google.cloud.tasks.v2.GetQueueRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.GetQueueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_GetQueueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.GetQueueRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.GetQueueRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.GetQueueRequest build() { - com.google.cloud.tasks.v2.GetQueueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.GetQueueRequest buildPartial() { - com.google.cloud.tasks.v2.GetQueueRequest result = - new com.google.cloud.tasks.v2.GetQueueRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.GetQueueRequest) { - return mergeFrom((com.google.cloud.tasks.v2.GetQueueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.GetQueueRequest other) { - if (other == com.google.cloud.tasks.v2.GetQueueRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The resource name of the queue. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the queue. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the queue. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource name of the queue. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource name of the queue. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.GetQueueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.GetQueueRequest) - private static final com.google.cloud.tasks.v2.GetQueueRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.GetQueueRequest(); - } - - public static com.google.cloud.tasks.v2.GetQueueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetQueueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.GetQueueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequestOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequestOrBuilder.java deleted file mode 100644 index 4c78cd4a..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -public interface GetQueueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.GetQueueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the queue. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the queue. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequest.java deleted file mode 100644 index 9f90a198..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequest.java +++ /dev/null @@ -1,846 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * Request message for getting a task using [GetTask][google.cloud.tasks.v2.CloudTasks.GetTask].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.GetTaskRequest} - */ -public final class GetTaskRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.GetTaskRequest) - GetTaskRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetTaskRequest.newBuilder() to construct. - private GetTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetTaskRequest() { - name_ = ""; - responseView_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetTaskRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_GetTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_GetTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.GetTaskRequest.class, - com.google.cloud.tasks.v2.GetTaskRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESPONSE_VIEW_FIELD_NUMBER = 2; - private int responseView_; - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2.Task.View result = - com.google.cloud.tasks.v2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2.Task.View.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - output.writeEnum(2, responseView_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, responseView_); - } - size += 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.v2.GetTaskRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.GetTaskRequest other = (com.google.cloud.tasks.v2.GetTaskRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (responseView_ != other.responseView_) return false; - if (!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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; - hash = (53 * hash) + responseView_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.GetTaskRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.GetTaskRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.GetTaskRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.GetTaskRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.GetTaskRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.GetTaskRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.GetTaskRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.GetTaskRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.GetTaskRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.GetTaskRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.GetTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.GetTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.GetTaskRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for getting a task using [GetTask][google.cloud.tasks.v2.CloudTasks.GetTask].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.GetTaskRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.GetTaskRequest) - com.google.cloud.tasks.v2.GetTaskRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_GetTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_GetTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.GetTaskRequest.class, - com.google.cloud.tasks.v2.GetTaskRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.GetTaskRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - responseView_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_GetTaskRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.GetTaskRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.GetTaskRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.GetTaskRequest build() { - com.google.cloud.tasks.v2.GetTaskRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.GetTaskRequest buildPartial() { - com.google.cloud.tasks.v2.GetTaskRequest result = - new com.google.cloud.tasks.v2.GetTaskRequest(this); - result.name_ = name_; - result.responseView_ = responseView_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.GetTaskRequest) { - return mergeFrom((com.google.cloud.tasks.v2.GetTaskRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.GetTaskRequest other) { - if (other == com.google.cloud.tasks.v2.GetTaskRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.responseView_ != 0) { - setResponseViewValue(other.getResponseViewValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - responseView_ = input.readEnum(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int responseView_ = 0; - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @param value The enum numeric value on the wire for responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseViewValue(int value) { - - responseView_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2.Task.View result = - com.google.cloud.tasks.v2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2.Task.View.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @param value The responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseView(com.google.cloud.tasks.v2.Task.View value) { - if (value == null) { - throw new NullPointerException(); - } - - responseView_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @return This builder for chaining. - */ - public Builder clearResponseView() { - - responseView_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.GetTaskRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.GetTaskRequest) - private static final com.google.cloud.tasks.v2.GetTaskRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.GetTaskRequest(); - } - - public static com.google.cloud.tasks.v2.GetTaskRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTaskRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.GetTaskRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequestOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequestOrBuilder.java deleted file mode 100644 index 2be6f178..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequestOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -public interface GetTaskRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.GetTaskRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - int getResponseViewValue(); - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @return The responseView. - */ - com.google.cloud.tasks.v2.Task.View getResponseView(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpMethod.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpMethod.java deleted file mode 100644 index 951743a2..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpMethod.java +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Copyright 2020 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/v2/target.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * The HTTP method used to deliver the task.
- * 
- * - * Protobuf enum {@code google.cloud.tasks.v2.HttpMethod} - */ -public enum HttpMethod implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * HTTP method unspecified
-   * 
- * - * HTTP_METHOD_UNSPECIFIED = 0; - */ - HTTP_METHOD_UNSPECIFIED(0), - /** - * - * - *
-   * HTTP POST
-   * 
- * - * POST = 1; - */ - POST(1), - /** - * - * - *
-   * HTTP GET
-   * 
- * - * GET = 2; - */ - GET(2), - /** - * - * - *
-   * HTTP HEAD
-   * 
- * - * HEAD = 3; - */ - HEAD(3), - /** - * - * - *
-   * HTTP PUT
-   * 
- * - * PUT = 4; - */ - PUT(4), - /** - * - * - *
-   * HTTP DELETE
-   * 
- * - * DELETE = 5; - */ - DELETE(5), - /** - * - * - *
-   * HTTP PATCH
-   * 
- * - * PATCH = 6; - */ - PATCH(6), - /** - * - * - *
-   * HTTP OPTIONS
-   * 
- * - * OPTIONS = 7; - */ - OPTIONS(7), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * HTTP method unspecified
-   * 
- * - * HTTP_METHOD_UNSPECIFIED = 0; - */ - public static final int HTTP_METHOD_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * HTTP POST
-   * 
- * - * POST = 1; - */ - public static final int POST_VALUE = 1; - /** - * - * - *
-   * HTTP GET
-   * 
- * - * GET = 2; - */ - public static final int GET_VALUE = 2; - /** - * - * - *
-   * HTTP HEAD
-   * 
- * - * HEAD = 3; - */ - public static final int HEAD_VALUE = 3; - /** - * - * - *
-   * HTTP PUT
-   * 
- * - * PUT = 4; - */ - public static final int PUT_VALUE = 4; - /** - * - * - *
-   * HTTP DELETE
-   * 
- * - * DELETE = 5; - */ - public static final int DELETE_VALUE = 5; - /** - * - * - *
-   * HTTP PATCH
-   * 
- * - * PATCH = 6; - */ - public static final int PATCH_VALUE = 6; - /** - * - * - *
-   * HTTP OPTIONS
-   * 
- * - * OPTIONS = 7; - */ - public static final int OPTIONS_VALUE = 7; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static HttpMethod valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static HttpMethod forNumber(int value) { - switch (value) { - case 0: - return HTTP_METHOD_UNSPECIFIED; - case 1: - return POST; - case 2: - return GET; - case 3: - return HEAD; - case 4: - return PUT; - case 5: - return DELETE; - case 6: - return PATCH; - case 7: - return OPTIONS; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HttpMethod findValueByNumber(int number) { - return HttpMethod.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.tasks.v2.TargetProto.getDescriptor().getEnumTypes().get(0); - } - - private static final HttpMethod[] VALUES = values(); - - public static HttpMethod valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private HttpMethod(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.tasks.v2.HttpMethod) -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequest.java deleted file mode 100644 index c51bc8bd..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequest.java +++ /dev/null @@ -1,2297 +0,0 @@ -/* - * Copyright 2020 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/v2/target.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * HTTP request.
- * The task will be pushed to the worker as an HTTP request. If the worker
- * or the redirected worker acknowledges the task by returning a successful HTTP
- * response code ([`200` - `299`]), the task will be removed from the queue. If
- * any other HTTP response code is returned or no response is received, the
- * task will be retried according to the following:
- * * User-specified throttling: [retry configuration][google.cloud.tasks.v2.Queue.retry_config],
- *   [rate limits][google.cloud.tasks.v2.Queue.rate_limits], and the [queue's state][google.cloud.tasks.v2.Queue.state].
- * * System throttling: To prevent the worker from overloading, Cloud Tasks may
- *   temporarily reduce the queue's effective rate. User-specified settings
- *   will not be changed.
- *  System throttling happens because:
- *   * Cloud Tasks backs off on all errors. Normally the backoff specified in
- *     [rate limits][google.cloud.tasks.v2.Queue.rate_limits] will be used. But if the worker returns
- *     `429` (Too Many Requests), `503` (Service Unavailable), or the rate of
- *     errors is high, Cloud Tasks will use a higher backoff rate. The retry
- *     specified in the `Retry-After` HTTP response header is considered.
- *   * To prevent traffic spikes and to smooth sudden increases in traffic,
- *     dispatches ramp up slowly when the queue is newly created or idle and
- *     if large numbers of tasks suddenly become available to dispatch (due to
- *     spikes in create task rates, the queue being unpaused, or many tasks
- *     that are scheduled at the same time).
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.HttpRequest} - */ -public final class HttpRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.HttpRequest) - HttpRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use HttpRequest.newBuilder() to construct. - private HttpRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private HttpRequest() { - url_ = ""; - httpMethod_ = 0; - body_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new HttpRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_HttpRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 3: - return internalGetHeaders(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_HttpRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.HttpRequest.class, - com.google.cloud.tasks.v2.HttpRequest.Builder.class); - } - - private int authorizationHeaderCase_ = 0; - private java.lang.Object authorizationHeader_; - - public enum AuthorizationHeaderCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - OAUTH_TOKEN(5), - OIDC_TOKEN(6), - AUTHORIZATIONHEADER_NOT_SET(0); - private final int value; - - private AuthorizationHeaderCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AuthorizationHeaderCase valueOf(int value) { - return forNumber(value); - } - - public static AuthorizationHeaderCase forNumber(int value) { - switch (value) { - case 5: - return OAUTH_TOKEN; - case 6: - return OIDC_TOKEN; - case 0: - return AUTHORIZATIONHEADER_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public AuthorizationHeaderCase getAuthorizationHeaderCase() { - return AuthorizationHeaderCase.forNumber(authorizationHeaderCase_); - } - - public static final int URL_FIELD_NUMBER = 1; - private volatile java.lang.Object url_; - /** - * - * - *
-   * Required. The full url path that the request will be sent to.
-   * This string must begin with either "http://" or "https://". Some examples
-   * are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will
-   * encode some characters for safety and compatibility. The maximum allowed
-   * URL length is 2083 characters after encoding.
-   * The `Location` header response from a redirect response [`300` - `399`]
-   * may be followed. The redirect is not counted as a separate attempt.
-   * 
- * - * string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The url. - */ - @java.lang.Override - public java.lang.String getUrl() { - java.lang.Object ref = url_; - 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(); - url_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The full url path that the request will be sent to.
-   * This string must begin with either "http://" or "https://". Some examples
-   * are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will
-   * encode some characters for safety and compatibility. The maximum allowed
-   * URL length is 2083 characters after encoding.
-   * The `Location` header response from a redirect response [`300` - `399`]
-   * may be followed. The redirect is not counted as a separate attempt.
-   * 
- * - * string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for url. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HTTP_METHOD_FIELD_NUMBER = 2; - private int httpMethod_; - /** - * - * - *
-   * The HTTP method to use for the request. The default is POST.
-   * 
- * - * .google.cloud.tasks.v2.HttpMethod http_method = 2; - * - * @return The enum numeric value on the wire for httpMethod. - */ - @java.lang.Override - public int getHttpMethodValue() { - return httpMethod_; - } - /** - * - * - *
-   * The HTTP method to use for the request. The default is POST.
-   * 
- * - * .google.cloud.tasks.v2.HttpMethod http_method = 2; - * - * @return The httpMethod. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.HttpMethod getHttpMethod() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2.HttpMethod result = - com.google.cloud.tasks.v2.HttpMethod.valueOf(httpMethod_); - return result == null ? com.google.cloud.tasks.v2.HttpMethod.UNRECOGNIZED : result; - } - - public static final int HEADERS_FIELD_NUMBER = 3; - - private static final class HeadersDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_HttpRequest_HeadersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField headers_; - - private com.google.protobuf.MapField internalGetHeaders() { - if (headers_ == null) { - return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); - } - return headers_; - } - - public int getHeadersCount() { - return internalGetHeaders().getMap().size(); - } - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * These headers represent a subset of the headers that will accompany the
-   * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-   * A partial list of headers that will be ignored or replaced is:
-   * * Host: This will be computed by Cloud Tasks and derived from
-   *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
-   * * Content-Length: This will be computed by Cloud Tasks.
-   * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * `X-Google-*`: Google use only.
-   * * `X-AppEngine-*`: Google use only.
-   * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-   * `Content-Type` to a media type when the
-   *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-   *  `"application/json"`.
-   * Headers which can have multiple values (according to RFC2616) can be
-   * specified using comma-separated values.
-   * The size of the headers must be less than 80KB.
-   * 
- * - * map<string, string> headers = 3; - */ - @java.lang.Override - public boolean containsHeaders(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetHeaders().getMap().containsKey(key); - } - /** Use {@link #getHeadersMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHeaders() { - return getHeadersMap(); - } - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * These headers represent a subset of the headers that will accompany the
-   * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-   * A partial list of headers that will be ignored or replaced is:
-   * * Host: This will be computed by Cloud Tasks and derived from
-   *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
-   * * Content-Length: This will be computed by Cloud Tasks.
-   * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * `X-Google-*`: Google use only.
-   * * `X-AppEngine-*`: Google use only.
-   * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-   * `Content-Type` to a media type when the
-   *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-   *  `"application/json"`.
-   * Headers which can have multiple values (according to RFC2616) can be
-   * specified using comma-separated values.
-   * The size of the headers must be less than 80KB.
-   * 
- * - * map<string, string> headers = 3; - */ - @java.lang.Override - public java.util.Map getHeadersMap() { - return internalGetHeaders().getMap(); - } - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * These headers represent a subset of the headers that will accompany the
-   * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-   * A partial list of headers that will be ignored or replaced is:
-   * * Host: This will be computed by Cloud Tasks and derived from
-   *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
-   * * Content-Length: This will be computed by Cloud Tasks.
-   * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * `X-Google-*`: Google use only.
-   * * `X-AppEngine-*`: Google use only.
-   * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-   * `Content-Type` to a media type when the
-   *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-   *  `"application/json"`.
-   * Headers which can have multiple values (according to RFC2616) can be
-   * specified using comma-separated values.
-   * The size of the headers must be less than 80KB.
-   * 
- * - * map<string, string> headers = 3; - */ - @java.lang.Override - public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHeaders().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * These headers represent a subset of the headers that will accompany the
-   * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-   * A partial list of headers that will be ignored or replaced is:
-   * * Host: This will be computed by Cloud Tasks and derived from
-   *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
-   * * Content-Length: This will be computed by Cloud Tasks.
-   * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * `X-Google-*`: Google use only.
-   * * `X-AppEngine-*`: Google use only.
-   * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-   * `Content-Type` to a media type when the
-   *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-   *  `"application/json"`.
-   * Headers which can have multiple values (according to RFC2616) can be
-   * specified using comma-separated values.
-   * The size of the headers must be less than 80KB.
-   * 
- * - * map<string, string> headers = 3; - */ - @java.lang.Override - public java.lang.String getHeadersOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHeaders().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int BODY_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString body_; - /** - * - * - *
-   * HTTP request body.
-   * A request body is allowed only if the
-   * [HTTP method][google.cloud.tasks.v2.HttpRequest.http_method] is POST, PUT, or PATCH. It is an
-   * error to set body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2.HttpMethod].
-   * 
- * - * bytes body = 4; - * - * @return The body. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBody() { - return body_; - } - - public static final int OAUTH_TOKEN_FIELD_NUMBER = 5; - /** - * - * - *
-   * If specified, an
-   * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-   * will be generated and attached as an `Authorization` header in the HTTP
-   * request.
-   * This type of authorization should generally only be used when calling
-   * Google APIs hosted on *.googleapis.com.
-   * 
- * - * .google.cloud.tasks.v2.OAuthToken oauth_token = 5; - * - * @return Whether the oauthToken field is set. - */ - @java.lang.Override - public boolean hasOauthToken() { - return authorizationHeaderCase_ == 5; - } - /** - * - * - *
-   * If specified, an
-   * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-   * will be generated and attached as an `Authorization` header in the HTTP
-   * request.
-   * This type of authorization should generally only be used when calling
-   * Google APIs hosted on *.googleapis.com.
-   * 
- * - * .google.cloud.tasks.v2.OAuthToken oauth_token = 5; - * - * @return The oauthToken. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.OAuthToken getOauthToken() { - if (authorizationHeaderCase_ == 5) { - return (com.google.cloud.tasks.v2.OAuthToken) authorizationHeader_; - } - return com.google.cloud.tasks.v2.OAuthToken.getDefaultInstance(); - } - /** - * - * - *
-   * If specified, an
-   * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-   * will be generated and attached as an `Authorization` header in the HTTP
-   * request.
-   * This type of authorization should generally only be used when calling
-   * Google APIs hosted on *.googleapis.com.
-   * 
- * - * .google.cloud.tasks.v2.OAuthToken oauth_token = 5; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.OAuthTokenOrBuilder getOauthTokenOrBuilder() { - if (authorizationHeaderCase_ == 5) { - return (com.google.cloud.tasks.v2.OAuthToken) authorizationHeader_; - } - return com.google.cloud.tasks.v2.OAuthToken.getDefaultInstance(); - } - - public static final int OIDC_TOKEN_FIELD_NUMBER = 6; - /** - * - * - *
-   * If specified, an
-   * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-   * token will be generated and attached as an `Authorization` header in the
-   * HTTP request.
-   * This type of authorization can be used for many scenarios, including
-   * calling Cloud Run, or endpoints where you intend to validate the token
-   * yourself.
-   * 
- * - * .google.cloud.tasks.v2.OidcToken oidc_token = 6; - * - * @return Whether the oidcToken field is set. - */ - @java.lang.Override - public boolean hasOidcToken() { - return authorizationHeaderCase_ == 6; - } - /** - * - * - *
-   * If specified, an
-   * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-   * token will be generated and attached as an `Authorization` header in the
-   * HTTP request.
-   * This type of authorization can be used for many scenarios, including
-   * calling Cloud Run, or endpoints where you intend to validate the token
-   * yourself.
-   * 
- * - * .google.cloud.tasks.v2.OidcToken oidc_token = 6; - * - * @return The oidcToken. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.OidcToken getOidcToken() { - if (authorizationHeaderCase_ == 6) { - return (com.google.cloud.tasks.v2.OidcToken) authorizationHeader_; - } - return com.google.cloud.tasks.v2.OidcToken.getDefaultInstance(); - } - /** - * - * - *
-   * If specified, an
-   * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-   * token will be generated and attached as an `Authorization` header in the
-   * HTTP request.
-   * This type of authorization can be used for many scenarios, including
-   * calling Cloud Run, or endpoints where you intend to validate the token
-   * yourself.
-   * 
- * - * .google.cloud.tasks.v2.OidcToken oidc_token = 6; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.OidcTokenOrBuilder getOidcTokenOrBuilder() { - if (authorizationHeaderCase_ == 6) { - return (com.google.cloud.tasks.v2.OidcToken) authorizationHeader_; - } - return com.google.cloud.tasks.v2.OidcToken.getDefaultInstance(); - } - - 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(url_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); - } - if (httpMethod_ != com.google.cloud.tasks.v2.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) { - output.writeEnum(2, httpMethod_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetHeaders(), HeadersDefaultEntryHolder.defaultEntry, 3); - if (!body_.isEmpty()) { - output.writeBytes(4, body_); - } - if (authorizationHeaderCase_ == 5) { - output.writeMessage(5, (com.google.cloud.tasks.v2.OAuthToken) authorizationHeader_); - } - if (authorizationHeaderCase_ == 6) { - output.writeMessage(6, (com.google.cloud.tasks.v2.OidcToken) authorizationHeader_); - } - 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(url_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); - } - if (httpMethod_ != com.google.cloud.tasks.v2.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, httpMethod_); - } - for (java.util.Map.Entry entry : - internalGetHeaders().getMap().entrySet()) { - com.google.protobuf.MapEntry headers__ = - HeadersDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, headers__); - } - if (!body_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, body_); - } - if (authorizationHeaderCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.tasks.v2.OAuthToken) authorizationHeader_); - } - if (authorizationHeaderCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.tasks.v2.OidcToken) authorizationHeader_); - } - 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.v2.HttpRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.HttpRequest other = (com.google.cloud.tasks.v2.HttpRequest) obj; - - if (!getUrl().equals(other.getUrl())) return false; - if (httpMethod_ != other.httpMethod_) return false; - if (!internalGetHeaders().equals(other.internalGetHeaders())) return false; - if (!getBody().equals(other.getBody())) return false; - if (!getAuthorizationHeaderCase().equals(other.getAuthorizationHeaderCase())) return false; - switch (authorizationHeaderCase_) { - case 5: - if (!getOauthToken().equals(other.getOauthToken())) return false; - break; - case 6: - if (!getOidcToken().equals(other.getOidcToken())) return false; - break; - case 0: - default: - } - 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) + URL_FIELD_NUMBER; - hash = (53 * hash) + getUrl().hashCode(); - hash = (37 * hash) + HTTP_METHOD_FIELD_NUMBER; - hash = (53 * hash) + httpMethod_; - if (!internalGetHeaders().getMap().isEmpty()) { - hash = (37 * hash) + HEADERS_FIELD_NUMBER; - hash = (53 * hash) + internalGetHeaders().hashCode(); - } - hash = (37 * hash) + BODY_FIELD_NUMBER; - hash = (53 * hash) + getBody().hashCode(); - switch (authorizationHeaderCase_) { - case 5: - hash = (37 * hash) + OAUTH_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getOauthToken().hashCode(); - break; - case 6: - hash = (37 * hash) + OIDC_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getOidcToken().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.HttpRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.HttpRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.HttpRequest parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.HttpRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.HttpRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.HttpRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.HttpRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.HttpRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.HttpRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.HttpRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.HttpRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.HttpRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.HttpRequest 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; - } - /** - * - * - *
-   * HTTP request.
-   * The task will be pushed to the worker as an HTTP request. If the worker
-   * or the redirected worker acknowledges the task by returning a successful HTTP
-   * response code ([`200` - `299`]), the task will be removed from the queue. If
-   * any other HTTP response code is returned or no response is received, the
-   * task will be retried according to the following:
-   * * User-specified throttling: [retry configuration][google.cloud.tasks.v2.Queue.retry_config],
-   *   [rate limits][google.cloud.tasks.v2.Queue.rate_limits], and the [queue's state][google.cloud.tasks.v2.Queue.state].
-   * * System throttling: To prevent the worker from overloading, Cloud Tasks may
-   *   temporarily reduce the queue's effective rate. User-specified settings
-   *   will not be changed.
-   *  System throttling happens because:
-   *   * Cloud Tasks backs off on all errors. Normally the backoff specified in
-   *     [rate limits][google.cloud.tasks.v2.Queue.rate_limits] will be used. But if the worker returns
-   *     `429` (Too Many Requests), `503` (Service Unavailable), or the rate of
-   *     errors is high, Cloud Tasks will use a higher backoff rate. The retry
-   *     specified in the `Retry-After` HTTP response header is considered.
-   *   * To prevent traffic spikes and to smooth sudden increases in traffic,
-   *     dispatches ramp up slowly when the queue is newly created or idle and
-   *     if large numbers of tasks suddenly become available to dispatch (due to
-   *     spikes in create task rates, the queue being unpaused, or many tasks
-   *     that are scheduled at the same time).
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.HttpRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.HttpRequest) - com.google.cloud.tasks.v2.HttpRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_HttpRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 3: - return internalGetHeaders(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 3: - return internalGetMutableHeaders(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_HttpRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.HttpRequest.class, - com.google.cloud.tasks.v2.HttpRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.HttpRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - url_ = ""; - - httpMethod_ = 0; - - internalGetMutableHeaders().clear(); - body_ = com.google.protobuf.ByteString.EMPTY; - - if (oauthTokenBuilder_ != null) { - oauthTokenBuilder_.clear(); - } - if (oidcTokenBuilder_ != null) { - oidcTokenBuilder_.clear(); - } - authorizationHeaderCase_ = 0; - authorizationHeader_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_HttpRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.HttpRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.HttpRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.HttpRequest build() { - com.google.cloud.tasks.v2.HttpRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.HttpRequest buildPartial() { - com.google.cloud.tasks.v2.HttpRequest result = - new com.google.cloud.tasks.v2.HttpRequest(this); - int from_bitField0_ = bitField0_; - result.url_ = url_; - result.httpMethod_ = httpMethod_; - result.headers_ = internalGetHeaders(); - result.headers_.makeImmutable(); - result.body_ = body_; - if (authorizationHeaderCase_ == 5) { - if (oauthTokenBuilder_ == null) { - result.authorizationHeader_ = authorizationHeader_; - } else { - result.authorizationHeader_ = oauthTokenBuilder_.build(); - } - } - if (authorizationHeaderCase_ == 6) { - if (oidcTokenBuilder_ == null) { - result.authorizationHeader_ = authorizationHeader_; - } else { - result.authorizationHeader_ = oidcTokenBuilder_.build(); - } - } - result.authorizationHeaderCase_ = authorizationHeaderCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.HttpRequest) { - return mergeFrom((com.google.cloud.tasks.v2.HttpRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.HttpRequest other) { - if (other == com.google.cloud.tasks.v2.HttpRequest.getDefaultInstance()) return this; - if (!other.getUrl().isEmpty()) { - url_ = other.url_; - onChanged(); - } - if (other.httpMethod_ != 0) { - setHttpMethodValue(other.getHttpMethodValue()); - } - internalGetMutableHeaders().mergeFrom(other.internalGetHeaders()); - if (other.getBody() != com.google.protobuf.ByteString.EMPTY) { - setBody(other.getBody()); - } - switch (other.getAuthorizationHeaderCase()) { - case OAUTH_TOKEN: - { - mergeOauthToken(other.getOauthToken()); - break; - } - case OIDC_TOKEN: - { - mergeOidcToken(other.getOidcToken()); - break; - } - case AUTHORIZATIONHEADER_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - url_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - httpMethod_ = input.readEnum(); - - break; - } // case 16 - case 26: - { - com.google.protobuf.MapEntry headers__ = - input.readMessage( - HeadersDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableHeaders() - .getMutableMap() - .put(headers__.getKey(), headers__.getValue()); - break; - } // case 26 - case 34: - { - body_ = input.readBytes(); - - break; - } // case 34 - case 42: - { - input.readMessage(getOauthTokenFieldBuilder().getBuilder(), extensionRegistry); - authorizationHeaderCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage(getOidcTokenFieldBuilder().getBuilder(), extensionRegistry); - authorizationHeaderCase_ = 6; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int authorizationHeaderCase_ = 0; - private java.lang.Object authorizationHeader_; - - public AuthorizationHeaderCase getAuthorizationHeaderCase() { - return AuthorizationHeaderCase.forNumber(authorizationHeaderCase_); - } - - public Builder clearAuthorizationHeader() { - authorizationHeaderCase_ = 0; - authorizationHeader_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object url_ = ""; - /** - * - * - *
-     * Required. The full url path that the request will be sent to.
-     * This string must begin with either "http://" or "https://". Some examples
-     * are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will
-     * encode some characters for safety and compatibility. The maximum allowed
-     * URL length is 2083 characters after encoding.
-     * The `Location` header response from a redirect response [`300` - `399`]
-     * may be followed. The redirect is not counted as a separate attempt.
-     * 
- * - * string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The url. - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The full url path that the request will be sent to.
-     * This string must begin with either "http://" or "https://". Some examples
-     * are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will
-     * encode some characters for safety and compatibility. The maximum allowed
-     * URL length is 2083 characters after encoding.
-     * The `Location` header response from a redirect response [`300` - `399`]
-     * may be followed. The redirect is not counted as a separate attempt.
-     * 
- * - * string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for url. - */ - public com.google.protobuf.ByteString getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The full url path that the request will be sent to.
-     * This string must begin with either "http://" or "https://". Some examples
-     * are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will
-     * encode some characters for safety and compatibility. The maximum allowed
-     * URL length is 2083 characters after encoding.
-     * The `Location` header response from a redirect response [`300` - `399`]
-     * may be followed. The redirect is not counted as a separate attempt.
-     * 
- * - * string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The url to set. - * @return This builder for chaining. - */ - public Builder setUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - url_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The full url path that the request will be sent to.
-     * This string must begin with either "http://" or "https://". Some examples
-     * are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will
-     * encode some characters for safety and compatibility. The maximum allowed
-     * URL length is 2083 characters after encoding.
-     * The `Location` header response from a redirect response [`300` - `399`]
-     * may be followed. The redirect is not counted as a separate attempt.
-     * 
- * - * string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearUrl() { - - url_ = getDefaultInstance().getUrl(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The full url path that the request will be sent to.
-     * This string must begin with either "http://" or "https://". Some examples
-     * are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will
-     * encode some characters for safety and compatibility. The maximum allowed
-     * URL length is 2083 characters after encoding.
-     * The `Location` header response from a redirect response [`300` - `399`]
-     * may be followed. The redirect is not counted as a separate attempt.
-     * 
- * - * string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for url to set. - * @return This builder for chaining. - */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - url_ = value; - onChanged(); - return this; - } - - private int httpMethod_ = 0; - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * 
- * - * .google.cloud.tasks.v2.HttpMethod http_method = 2; - * - * @return The enum numeric value on the wire for httpMethod. - */ - @java.lang.Override - public int getHttpMethodValue() { - return httpMethod_; - } - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * 
- * - * .google.cloud.tasks.v2.HttpMethod http_method = 2; - * - * @param value The enum numeric value on the wire for httpMethod to set. - * @return This builder for chaining. - */ - public Builder setHttpMethodValue(int value) { - - httpMethod_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * 
- * - * .google.cloud.tasks.v2.HttpMethod http_method = 2; - * - * @return The httpMethod. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.HttpMethod getHttpMethod() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2.HttpMethod result = - com.google.cloud.tasks.v2.HttpMethod.valueOf(httpMethod_); - return result == null ? com.google.cloud.tasks.v2.HttpMethod.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * 
- * - * .google.cloud.tasks.v2.HttpMethod http_method = 2; - * - * @param value The httpMethod to set. - * @return This builder for chaining. - */ - public Builder setHttpMethod(com.google.cloud.tasks.v2.HttpMethod value) { - if (value == null) { - throw new NullPointerException(); - } - - httpMethod_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * 
- * - * .google.cloud.tasks.v2.HttpMethod http_method = 2; - * - * @return This builder for chaining. - */ - public Builder clearHttpMethod() { - - httpMethod_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField headers_; - - private com.google.protobuf.MapField internalGetHeaders() { - if (headers_ == null) { - return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); - } - return headers_; - } - - private com.google.protobuf.MapField - internalGetMutableHeaders() { - onChanged(); - ; - if (headers_ == null) { - headers_ = com.google.protobuf.MapField.newMapField(HeadersDefaultEntryHolder.defaultEntry); - } - if (!headers_.isMutable()) { - headers_ = headers_.copy(); - } - return headers_; - } - - public int getHeadersCount() { - return internalGetHeaders().getMap().size(); - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * These headers represent a subset of the headers that will accompany the
-     * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-     * A partial list of headers that will be ignored or replaced is:
-     * * Host: This will be computed by Cloud Tasks and derived from
-     *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
-     * * Content-Length: This will be computed by Cloud Tasks.
-     * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * `X-Google-*`: Google use only.
-     * * `X-AppEngine-*`: Google use only.
-     * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-     * `Content-Type` to a media type when the
-     *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-     *  `"application/json"`.
-     * Headers which can have multiple values (according to RFC2616) can be
-     * specified using comma-separated values.
-     * The size of the headers must be less than 80KB.
-     * 
- * - * map<string, string> headers = 3; - */ - @java.lang.Override - public boolean containsHeaders(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetHeaders().getMap().containsKey(key); - } - /** Use {@link #getHeadersMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHeaders() { - return getHeadersMap(); - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * These headers represent a subset of the headers that will accompany the
-     * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-     * A partial list of headers that will be ignored or replaced is:
-     * * Host: This will be computed by Cloud Tasks and derived from
-     *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
-     * * Content-Length: This will be computed by Cloud Tasks.
-     * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * `X-Google-*`: Google use only.
-     * * `X-AppEngine-*`: Google use only.
-     * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-     * `Content-Type` to a media type when the
-     *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-     *  `"application/json"`.
-     * Headers which can have multiple values (according to RFC2616) can be
-     * specified using comma-separated values.
-     * The size of the headers must be less than 80KB.
-     * 
- * - * map<string, string> headers = 3; - */ - @java.lang.Override - public java.util.Map getHeadersMap() { - return internalGetHeaders().getMap(); - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * These headers represent a subset of the headers that will accompany the
-     * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-     * A partial list of headers that will be ignored or replaced is:
-     * * Host: This will be computed by Cloud Tasks and derived from
-     *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
-     * * Content-Length: This will be computed by Cloud Tasks.
-     * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * `X-Google-*`: Google use only.
-     * * `X-AppEngine-*`: Google use only.
-     * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-     * `Content-Type` to a media type when the
-     *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-     *  `"application/json"`.
-     * Headers which can have multiple values (according to RFC2616) can be
-     * specified using comma-separated values.
-     * The size of the headers must be less than 80KB.
-     * 
- * - * map<string, string> headers = 3; - */ - @java.lang.Override - public java.lang.String getHeadersOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHeaders().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * These headers represent a subset of the headers that will accompany the
-     * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-     * A partial list of headers that will be ignored or replaced is:
-     * * Host: This will be computed by Cloud Tasks and derived from
-     *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
-     * * Content-Length: This will be computed by Cloud Tasks.
-     * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * `X-Google-*`: Google use only.
-     * * `X-AppEngine-*`: Google use only.
-     * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-     * `Content-Type` to a media type when the
-     *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-     *  `"application/json"`.
-     * Headers which can have multiple values (according to RFC2616) can be
-     * specified using comma-separated values.
-     * The size of the headers must be less than 80KB.
-     * 
- * - * map<string, string> headers = 3; - */ - @java.lang.Override - public java.lang.String getHeadersOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHeaders().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearHeaders() { - internalGetMutableHeaders().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * These headers represent a subset of the headers that will accompany the
-     * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-     * A partial list of headers that will be ignored or replaced is:
-     * * Host: This will be computed by Cloud Tasks and derived from
-     *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
-     * * Content-Length: This will be computed by Cloud Tasks.
-     * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * `X-Google-*`: Google use only.
-     * * `X-AppEngine-*`: Google use only.
-     * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-     * `Content-Type` to a media type when the
-     *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-     *  `"application/json"`.
-     * Headers which can have multiple values (according to RFC2616) can be
-     * specified using comma-separated values.
-     * The size of the headers must be less than 80KB.
-     * 
- * - * map<string, string> headers = 3; - */ - public Builder removeHeaders(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableHeaders().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableHeaders() { - return internalGetMutableHeaders().getMutableMap(); - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * These headers represent a subset of the headers that will accompany the
-     * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-     * A partial list of headers that will be ignored or replaced is:
-     * * Host: This will be computed by Cloud Tasks and derived from
-     *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
-     * * Content-Length: This will be computed by Cloud Tasks.
-     * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * `X-Google-*`: Google use only.
-     * * `X-AppEngine-*`: Google use only.
-     * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-     * `Content-Type` to a media type when the
-     *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-     *  `"application/json"`.
-     * Headers which can have multiple values (according to RFC2616) can be
-     * specified using comma-separated values.
-     * The size of the headers must be less than 80KB.
-     * 
- * - * map<string, string> headers = 3; - */ - public Builder putHeaders(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableHeaders().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * These headers represent a subset of the headers that will accompany the
-     * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-     * A partial list of headers that will be ignored or replaced is:
-     * * Host: This will be computed by Cloud Tasks and derived from
-     *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
-     * * Content-Length: This will be computed by Cloud Tasks.
-     * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * `X-Google-*`: Google use only.
-     * * `X-AppEngine-*`: Google use only.
-     * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-     * `Content-Type` to a media type when the
-     *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-     *  `"application/json"`.
-     * Headers which can have multiple values (according to RFC2616) can be
-     * specified using comma-separated values.
-     * The size of the headers must be less than 80KB.
-     * 
- * - * map<string, string> headers = 3; - */ - public Builder putAllHeaders(java.util.Map values) { - internalGetMutableHeaders().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; - /** - * - * - *
-     * HTTP request body.
-     * A request body is allowed only if the
-     * [HTTP method][google.cloud.tasks.v2.HttpRequest.http_method] is POST, PUT, or PATCH. It is an
-     * error to set body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2.HttpMethod].
-     * 
- * - * bytes body = 4; - * - * @return The body. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBody() { - return body_; - } - /** - * - * - *
-     * HTTP request body.
-     * A request body is allowed only if the
-     * [HTTP method][google.cloud.tasks.v2.HttpRequest.http_method] is POST, PUT, or PATCH. It is an
-     * error to set body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2.HttpMethod].
-     * 
- * - * bytes body = 4; - * - * @param value The body to set. - * @return This builder for chaining. - */ - public Builder setBody(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - body_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * HTTP request body.
-     * A request body is allowed only if the
-     * [HTTP method][google.cloud.tasks.v2.HttpRequest.http_method] is POST, PUT, or PATCH. It is an
-     * error to set body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2.HttpMethod].
-     * 
- * - * bytes body = 4; - * - * @return This builder for chaining. - */ - public Builder clearBody() { - - body_ = getDefaultInstance().getBody(); - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.OAuthToken, - com.google.cloud.tasks.v2.OAuthToken.Builder, - com.google.cloud.tasks.v2.OAuthTokenOrBuilder> - oauthTokenBuilder_; - /** - * - * - *
-     * If specified, an
-     * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-     * will be generated and attached as an `Authorization` header in the HTTP
-     * request.
-     * This type of authorization should generally only be used when calling
-     * Google APIs hosted on *.googleapis.com.
-     * 
- * - * .google.cloud.tasks.v2.OAuthToken oauth_token = 5; - * - * @return Whether the oauthToken field is set. - */ - @java.lang.Override - public boolean hasOauthToken() { - return authorizationHeaderCase_ == 5; - } - /** - * - * - *
-     * If specified, an
-     * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-     * will be generated and attached as an `Authorization` header in the HTTP
-     * request.
-     * This type of authorization should generally only be used when calling
-     * Google APIs hosted on *.googleapis.com.
-     * 
- * - * .google.cloud.tasks.v2.OAuthToken oauth_token = 5; - * - * @return The oauthToken. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.OAuthToken getOauthToken() { - if (oauthTokenBuilder_ == null) { - if (authorizationHeaderCase_ == 5) { - return (com.google.cloud.tasks.v2.OAuthToken) authorizationHeader_; - } - return com.google.cloud.tasks.v2.OAuthToken.getDefaultInstance(); - } else { - if (authorizationHeaderCase_ == 5) { - return oauthTokenBuilder_.getMessage(); - } - return com.google.cloud.tasks.v2.OAuthToken.getDefaultInstance(); - } - } - /** - * - * - *
-     * If specified, an
-     * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-     * will be generated and attached as an `Authorization` header in the HTTP
-     * request.
-     * This type of authorization should generally only be used when calling
-     * Google APIs hosted on *.googleapis.com.
-     * 
- * - * .google.cloud.tasks.v2.OAuthToken oauth_token = 5; - */ - public Builder setOauthToken(com.google.cloud.tasks.v2.OAuthToken value) { - if (oauthTokenBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - authorizationHeader_ = value; - onChanged(); - } else { - oauthTokenBuilder_.setMessage(value); - } - authorizationHeaderCase_ = 5; - return this; - } - /** - * - * - *
-     * If specified, an
-     * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-     * will be generated and attached as an `Authorization` header in the HTTP
-     * request.
-     * This type of authorization should generally only be used when calling
-     * Google APIs hosted on *.googleapis.com.
-     * 
- * - * .google.cloud.tasks.v2.OAuthToken oauth_token = 5; - */ - public Builder setOauthToken(com.google.cloud.tasks.v2.OAuthToken.Builder builderForValue) { - if (oauthTokenBuilder_ == null) { - authorizationHeader_ = builderForValue.build(); - onChanged(); - } else { - oauthTokenBuilder_.setMessage(builderForValue.build()); - } - authorizationHeaderCase_ = 5; - return this; - } - /** - * - * - *
-     * If specified, an
-     * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-     * will be generated and attached as an `Authorization` header in the HTTP
-     * request.
-     * This type of authorization should generally only be used when calling
-     * Google APIs hosted on *.googleapis.com.
-     * 
- * - * .google.cloud.tasks.v2.OAuthToken oauth_token = 5; - */ - public Builder mergeOauthToken(com.google.cloud.tasks.v2.OAuthToken value) { - if (oauthTokenBuilder_ == null) { - if (authorizationHeaderCase_ == 5 - && authorizationHeader_ != com.google.cloud.tasks.v2.OAuthToken.getDefaultInstance()) { - authorizationHeader_ = - com.google.cloud.tasks.v2.OAuthToken.newBuilder( - (com.google.cloud.tasks.v2.OAuthToken) authorizationHeader_) - .mergeFrom(value) - .buildPartial(); - } else { - authorizationHeader_ = value; - } - onChanged(); - } else { - if (authorizationHeaderCase_ == 5) { - oauthTokenBuilder_.mergeFrom(value); - } else { - oauthTokenBuilder_.setMessage(value); - } - } - authorizationHeaderCase_ = 5; - return this; - } - /** - * - * - *
-     * If specified, an
-     * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-     * will be generated and attached as an `Authorization` header in the HTTP
-     * request.
-     * This type of authorization should generally only be used when calling
-     * Google APIs hosted on *.googleapis.com.
-     * 
- * - * .google.cloud.tasks.v2.OAuthToken oauth_token = 5; - */ - public Builder clearOauthToken() { - if (oauthTokenBuilder_ == null) { - if (authorizationHeaderCase_ == 5) { - authorizationHeaderCase_ = 0; - authorizationHeader_ = null; - onChanged(); - } - } else { - if (authorizationHeaderCase_ == 5) { - authorizationHeaderCase_ = 0; - authorizationHeader_ = null; - } - oauthTokenBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * If specified, an
-     * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-     * will be generated and attached as an `Authorization` header in the HTTP
-     * request.
-     * This type of authorization should generally only be used when calling
-     * Google APIs hosted on *.googleapis.com.
-     * 
- * - * .google.cloud.tasks.v2.OAuthToken oauth_token = 5; - */ - public com.google.cloud.tasks.v2.OAuthToken.Builder getOauthTokenBuilder() { - return getOauthTokenFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * If specified, an
-     * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-     * will be generated and attached as an `Authorization` header in the HTTP
-     * request.
-     * This type of authorization should generally only be used when calling
-     * Google APIs hosted on *.googleapis.com.
-     * 
- * - * .google.cloud.tasks.v2.OAuthToken oauth_token = 5; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.OAuthTokenOrBuilder getOauthTokenOrBuilder() { - if ((authorizationHeaderCase_ == 5) && (oauthTokenBuilder_ != null)) { - return oauthTokenBuilder_.getMessageOrBuilder(); - } else { - if (authorizationHeaderCase_ == 5) { - return (com.google.cloud.tasks.v2.OAuthToken) authorizationHeader_; - } - return com.google.cloud.tasks.v2.OAuthToken.getDefaultInstance(); - } - } - /** - * - * - *
-     * If specified, an
-     * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-     * will be generated and attached as an `Authorization` header in the HTTP
-     * request.
-     * This type of authorization should generally only be used when calling
-     * Google APIs hosted on *.googleapis.com.
-     * 
- * - * .google.cloud.tasks.v2.OAuthToken oauth_token = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.OAuthToken, - com.google.cloud.tasks.v2.OAuthToken.Builder, - com.google.cloud.tasks.v2.OAuthTokenOrBuilder> - getOauthTokenFieldBuilder() { - if (oauthTokenBuilder_ == null) { - if (!(authorizationHeaderCase_ == 5)) { - authorizationHeader_ = com.google.cloud.tasks.v2.OAuthToken.getDefaultInstance(); - } - oauthTokenBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.OAuthToken, - com.google.cloud.tasks.v2.OAuthToken.Builder, - com.google.cloud.tasks.v2.OAuthTokenOrBuilder>( - (com.google.cloud.tasks.v2.OAuthToken) authorizationHeader_, - getParentForChildren(), - isClean()); - authorizationHeader_ = null; - } - authorizationHeaderCase_ = 5; - onChanged(); - ; - return oauthTokenBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.OidcToken, - com.google.cloud.tasks.v2.OidcToken.Builder, - com.google.cloud.tasks.v2.OidcTokenOrBuilder> - oidcTokenBuilder_; - /** - * - * - *
-     * If specified, an
-     * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-     * token will be generated and attached as an `Authorization` header in the
-     * HTTP request.
-     * This type of authorization can be used for many scenarios, including
-     * calling Cloud Run, or endpoints where you intend to validate the token
-     * yourself.
-     * 
- * - * .google.cloud.tasks.v2.OidcToken oidc_token = 6; - * - * @return Whether the oidcToken field is set. - */ - @java.lang.Override - public boolean hasOidcToken() { - return authorizationHeaderCase_ == 6; - } - /** - * - * - *
-     * If specified, an
-     * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-     * token will be generated and attached as an `Authorization` header in the
-     * HTTP request.
-     * This type of authorization can be used for many scenarios, including
-     * calling Cloud Run, or endpoints where you intend to validate the token
-     * yourself.
-     * 
- * - * .google.cloud.tasks.v2.OidcToken oidc_token = 6; - * - * @return The oidcToken. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.OidcToken getOidcToken() { - if (oidcTokenBuilder_ == null) { - if (authorizationHeaderCase_ == 6) { - return (com.google.cloud.tasks.v2.OidcToken) authorizationHeader_; - } - return com.google.cloud.tasks.v2.OidcToken.getDefaultInstance(); - } else { - if (authorizationHeaderCase_ == 6) { - return oidcTokenBuilder_.getMessage(); - } - return com.google.cloud.tasks.v2.OidcToken.getDefaultInstance(); - } - } - /** - * - * - *
-     * If specified, an
-     * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-     * token will be generated and attached as an `Authorization` header in the
-     * HTTP request.
-     * This type of authorization can be used for many scenarios, including
-     * calling Cloud Run, or endpoints where you intend to validate the token
-     * yourself.
-     * 
- * - * .google.cloud.tasks.v2.OidcToken oidc_token = 6; - */ - public Builder setOidcToken(com.google.cloud.tasks.v2.OidcToken value) { - if (oidcTokenBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - authorizationHeader_ = value; - onChanged(); - } else { - oidcTokenBuilder_.setMessage(value); - } - authorizationHeaderCase_ = 6; - return this; - } - /** - * - * - *
-     * If specified, an
-     * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-     * token will be generated and attached as an `Authorization` header in the
-     * HTTP request.
-     * This type of authorization can be used for many scenarios, including
-     * calling Cloud Run, or endpoints where you intend to validate the token
-     * yourself.
-     * 
- * - * .google.cloud.tasks.v2.OidcToken oidc_token = 6; - */ - public Builder setOidcToken(com.google.cloud.tasks.v2.OidcToken.Builder builderForValue) { - if (oidcTokenBuilder_ == null) { - authorizationHeader_ = builderForValue.build(); - onChanged(); - } else { - oidcTokenBuilder_.setMessage(builderForValue.build()); - } - authorizationHeaderCase_ = 6; - return this; - } - /** - * - * - *
-     * If specified, an
-     * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-     * token will be generated and attached as an `Authorization` header in the
-     * HTTP request.
-     * This type of authorization can be used for many scenarios, including
-     * calling Cloud Run, or endpoints where you intend to validate the token
-     * yourself.
-     * 
- * - * .google.cloud.tasks.v2.OidcToken oidc_token = 6; - */ - public Builder mergeOidcToken(com.google.cloud.tasks.v2.OidcToken value) { - if (oidcTokenBuilder_ == null) { - if (authorizationHeaderCase_ == 6 - && authorizationHeader_ != com.google.cloud.tasks.v2.OidcToken.getDefaultInstance()) { - authorizationHeader_ = - com.google.cloud.tasks.v2.OidcToken.newBuilder( - (com.google.cloud.tasks.v2.OidcToken) authorizationHeader_) - .mergeFrom(value) - .buildPartial(); - } else { - authorizationHeader_ = value; - } - onChanged(); - } else { - if (authorizationHeaderCase_ == 6) { - oidcTokenBuilder_.mergeFrom(value); - } else { - oidcTokenBuilder_.setMessage(value); - } - } - authorizationHeaderCase_ = 6; - return this; - } - /** - * - * - *
-     * If specified, an
-     * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-     * token will be generated and attached as an `Authorization` header in the
-     * HTTP request.
-     * This type of authorization can be used for many scenarios, including
-     * calling Cloud Run, or endpoints where you intend to validate the token
-     * yourself.
-     * 
- * - * .google.cloud.tasks.v2.OidcToken oidc_token = 6; - */ - public Builder clearOidcToken() { - if (oidcTokenBuilder_ == null) { - if (authorizationHeaderCase_ == 6) { - authorizationHeaderCase_ = 0; - authorizationHeader_ = null; - onChanged(); - } - } else { - if (authorizationHeaderCase_ == 6) { - authorizationHeaderCase_ = 0; - authorizationHeader_ = null; - } - oidcTokenBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * If specified, an
-     * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-     * token will be generated and attached as an `Authorization` header in the
-     * HTTP request.
-     * This type of authorization can be used for many scenarios, including
-     * calling Cloud Run, or endpoints where you intend to validate the token
-     * yourself.
-     * 
- * - * .google.cloud.tasks.v2.OidcToken oidc_token = 6; - */ - public com.google.cloud.tasks.v2.OidcToken.Builder getOidcTokenBuilder() { - return getOidcTokenFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * If specified, an
-     * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-     * token will be generated and attached as an `Authorization` header in the
-     * HTTP request.
-     * This type of authorization can be used for many scenarios, including
-     * calling Cloud Run, or endpoints where you intend to validate the token
-     * yourself.
-     * 
- * - * .google.cloud.tasks.v2.OidcToken oidc_token = 6; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.OidcTokenOrBuilder getOidcTokenOrBuilder() { - if ((authorizationHeaderCase_ == 6) && (oidcTokenBuilder_ != null)) { - return oidcTokenBuilder_.getMessageOrBuilder(); - } else { - if (authorizationHeaderCase_ == 6) { - return (com.google.cloud.tasks.v2.OidcToken) authorizationHeader_; - } - return com.google.cloud.tasks.v2.OidcToken.getDefaultInstance(); - } - } - /** - * - * - *
-     * If specified, an
-     * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-     * token will be generated and attached as an `Authorization` header in the
-     * HTTP request.
-     * This type of authorization can be used for many scenarios, including
-     * calling Cloud Run, or endpoints where you intend to validate the token
-     * yourself.
-     * 
- * - * .google.cloud.tasks.v2.OidcToken oidc_token = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.OidcToken, - com.google.cloud.tasks.v2.OidcToken.Builder, - com.google.cloud.tasks.v2.OidcTokenOrBuilder> - getOidcTokenFieldBuilder() { - if (oidcTokenBuilder_ == null) { - if (!(authorizationHeaderCase_ == 6)) { - authorizationHeader_ = com.google.cloud.tasks.v2.OidcToken.getDefaultInstance(); - } - oidcTokenBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.OidcToken, - com.google.cloud.tasks.v2.OidcToken.Builder, - com.google.cloud.tasks.v2.OidcTokenOrBuilder>( - (com.google.cloud.tasks.v2.OidcToken) authorizationHeader_, - getParentForChildren(), - isClean()); - authorizationHeader_ = null; - } - authorizationHeaderCase_ = 6; - onChanged(); - ; - return oidcTokenBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.HttpRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.HttpRequest) - private static final com.google.cloud.tasks.v2.HttpRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.HttpRequest(); - } - - public static com.google.cloud.tasks.v2.HttpRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HttpRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.HttpRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequestOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequestOrBuilder.java deleted file mode 100644 index 08196f38..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequestOrBuilder.java +++ /dev/null @@ -1,367 +0,0 @@ -/* - * Copyright 2020 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/v2/target.proto - -package com.google.cloud.tasks.v2; - -public interface HttpRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.HttpRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The full url path that the request will be sent to.
-   * This string must begin with either "http://" or "https://". Some examples
-   * are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will
-   * encode some characters for safety and compatibility. The maximum allowed
-   * URL length is 2083 characters after encoding.
-   * The `Location` header response from a redirect response [`300` - `399`]
-   * may be followed. The redirect is not counted as a separate attempt.
-   * 
- * - * string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The url. - */ - java.lang.String getUrl(); - /** - * - * - *
-   * Required. The full url path that the request will be sent to.
-   * This string must begin with either "http://" or "https://". Some examples
-   * are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will
-   * encode some characters for safety and compatibility. The maximum allowed
-   * URL length is 2083 characters after encoding.
-   * The `Location` header response from a redirect response [`300` - `399`]
-   * may be followed. The redirect is not counted as a separate attempt.
-   * 
- * - * string url = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for url. - */ - com.google.protobuf.ByteString getUrlBytes(); - - /** - * - * - *
-   * The HTTP method to use for the request. The default is POST.
-   * 
- * - * .google.cloud.tasks.v2.HttpMethod http_method = 2; - * - * @return The enum numeric value on the wire for httpMethod. - */ - int getHttpMethodValue(); - /** - * - * - *
-   * The HTTP method to use for the request. The default is POST.
-   * 
- * - * .google.cloud.tasks.v2.HttpMethod http_method = 2; - * - * @return The httpMethod. - */ - com.google.cloud.tasks.v2.HttpMethod getHttpMethod(); - - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * These headers represent a subset of the headers that will accompany the
-   * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-   * A partial list of headers that will be ignored or replaced is:
-   * * Host: This will be computed by Cloud Tasks and derived from
-   *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
-   * * Content-Length: This will be computed by Cloud Tasks.
-   * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * `X-Google-*`: Google use only.
-   * * `X-AppEngine-*`: Google use only.
-   * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-   * `Content-Type` to a media type when the
-   *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-   *  `"application/json"`.
-   * Headers which can have multiple values (according to RFC2616) can be
-   * specified using comma-separated values.
-   * The size of the headers must be less than 80KB.
-   * 
- * - * map<string, string> headers = 3; - */ - int getHeadersCount(); - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * These headers represent a subset of the headers that will accompany the
-   * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-   * A partial list of headers that will be ignored or replaced is:
-   * * Host: This will be computed by Cloud Tasks and derived from
-   *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
-   * * Content-Length: This will be computed by Cloud Tasks.
-   * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * `X-Google-*`: Google use only.
-   * * `X-AppEngine-*`: Google use only.
-   * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-   * `Content-Type` to a media type when the
-   *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-   *  `"application/json"`.
-   * Headers which can have multiple values (according to RFC2616) can be
-   * specified using comma-separated values.
-   * The size of the headers must be less than 80KB.
-   * 
- * - * map<string, string> headers = 3; - */ - boolean containsHeaders(java.lang.String key); - /** Use {@link #getHeadersMap()} instead. */ - @java.lang.Deprecated - java.util.Map getHeaders(); - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * These headers represent a subset of the headers that will accompany the
-   * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-   * A partial list of headers that will be ignored or replaced is:
-   * * Host: This will be computed by Cloud Tasks and derived from
-   *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
-   * * Content-Length: This will be computed by Cloud Tasks.
-   * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * `X-Google-*`: Google use only.
-   * * `X-AppEngine-*`: Google use only.
-   * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-   * `Content-Type` to a media type when the
-   *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-   *  `"application/json"`.
-   * Headers which can have multiple values (according to RFC2616) can be
-   * specified using comma-separated values.
-   * The size of the headers must be less than 80KB.
-   * 
- * - * map<string, string> headers = 3; - */ - java.util.Map getHeadersMap(); - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * These headers represent a subset of the headers that will accompany the
-   * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-   * A partial list of headers that will be ignored or replaced is:
-   * * Host: This will be computed by Cloud Tasks and derived from
-   *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
-   * * Content-Length: This will be computed by Cloud Tasks.
-   * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * `X-Google-*`: Google use only.
-   * * `X-AppEngine-*`: Google use only.
-   * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-   * `Content-Type` to a media type when the
-   *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-   *  `"application/json"`.
-   * Headers which can have multiple values (according to RFC2616) can be
-   * specified using comma-separated values.
-   * The size of the headers must be less than 80KB.
-   * 
- * - * map<string, string> headers = 3; - */ - - /* nullable */ - java.lang.String getHeadersOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * These headers represent a subset of the headers that will accompany the
-   * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-   * A partial list of headers that will be ignored or replaced is:
-   * * Host: This will be computed by Cloud Tasks and derived from
-   *   [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url].
-   * * Content-Length: This will be computed by Cloud Tasks.
-   * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * `X-Google-*`: Google use only.
-   * * `X-AppEngine-*`: Google use only.
-   * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-   * `Content-Type` to a media type when the
-   *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-   *  `"application/json"`.
-   * Headers which can have multiple values (according to RFC2616) can be
-   * specified using comma-separated values.
-   * The size of the headers must be less than 80KB.
-   * 
- * - * map<string, string> headers = 3; - */ - java.lang.String getHeadersOrThrow(java.lang.String key); - - /** - * - * - *
-   * HTTP request body.
-   * A request body is allowed only if the
-   * [HTTP method][google.cloud.tasks.v2.HttpRequest.http_method] is POST, PUT, or PATCH. It is an
-   * error to set body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2.HttpMethod].
-   * 
- * - * bytes body = 4; - * - * @return The body. - */ - com.google.protobuf.ByteString getBody(); - - /** - * - * - *
-   * If specified, an
-   * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-   * will be generated and attached as an `Authorization` header in the HTTP
-   * request.
-   * This type of authorization should generally only be used when calling
-   * Google APIs hosted on *.googleapis.com.
-   * 
- * - * .google.cloud.tasks.v2.OAuthToken oauth_token = 5; - * - * @return Whether the oauthToken field is set. - */ - boolean hasOauthToken(); - /** - * - * - *
-   * If specified, an
-   * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-   * will be generated and attached as an `Authorization` header in the HTTP
-   * request.
-   * This type of authorization should generally only be used when calling
-   * Google APIs hosted on *.googleapis.com.
-   * 
- * - * .google.cloud.tasks.v2.OAuthToken oauth_token = 5; - * - * @return The oauthToken. - */ - com.google.cloud.tasks.v2.OAuthToken getOauthToken(); - /** - * - * - *
-   * If specified, an
-   * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-   * will be generated and attached as an `Authorization` header in the HTTP
-   * request.
-   * This type of authorization should generally only be used when calling
-   * Google APIs hosted on *.googleapis.com.
-   * 
- * - * .google.cloud.tasks.v2.OAuthToken oauth_token = 5; - */ - com.google.cloud.tasks.v2.OAuthTokenOrBuilder getOauthTokenOrBuilder(); - - /** - * - * - *
-   * If specified, an
-   * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-   * token will be generated and attached as an `Authorization` header in the
-   * HTTP request.
-   * This type of authorization can be used for many scenarios, including
-   * calling Cloud Run, or endpoints where you intend to validate the token
-   * yourself.
-   * 
- * - * .google.cloud.tasks.v2.OidcToken oidc_token = 6; - * - * @return Whether the oidcToken field is set. - */ - boolean hasOidcToken(); - /** - * - * - *
-   * If specified, an
-   * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-   * token will be generated and attached as an `Authorization` header in the
-   * HTTP request.
-   * This type of authorization can be used for many scenarios, including
-   * calling Cloud Run, or endpoints where you intend to validate the token
-   * yourself.
-   * 
- * - * .google.cloud.tasks.v2.OidcToken oidc_token = 6; - * - * @return The oidcToken. - */ - com.google.cloud.tasks.v2.OidcToken getOidcToken(); - /** - * - * - *
-   * If specified, an
-   * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-   * token will be generated and attached as an `Authorization` header in the
-   * HTTP request.
-   * This type of authorization can be used for many scenarios, including
-   * calling Cloud Run, or endpoints where you intend to validate the token
-   * yourself.
-   * 
- * - * .google.cloud.tasks.v2.OidcToken oidc_token = 6; - */ - com.google.cloud.tasks.v2.OidcTokenOrBuilder getOidcTokenOrBuilder(); - - public com.google.cloud.tasks.v2.HttpRequest.AuthorizationHeaderCase getAuthorizationHeaderCase(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequest.java deleted file mode 100644 index d7d26bba..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequest.java +++ /dev/null @@ -1,1200 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * Request message for [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.ListQueuesRequest} - */ -public final class ListQueuesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.ListQueuesRequest) - ListQueuesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListQueuesRequest.newBuilder() to construct. - private ListQueuesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListQueuesRequest() { - parent_ = ""; - filter_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListQueuesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ListQueuesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ListQueuesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.ListQueuesRequest.class, - com.google.cloud.tasks.v2.ListQueuesRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The location name.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The location name.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; - /** - * - * - *
-   * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2.Queue]
-   * field can be used as a filter and several operators as supported.
-   * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-   * described in
-   * [Stackdriver's Advanced Logs
-   * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-   * Sample filter "state: PAUSED".
-   * Note that using filters might cause fewer queues than the
-   * requested page_size to be returned.
-   * 
- * - * string filter = 2; - * - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - * - * - *
-   * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2.Queue]
-   * field can be used as a filter and several operators as supported.
-   * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-   * described in
-   * [Stackdriver's Advanced Logs
-   * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-   * Sample filter "state: PAUSED".
-   * Note that using filters might cause fewer queues than the
-   * requested page_size to be returned.
-   * 
- * - * string filter = 2; - * - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; - /** - * - * - *
-   * Requested page size.
-   * The maximum page size is 9800. If unspecified, the page size will
-   * be the maximum. Fewer queues than requested might be returned,
-   * even if more queues exist; use the
-   * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] in the
-   * response to determine if more queues exist.
-   * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] returned
-   * from the previous call to [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues]
-   * method. It is an error to switch the value of the
-   * [filter][google.cloud.tasks.v2.ListQueuesRequest.filter] while iterating through pages.
-   * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] returned
-   * from the previous call to [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues]
-   * method. It is an error to switch the value of the
-   * [filter][google.cloud.tasks.v2.ListQueuesRequest.filter] while iterating through pages.
-   * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); - } - if (pageSize_ != 0) { - output.writeInt32(3, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); - } - 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.v2.ListQueuesRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.ListQueuesRequest other = - (com.google.cloud.tasks.v2.ListQueuesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.ListQueuesRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.ListQueuesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ListQueuesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.ListQueuesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ListQueuesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.ListQueuesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ListQueuesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.ListQueuesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ListQueuesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.ListQueuesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ListQueuesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.ListQueuesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.ListQueuesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.ListQueuesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.ListQueuesRequest) - com.google.cloud.tasks.v2.ListQueuesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ListQueuesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ListQueuesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.ListQueuesRequest.class, - com.google.cloud.tasks.v2.ListQueuesRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.ListQueuesRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - filter_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ListQueuesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.ListQueuesRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.ListQueuesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.ListQueuesRequest build() { - com.google.cloud.tasks.v2.ListQueuesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.ListQueuesRequest buildPartial() { - com.google.cloud.tasks.v2.ListQueuesRequest result = - new com.google.cloud.tasks.v2.ListQueuesRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.ListQueuesRequest) { - return mergeFrom((com.google.cloud.tasks.v2.ListQueuesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.ListQueuesRequest other) { - if (other == com.google.cloud.tasks.v2.ListQueuesRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - filter_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The location name.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The location name.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The location name.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location name.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location name.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - * - * - *
-     * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2.Queue]
-     * field can be used as a filter and several operators as supported.
-     * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-     * described in
-     * [Stackdriver's Advanced Logs
-     * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-     * Sample filter "state: PAUSED".
-     * Note that using filters might cause fewer queues than the
-     * requested page_size to be returned.
-     * 
- * - * string filter = 2; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2.Queue]
-     * field can be used as a filter and several operators as supported.
-     * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-     * described in
-     * [Stackdriver's Advanced Logs
-     * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-     * Sample filter "state: PAUSED".
-     * Note that using filters might cause fewer queues than the
-     * requested page_size to be returned.
-     * 
- * - * string filter = 2; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2.Queue]
-     * field can be used as a filter and several operators as supported.
-     * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-     * described in
-     * [Stackdriver's Advanced Logs
-     * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-     * Sample filter "state: PAUSED".
-     * Note that using filters might cause fewer queues than the
-     * requested page_size to be returned.
-     * 
- * - * string filter = 2; - * - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2.Queue]
-     * field can be used as a filter and several operators as supported.
-     * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-     * described in
-     * [Stackdriver's Advanced Logs
-     * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-     * Sample filter "state: PAUSED".
-     * Note that using filters might cause fewer queues than the
-     * requested page_size to be returned.
-     * 
- * - * string filter = 2; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - * - * - *
-     * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2.Queue]
-     * field can be used as a filter and several operators as supported.
-     * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-     * described in
-     * [Stackdriver's Advanced Logs
-     * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-     * Sample filter "state: PAUSED".
-     * Note that using filters might cause fewer queues than the
-     * requested page_size to be returned.
-     * 
- * - * string filter = 2; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * Requested page size.
-     * The maximum page size is 9800. If unspecified, the page size will
-     * be the maximum. Fewer queues than requested might be returned,
-     * even if more queues exist; use the
-     * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] in the
-     * response to determine if more queues exist.
-     * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * Requested page size.
-     * The maximum page size is 9800. If unspecified, the page size will
-     * be the maximum. Fewer queues than requested might be returned,
-     * even if more queues exist; use the
-     * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] in the
-     * response to determine if more queues exist.
-     * 
- * - * int32 page_size = 3; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Requested page size.
-     * The maximum page size is 9800. If unspecified, the page size will
-     * be the maximum. Fewer queues than requested might be returned,
-     * even if more queues exist; use the
-     * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] in the
-     * response to determine if more queues exist.
-     * 
- * - * int32 page_size = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] returned
-     * from the previous call to [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues]
-     * method. It is an error to switch the value of the
-     * [filter][google.cloud.tasks.v2.ListQueuesRequest.filter] while iterating through pages.
-     * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] returned
-     * from the previous call to [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues]
-     * method. It is an error to switch the value of the
-     * [filter][google.cloud.tasks.v2.ListQueuesRequest.filter] while iterating through pages.
-     * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] returned
-     * from the previous call to [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues]
-     * method. It is an error to switch the value of the
-     * [filter][google.cloud.tasks.v2.ListQueuesRequest.filter] while iterating through pages.
-     * 
- * - * string page_token = 4; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] returned
-     * from the previous call to [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues]
-     * method. It is an error to switch the value of the
-     * [filter][google.cloud.tasks.v2.ListQueuesRequest.filter] while iterating through pages.
-     * 
- * - * string page_token = 4; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] returned
-     * from the previous call to [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues]
-     * method. It is an error to switch the value of the
-     * [filter][google.cloud.tasks.v2.ListQueuesRequest.filter] while iterating through pages.
-     * 
- * - * string page_token = 4; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.ListQueuesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.ListQueuesRequest) - private static final com.google.cloud.tasks.v2.ListQueuesRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.ListQueuesRequest(); - } - - public static com.google.cloud.tasks.v2.ListQueuesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListQueuesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.ListQueuesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequestOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequestOrBuilder.java deleted file mode 100644 index e9d4dd0b..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequestOrBuilder.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -public interface ListQueuesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.ListQueuesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The location name.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The location name.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2.Queue]
-   * field can be used as a filter and several operators as supported.
-   * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-   * described in
-   * [Stackdriver's Advanced Logs
-   * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-   * Sample filter "state: PAUSED".
-   * Note that using filters might cause fewer queues than the
-   * requested page_size to be returned.
-   * 
- * - * string filter = 2; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2.Queue]
-   * field can be used as a filter and several operators as supported.
-   * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-   * described in
-   * [Stackdriver's Advanced Logs
-   * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-   * Sample filter "state: PAUSED".
-   * Note that using filters might cause fewer queues than the
-   * requested page_size to be returned.
-   * 
- * - * string filter = 2; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); - - /** - * - * - *
-   * Requested page size.
-   * The maximum page size is 9800. If unspecified, the page size will
-   * be the maximum. Fewer queues than requested might be returned,
-   * even if more queues exist; use the
-   * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] in the
-   * response to determine if more queues exist.
-   * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] returned
-   * from the previous call to [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues]
-   * method. It is an error to switch the value of the
-   * [filter][google.cloud.tasks.v2.ListQueuesRequest.filter] while iterating through pages.
-   * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] returned
-   * from the previous call to [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues]
-   * method. It is an error to switch the value of the
-   * [filter][google.cloud.tasks.v2.ListQueuesRequest.filter] while iterating through pages.
-   * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponse.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponse.java deleted file mode 100644 index 0d9fbf0a..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponse.java +++ /dev/null @@ -1,1134 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * Response message for [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.ListQueuesResponse} - */ -public final class ListQueuesResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.ListQueuesResponse) - ListQueuesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListQueuesResponse.newBuilder() to construct. - private ListQueuesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListQueuesResponse() { - queues_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListQueuesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ListQueuesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ListQueuesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.ListQueuesResponse.class, - com.google.cloud.tasks.v2.ListQueuesResponse.Builder.class); - } - - public static final int QUEUES_FIELD_NUMBER = 1; - private java.util.List queues_; - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - @java.lang.Override - public java.util.List getQueuesList() { - return queues_; - } - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - @java.lang.Override - public java.util.List - getQueuesOrBuilderList() { - return queues_; - } - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - @java.lang.Override - public int getQueuesCount() { - return queues_.size(); - } - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.Queue getQueues(int index) { - return queues_.get(index); - } - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.QueueOrBuilder getQueuesOrBuilder(int index) { - return queues_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] with this value as the
-   * [page_token][google.cloud.tasks.v2.ListQueuesRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] with this value as the
-   * [page_token][google.cloud.tasks.v2.ListQueuesRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < queues_.size(); i++) { - output.writeMessage(1, queues_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < queues_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, queues_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.v2.ListQueuesResponse)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.ListQueuesResponse other = - (com.google.cloud.tasks.v2.ListQueuesResponse) obj; - - if (!getQueuesList().equals(other.getQueuesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!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 (getQueuesCount() > 0) { - hash = (37 * hash) + QUEUES_FIELD_NUMBER; - hash = (53 * hash) + getQueuesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.ListQueuesResponse parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.ListQueuesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ListQueuesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.ListQueuesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ListQueuesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.ListQueuesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ListQueuesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.ListQueuesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ListQueuesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.ListQueuesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ListQueuesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.ListQueuesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.ListQueuesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message for [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.ListQueuesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.ListQueuesResponse) - com.google.cloud.tasks.v2.ListQueuesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ListQueuesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ListQueuesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.ListQueuesResponse.class, - com.google.cloud.tasks.v2.ListQueuesResponse.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.ListQueuesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (queuesBuilder_ == null) { - queues_ = java.util.Collections.emptyList(); - } else { - queues_ = null; - queuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ListQueuesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.ListQueuesResponse getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.ListQueuesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.ListQueuesResponse build() { - com.google.cloud.tasks.v2.ListQueuesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.ListQueuesResponse buildPartial() { - com.google.cloud.tasks.v2.ListQueuesResponse result = - new com.google.cloud.tasks.v2.ListQueuesResponse(this); - int from_bitField0_ = bitField0_; - if (queuesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - queues_ = java.util.Collections.unmodifiableList(queues_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.queues_ = queues_; - } else { - result.queues_ = queuesBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.ListQueuesResponse) { - return mergeFrom((com.google.cloud.tasks.v2.ListQueuesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.ListQueuesResponse other) { - if (other == com.google.cloud.tasks.v2.ListQueuesResponse.getDefaultInstance()) return this; - if (queuesBuilder_ == null) { - if (!other.queues_.isEmpty()) { - if (queues_.isEmpty()) { - queues_ = other.queues_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureQueuesIsMutable(); - queues_.addAll(other.queues_); - } - onChanged(); - } - } else { - if (!other.queues_.isEmpty()) { - if (queuesBuilder_.isEmpty()) { - queuesBuilder_.dispose(); - queuesBuilder_ = null; - queues_ = other.queues_; - bitField0_ = (bitField0_ & ~0x00000001); - queuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getQueuesFieldBuilder() - : null; - } else { - queuesBuilder_.addAllMessages(other.queues_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.tasks.v2.Queue m = - input.readMessage(com.google.cloud.tasks.v2.Queue.parser(), extensionRegistry); - if (queuesBuilder_ == null) { - ensureQueuesIsMutable(); - queues_.add(m); - } else { - queuesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List queues_ = - java.util.Collections.emptyList(); - - private void ensureQueuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - queues_ = new java.util.ArrayList(queues_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tasks.v2.Queue, - com.google.cloud.tasks.v2.Queue.Builder, - com.google.cloud.tasks.v2.QueueOrBuilder> - queuesBuilder_; - - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - public java.util.List getQueuesList() { - if (queuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(queues_); - } else { - return queuesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - public int getQueuesCount() { - if (queuesBuilder_ == null) { - return queues_.size(); - } else { - return queuesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - public com.google.cloud.tasks.v2.Queue getQueues(int index) { - if (queuesBuilder_ == null) { - return queues_.get(index); - } else { - return queuesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - public Builder setQueues(int index, com.google.cloud.tasks.v2.Queue value) { - if (queuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueuesIsMutable(); - queues_.set(index, value); - onChanged(); - } else { - queuesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - public Builder setQueues(int index, com.google.cloud.tasks.v2.Queue.Builder builderForValue) { - if (queuesBuilder_ == null) { - ensureQueuesIsMutable(); - queues_.set(index, builderForValue.build()); - onChanged(); - } else { - queuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - public Builder addQueues(com.google.cloud.tasks.v2.Queue value) { - if (queuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueuesIsMutable(); - queues_.add(value); - onChanged(); - } else { - queuesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - public Builder addQueues(int index, com.google.cloud.tasks.v2.Queue value) { - if (queuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueuesIsMutable(); - queues_.add(index, value); - onChanged(); - } else { - queuesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - public Builder addQueues(com.google.cloud.tasks.v2.Queue.Builder builderForValue) { - if (queuesBuilder_ == null) { - ensureQueuesIsMutable(); - queues_.add(builderForValue.build()); - onChanged(); - } else { - queuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - public Builder addQueues(int index, com.google.cloud.tasks.v2.Queue.Builder builderForValue) { - if (queuesBuilder_ == null) { - ensureQueuesIsMutable(); - queues_.add(index, builderForValue.build()); - onChanged(); - } else { - queuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - public Builder addAllQueues( - java.lang.Iterable values) { - if (queuesBuilder_ == null) { - ensureQueuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queues_); - onChanged(); - } else { - queuesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - public Builder clearQueues() { - if (queuesBuilder_ == null) { - queues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - queuesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - public Builder removeQueues(int index) { - if (queuesBuilder_ == null) { - ensureQueuesIsMutable(); - queues_.remove(index); - onChanged(); - } else { - queuesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - public com.google.cloud.tasks.v2.Queue.Builder getQueuesBuilder(int index) { - return getQueuesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - public com.google.cloud.tasks.v2.QueueOrBuilder getQueuesOrBuilder(int index) { - if (queuesBuilder_ == null) { - return queues_.get(index); - } else { - return queuesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - public java.util.List - getQueuesOrBuilderList() { - if (queuesBuilder_ != null) { - return queuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(queues_); - } - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - public com.google.cloud.tasks.v2.Queue.Builder addQueuesBuilder() { - return getQueuesFieldBuilder() - .addBuilder(com.google.cloud.tasks.v2.Queue.getDefaultInstance()); - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - public com.google.cloud.tasks.v2.Queue.Builder addQueuesBuilder(int index) { - return getQueuesFieldBuilder() - .addBuilder(index, com.google.cloud.tasks.v2.Queue.getDefaultInstance()); - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - public java.util.List getQueuesBuilderList() { - return getQueuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tasks.v2.Queue, - com.google.cloud.tasks.v2.Queue.Builder, - com.google.cloud.tasks.v2.QueueOrBuilder> - getQueuesFieldBuilder() { - if (queuesBuilder_ == null) { - queuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tasks.v2.Queue, - com.google.cloud.tasks.v2.Queue.Builder, - com.google.cloud.tasks.v2.QueueOrBuilder>( - queues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - queues_ = null; - } - return queuesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] with this value as the
-     * [page_token][google.cloud.tasks.v2.ListQueuesRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] with this value as the
-     * [page_token][google.cloud.tasks.v2.ListQueuesRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] with this value as the
-     * [page_token][google.cloud.tasks.v2.ListQueuesRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] with this value as the
-     * [page_token][google.cloud.tasks.v2.ListQueuesRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] with this value as the
-     * [page_token][google.cloud.tasks.v2.ListQueuesRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.ListQueuesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.ListQueuesResponse) - private static final com.google.cloud.tasks.v2.ListQueuesResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.ListQueuesResponse(); - } - - public static com.google.cloud.tasks.v2.ListQueuesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListQueuesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.ListQueuesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponseOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponseOrBuilder.java deleted file mode 100644 index c1eb25f0..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponseOrBuilder.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -public interface ListQueuesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.ListQueuesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - java.util.List getQueuesList(); - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - com.google.cloud.tasks.v2.Queue getQueues(int index); - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - int getQueuesCount(); - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - java.util.List getQueuesOrBuilderList(); - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2.Queue queues = 1; - */ - com.google.cloud.tasks.v2.QueueOrBuilder getQueuesOrBuilder(int index); - - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] with this value as the
-   * [page_token][google.cloud.tasks.v2.ListQueuesRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] with this value as the
-   * [page_token][google.cloud.tasks.v2.ListQueuesRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequest.java deleted file mode 100644 index b7d6f21b..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequest.java +++ /dev/null @@ -1,1178 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * Request message for listing tasks using [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.ListTasksRequest} - */ -public final class ListTasksRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.ListTasksRequest) - ListTasksRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListTasksRequest.newBuilder() to construct. - private ListTasksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListTasksRequest() { - parent_ = ""; - responseView_ = 0; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListTasksRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ListTasksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ListTasksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.ListTasksRequest.class, - com.google.cloud.tasks.v2.ListTasksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESPONSE_VIEW_FIELD_NUMBER = 2; - private int responseView_; - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2.Task.View result = - com.google.cloud.tasks.v2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2.Task.View.UNRECOGNIZED : result; - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; - /** - * - * - *
-   * Maximum page size.
-   * Fewer tasks than requested might be returned, even if more tasks exist; use
-   * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] in the response to
-   * determine if more tasks exist.
-   * The maximum page size is 1000. If unspecified, the page size will be the
-   * maximum.
-   * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] returned
-   * from the previous call to [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks]
-   * method.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] returned
-   * from the previous call to [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks]
-   * method.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - output.writeEnum(2, responseView_); - } - if (pageSize_ != 0) { - output.writeInt32(3, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, responseView_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); - } - 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.v2.ListTasksRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.ListTasksRequest other = - (com.google.cloud.tasks.v2.ListTasksRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (responseView_ != other.responseView_) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; - hash = (53 * hash) + responseView_; - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.ListTasksRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.ListTasksRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ListTasksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.ListTasksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ListTasksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.ListTasksRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ListTasksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.ListTasksRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ListTasksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.ListTasksRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ListTasksRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.ListTasksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.ListTasksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for listing tasks using [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.ListTasksRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.ListTasksRequest) - com.google.cloud.tasks.v2.ListTasksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ListTasksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ListTasksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.ListTasksRequest.class, - com.google.cloud.tasks.v2.ListTasksRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.ListTasksRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - responseView_ = 0; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ListTasksRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.ListTasksRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.ListTasksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.ListTasksRequest build() { - com.google.cloud.tasks.v2.ListTasksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.ListTasksRequest buildPartial() { - com.google.cloud.tasks.v2.ListTasksRequest result = - new com.google.cloud.tasks.v2.ListTasksRequest(this); - result.parent_ = parent_; - result.responseView_ = responseView_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.ListTasksRequest) { - return mergeFrom((com.google.cloud.tasks.v2.ListTasksRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.ListTasksRequest other) { - if (other == com.google.cloud.tasks.v2.ListTasksRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.responseView_ != 0) { - setResponseViewValue(other.getResponseViewValue()); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - responseView_ = input.readEnum(); - - break; - } // case 16 - case 24: - { - pageSize_ = input.readInt32(); - - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int responseView_ = 0; - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @param value The enum numeric value on the wire for responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseViewValue(int value) { - - responseView_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2.Task.View result = - com.google.cloud.tasks.v2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2.Task.View.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @param value The responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseView(com.google.cloud.tasks.v2.Task.View value) { - if (value == null) { - throw new NullPointerException(); - } - - responseView_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @return This builder for chaining. - */ - public Builder clearResponseView() { - - responseView_ = 0; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * Maximum page size.
-     * Fewer tasks than requested might be returned, even if more tasks exist; use
-     * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] in the response to
-     * determine if more tasks exist.
-     * The maximum page size is 1000. If unspecified, the page size will be the
-     * maximum.
-     * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * Maximum page size.
-     * Fewer tasks than requested might be returned, even if more tasks exist; use
-     * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] in the response to
-     * determine if more tasks exist.
-     * The maximum page size is 1000. If unspecified, the page size will be the
-     * maximum.
-     * 
- * - * int32 page_size = 3; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Maximum page size.
-     * Fewer tasks than requested might be returned, even if more tasks exist; use
-     * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] in the response to
-     * determine if more tasks exist.
-     * The maximum page size is 1000. If unspecified, the page size will be the
-     * maximum.
-     * 
- * - * int32 page_size = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] returned
-     * from the previous call to [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks]
-     * method.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] returned
-     * from the previous call to [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks]
-     * method.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] returned
-     * from the previous call to [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks]
-     * method.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string page_token = 4; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] returned
-     * from the previous call to [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks]
-     * method.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string page_token = 4; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] returned
-     * from the previous call to [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks]
-     * method.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string page_token = 4; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.ListTasksRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.ListTasksRequest) - private static final com.google.cloud.tasks.v2.ListTasksRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.ListTasksRequest(); - } - - public static com.google.cloud.tasks.v2.ListTasksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTasksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.ListTasksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequestOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequestOrBuilder.java deleted file mode 100644 index 16d5eabb..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequestOrBuilder.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -public interface ListTasksRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.ListTasksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - int getResponseViewValue(); - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @return The responseView. - */ - com.google.cloud.tasks.v2.Task.View getResponseView(); - - /** - * - * - *
-   * Maximum page size.
-   * Fewer tasks than requested might be returned, even if more tasks exist; use
-   * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] in the response to
-   * determine if more tasks exist.
-   * The maximum page size is 1000. If unspecified, the page size will be the
-   * maximum.
-   * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] returned
-   * from the previous call to [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks]
-   * method.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] returned
-   * from the previous call to [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks]
-   * method.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponse.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponse.java deleted file mode 100644 index 17551c01..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponse.java +++ /dev/null @@ -1,1125 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * Response message for listing tasks using [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.ListTasksResponse} - */ -public final class ListTasksResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.ListTasksResponse) - ListTasksResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListTasksResponse.newBuilder() to construct. - private ListTasksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListTasksResponse() { - tasks_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListTasksResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ListTasksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ListTasksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.ListTasksResponse.class, - com.google.cloud.tasks.v2.ListTasksResponse.Builder.class); - } - - public static final int TASKS_FIELD_NUMBER = 1; - private java.util.List tasks_; - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - @java.lang.Override - public java.util.List getTasksList() { - return tasks_; - } - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - @java.lang.Override - public java.util.List getTasksOrBuilderList() { - return tasks_; - } - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - @java.lang.Override - public int getTasksCount() { - return tasks_.size(); - } - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.Task getTasks(int index) { - return tasks_.get(index); - } - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.TaskOrBuilder getTasksOrBuilder(int index) { - return tasks_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] with this value as the
-   * [page_token][google.cloud.tasks.v2.ListTasksRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] with this value as the
-   * [page_token][google.cloud.tasks.v2.ListTasksRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < tasks_.size(); i++) { - output.writeMessage(1, tasks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < tasks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tasks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.v2.ListTasksResponse)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.ListTasksResponse other = - (com.google.cloud.tasks.v2.ListTasksResponse) obj; - - if (!getTasksList().equals(other.getTasksList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!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 (getTasksCount() > 0) { - hash = (37 * hash) + TASKS_FIELD_NUMBER; - hash = (53 * hash) + getTasksList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.ListTasksResponse parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.ListTasksResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ListTasksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.ListTasksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ListTasksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.ListTasksResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ListTasksResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.ListTasksResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ListTasksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.ListTasksResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ListTasksResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.ListTasksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.ListTasksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message for listing tasks using [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.ListTasksResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.ListTasksResponse) - com.google.cloud.tasks.v2.ListTasksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ListTasksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ListTasksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.ListTasksResponse.class, - com.google.cloud.tasks.v2.ListTasksResponse.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.ListTasksResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - } else { - tasks_ = null; - tasksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ListTasksResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.ListTasksResponse getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.ListTasksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.ListTasksResponse build() { - com.google.cloud.tasks.v2.ListTasksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.ListTasksResponse buildPartial() { - com.google.cloud.tasks.v2.ListTasksResponse result = - new com.google.cloud.tasks.v2.ListTasksResponse(this); - int from_bitField0_ = bitField0_; - if (tasksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tasks_ = tasks_; - } else { - result.tasks_ = tasksBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.ListTasksResponse) { - return mergeFrom((com.google.cloud.tasks.v2.ListTasksResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.ListTasksResponse other) { - if (other == com.google.cloud.tasks.v2.ListTasksResponse.getDefaultInstance()) return this; - if (tasksBuilder_ == null) { - if (!other.tasks_.isEmpty()) { - if (tasks_.isEmpty()) { - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTasksIsMutable(); - tasks_.addAll(other.tasks_); - } - onChanged(); - } - } else { - if (!other.tasks_.isEmpty()) { - if (tasksBuilder_.isEmpty()) { - tasksBuilder_.dispose(); - tasksBuilder_ = null; - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000001); - tasksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTasksFieldBuilder() - : null; - } else { - tasksBuilder_.addAllMessages(other.tasks_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.tasks.v2.Task m = - input.readMessage(com.google.cloud.tasks.v2.Task.parser(), extensionRegistry); - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(m); - } else { - tasksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List tasks_ = - java.util.Collections.emptyList(); - - private void ensureTasksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - tasks_ = new java.util.ArrayList(tasks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tasks.v2.Task, - com.google.cloud.tasks.v2.Task.Builder, - com.google.cloud.tasks.v2.TaskOrBuilder> - tasksBuilder_; - - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - public java.util.List getTasksList() { - if (tasksBuilder_ == null) { - return java.util.Collections.unmodifiableList(tasks_); - } else { - return tasksBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - public int getTasksCount() { - if (tasksBuilder_ == null) { - return tasks_.size(); - } else { - return tasksBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - public com.google.cloud.tasks.v2.Task getTasks(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - public Builder setTasks(int index, com.google.cloud.tasks.v2.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.set(index, value); - onChanged(); - } else { - tasksBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - public Builder setTasks(int index, com.google.cloud.tasks.v2.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.set(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - public Builder addTasks(com.google.cloud.tasks.v2.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(value); - onChanged(); - } else { - tasksBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - public Builder addTasks(int index, com.google.cloud.tasks.v2.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(index, value); - onChanged(); - } else { - tasksBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - public Builder addTasks(com.google.cloud.tasks.v2.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - public Builder addTasks(int index, com.google.cloud.tasks.v2.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - public Builder addAllTasks( - java.lang.Iterable values) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tasks_); - onChanged(); - } else { - tasksBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - public Builder clearTasks() { - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - tasksBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - public Builder removeTasks(int index) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.remove(index); - onChanged(); - } else { - tasksBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - public com.google.cloud.tasks.v2.Task.Builder getTasksBuilder(int index) { - return getTasksFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - public com.google.cloud.tasks.v2.TaskOrBuilder getTasksOrBuilder(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - public java.util.List - getTasksOrBuilderList() { - if (tasksBuilder_ != null) { - return tasksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tasks_); - } - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - public com.google.cloud.tasks.v2.Task.Builder addTasksBuilder() { - return getTasksFieldBuilder().addBuilder(com.google.cloud.tasks.v2.Task.getDefaultInstance()); - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - public com.google.cloud.tasks.v2.Task.Builder addTasksBuilder(int index) { - return getTasksFieldBuilder() - .addBuilder(index, com.google.cloud.tasks.v2.Task.getDefaultInstance()); - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - public java.util.List getTasksBuilderList() { - return getTasksFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tasks.v2.Task, - com.google.cloud.tasks.v2.Task.Builder, - com.google.cloud.tasks.v2.TaskOrBuilder> - getTasksFieldBuilder() { - if (tasksBuilder_ == null) { - tasksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tasks.v2.Task, - com.google.cloud.tasks.v2.Task.Builder, - com.google.cloud.tasks.v2.TaskOrBuilder>( - tasks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - tasks_ = null; - } - return tasksBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] with this value as the
-     * [page_token][google.cloud.tasks.v2.ListTasksRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] with this value as the
-     * [page_token][google.cloud.tasks.v2.ListTasksRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] with this value as the
-     * [page_token][google.cloud.tasks.v2.ListTasksRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] with this value as the
-     * [page_token][google.cloud.tasks.v2.ListTasksRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] with this value as the
-     * [page_token][google.cloud.tasks.v2.ListTasksRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.ListTasksResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.ListTasksResponse) - private static final com.google.cloud.tasks.v2.ListTasksResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.ListTasksResponse(); - } - - public static com.google.cloud.tasks.v2.ListTasksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTasksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.ListTasksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponseOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponseOrBuilder.java deleted file mode 100644 index f5568056..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponseOrBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -public interface ListTasksResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.ListTasksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - java.util.List getTasksList(); - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - com.google.cloud.tasks.v2.Task getTasks(int index); - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - int getTasksCount(); - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - java.util.List getTasksOrBuilderList(); - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2.Task tasks = 1; - */ - com.google.cloud.tasks.v2.TaskOrBuilder getTasksOrBuilder(int index); - - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] with this value as the
-   * [page_token][google.cloud.tasks.v2.ListTasksRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] with this value as the
-   * [page_token][google.cloud.tasks.v2.ListTasksRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java deleted file mode 100644 index 6136688a..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2022 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.v2; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class LocationName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION = - PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - - @Deprecated - protected LocationName() { - project = null; - location = null; - } - - private LocationName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static LocationName of(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build(); - } - - public static String format(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build().toString(); - } - - public static LocationName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION.validatedMatch( - formattedString, "LocationName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (LocationName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION.instantiate("project", project, "location", location); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - LocationName that = ((LocationName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - return h; - } - - /** Builder for projects/{project}/locations/{location}. */ - public static class Builder { - private String project; - private String location; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - private Builder(LocationName locationName) { - this.project = locationName.project; - this.location = locationName.location; - } - - public LocationName build() { - return new LocationName(this); - } - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthToken.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthToken.java deleted file mode 100644 index 768be6ba..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthToken.java +++ /dev/null @@ -1,837 +0,0 @@ -/* - * Copyright 2020 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/v2/target.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * Contains information needed for generating an
- * [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
- * This type of authorization should generally only be used when calling Google
- * APIs hosted on *.googleapis.com.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.OAuthToken} - */ -public final class OAuthToken extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.OAuthToken) - OAuthTokenOrBuilder { - private static final long serialVersionUID = 0L; - // Use OAuthToken.newBuilder() to construct. - private OAuthToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private OAuthToken() { - serviceAccountEmail_ = ""; - scope_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new OAuthToken(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_OAuthToken_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_OAuthToken_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.OAuthToken.class, - com.google.cloud.tasks.v2.OAuthToken.Builder.class); - } - - public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 1; - private volatile java.lang.Object serviceAccountEmail_; - /** - * - * - *
-   * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-   * to be used for generating OAuth token.
-   * The service account must be within the same project as the queue. The
-   * caller must have iam.serviceAccounts.actAs permission for the service
-   * account.
-   * 
- * - * string service_account_email = 1; - * - * @return The serviceAccountEmail. - */ - @java.lang.Override - public java.lang.String getServiceAccountEmail() { - java.lang.Object ref = serviceAccountEmail_; - 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(); - serviceAccountEmail_ = s; - return s; - } - } - /** - * - * - *
-   * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-   * to be used for generating OAuth token.
-   * The service account must be within the same project as the queue. The
-   * caller must have iam.serviceAccounts.actAs permission for the service
-   * account.
-   * 
- * - * string service_account_email = 1; - * - * @return The bytes for serviceAccountEmail. - */ - @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { - java.lang.Object ref = serviceAccountEmail_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAccountEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCOPE_FIELD_NUMBER = 2; - private volatile java.lang.Object scope_; - /** - * - * - *
-   * OAuth scope to be used for generating OAuth access token.
-   * If not specified, "https://www.googleapis.com/auth/cloud-platform"
-   * will be used.
-   * 
- * - * string scope = 2; - * - * @return The scope. - */ - @java.lang.Override - public java.lang.String getScope() { - java.lang.Object ref = scope_; - 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(); - scope_ = s; - return s; - } - } - /** - * - * - *
-   * OAuth scope to be used for generating OAuth access token.
-   * If not specified, "https://www.googleapis.com/auth/cloud-platform"
-   * will be used.
-   * 
- * - * string scope = 2; - * - * @return The bytes for scope. - */ - @java.lang.Override - public com.google.protobuf.ByteString getScopeBytes() { - java.lang.Object ref = scope_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - scope_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountEmail_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scope_); - } - 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(serviceAccountEmail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccountEmail_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scope_); - } - 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.v2.OAuthToken)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.OAuthToken other = (com.google.cloud.tasks.v2.OAuthToken) obj; - - if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; - if (!getScope().equals(other.getScope())) 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) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getServiceAccountEmail().hashCode(); - hash = (37 * hash) + SCOPE_FIELD_NUMBER; - hash = (53 * hash) + getScope().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.OAuthToken parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.OAuthToken parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.OAuthToken parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.OAuthToken parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.OAuthToken parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.OAuthToken parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.OAuthToken parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.OAuthToken parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.OAuthToken parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.OAuthToken parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.OAuthToken parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.OAuthToken parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.OAuthToken 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; - } - /** - * - * - *
-   * Contains information needed for generating an
-   * [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
-   * This type of authorization should generally only be used when calling Google
-   * APIs hosted on *.googleapis.com.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.OAuthToken} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.OAuthToken) - com.google.cloud.tasks.v2.OAuthTokenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_OAuthToken_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_OAuthToken_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.OAuthToken.class, - com.google.cloud.tasks.v2.OAuthToken.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.OAuthToken.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - serviceAccountEmail_ = ""; - - scope_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_OAuthToken_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.OAuthToken getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.OAuthToken.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.OAuthToken build() { - com.google.cloud.tasks.v2.OAuthToken result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.OAuthToken buildPartial() { - com.google.cloud.tasks.v2.OAuthToken result = new com.google.cloud.tasks.v2.OAuthToken(this); - result.serviceAccountEmail_ = serviceAccountEmail_; - result.scope_ = scope_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.OAuthToken) { - return mergeFrom((com.google.cloud.tasks.v2.OAuthToken) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.OAuthToken other) { - if (other == com.google.cloud.tasks.v2.OAuthToken.getDefaultInstance()) return this; - if (!other.getServiceAccountEmail().isEmpty()) { - serviceAccountEmail_ = other.serviceAccountEmail_; - onChanged(); - } - if (!other.getScope().isEmpty()) { - scope_ = other.scope_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - serviceAccountEmail_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - scope_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object serviceAccountEmail_ = ""; - /** - * - * - *
-     * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-     * to be used for generating OAuth token.
-     * The service account must be within the same project as the queue. The
-     * caller must have iam.serviceAccounts.actAs permission for the service
-     * account.
-     * 
- * - * string service_account_email = 1; - * - * @return The serviceAccountEmail. - */ - public java.lang.String getServiceAccountEmail() { - java.lang.Object ref = serviceAccountEmail_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccountEmail_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-     * to be used for generating OAuth token.
-     * The service account must be within the same project as the queue. The
-     * caller must have iam.serviceAccounts.actAs permission for the service
-     * account.
-     * 
- * - * string service_account_email = 1; - * - * @return The bytes for serviceAccountEmail. - */ - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { - java.lang.Object ref = serviceAccountEmail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAccountEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-     * to be used for generating OAuth token.
-     * The service account must be within the same project as the queue. The
-     * caller must have iam.serviceAccounts.actAs permission for the service
-     * account.
-     * 
- * - * string service_account_email = 1; - * - * @param value The serviceAccountEmail to set. - * @return This builder for chaining. - */ - public Builder setServiceAccountEmail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serviceAccountEmail_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-     * to be used for generating OAuth token.
-     * The service account must be within the same project as the queue. The
-     * caller must have iam.serviceAccounts.actAs permission for the service
-     * account.
-     * 
- * - * string service_account_email = 1; - * - * @return This builder for chaining. - */ - public Builder clearServiceAccountEmail() { - - serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-     * to be used for generating OAuth token.
-     * The service account must be within the same project as the queue. The
-     * caller must have iam.serviceAccounts.actAs permission for the service
-     * account.
-     * 
- * - * string service_account_email = 1; - * - * @param value The bytes for serviceAccountEmail to set. - * @return This builder for chaining. - */ - public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serviceAccountEmail_ = value; - onChanged(); - return this; - } - - private java.lang.Object scope_ = ""; - /** - * - * - *
-     * OAuth scope to be used for generating OAuth access token.
-     * If not specified, "https://www.googleapis.com/auth/cloud-platform"
-     * will be used.
-     * 
- * - * string scope = 2; - * - * @return The scope. - */ - public java.lang.String getScope() { - java.lang.Object ref = scope_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - scope_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * OAuth scope to be used for generating OAuth access token.
-     * If not specified, "https://www.googleapis.com/auth/cloud-platform"
-     * will be used.
-     * 
- * - * string scope = 2; - * - * @return The bytes for scope. - */ - public com.google.protobuf.ByteString getScopeBytes() { - java.lang.Object ref = scope_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - scope_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * OAuth scope to be used for generating OAuth access token.
-     * If not specified, "https://www.googleapis.com/auth/cloud-platform"
-     * will be used.
-     * 
- * - * string scope = 2; - * - * @param value The scope to set. - * @return This builder for chaining. - */ - public Builder setScope(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - scope_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * OAuth scope to be used for generating OAuth access token.
-     * If not specified, "https://www.googleapis.com/auth/cloud-platform"
-     * will be used.
-     * 
- * - * string scope = 2; - * - * @return This builder for chaining. - */ - public Builder clearScope() { - - scope_ = getDefaultInstance().getScope(); - onChanged(); - return this; - } - /** - * - * - *
-     * OAuth scope to be used for generating OAuth access token.
-     * If not specified, "https://www.googleapis.com/auth/cloud-platform"
-     * will be used.
-     * 
- * - * string scope = 2; - * - * @param value The bytes for scope to set. - * @return This builder for chaining. - */ - public Builder setScopeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - scope_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.OAuthToken) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.OAuthToken) - private static final com.google.cloud.tasks.v2.OAuthToken DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.OAuthToken(); - } - - public static com.google.cloud.tasks.v2.OAuthToken getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OAuthToken parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.OAuthToken getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthTokenOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthTokenOrBuilder.java deleted file mode 100644 index 045cc073..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthTokenOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2020 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/v2/target.proto - -package com.google.cloud.tasks.v2; - -public interface OAuthTokenOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.OAuthToken) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-   * to be used for generating OAuth token.
-   * The service account must be within the same project as the queue. The
-   * caller must have iam.serviceAccounts.actAs permission for the service
-   * account.
-   * 
- * - * string service_account_email = 1; - * - * @return The serviceAccountEmail. - */ - java.lang.String getServiceAccountEmail(); - /** - * - * - *
-   * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-   * to be used for generating OAuth token.
-   * The service account must be within the same project as the queue. The
-   * caller must have iam.serviceAccounts.actAs permission for the service
-   * account.
-   * 
- * - * string service_account_email = 1; - * - * @return The bytes for serviceAccountEmail. - */ - com.google.protobuf.ByteString getServiceAccountEmailBytes(); - - /** - * - * - *
-   * OAuth scope to be used for generating OAuth access token.
-   * If not specified, "https://www.googleapis.com/auth/cloud-platform"
-   * will be used.
-   * 
- * - * string scope = 2; - * - * @return The scope. - */ - java.lang.String getScope(); - /** - * - * - *
-   * OAuth scope to be used for generating OAuth access token.
-   * If not specified, "https://www.googleapis.com/auth/cloud-platform"
-   * will be used.
-   * 
- * - * string scope = 2; - * - * @return The bytes for scope. - */ - com.google.protobuf.ByteString getScopeBytes(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcToken.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcToken.java deleted file mode 100644 index b63bbe6c..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcToken.java +++ /dev/null @@ -1,834 +0,0 @@ -/* - * Copyright 2020 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/v2/target.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * Contains information needed for generating an
- * [OpenID Connect
- * token](https://developers.google.com/identity/protocols/OpenIDConnect).
- * This type of authorization can be used for many scenarios, including
- * calling Cloud Run, or endpoints where you intend to validate the token
- * yourself.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.OidcToken} - */ -public final class OidcToken extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.OidcToken) - OidcTokenOrBuilder { - private static final long serialVersionUID = 0L; - // Use OidcToken.newBuilder() to construct. - private OidcToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private OidcToken() { - serviceAccountEmail_ = ""; - audience_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new OidcToken(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_OidcToken_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_OidcToken_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.OidcToken.class, - com.google.cloud.tasks.v2.OidcToken.Builder.class); - } - - public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 1; - private volatile java.lang.Object serviceAccountEmail_; - /** - * - * - *
-   * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-   * to be used for generating OIDC token.
-   * The service account must be within the same project as the queue. The
-   * caller must have iam.serviceAccounts.actAs permission for the service
-   * account.
-   * 
- * - * string service_account_email = 1; - * - * @return The serviceAccountEmail. - */ - @java.lang.Override - public java.lang.String getServiceAccountEmail() { - java.lang.Object ref = serviceAccountEmail_; - 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(); - serviceAccountEmail_ = s; - return s; - } - } - /** - * - * - *
-   * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-   * to be used for generating OIDC token.
-   * The service account must be within the same project as the queue. The
-   * caller must have iam.serviceAccounts.actAs permission for the service
-   * account.
-   * 
- * - * string service_account_email = 1; - * - * @return The bytes for serviceAccountEmail. - */ - @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { - java.lang.Object ref = serviceAccountEmail_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAccountEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AUDIENCE_FIELD_NUMBER = 2; - private volatile java.lang.Object audience_; - /** - * - * - *
-   * Audience to be used when generating OIDC token. If not specified, the URI
-   * specified in target will be used.
-   * 
- * - * string audience = 2; - * - * @return The audience. - */ - @java.lang.Override - public java.lang.String getAudience() { - java.lang.Object ref = audience_; - 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(); - audience_ = s; - return s; - } - } - /** - * - * - *
-   * Audience to be used when generating OIDC token. If not specified, the URI
-   * specified in target will be used.
-   * 
- * - * string audience = 2; - * - * @return The bytes for audience. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAudienceBytes() { - java.lang.Object ref = audience_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - audience_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountEmail_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audience_); - } - 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(serviceAccountEmail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccountEmail_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, audience_); - } - 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.v2.OidcToken)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.OidcToken other = (com.google.cloud.tasks.v2.OidcToken) obj; - - if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; - if (!getAudience().equals(other.getAudience())) 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) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getServiceAccountEmail().hashCode(); - hash = (37 * hash) + AUDIENCE_FIELD_NUMBER; - hash = (53 * hash) + getAudience().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.OidcToken parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.OidcToken parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.OidcToken parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.OidcToken parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.OidcToken parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.OidcToken parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.OidcToken parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.OidcToken parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.OidcToken parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.OidcToken parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.OidcToken parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.OidcToken parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.OidcToken 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; - } - /** - * - * - *
-   * Contains information needed for generating an
-   * [OpenID Connect
-   * token](https://developers.google.com/identity/protocols/OpenIDConnect).
-   * This type of authorization can be used for many scenarios, including
-   * calling Cloud Run, or endpoints where you intend to validate the token
-   * yourself.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.OidcToken} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.OidcToken) - com.google.cloud.tasks.v2.OidcTokenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_OidcToken_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_OidcToken_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.OidcToken.class, - com.google.cloud.tasks.v2.OidcToken.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.OidcToken.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - serviceAccountEmail_ = ""; - - audience_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.TargetProto - .internal_static_google_cloud_tasks_v2_OidcToken_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.OidcToken getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.OidcToken.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.OidcToken build() { - com.google.cloud.tasks.v2.OidcToken result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.OidcToken buildPartial() { - com.google.cloud.tasks.v2.OidcToken result = new com.google.cloud.tasks.v2.OidcToken(this); - result.serviceAccountEmail_ = serviceAccountEmail_; - result.audience_ = audience_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.OidcToken) { - return mergeFrom((com.google.cloud.tasks.v2.OidcToken) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.OidcToken other) { - if (other == com.google.cloud.tasks.v2.OidcToken.getDefaultInstance()) return this; - if (!other.getServiceAccountEmail().isEmpty()) { - serviceAccountEmail_ = other.serviceAccountEmail_; - onChanged(); - } - if (!other.getAudience().isEmpty()) { - audience_ = other.audience_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - serviceAccountEmail_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - audience_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object serviceAccountEmail_ = ""; - /** - * - * - *
-     * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-     * to be used for generating OIDC token.
-     * The service account must be within the same project as the queue. The
-     * caller must have iam.serviceAccounts.actAs permission for the service
-     * account.
-     * 
- * - * string service_account_email = 1; - * - * @return The serviceAccountEmail. - */ - public java.lang.String getServiceAccountEmail() { - java.lang.Object ref = serviceAccountEmail_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccountEmail_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-     * to be used for generating OIDC token.
-     * The service account must be within the same project as the queue. The
-     * caller must have iam.serviceAccounts.actAs permission for the service
-     * account.
-     * 
- * - * string service_account_email = 1; - * - * @return The bytes for serviceAccountEmail. - */ - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { - java.lang.Object ref = serviceAccountEmail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAccountEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-     * to be used for generating OIDC token.
-     * The service account must be within the same project as the queue. The
-     * caller must have iam.serviceAccounts.actAs permission for the service
-     * account.
-     * 
- * - * string service_account_email = 1; - * - * @param value The serviceAccountEmail to set. - * @return This builder for chaining. - */ - public Builder setServiceAccountEmail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serviceAccountEmail_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-     * to be used for generating OIDC token.
-     * The service account must be within the same project as the queue. The
-     * caller must have iam.serviceAccounts.actAs permission for the service
-     * account.
-     * 
- * - * string service_account_email = 1; - * - * @return This builder for chaining. - */ - public Builder clearServiceAccountEmail() { - - serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-     * to be used for generating OIDC token.
-     * The service account must be within the same project as the queue. The
-     * caller must have iam.serviceAccounts.actAs permission for the service
-     * account.
-     * 
- * - * string service_account_email = 1; - * - * @param value The bytes for serviceAccountEmail to set. - * @return This builder for chaining. - */ - public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serviceAccountEmail_ = value; - onChanged(); - return this; - } - - private java.lang.Object audience_ = ""; - /** - * - * - *
-     * Audience to be used when generating OIDC token. If not specified, the URI
-     * specified in target will be used.
-     * 
- * - * string audience = 2; - * - * @return The audience. - */ - public java.lang.String getAudience() { - java.lang.Object ref = audience_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - audience_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Audience to be used when generating OIDC token. If not specified, the URI
-     * specified in target will be used.
-     * 
- * - * string audience = 2; - * - * @return The bytes for audience. - */ - public com.google.protobuf.ByteString getAudienceBytes() { - java.lang.Object ref = audience_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - audience_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Audience to be used when generating OIDC token. If not specified, the URI
-     * specified in target will be used.
-     * 
- * - * string audience = 2; - * - * @param value The audience to set. - * @return This builder for chaining. - */ - public Builder setAudience(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - audience_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Audience to be used when generating OIDC token. If not specified, the URI
-     * specified in target will be used.
-     * 
- * - * string audience = 2; - * - * @return This builder for chaining. - */ - public Builder clearAudience() { - - audience_ = getDefaultInstance().getAudience(); - onChanged(); - return this; - } - /** - * - * - *
-     * Audience to be used when generating OIDC token. If not specified, the URI
-     * specified in target will be used.
-     * 
- * - * string audience = 2; - * - * @param value The bytes for audience to set. - * @return This builder for chaining. - */ - public Builder setAudienceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - audience_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.OidcToken) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.OidcToken) - private static final com.google.cloud.tasks.v2.OidcToken DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.OidcToken(); - } - - public static com.google.cloud.tasks.v2.OidcToken getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OidcToken parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.OidcToken getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcTokenOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcTokenOrBuilder.java deleted file mode 100644 index fb4dbd64..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcTokenOrBuilder.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2020 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/v2/target.proto - -package com.google.cloud.tasks.v2; - -public interface OidcTokenOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.OidcToken) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-   * to be used for generating OIDC token.
-   * The service account must be within the same project as the queue. The
-   * caller must have iam.serviceAccounts.actAs permission for the service
-   * account.
-   * 
- * - * string service_account_email = 1; - * - * @return The serviceAccountEmail. - */ - java.lang.String getServiceAccountEmail(); - /** - * - * - *
-   * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-   * to be used for generating OIDC token.
-   * The service account must be within the same project as the queue. The
-   * caller must have iam.serviceAccounts.actAs permission for the service
-   * account.
-   * 
- * - * string service_account_email = 1; - * - * @return The bytes for serviceAccountEmail. - */ - com.google.protobuf.ByteString getServiceAccountEmailBytes(); - - /** - * - * - *
-   * Audience to be used when generating OIDC token. If not specified, the URI
-   * specified in target will be used.
-   * 
- * - * string audience = 2; - * - * @return The audience. - */ - java.lang.String getAudience(); - /** - * - * - *
-   * Audience to be used when generating OIDC token. If not specified, the URI
-   * specified in target will be used.
-   * 
- * - * string audience = 2; - * - * @return The bytes for audience. - */ - com.google.protobuf.ByteString getAudienceBytes(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequest.java deleted file mode 100644 index e593e80d..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequest.java +++ /dev/null @@ -1,635 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * Request message for [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.PauseQueueRequest} - */ -public final class PauseQueueRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.PauseQueueRequest) - PauseQueueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PauseQueueRequest.newBuilder() to construct. - private PauseQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PauseQueueRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PauseQueueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_PauseQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_PauseQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.PauseQueueRequest.class, - com.google.cloud.tasks.v2.PauseQueueRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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.v2.PauseQueueRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.PauseQueueRequest other = - (com.google.cloud.tasks.v2.PauseQueueRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.PauseQueueRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.PauseQueueRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.PauseQueueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.PauseQueueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.PauseQueueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.PauseQueueRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.PauseQueueRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.PauseQueueRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.PauseQueueRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.PauseQueueRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.PauseQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.PauseQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.PauseQueueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.PauseQueueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.PauseQueueRequest) - com.google.cloud.tasks.v2.PauseQueueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_PauseQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_PauseQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.PauseQueueRequest.class, - com.google.cloud.tasks.v2.PauseQueueRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.PauseQueueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_PauseQueueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.PauseQueueRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.PauseQueueRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.PauseQueueRequest build() { - com.google.cloud.tasks.v2.PauseQueueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.PauseQueueRequest buildPartial() { - com.google.cloud.tasks.v2.PauseQueueRequest result = - new com.google.cloud.tasks.v2.PauseQueueRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.PauseQueueRequest) { - return mergeFrom((com.google.cloud.tasks.v2.PauseQueueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.PauseQueueRequest other) { - if (other == com.google.cloud.tasks.v2.PauseQueueRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.PauseQueueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.PauseQueueRequest) - private static final com.google.cloud.tasks.v2.PauseQueueRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.PauseQueueRequest(); - } - - public static com.google.cloud.tasks.v2.PauseQueueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PauseQueueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.PauseQueueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequestOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequestOrBuilder.java deleted file mode 100644 index bd81aed6..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -public interface PauseQueueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.PauseQueueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ProjectName.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ProjectName.java deleted file mode 100644 index df32a5f6..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ProjectName.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright 2019 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.v2; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -@javax.annotation.Generated("by GAPIC protoc plugin") -public class ProjectName implements ResourceName { - - private static final PathTemplate PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding("projects/{project}"); - - private volatile Map fieldValuesMap; - - private final String project; - - public String getProject() { - return project; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - private ProjectName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - } - - public static ProjectName of(String project) { - return newBuilder().setProject(project).build(); - } - - public static String format(String project) { - return newBuilder().setProject(project).build().toString(); - } - - public static ProjectName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PATH_TEMPLATE.validatedMatch( - formattedString, "ProjectName.parse: formattedString not in valid format"); - return of(matchMap.get("project")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList(values.size()); - for (ProjectName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PATH_TEMPLATE.matches(formattedString); - } - - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - fieldMapBuilder.put("project", project); - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PATH_TEMPLATE.instantiate("project", project); - } - - /** Builder for ProjectName. */ - public static class Builder { - - private String project; - - public String getProject() { - return project; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - private Builder() {} - - private Builder(ProjectName projectName) { - project = projectName.project; - } - - public ProjectName build() { - return new ProjectName(this); - } - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o instanceof ProjectName) { - ProjectName that = (ProjectName) o; - return (this.project.equals(that.project)); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= project.hashCode(); - return h; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequest.java deleted file mode 100644 index e902c8e2..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequest.java +++ /dev/null @@ -1,635 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * Request message for [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.PurgeQueueRequest} - */ -public final class PurgeQueueRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.PurgeQueueRequest) - PurgeQueueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PurgeQueueRequest.newBuilder() to construct. - private PurgeQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PurgeQueueRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PurgeQueueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_PurgeQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_PurgeQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.PurgeQueueRequest.class, - com.google.cloud.tasks.v2.PurgeQueueRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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.v2.PurgeQueueRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.PurgeQueueRequest other = - (com.google.cloud.tasks.v2.PurgeQueueRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.PurgeQueueRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.PurgeQueueRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.PurgeQueueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.PurgeQueueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.PurgeQueueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.PurgeQueueRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.PurgeQueueRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.PurgeQueueRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.PurgeQueueRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.PurgeQueueRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.PurgeQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.PurgeQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.PurgeQueueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.PurgeQueueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.PurgeQueueRequest) - com.google.cloud.tasks.v2.PurgeQueueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_PurgeQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_PurgeQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.PurgeQueueRequest.class, - com.google.cloud.tasks.v2.PurgeQueueRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.PurgeQueueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_PurgeQueueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.PurgeQueueRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.PurgeQueueRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.PurgeQueueRequest build() { - com.google.cloud.tasks.v2.PurgeQueueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.PurgeQueueRequest buildPartial() { - com.google.cloud.tasks.v2.PurgeQueueRequest result = - new com.google.cloud.tasks.v2.PurgeQueueRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.PurgeQueueRequest) { - return mergeFrom((com.google.cloud.tasks.v2.PurgeQueueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.PurgeQueueRequest other) { - if (other == com.google.cloud.tasks.v2.PurgeQueueRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.PurgeQueueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.PurgeQueueRequest) - private static final com.google.cloud.tasks.v2.PurgeQueueRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.PurgeQueueRequest(); - } - - public static com.google.cloud.tasks.v2.PurgeQueueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PurgeQueueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.PurgeQueueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequestOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequestOrBuilder.java deleted file mode 100644 index c701bf8c..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -public interface PurgeQueueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.PurgeQueueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Queue.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Queue.java deleted file mode 100644 index 5442d3ad..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Queue.java +++ /dev/null @@ -1,2988 +0,0 @@ -/* - * Copyright 2020 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/v2/queue.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * A queue is a container of related tasks. Queues are configured to manage
- * how those tasks are dispatched. Configurable properties include rate limits,
- * retry options, queue types, and others.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.Queue} - */ -public final class Queue extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.Queue) - QueueOrBuilder { - private static final long serialVersionUID = 0L; - // Use Queue.newBuilder() to construct. - private Queue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Queue() { - name_ = ""; - state_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Queue(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.QueueProto - .internal_static_google_cloud_tasks_v2_Queue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.QueueProto - .internal_static_google_cloud_tasks_v2_Queue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.Queue.class, com.google.cloud.tasks.v2.Queue.Builder.class); - } - - /** - * - * - *
-   * State of the queue.
-   * 
- * - * Protobuf enum {@code google.cloud.tasks.v2.Queue.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unspecified state.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - STATE_UNSPECIFIED(0), - /** - * - * - *
-     * The queue is running. Tasks can be dispatched.
-     * If the queue was created using Cloud Tasks and the queue has
-     * had no activity (method calls or task dispatches) for 30 days,
-     * the queue may take a few minutes to re-activate. Some method
-     * calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and
-     * tasks may not be dispatched for a few minutes until the queue
-     * has been re-activated.
-     * 
- * - * RUNNING = 1; - */ - RUNNING(1), - /** - * - * - *
-     * Tasks are paused by the user. If the queue is paused then Cloud
-     * Tasks will stop delivering tasks from it, but more tasks can
-     * still be added to it by the user.
-     * 
- * - * PAUSED = 2; - */ - PAUSED(2), - /** - * - * - *
-     * The queue is disabled.
-     * A queue becomes `DISABLED` when
-     * [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref)
-     * or
-     * [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref)
-     * is uploaded which does not contain the queue. You cannot directly disable
-     * a queue.
-     * When a queue is disabled, tasks can still be added to a queue
-     * but the tasks are not dispatched.
-     * To permanently delete this queue and all of its tasks, call
-     * [DeleteQueue][google.cloud.tasks.v2.CloudTasks.DeleteQueue].
-     * 
- * - * DISABLED = 3; - */ - DISABLED(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Unspecified state.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - public static final int STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The queue is running. Tasks can be dispatched.
-     * If the queue was created using Cloud Tasks and the queue has
-     * had no activity (method calls or task dispatches) for 30 days,
-     * the queue may take a few minutes to re-activate. Some method
-     * calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and
-     * tasks may not be dispatched for a few minutes until the queue
-     * has been re-activated.
-     * 
- * - * RUNNING = 1; - */ - public static final int RUNNING_VALUE = 1; - /** - * - * - *
-     * Tasks are paused by the user. If the queue is paused then Cloud
-     * Tasks will stop delivering tasks from it, but more tasks can
-     * still be added to it by the user.
-     * 
- * - * PAUSED = 2; - */ - public static final int PAUSED_VALUE = 2; - /** - * - * - *
-     * The queue is disabled.
-     * A queue becomes `DISABLED` when
-     * [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref)
-     * or
-     * [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref)
-     * is uploaded which does not contain the queue. You cannot directly disable
-     * a queue.
-     * When a queue is disabled, tasks can still be added to a queue
-     * but the tasks are not dispatched.
-     * To permanently delete this queue and all of its tasks, call
-     * [DeleteQueue][google.cloud.tasks.v2.CloudTasks.DeleteQueue].
-     * 
- * - * DISABLED = 3; - */ - public static final int DISABLED_VALUE = 3; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static State valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static State forNumber(int value) { - switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return RUNNING; - case 2: - return PAUSED; - case 3: - return DISABLED; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.tasks.v2.Queue.getDescriptor().getEnumTypes().get(0); - } - - private static final State[] VALUES = values(); - - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private State(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.tasks.v2.Queue.State) - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue],
-   * after which it becomes output only.
-   * The queue name.
-   * The queue name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the queue's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue],
-   * after which it becomes output only.
-   * The queue name.
-   * The queue name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the queue's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int APP_ENGINE_ROUTING_OVERRIDE_FIELD_NUMBER = 2; - private com.google.cloud.tasks.v2.AppEngineRouting appEngineRoutingOverride_; - /** - * - * - *
-   * Overrides for
-   * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-   * These settings apply only to
-   * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue.
-   * [Http tasks][google.cloud.tasks.v2.HttpRequest] are not affected.
-   * If set, `app_engine_routing_override` is used for all
-   * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the
-   * setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2; - * - * @return Whether the appEngineRoutingOverride field is set. - */ - @java.lang.Override - public boolean hasAppEngineRoutingOverride() { - return appEngineRoutingOverride_ != null; - } - /** - * - * - *
-   * Overrides for
-   * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-   * These settings apply only to
-   * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue.
-   * [Http tasks][google.cloud.tasks.v2.HttpRequest] are not affected.
-   * If set, `app_engine_routing_override` is used for all
-   * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the
-   * setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2; - * - * @return The appEngineRoutingOverride. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.AppEngineRouting getAppEngineRoutingOverride() { - return appEngineRoutingOverride_ == null - ? com.google.cloud.tasks.v2.AppEngineRouting.getDefaultInstance() - : appEngineRoutingOverride_; - } - /** - * - * - *
-   * Overrides for
-   * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-   * These settings apply only to
-   * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue.
-   * [Http tasks][google.cloud.tasks.v2.HttpRequest] are not affected.
-   * If set, `app_engine_routing_override` is used for all
-   * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the
-   * setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder - getAppEngineRoutingOverrideOrBuilder() { - return getAppEngineRoutingOverride(); - } - - public static final int RATE_LIMITS_FIELD_NUMBER = 3; - private com.google.cloud.tasks.v2.RateLimits rateLimits_; - /** - * - * - *
-   * Rate limits for task dispatches.
-   * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are
-   * related because they both control task attempts. However they control task
-   * attempts in different ways:
-   * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of
-   *   dispatches from a queue (i.e. all traffic dispatched from the
-   *   queue, regardless of whether the dispatch is from a first
-   *   attempt or a retry).
-   * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to
-   *   particular a task after its first attempt fails. That is,
-   *   [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the
-   *   second attempt, third attempt, etc).
-   * The queue's actual dispatch rate is the result of:
-   * * Number of tasks in the queue
-   * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits],
-   *   [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the
-   *   [queue's state][google.cloud.tasks.v2.Queue.state].
-   * * System throttling due to `429` (Too Many Requests) or `503` (Service
-   *   Unavailable) responses from the worker, high error rates, or to smooth
-   *   sudden large traffic spikes.
-   * 
- * - * .google.cloud.tasks.v2.RateLimits rate_limits = 3; - * - * @return Whether the rateLimits field is set. - */ - @java.lang.Override - public boolean hasRateLimits() { - return rateLimits_ != null; - } - /** - * - * - *
-   * Rate limits for task dispatches.
-   * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are
-   * related because they both control task attempts. However they control task
-   * attempts in different ways:
-   * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of
-   *   dispatches from a queue (i.e. all traffic dispatched from the
-   *   queue, regardless of whether the dispatch is from a first
-   *   attempt or a retry).
-   * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to
-   *   particular a task after its first attempt fails. That is,
-   *   [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the
-   *   second attempt, third attempt, etc).
-   * The queue's actual dispatch rate is the result of:
-   * * Number of tasks in the queue
-   * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits],
-   *   [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the
-   *   [queue's state][google.cloud.tasks.v2.Queue.state].
-   * * System throttling due to `429` (Too Many Requests) or `503` (Service
-   *   Unavailable) responses from the worker, high error rates, or to smooth
-   *   sudden large traffic spikes.
-   * 
- * - * .google.cloud.tasks.v2.RateLimits rate_limits = 3; - * - * @return The rateLimits. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.RateLimits getRateLimits() { - return rateLimits_ == null - ? com.google.cloud.tasks.v2.RateLimits.getDefaultInstance() - : rateLimits_; - } - /** - * - * - *
-   * Rate limits for task dispatches.
-   * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are
-   * related because they both control task attempts. However they control task
-   * attempts in different ways:
-   * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of
-   *   dispatches from a queue (i.e. all traffic dispatched from the
-   *   queue, regardless of whether the dispatch is from a first
-   *   attempt or a retry).
-   * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to
-   *   particular a task after its first attempt fails. That is,
-   *   [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the
-   *   second attempt, third attempt, etc).
-   * The queue's actual dispatch rate is the result of:
-   * * Number of tasks in the queue
-   * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits],
-   *   [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the
-   *   [queue's state][google.cloud.tasks.v2.Queue.state].
-   * * System throttling due to `429` (Too Many Requests) or `503` (Service
-   *   Unavailable) responses from the worker, high error rates, or to smooth
-   *   sudden large traffic spikes.
-   * 
- * - * .google.cloud.tasks.v2.RateLimits rate_limits = 3; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.RateLimitsOrBuilder getRateLimitsOrBuilder() { - return getRateLimits(); - } - - public static final int RETRY_CONFIG_FIELD_NUMBER = 4; - private com.google.cloud.tasks.v2.RetryConfig retryConfig_; - /** - * - * - *
-   * Settings that determine the retry behavior.
-   * * For tasks created using Cloud Tasks: the queue-level retry settings
-   *   apply to all tasks in the queue that were created using Cloud Tasks.
-   *   Retry settings cannot be set on individual tasks.
-   * * For tasks created using the App Engine SDK: the queue-level retry
-   *   settings apply to all tasks in the queue which do not have retry settings
-   *   explicitly set on the task and were created by the App Engine SDK. See
-   *   [App Engine
-   *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-   * 
- * - * .google.cloud.tasks.v2.RetryConfig retry_config = 4; - * - * @return Whether the retryConfig field is set. - */ - @java.lang.Override - public boolean hasRetryConfig() { - return retryConfig_ != null; - } - /** - * - * - *
-   * Settings that determine the retry behavior.
-   * * For tasks created using Cloud Tasks: the queue-level retry settings
-   *   apply to all tasks in the queue that were created using Cloud Tasks.
-   *   Retry settings cannot be set on individual tasks.
-   * * For tasks created using the App Engine SDK: the queue-level retry
-   *   settings apply to all tasks in the queue which do not have retry settings
-   *   explicitly set on the task and were created by the App Engine SDK. See
-   *   [App Engine
-   *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-   * 
- * - * .google.cloud.tasks.v2.RetryConfig retry_config = 4; - * - * @return The retryConfig. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.RetryConfig getRetryConfig() { - return retryConfig_ == null - ? com.google.cloud.tasks.v2.RetryConfig.getDefaultInstance() - : retryConfig_; - } - /** - * - * - *
-   * Settings that determine the retry behavior.
-   * * For tasks created using Cloud Tasks: the queue-level retry settings
-   *   apply to all tasks in the queue that were created using Cloud Tasks.
-   *   Retry settings cannot be set on individual tasks.
-   * * For tasks created using the App Engine SDK: the queue-level retry
-   *   settings apply to all tasks in the queue which do not have retry settings
-   *   explicitly set on the task and were created by the App Engine SDK. See
-   *   [App Engine
-   *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-   * 
- * - * .google.cloud.tasks.v2.RetryConfig retry_config = 4; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.RetryConfigOrBuilder getRetryConfigOrBuilder() { - return getRetryConfig(); - } - - public static final int STATE_FIELD_NUMBER = 5; - private int state_; - /** - * - * - *
-   * Output only. The state of the queue.
-   * `state` can only be changed by called
-   * [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue],
-   * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue], or uploading
-   * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-   * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] cannot be used to change `state`.
-   * 
- * - * .google.cloud.tasks.v2.Queue.State state = 5; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. The state of the queue.
-   * `state` can only be changed by called
-   * [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue],
-   * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue], or uploading
-   * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-   * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] cannot be used to change `state`.
-   * 
- * - * .google.cloud.tasks.v2.Queue.State state = 5; - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.Queue.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2.Queue.State result = - com.google.cloud.tasks.v2.Queue.State.valueOf(state_); - return result == null ? com.google.cloud.tasks.v2.Queue.State.UNRECOGNIZED : result; - } - - public static final int PURGE_TIME_FIELD_NUMBER = 6; - private com.google.protobuf.Timestamp purgeTime_; - /** - * - * - *
-   * Output only. The last time this queue was purged.
-   * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time
-   * were purged.
-   * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the
-   * [App Engine Task Queue SDK, or the Cloud
-   * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-   * Purge time will be truncated to the nearest microsecond. Purge
-   * time will be unset if the queue has never been purged.
-   * 
- * - * .google.protobuf.Timestamp purge_time = 6; - * - * @return Whether the purgeTime field is set. - */ - @java.lang.Override - public boolean hasPurgeTime() { - return purgeTime_ != null; - } - /** - * - * - *
-   * Output only. The last time this queue was purged.
-   * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time
-   * were purged.
-   * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the
-   * [App Engine Task Queue SDK, or the Cloud
-   * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-   * Purge time will be truncated to the nearest microsecond. Purge
-   * time will be unset if the queue has never been purged.
-   * 
- * - * .google.protobuf.Timestamp purge_time = 6; - * - * @return The purgeTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getPurgeTime() { - return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; - } - /** - * - * - *
-   * Output only. The last time this queue was purged.
-   * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time
-   * were purged.
-   * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the
-   * [App Engine Task Queue SDK, or the Cloud
-   * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-   * Purge time will be truncated to the nearest microsecond. Purge
-   * time will be unset if the queue has never been purged.
-   * 
- * - * .google.protobuf.Timestamp purge_time = 6; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder() { - return getPurgeTime(); - } - - public static final int STACKDRIVER_LOGGING_CONFIG_FIELD_NUMBER = 9; - private com.google.cloud.tasks.v2.StackdriverLoggingConfig stackdriverLoggingConfig_; - /** - * - * - *
-   * Configuration options for writing logs to
-   * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-   * field is unset, then no logs are written.
-   * 
- * - * .google.cloud.tasks.v2.StackdriverLoggingConfig stackdriver_logging_config = 9; - * - * @return Whether the stackdriverLoggingConfig field is set. - */ - @java.lang.Override - public boolean hasStackdriverLoggingConfig() { - return stackdriverLoggingConfig_ != null; - } - /** - * - * - *
-   * Configuration options for writing logs to
-   * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-   * field is unset, then no logs are written.
-   * 
- * - * .google.cloud.tasks.v2.StackdriverLoggingConfig stackdriver_logging_config = 9; - * - * @return The stackdriverLoggingConfig. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.StackdriverLoggingConfig getStackdriverLoggingConfig() { - return stackdriverLoggingConfig_ == null - ? com.google.cloud.tasks.v2.StackdriverLoggingConfig.getDefaultInstance() - : stackdriverLoggingConfig_; - } - /** - * - * - *
-   * Configuration options for writing logs to
-   * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-   * field is unset, then no logs are written.
-   * 
- * - * .google.cloud.tasks.v2.StackdriverLoggingConfig stackdriver_logging_config = 9; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.StackdriverLoggingConfigOrBuilder - getStackdriverLoggingConfigOrBuilder() { - return getStackdriverLoggingConfig(); - } - - 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(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (appEngineRoutingOverride_ != null) { - output.writeMessage(2, getAppEngineRoutingOverride()); - } - if (rateLimits_ != null) { - output.writeMessage(3, getRateLimits()); - } - if (retryConfig_ != null) { - output.writeMessage(4, getRetryConfig()); - } - if (state_ != com.google.cloud.tasks.v2.Queue.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(5, state_); - } - if (purgeTime_ != null) { - output.writeMessage(6, getPurgeTime()); - } - if (stackdriverLoggingConfig_ != null) { - output.writeMessage(9, getStackdriverLoggingConfig()); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (appEngineRoutingOverride_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getAppEngineRoutingOverride()); - } - if (rateLimits_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRateLimits()); - } - if (retryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRetryConfig()); - } - if (state_ != com.google.cloud.tasks.v2.Queue.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_); - } - if (purgeTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPurgeTime()); - } - if (stackdriverLoggingConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, getStackdriverLoggingConfig()); - } - 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.v2.Queue)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.Queue other = (com.google.cloud.tasks.v2.Queue) obj; - - if (!getName().equals(other.getName())) return false; - if (hasAppEngineRoutingOverride() != other.hasAppEngineRoutingOverride()) return false; - if (hasAppEngineRoutingOverride()) { - if (!getAppEngineRoutingOverride().equals(other.getAppEngineRoutingOverride())) return false; - } - if (hasRateLimits() != other.hasRateLimits()) return false; - if (hasRateLimits()) { - if (!getRateLimits().equals(other.getRateLimits())) return false; - } - if (hasRetryConfig() != other.hasRetryConfig()) return false; - if (hasRetryConfig()) { - if (!getRetryConfig().equals(other.getRetryConfig())) return false; - } - if (state_ != other.state_) return false; - if (hasPurgeTime() != other.hasPurgeTime()) return false; - if (hasPurgeTime()) { - if (!getPurgeTime().equals(other.getPurgeTime())) return false; - } - if (hasStackdriverLoggingConfig() != other.hasStackdriverLoggingConfig()) return false; - if (hasStackdriverLoggingConfig()) { - if (!getStackdriverLoggingConfig().equals(other.getStackdriverLoggingConfig())) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasAppEngineRoutingOverride()) { - hash = (37 * hash) + APP_ENGINE_ROUTING_OVERRIDE_FIELD_NUMBER; - hash = (53 * hash) + getAppEngineRoutingOverride().hashCode(); - } - if (hasRateLimits()) { - hash = (37 * hash) + RATE_LIMITS_FIELD_NUMBER; - hash = (53 * hash) + getRateLimits().hashCode(); - } - if (hasRetryConfig()) { - hash = (37 * hash) + RETRY_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getRetryConfig().hashCode(); - } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (hasPurgeTime()) { - hash = (37 * hash) + PURGE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getPurgeTime().hashCode(); - } - if (hasStackdriverLoggingConfig()) { - hash = (37 * hash) + STACKDRIVER_LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getStackdriverLoggingConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.Queue parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.Queue parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.Queue parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.Queue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.Queue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.Queue parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.Queue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.Queue parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.Queue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.Queue parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.Queue parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.Queue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.Queue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A queue is a container of related tasks. Queues are configured to manage
-   * how those tasks are dispatched. Configurable properties include rate limits,
-   * retry options, queue types, and others.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.Queue} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.Queue) - com.google.cloud.tasks.v2.QueueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.QueueProto - .internal_static_google_cloud_tasks_v2_Queue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.QueueProto - .internal_static_google_cloud_tasks_v2_Queue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.Queue.class, com.google.cloud.tasks.v2.Queue.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.Queue.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (appEngineRoutingOverrideBuilder_ == null) { - appEngineRoutingOverride_ = null; - } else { - appEngineRoutingOverride_ = null; - appEngineRoutingOverrideBuilder_ = null; - } - if (rateLimitsBuilder_ == null) { - rateLimits_ = null; - } else { - rateLimits_ = null; - rateLimitsBuilder_ = null; - } - if (retryConfigBuilder_ == null) { - retryConfig_ = null; - } else { - retryConfig_ = null; - retryConfigBuilder_ = null; - } - state_ = 0; - - if (purgeTimeBuilder_ == null) { - purgeTime_ = null; - } else { - purgeTime_ = null; - purgeTimeBuilder_ = null; - } - if (stackdriverLoggingConfigBuilder_ == null) { - stackdriverLoggingConfig_ = null; - } else { - stackdriverLoggingConfig_ = null; - stackdriverLoggingConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.QueueProto - .internal_static_google_cloud_tasks_v2_Queue_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.Queue getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.Queue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.Queue build() { - com.google.cloud.tasks.v2.Queue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.Queue buildPartial() { - com.google.cloud.tasks.v2.Queue result = new com.google.cloud.tasks.v2.Queue(this); - result.name_ = name_; - if (appEngineRoutingOverrideBuilder_ == null) { - result.appEngineRoutingOverride_ = appEngineRoutingOverride_; - } else { - result.appEngineRoutingOverride_ = appEngineRoutingOverrideBuilder_.build(); - } - if (rateLimitsBuilder_ == null) { - result.rateLimits_ = rateLimits_; - } else { - result.rateLimits_ = rateLimitsBuilder_.build(); - } - if (retryConfigBuilder_ == null) { - result.retryConfig_ = retryConfig_; - } else { - result.retryConfig_ = retryConfigBuilder_.build(); - } - result.state_ = state_; - if (purgeTimeBuilder_ == null) { - result.purgeTime_ = purgeTime_; - } else { - result.purgeTime_ = purgeTimeBuilder_.build(); - } - if (stackdriverLoggingConfigBuilder_ == null) { - result.stackdriverLoggingConfig_ = stackdriverLoggingConfig_; - } else { - result.stackdriverLoggingConfig_ = stackdriverLoggingConfigBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.Queue) { - return mergeFrom((com.google.cloud.tasks.v2.Queue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.Queue other) { - if (other == com.google.cloud.tasks.v2.Queue.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasAppEngineRoutingOverride()) { - mergeAppEngineRoutingOverride(other.getAppEngineRoutingOverride()); - } - if (other.hasRateLimits()) { - mergeRateLimits(other.getRateLimits()); - } - if (other.hasRetryConfig()) { - mergeRetryConfig(other.getRetryConfig()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.hasPurgeTime()) { - mergePurgeTime(other.getPurgeTime()); - } - if (other.hasStackdriverLoggingConfig()) { - mergeStackdriverLoggingConfig(other.getStackdriverLoggingConfig()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage( - getAppEngineRoutingOverrideFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getRateLimitsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getRetryConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 40: - { - state_ = input.readEnum(); - - break; - } // case 40 - case 50: - { - input.readMessage(getPurgeTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 74: - { - input.readMessage( - getStackdriverLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue],
-     * after which it becomes output only.
-     * The queue name.
-     * The queue name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the queue's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue],
-     * after which it becomes output only.
-     * The queue name.
-     * The queue name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the queue's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue],
-     * after which it becomes output only.
-     * The queue name.
-     * The queue name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the queue's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue],
-     * after which it becomes output only.
-     * The queue name.
-     * The queue name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the queue's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue],
-     * after which it becomes output only.
-     * The queue name.
-     * The queue name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the queue's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.cloud.tasks.v2.AppEngineRouting appEngineRoutingOverride_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.AppEngineRouting, - com.google.cloud.tasks.v2.AppEngineRouting.Builder, - com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder> - appEngineRoutingOverrideBuilder_; - /** - * - * - *
-     * Overrides for
-     * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-     * These settings apply only to
-     * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue.
-     * [Http tasks][google.cloud.tasks.v2.HttpRequest] are not affected.
-     * If set, `app_engine_routing_override` is used for all
-     * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the
-     * setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2; - * - * @return Whether the appEngineRoutingOverride field is set. - */ - public boolean hasAppEngineRoutingOverride() { - return appEngineRoutingOverrideBuilder_ != null || appEngineRoutingOverride_ != null; - } - /** - * - * - *
-     * Overrides for
-     * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-     * These settings apply only to
-     * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue.
-     * [Http tasks][google.cloud.tasks.v2.HttpRequest] are not affected.
-     * If set, `app_engine_routing_override` is used for all
-     * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the
-     * setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2; - * - * @return The appEngineRoutingOverride. - */ - public com.google.cloud.tasks.v2.AppEngineRouting getAppEngineRoutingOverride() { - if (appEngineRoutingOverrideBuilder_ == null) { - return appEngineRoutingOverride_ == null - ? com.google.cloud.tasks.v2.AppEngineRouting.getDefaultInstance() - : appEngineRoutingOverride_; - } else { - return appEngineRoutingOverrideBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Overrides for
-     * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-     * These settings apply only to
-     * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue.
-     * [Http tasks][google.cloud.tasks.v2.HttpRequest] are not affected.
-     * If set, `app_engine_routing_override` is used for all
-     * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the
-     * setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2; - */ - public Builder setAppEngineRoutingOverride(com.google.cloud.tasks.v2.AppEngineRouting value) { - if (appEngineRoutingOverrideBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - appEngineRoutingOverride_ = value; - onChanged(); - } else { - appEngineRoutingOverrideBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Overrides for
-     * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-     * These settings apply only to
-     * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue.
-     * [Http tasks][google.cloud.tasks.v2.HttpRequest] are not affected.
-     * If set, `app_engine_routing_override` is used for all
-     * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the
-     * setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2; - */ - public Builder setAppEngineRoutingOverride( - com.google.cloud.tasks.v2.AppEngineRouting.Builder builderForValue) { - if (appEngineRoutingOverrideBuilder_ == null) { - appEngineRoutingOverride_ = builderForValue.build(); - onChanged(); - } else { - appEngineRoutingOverrideBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Overrides for
-     * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-     * These settings apply only to
-     * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue.
-     * [Http tasks][google.cloud.tasks.v2.HttpRequest] are not affected.
-     * If set, `app_engine_routing_override` is used for all
-     * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the
-     * setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2; - */ - public Builder mergeAppEngineRoutingOverride(com.google.cloud.tasks.v2.AppEngineRouting value) { - if (appEngineRoutingOverrideBuilder_ == null) { - if (appEngineRoutingOverride_ != null) { - appEngineRoutingOverride_ = - com.google.cloud.tasks.v2.AppEngineRouting.newBuilder(appEngineRoutingOverride_) - .mergeFrom(value) - .buildPartial(); - } else { - appEngineRoutingOverride_ = value; - } - onChanged(); - } else { - appEngineRoutingOverrideBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Overrides for
-     * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-     * These settings apply only to
-     * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue.
-     * [Http tasks][google.cloud.tasks.v2.HttpRequest] are not affected.
-     * If set, `app_engine_routing_override` is used for all
-     * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the
-     * setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2; - */ - public Builder clearAppEngineRoutingOverride() { - if (appEngineRoutingOverrideBuilder_ == null) { - appEngineRoutingOverride_ = null; - onChanged(); - } else { - appEngineRoutingOverride_ = null; - appEngineRoutingOverrideBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Overrides for
-     * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-     * These settings apply only to
-     * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue.
-     * [Http tasks][google.cloud.tasks.v2.HttpRequest] are not affected.
-     * If set, `app_engine_routing_override` is used for all
-     * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the
-     * setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2; - */ - public com.google.cloud.tasks.v2.AppEngineRouting.Builder getAppEngineRoutingOverrideBuilder() { - - onChanged(); - return getAppEngineRoutingOverrideFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Overrides for
-     * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-     * These settings apply only to
-     * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue.
-     * [Http tasks][google.cloud.tasks.v2.HttpRequest] are not affected.
-     * If set, `app_engine_routing_override` is used for all
-     * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the
-     * setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2; - */ - public com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder - getAppEngineRoutingOverrideOrBuilder() { - if (appEngineRoutingOverrideBuilder_ != null) { - return appEngineRoutingOverrideBuilder_.getMessageOrBuilder(); - } else { - return appEngineRoutingOverride_ == null - ? com.google.cloud.tasks.v2.AppEngineRouting.getDefaultInstance() - : appEngineRoutingOverride_; - } - } - /** - * - * - *
-     * Overrides for
-     * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-     * These settings apply only to
-     * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue.
-     * [Http tasks][google.cloud.tasks.v2.HttpRequest] are not affected.
-     * If set, `app_engine_routing_override` is used for all
-     * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the
-     * setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.AppEngineRouting, - com.google.cloud.tasks.v2.AppEngineRouting.Builder, - com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder> - getAppEngineRoutingOverrideFieldBuilder() { - if (appEngineRoutingOverrideBuilder_ == null) { - appEngineRoutingOverrideBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.AppEngineRouting, - com.google.cloud.tasks.v2.AppEngineRouting.Builder, - com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder>( - getAppEngineRoutingOverride(), getParentForChildren(), isClean()); - appEngineRoutingOverride_ = null; - } - return appEngineRoutingOverrideBuilder_; - } - - private com.google.cloud.tasks.v2.RateLimits rateLimits_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.RateLimits, - com.google.cloud.tasks.v2.RateLimits.Builder, - com.google.cloud.tasks.v2.RateLimitsOrBuilder> - rateLimitsBuilder_; - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are
-     * related because they both control task attempts. However they control task
-     * attempts in different ways:
-     * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * The queue's actual dispatch rate is the result of:
-     * * Number of tasks in the queue
-     * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits],
-     *   [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the
-     *   [queue's state][google.cloud.tasks.v2.Queue.state].
-     * * System throttling due to `429` (Too Many Requests) or `503` (Service
-     *   Unavailable) responses from the worker, high error rates, or to smooth
-     *   sudden large traffic spikes.
-     * 
- * - * .google.cloud.tasks.v2.RateLimits rate_limits = 3; - * - * @return Whether the rateLimits field is set. - */ - public boolean hasRateLimits() { - return rateLimitsBuilder_ != null || rateLimits_ != null; - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are
-     * related because they both control task attempts. However they control task
-     * attempts in different ways:
-     * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * The queue's actual dispatch rate is the result of:
-     * * Number of tasks in the queue
-     * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits],
-     *   [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the
-     *   [queue's state][google.cloud.tasks.v2.Queue.state].
-     * * System throttling due to `429` (Too Many Requests) or `503` (Service
-     *   Unavailable) responses from the worker, high error rates, or to smooth
-     *   sudden large traffic spikes.
-     * 
- * - * .google.cloud.tasks.v2.RateLimits rate_limits = 3; - * - * @return The rateLimits. - */ - public com.google.cloud.tasks.v2.RateLimits getRateLimits() { - if (rateLimitsBuilder_ == null) { - return rateLimits_ == null - ? com.google.cloud.tasks.v2.RateLimits.getDefaultInstance() - : rateLimits_; - } else { - return rateLimitsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are
-     * related because they both control task attempts. However they control task
-     * attempts in different ways:
-     * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * The queue's actual dispatch rate is the result of:
-     * * Number of tasks in the queue
-     * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits],
-     *   [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the
-     *   [queue's state][google.cloud.tasks.v2.Queue.state].
-     * * System throttling due to `429` (Too Many Requests) or `503` (Service
-     *   Unavailable) responses from the worker, high error rates, or to smooth
-     *   sudden large traffic spikes.
-     * 
- * - * .google.cloud.tasks.v2.RateLimits rate_limits = 3; - */ - public Builder setRateLimits(com.google.cloud.tasks.v2.RateLimits value) { - if (rateLimitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rateLimits_ = value; - onChanged(); - } else { - rateLimitsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are
-     * related because they both control task attempts. However they control task
-     * attempts in different ways:
-     * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * The queue's actual dispatch rate is the result of:
-     * * Number of tasks in the queue
-     * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits],
-     *   [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the
-     *   [queue's state][google.cloud.tasks.v2.Queue.state].
-     * * System throttling due to `429` (Too Many Requests) or `503` (Service
-     *   Unavailable) responses from the worker, high error rates, or to smooth
-     *   sudden large traffic spikes.
-     * 
- * - * .google.cloud.tasks.v2.RateLimits rate_limits = 3; - */ - public Builder setRateLimits(com.google.cloud.tasks.v2.RateLimits.Builder builderForValue) { - if (rateLimitsBuilder_ == null) { - rateLimits_ = builderForValue.build(); - onChanged(); - } else { - rateLimitsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are
-     * related because they both control task attempts. However they control task
-     * attempts in different ways:
-     * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * The queue's actual dispatch rate is the result of:
-     * * Number of tasks in the queue
-     * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits],
-     *   [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the
-     *   [queue's state][google.cloud.tasks.v2.Queue.state].
-     * * System throttling due to `429` (Too Many Requests) or `503` (Service
-     *   Unavailable) responses from the worker, high error rates, or to smooth
-     *   sudden large traffic spikes.
-     * 
- * - * .google.cloud.tasks.v2.RateLimits rate_limits = 3; - */ - public Builder mergeRateLimits(com.google.cloud.tasks.v2.RateLimits value) { - if (rateLimitsBuilder_ == null) { - if (rateLimits_ != null) { - rateLimits_ = - com.google.cloud.tasks.v2.RateLimits.newBuilder(rateLimits_) - .mergeFrom(value) - .buildPartial(); - } else { - rateLimits_ = value; - } - onChanged(); - } else { - rateLimitsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are
-     * related because they both control task attempts. However they control task
-     * attempts in different ways:
-     * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * The queue's actual dispatch rate is the result of:
-     * * Number of tasks in the queue
-     * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits],
-     *   [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the
-     *   [queue's state][google.cloud.tasks.v2.Queue.state].
-     * * System throttling due to `429` (Too Many Requests) or `503` (Service
-     *   Unavailable) responses from the worker, high error rates, or to smooth
-     *   sudden large traffic spikes.
-     * 
- * - * .google.cloud.tasks.v2.RateLimits rate_limits = 3; - */ - public Builder clearRateLimits() { - if (rateLimitsBuilder_ == null) { - rateLimits_ = null; - onChanged(); - } else { - rateLimits_ = null; - rateLimitsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are
-     * related because they both control task attempts. However they control task
-     * attempts in different ways:
-     * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * The queue's actual dispatch rate is the result of:
-     * * Number of tasks in the queue
-     * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits],
-     *   [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the
-     *   [queue's state][google.cloud.tasks.v2.Queue.state].
-     * * System throttling due to `429` (Too Many Requests) or `503` (Service
-     *   Unavailable) responses from the worker, high error rates, or to smooth
-     *   sudden large traffic spikes.
-     * 
- * - * .google.cloud.tasks.v2.RateLimits rate_limits = 3; - */ - public com.google.cloud.tasks.v2.RateLimits.Builder getRateLimitsBuilder() { - - onChanged(); - return getRateLimitsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are
-     * related because they both control task attempts. However they control task
-     * attempts in different ways:
-     * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * The queue's actual dispatch rate is the result of:
-     * * Number of tasks in the queue
-     * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits],
-     *   [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the
-     *   [queue's state][google.cloud.tasks.v2.Queue.state].
-     * * System throttling due to `429` (Too Many Requests) or `503` (Service
-     *   Unavailable) responses from the worker, high error rates, or to smooth
-     *   sudden large traffic spikes.
-     * 
- * - * .google.cloud.tasks.v2.RateLimits rate_limits = 3; - */ - public com.google.cloud.tasks.v2.RateLimitsOrBuilder getRateLimitsOrBuilder() { - if (rateLimitsBuilder_ != null) { - return rateLimitsBuilder_.getMessageOrBuilder(); - } else { - return rateLimits_ == null - ? com.google.cloud.tasks.v2.RateLimits.getDefaultInstance() - : rateLimits_; - } - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are
-     * related because they both control task attempts. However they control task
-     * attempts in different ways:
-     * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * The queue's actual dispatch rate is the result of:
-     * * Number of tasks in the queue
-     * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits],
-     *   [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the
-     *   [queue's state][google.cloud.tasks.v2.Queue.state].
-     * * System throttling due to `429` (Too Many Requests) or `503` (Service
-     *   Unavailable) responses from the worker, high error rates, or to smooth
-     *   sudden large traffic spikes.
-     * 
- * - * .google.cloud.tasks.v2.RateLimits rate_limits = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.RateLimits, - com.google.cloud.tasks.v2.RateLimits.Builder, - com.google.cloud.tasks.v2.RateLimitsOrBuilder> - getRateLimitsFieldBuilder() { - if (rateLimitsBuilder_ == null) { - rateLimitsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.RateLimits, - com.google.cloud.tasks.v2.RateLimits.Builder, - com.google.cloud.tasks.v2.RateLimitsOrBuilder>( - getRateLimits(), getParentForChildren(), isClean()); - rateLimits_ = null; - } - return rateLimitsBuilder_; - } - - private com.google.cloud.tasks.v2.RetryConfig retryConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.RetryConfig, - com.google.cloud.tasks.v2.RetryConfig.Builder, - com.google.cloud.tasks.v2.RetryConfigOrBuilder> - retryConfigBuilder_; - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2.RetryConfig retry_config = 4; - * - * @return Whether the retryConfig field is set. - */ - public boolean hasRetryConfig() { - return retryConfigBuilder_ != null || retryConfig_ != null; - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2.RetryConfig retry_config = 4; - * - * @return The retryConfig. - */ - public com.google.cloud.tasks.v2.RetryConfig getRetryConfig() { - if (retryConfigBuilder_ == null) { - return retryConfig_ == null - ? com.google.cloud.tasks.v2.RetryConfig.getDefaultInstance() - : retryConfig_; - } else { - return retryConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2.RetryConfig retry_config = 4; - */ - public Builder setRetryConfig(com.google.cloud.tasks.v2.RetryConfig value) { - if (retryConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - retryConfig_ = value; - onChanged(); - } else { - retryConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2.RetryConfig retry_config = 4; - */ - public Builder setRetryConfig(com.google.cloud.tasks.v2.RetryConfig.Builder builderForValue) { - if (retryConfigBuilder_ == null) { - retryConfig_ = builderForValue.build(); - onChanged(); - } else { - retryConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2.RetryConfig retry_config = 4; - */ - public Builder mergeRetryConfig(com.google.cloud.tasks.v2.RetryConfig value) { - if (retryConfigBuilder_ == null) { - if (retryConfig_ != null) { - retryConfig_ = - com.google.cloud.tasks.v2.RetryConfig.newBuilder(retryConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - retryConfig_ = value; - } - onChanged(); - } else { - retryConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2.RetryConfig retry_config = 4; - */ - public Builder clearRetryConfig() { - if (retryConfigBuilder_ == null) { - retryConfig_ = null; - onChanged(); - } else { - retryConfig_ = null; - retryConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2.RetryConfig retry_config = 4; - */ - public com.google.cloud.tasks.v2.RetryConfig.Builder getRetryConfigBuilder() { - - onChanged(); - return getRetryConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2.RetryConfig retry_config = 4; - */ - public com.google.cloud.tasks.v2.RetryConfigOrBuilder getRetryConfigOrBuilder() { - if (retryConfigBuilder_ != null) { - return retryConfigBuilder_.getMessageOrBuilder(); - } else { - return retryConfig_ == null - ? com.google.cloud.tasks.v2.RetryConfig.getDefaultInstance() - : retryConfig_; - } - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2.RetryConfig retry_config = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.RetryConfig, - com.google.cloud.tasks.v2.RetryConfig.Builder, - com.google.cloud.tasks.v2.RetryConfigOrBuilder> - getRetryConfigFieldBuilder() { - if (retryConfigBuilder_ == null) { - retryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.RetryConfig, - com.google.cloud.tasks.v2.RetryConfig.Builder, - com.google.cloud.tasks.v2.RetryConfigOrBuilder>( - getRetryConfig(), getParentForChildren(), isClean()); - retryConfig_ = null; - } - return retryConfigBuilder_; - } - - private int state_ = 0; - /** - * - * - *
-     * Output only. The state of the queue.
-     * `state` can only be changed by called
-     * [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue],
-     * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue], or uploading
-     * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-     * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] cannot be used to change `state`.
-     * 
- * - * .google.cloud.tasks.v2.Queue.State state = 5; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. The state of the queue.
-     * `state` can only be changed by called
-     * [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue],
-     * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue], or uploading
-     * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-     * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] cannot be used to change `state`.
-     * 
- * - * .google.cloud.tasks.v2.Queue.State state = 5; - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The state of the queue.
-     * `state` can only be changed by called
-     * [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue],
-     * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue], or uploading
-     * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-     * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] cannot be used to change `state`.
-     * 
- * - * .google.cloud.tasks.v2.Queue.State state = 5; - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.Queue.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2.Queue.State result = - com.google.cloud.tasks.v2.Queue.State.valueOf(state_); - return result == null ? com.google.cloud.tasks.v2.Queue.State.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Output only. The state of the queue.
-     * `state` can only be changed by called
-     * [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue],
-     * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue], or uploading
-     * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-     * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] cannot be used to change `state`.
-     * 
- * - * .google.cloud.tasks.v2.Queue.State state = 5; - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.tasks.v2.Queue.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The state of the queue.
-     * `state` can only be changed by called
-     * [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue],
-     * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue], or uploading
-     * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-     * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] cannot be used to change `state`.
-     * 
- * - * .google.cloud.tasks.v2.Queue.State state = 5; - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp purgeTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - purgeTimeBuilder_; - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 6; - * - * @return Whether the purgeTime field is set. - */ - public boolean hasPurgeTime() { - return purgeTimeBuilder_ != null || purgeTime_ != null; - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 6; - * - * @return The purgeTime. - */ - public com.google.protobuf.Timestamp getPurgeTime() { - if (purgeTimeBuilder_ == null) { - return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; - } else { - return purgeTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 6; - */ - public Builder setPurgeTime(com.google.protobuf.Timestamp value) { - if (purgeTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - purgeTime_ = value; - onChanged(); - } else { - purgeTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 6; - */ - public Builder setPurgeTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (purgeTimeBuilder_ == null) { - purgeTime_ = builderForValue.build(); - onChanged(); - } else { - purgeTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 6; - */ - public Builder mergePurgeTime(com.google.protobuf.Timestamp value) { - if (purgeTimeBuilder_ == null) { - if (purgeTime_ != null) { - purgeTime_ = - com.google.protobuf.Timestamp.newBuilder(purgeTime_).mergeFrom(value).buildPartial(); - } else { - purgeTime_ = value; - } - onChanged(); - } else { - purgeTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 6; - */ - public Builder clearPurgeTime() { - if (purgeTimeBuilder_ == null) { - purgeTime_ = null; - onChanged(); - } else { - purgeTime_ = null; - purgeTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 6; - */ - public com.google.protobuf.Timestamp.Builder getPurgeTimeBuilder() { - - onChanged(); - return getPurgeTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 6; - */ - public com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder() { - if (purgeTimeBuilder_ != null) { - return purgeTimeBuilder_.getMessageOrBuilder(); - } else { - return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; - } - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getPurgeTimeFieldBuilder() { - if (purgeTimeBuilder_ == null) { - purgeTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getPurgeTime(), getParentForChildren(), isClean()); - purgeTime_ = null; - } - return purgeTimeBuilder_; - } - - private com.google.cloud.tasks.v2.StackdriverLoggingConfig stackdriverLoggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.StackdriverLoggingConfig, - com.google.cloud.tasks.v2.StackdriverLoggingConfig.Builder, - com.google.cloud.tasks.v2.StackdriverLoggingConfigOrBuilder> - stackdriverLoggingConfigBuilder_; - /** - * - * - *
-     * Configuration options for writing logs to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-     * field is unset, then no logs are written.
-     * 
- * - * .google.cloud.tasks.v2.StackdriverLoggingConfig stackdriver_logging_config = 9; - * - * @return Whether the stackdriverLoggingConfig field is set. - */ - public boolean hasStackdriverLoggingConfig() { - return stackdriverLoggingConfigBuilder_ != null || stackdriverLoggingConfig_ != null; - } - /** - * - * - *
-     * Configuration options for writing logs to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-     * field is unset, then no logs are written.
-     * 
- * - * .google.cloud.tasks.v2.StackdriverLoggingConfig stackdriver_logging_config = 9; - * - * @return The stackdriverLoggingConfig. - */ - public com.google.cloud.tasks.v2.StackdriverLoggingConfig getStackdriverLoggingConfig() { - if (stackdriverLoggingConfigBuilder_ == null) { - return stackdriverLoggingConfig_ == null - ? com.google.cloud.tasks.v2.StackdriverLoggingConfig.getDefaultInstance() - : stackdriverLoggingConfig_; - } else { - return stackdriverLoggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration options for writing logs to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-     * field is unset, then no logs are written.
-     * 
- * - * .google.cloud.tasks.v2.StackdriverLoggingConfig stackdriver_logging_config = 9; - */ - public Builder setStackdriverLoggingConfig( - com.google.cloud.tasks.v2.StackdriverLoggingConfig value) { - if (stackdriverLoggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stackdriverLoggingConfig_ = value; - onChanged(); - } else { - stackdriverLoggingConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration options for writing logs to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-     * field is unset, then no logs are written.
-     * 
- * - * .google.cloud.tasks.v2.StackdriverLoggingConfig stackdriver_logging_config = 9; - */ - public Builder setStackdriverLoggingConfig( - com.google.cloud.tasks.v2.StackdriverLoggingConfig.Builder builderForValue) { - if (stackdriverLoggingConfigBuilder_ == null) { - stackdriverLoggingConfig_ = builderForValue.build(); - onChanged(); - } else { - stackdriverLoggingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration options for writing logs to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-     * field is unset, then no logs are written.
-     * 
- * - * .google.cloud.tasks.v2.StackdriverLoggingConfig stackdriver_logging_config = 9; - */ - public Builder mergeStackdriverLoggingConfig( - com.google.cloud.tasks.v2.StackdriverLoggingConfig value) { - if (stackdriverLoggingConfigBuilder_ == null) { - if (stackdriverLoggingConfig_ != null) { - stackdriverLoggingConfig_ = - com.google.cloud.tasks.v2.StackdriverLoggingConfig.newBuilder( - stackdriverLoggingConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - stackdriverLoggingConfig_ = value; - } - onChanged(); - } else { - stackdriverLoggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration options for writing logs to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-     * field is unset, then no logs are written.
-     * 
- * - * .google.cloud.tasks.v2.StackdriverLoggingConfig stackdriver_logging_config = 9; - */ - public Builder clearStackdriverLoggingConfig() { - if (stackdriverLoggingConfigBuilder_ == null) { - stackdriverLoggingConfig_ = null; - onChanged(); - } else { - stackdriverLoggingConfig_ = null; - stackdriverLoggingConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration options for writing logs to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-     * field is unset, then no logs are written.
-     * 
- * - * .google.cloud.tasks.v2.StackdriverLoggingConfig stackdriver_logging_config = 9; - */ - public com.google.cloud.tasks.v2.StackdriverLoggingConfig.Builder - getStackdriverLoggingConfigBuilder() { - - onChanged(); - return getStackdriverLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration options for writing logs to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-     * field is unset, then no logs are written.
-     * 
- * - * .google.cloud.tasks.v2.StackdriverLoggingConfig stackdriver_logging_config = 9; - */ - public com.google.cloud.tasks.v2.StackdriverLoggingConfigOrBuilder - getStackdriverLoggingConfigOrBuilder() { - if (stackdriverLoggingConfigBuilder_ != null) { - return stackdriverLoggingConfigBuilder_.getMessageOrBuilder(); - } else { - return stackdriverLoggingConfig_ == null - ? com.google.cloud.tasks.v2.StackdriverLoggingConfig.getDefaultInstance() - : stackdriverLoggingConfig_; - } - } - /** - * - * - *
-     * Configuration options for writing logs to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-     * field is unset, then no logs are written.
-     * 
- * - * .google.cloud.tasks.v2.StackdriverLoggingConfig stackdriver_logging_config = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.StackdriverLoggingConfig, - com.google.cloud.tasks.v2.StackdriverLoggingConfig.Builder, - com.google.cloud.tasks.v2.StackdriverLoggingConfigOrBuilder> - getStackdriverLoggingConfigFieldBuilder() { - if (stackdriverLoggingConfigBuilder_ == null) { - stackdriverLoggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.StackdriverLoggingConfig, - com.google.cloud.tasks.v2.StackdriverLoggingConfig.Builder, - com.google.cloud.tasks.v2.StackdriverLoggingConfigOrBuilder>( - getStackdriverLoggingConfig(), getParentForChildren(), isClean()); - stackdriverLoggingConfig_ = null; - } - return stackdriverLoggingConfigBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.Queue) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.Queue) - private static final com.google.cloud.tasks.v2.Queue DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.Queue(); - } - - public static com.google.cloud.tasks.v2.Queue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Queue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.Queue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueName.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueName.java deleted file mode 100644 index 4e6f4c60..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueName.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Copyright 2022 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.v2; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class QueueName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_QUEUE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/queues/{queue}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String queue; - - @Deprecated - protected QueueName() { - project = null; - location = null; - queue = null; - } - - private QueueName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - queue = Preconditions.checkNotNull(builder.getQueue()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getQueue() { - return queue; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static QueueName of(String project, String location, String queue) { - return newBuilder().setProject(project).setLocation(location).setQueue(queue).build(); - } - - public static String format(String project, String location, String queue) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setQueue(queue) - .build() - .toString(); - } - - public static QueueName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_QUEUE.validatedMatch( - formattedString, "QueueName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("queue")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (QueueName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_QUEUE.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - if (queue != null) { - fieldMapBuilder.put("queue", queue); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_QUEUE.instantiate( - "project", project, "location", location, "queue", queue); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - QueueName that = ((QueueName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.queue, that.queue); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - h *= 1000003; - h ^= Objects.hashCode(queue); - return h; - } - - /** Builder for projects/{project}/locations/{location}/queues/{queue}. */ - public static class Builder { - private String project; - private String location; - private String queue; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getQueue() { - return queue; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setQueue(String queue) { - this.queue = queue; - return this; - } - - private Builder(QueueName queueName) { - this.project = queueName.project; - this.location = queueName.location; - this.queue = queueName.queue; - } - - public QueueName build() { - return new QueueName(this); - } - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueOrBuilder.java deleted file mode 100644 index b88abb66..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueOrBuilder.java +++ /dev/null @@ -1,423 +0,0 @@ -/* - * Copyright 2020 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/v2/queue.proto - -package com.google.cloud.tasks.v2; - -public interface QueueOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.Queue) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue],
-   * after which it becomes output only.
-   * The queue name.
-   * The queue name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the queue's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue],
-   * after which it becomes output only.
-   * The queue name.
-   * The queue name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the queue's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Overrides for
-   * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-   * These settings apply only to
-   * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue.
-   * [Http tasks][google.cloud.tasks.v2.HttpRequest] are not affected.
-   * If set, `app_engine_routing_override` is used for all
-   * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the
-   * setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2; - * - * @return Whether the appEngineRoutingOverride field is set. - */ - boolean hasAppEngineRoutingOverride(); - /** - * - * - *
-   * Overrides for
-   * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-   * These settings apply only to
-   * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue.
-   * [Http tasks][google.cloud.tasks.v2.HttpRequest] are not affected.
-   * If set, `app_engine_routing_override` is used for all
-   * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the
-   * setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2; - * - * @return The appEngineRoutingOverride. - */ - com.google.cloud.tasks.v2.AppEngineRouting getAppEngineRoutingOverride(); - /** - * - * - *
-   * Overrides for
-   * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-   * These settings apply only to
-   * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue.
-   * [Http tasks][google.cloud.tasks.v2.HttpRequest] are not affected.
-   * If set, `app_engine_routing_override` is used for all
-   * [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the
-   * setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2.AppEngineRouting app_engine_routing_override = 2; - */ - com.google.cloud.tasks.v2.AppEngineRoutingOrBuilder getAppEngineRoutingOverrideOrBuilder(); - - /** - * - * - *
-   * Rate limits for task dispatches.
-   * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are
-   * related because they both control task attempts. However they control task
-   * attempts in different ways:
-   * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of
-   *   dispatches from a queue (i.e. all traffic dispatched from the
-   *   queue, regardless of whether the dispatch is from a first
-   *   attempt or a retry).
-   * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to
-   *   particular a task after its first attempt fails. That is,
-   *   [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the
-   *   second attempt, third attempt, etc).
-   * The queue's actual dispatch rate is the result of:
-   * * Number of tasks in the queue
-   * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits],
-   *   [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the
-   *   [queue's state][google.cloud.tasks.v2.Queue.state].
-   * * System throttling due to `429` (Too Many Requests) or `503` (Service
-   *   Unavailable) responses from the worker, high error rates, or to smooth
-   *   sudden large traffic spikes.
-   * 
- * - * .google.cloud.tasks.v2.RateLimits rate_limits = 3; - * - * @return Whether the rateLimits field is set. - */ - boolean hasRateLimits(); - /** - * - * - *
-   * Rate limits for task dispatches.
-   * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are
-   * related because they both control task attempts. However they control task
-   * attempts in different ways:
-   * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of
-   *   dispatches from a queue (i.e. all traffic dispatched from the
-   *   queue, regardless of whether the dispatch is from a first
-   *   attempt or a retry).
-   * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to
-   *   particular a task after its first attempt fails. That is,
-   *   [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the
-   *   second attempt, third attempt, etc).
-   * The queue's actual dispatch rate is the result of:
-   * * Number of tasks in the queue
-   * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits],
-   *   [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the
-   *   [queue's state][google.cloud.tasks.v2.Queue.state].
-   * * System throttling due to `429` (Too Many Requests) or `503` (Service
-   *   Unavailable) responses from the worker, high error rates, or to smooth
-   *   sudden large traffic spikes.
-   * 
- * - * .google.cloud.tasks.v2.RateLimits rate_limits = 3; - * - * @return The rateLimits. - */ - com.google.cloud.tasks.v2.RateLimits getRateLimits(); - /** - * - * - *
-   * Rate limits for task dispatches.
-   * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are
-   * related because they both control task attempts. However they control task
-   * attempts in different ways:
-   * * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of
-   *   dispatches from a queue (i.e. all traffic dispatched from the
-   *   queue, regardless of whether the dispatch is from a first
-   *   attempt or a retry).
-   * * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to
-   *   particular a task after its first attempt fails. That is,
-   *   [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the
-   *   second attempt, third attempt, etc).
-   * The queue's actual dispatch rate is the result of:
-   * * Number of tasks in the queue
-   * * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits],
-   *   [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the
-   *   [queue's state][google.cloud.tasks.v2.Queue.state].
-   * * System throttling due to `429` (Too Many Requests) or `503` (Service
-   *   Unavailable) responses from the worker, high error rates, or to smooth
-   *   sudden large traffic spikes.
-   * 
- * - * .google.cloud.tasks.v2.RateLimits rate_limits = 3; - */ - com.google.cloud.tasks.v2.RateLimitsOrBuilder getRateLimitsOrBuilder(); - - /** - * - * - *
-   * Settings that determine the retry behavior.
-   * * For tasks created using Cloud Tasks: the queue-level retry settings
-   *   apply to all tasks in the queue that were created using Cloud Tasks.
-   *   Retry settings cannot be set on individual tasks.
-   * * For tasks created using the App Engine SDK: the queue-level retry
-   *   settings apply to all tasks in the queue which do not have retry settings
-   *   explicitly set on the task and were created by the App Engine SDK. See
-   *   [App Engine
-   *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-   * 
- * - * .google.cloud.tasks.v2.RetryConfig retry_config = 4; - * - * @return Whether the retryConfig field is set. - */ - boolean hasRetryConfig(); - /** - * - * - *
-   * Settings that determine the retry behavior.
-   * * For tasks created using Cloud Tasks: the queue-level retry settings
-   *   apply to all tasks in the queue that were created using Cloud Tasks.
-   *   Retry settings cannot be set on individual tasks.
-   * * For tasks created using the App Engine SDK: the queue-level retry
-   *   settings apply to all tasks in the queue which do not have retry settings
-   *   explicitly set on the task and were created by the App Engine SDK. See
-   *   [App Engine
-   *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-   * 
- * - * .google.cloud.tasks.v2.RetryConfig retry_config = 4; - * - * @return The retryConfig. - */ - com.google.cloud.tasks.v2.RetryConfig getRetryConfig(); - /** - * - * - *
-   * Settings that determine the retry behavior.
-   * * For tasks created using Cloud Tasks: the queue-level retry settings
-   *   apply to all tasks in the queue that were created using Cloud Tasks.
-   *   Retry settings cannot be set on individual tasks.
-   * * For tasks created using the App Engine SDK: the queue-level retry
-   *   settings apply to all tasks in the queue which do not have retry settings
-   *   explicitly set on the task and were created by the App Engine SDK. See
-   *   [App Engine
-   *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-   * 
- * - * .google.cloud.tasks.v2.RetryConfig retry_config = 4; - */ - com.google.cloud.tasks.v2.RetryConfigOrBuilder getRetryConfigOrBuilder(); - - /** - * - * - *
-   * Output only. The state of the queue.
-   * `state` can only be changed by called
-   * [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue],
-   * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue], or uploading
-   * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-   * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] cannot be used to change `state`.
-   * 
- * - * .google.cloud.tasks.v2.Queue.State state = 5; - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Output only. The state of the queue.
-   * `state` can only be changed by called
-   * [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue],
-   * [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue], or uploading
-   * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-   * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] cannot be used to change `state`.
-   * 
- * - * .google.cloud.tasks.v2.Queue.State state = 5; - * - * @return The state. - */ - com.google.cloud.tasks.v2.Queue.State getState(); - - /** - * - * - *
-   * Output only. The last time this queue was purged.
-   * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time
-   * were purged.
-   * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the
-   * [App Engine Task Queue SDK, or the Cloud
-   * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-   * Purge time will be truncated to the nearest microsecond. Purge
-   * time will be unset if the queue has never been purged.
-   * 
- * - * .google.protobuf.Timestamp purge_time = 6; - * - * @return Whether the purgeTime field is set. - */ - boolean hasPurgeTime(); - /** - * - * - *
-   * Output only. The last time this queue was purged.
-   * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time
-   * were purged.
-   * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the
-   * [App Engine Task Queue SDK, or the Cloud
-   * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-   * Purge time will be truncated to the nearest microsecond. Purge
-   * time will be unset if the queue has never been purged.
-   * 
- * - * .google.protobuf.Timestamp purge_time = 6; - * - * @return The purgeTime. - */ - com.google.protobuf.Timestamp getPurgeTime(); - /** - * - * - *
-   * Output only. The last time this queue was purged.
-   * All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time
-   * were purged.
-   * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the
-   * [App Engine Task Queue SDK, or the Cloud
-   * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-   * Purge time will be truncated to the nearest microsecond. Purge
-   * time will be unset if the queue has never been purged.
-   * 
- * - * .google.protobuf.Timestamp purge_time = 6; - */ - com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder(); - - /** - * - * - *
-   * Configuration options for writing logs to
-   * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-   * field is unset, then no logs are written.
-   * 
- * - * .google.cloud.tasks.v2.StackdriverLoggingConfig stackdriver_logging_config = 9; - * - * @return Whether the stackdriverLoggingConfig field is set. - */ - boolean hasStackdriverLoggingConfig(); - /** - * - * - *
-   * Configuration options for writing logs to
-   * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-   * field is unset, then no logs are written.
-   * 
- * - * .google.cloud.tasks.v2.StackdriverLoggingConfig stackdriver_logging_config = 9; - * - * @return The stackdriverLoggingConfig. - */ - com.google.cloud.tasks.v2.StackdriverLoggingConfig getStackdriverLoggingConfig(); - /** - * - * - *
-   * Configuration options for writing logs to
-   * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-   * field is unset, then no logs are written.
-   * 
- * - * .google.cloud.tasks.v2.StackdriverLoggingConfig stackdriver_logging_config = 9; - */ - com.google.cloud.tasks.v2.StackdriverLoggingConfigOrBuilder - getStackdriverLoggingConfigOrBuilder(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueProto.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueProto.java deleted file mode 100644 index db5e00c6..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueProto.java +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright 2020 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/v2/queue.proto - -package com.google.cloud.tasks.v2; - -public final class QueueProto { - private QueueProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_Queue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_Queue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_RateLimits_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_RateLimits_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_RetryConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_RetryConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_StackdriverLoggingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_StackdriverLoggingConfig_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n!google/cloud/tasks/v2/queue.proto\022\025goo" - + "gle.cloud.tasks.v2\032\031google/api/resource." - + "proto\032\"google/cloud/tasks/v2/target.prot" - + "o\032\036google/protobuf/duration.proto\032\037googl" - + "e/protobuf/timestamp.proto\"\262\004\n\005Queue\022\014\n\004" - + "name\030\001 \001(\t\022L\n\033app_engine_routing_overrid" - + "e\030\002 \001(\0132\'.google.cloud.tasks.v2.AppEngin" - + "eRouting\0226\n\013rate_limits\030\003 \001(\0132!.google.c" - + "loud.tasks.v2.RateLimits\0228\n\014retry_config" - + "\030\004 \001(\0132\".google.cloud.tasks.v2.RetryConf" - + "ig\0221\n\005state\030\005 \001(\0162\".google.cloud.tasks.v" - + "2.Queue.State\022.\n\npurge_time\030\006 \001(\0132\032.goog" - + "le.protobuf.Timestamp\022S\n\032stackdriver_log" - + "ging_config\030\t \001(\0132/.google.cloud.tasks.v" - + "2.StackdriverLoggingConfig\"E\n\005State\022\025\n\021S" - + "TATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\n\n\006PAUSE" - + "D\020\002\022\014\n\010DISABLED\020\003:\\\352AY\n\037cloudtasks.googl" - + "eapis.com/Queue\0226projects/{project}/loca" - + "tions/{location}/queues/{queue}\"j\n\nRateL" - + "imits\022!\n\031max_dispatches_per_second\030\001 \001(\001" - + "\022\026\n\016max_burst_size\030\002 \001(\005\022!\n\031max_concurre" - + "nt_dispatches\030\003 \001(\005\"\321\001\n\013RetryConfig\022\024\n\014m" - + "ax_attempts\030\001 \001(\005\0225\n\022max_retry_duration\030" - + "\002 \001(\0132\031.google.protobuf.Duration\022.\n\013min_" - + "backoff\030\003 \001(\0132\031.google.protobuf.Duration" - + "\022.\n\013max_backoff\030\004 \001(\0132\031.google.protobuf." - + "Duration\022\025\n\rmax_doublings\030\005 \001(\005\"2\n\030Stack" - + "driverLoggingConfig\022\026\n\016sampling_ratio\030\001 " - + "\001(\001Be\n\031com.google.cloud.tasks.v2B\nQueueP" - + "rotoP\001Z:google.golang.org/genproto/googl" - + "eapis/cloud/tasks/v2;tasksb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.tasks.v2.TargetProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_tasks_v2_Queue_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_tasks_v2_Queue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_Queue_descriptor, - new java.lang.String[] { - "Name", - "AppEngineRoutingOverride", - "RateLimits", - "RetryConfig", - "State", - "PurgeTime", - "StackdriverLoggingConfig", - }); - internal_static_google_cloud_tasks_v2_RateLimits_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_tasks_v2_RateLimits_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_RateLimits_descriptor, - new java.lang.String[] { - "MaxDispatchesPerSecond", "MaxBurstSize", "MaxConcurrentDispatches", - }); - internal_static_google_cloud_tasks_v2_RetryConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_tasks_v2_RetryConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_RetryConfig_descriptor, - new java.lang.String[] { - "MaxAttempts", "MaxRetryDuration", "MinBackoff", "MaxBackoff", "MaxDoublings", - }); - internal_static_google_cloud_tasks_v2_StackdriverLoggingConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_tasks_v2_StackdriverLoggingConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_StackdriverLoggingConfig_descriptor, - new java.lang.String[] { - "SamplingRatio", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.tasks.v2.TargetProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RateLimits.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RateLimits.java deleted file mode 100644 index fe6fd530..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RateLimits.java +++ /dev/null @@ -1,885 +0,0 @@ -/* - * Copyright 2020 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/v2/queue.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * Rate limits.
- * This message determines the maximum rate that tasks can be dispatched by a
- * queue, regardless of whether the dispatch is a first task attempt or a retry.
- * Note: The debugging command, [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask], will run a task
- * even if the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.RateLimits} - */ -public final class RateLimits extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.RateLimits) - RateLimitsOrBuilder { - private static final long serialVersionUID = 0L; - // Use RateLimits.newBuilder() to construct. - private RateLimits(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RateLimits() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RateLimits(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.QueueProto - .internal_static_google_cloud_tasks_v2_RateLimits_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.QueueProto - .internal_static_google_cloud_tasks_v2_RateLimits_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.RateLimits.class, - com.google.cloud.tasks.v2.RateLimits.Builder.class); - } - - public static final int MAX_DISPATCHES_PER_SECOND_FIELD_NUMBER = 1; - private double maxDispatchesPerSecond_; - /** - * - * - *
-   * The maximum rate at which tasks are dispatched from this queue.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * * The maximum allowed value is 500.
-   * This field has the same meaning as
-   * [rate in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate).
-   * 
- * - * double max_dispatches_per_second = 1; - * - * @return The maxDispatchesPerSecond. - */ - @java.lang.Override - public double getMaxDispatchesPerSecond() { - return maxDispatchesPerSecond_; - } - - public static final int MAX_BURST_SIZE_FIELD_NUMBER = 2; - private int maxBurstSize_; - /** - * - * - *
-   * Output only. The max burst size.
-   * Max burst size limits how fast tasks in queue are processed when
-   * many tasks are in the queue and the rate is high. This field
-   * allows the queue to have a high rate so processing starts shortly
-   * after a task is enqueued, but still limits resource usage when
-   * many tasks are enqueued in a short period of time.
-   * The [token bucket](https://wikipedia.org/wiki/Token_Bucket)
-   * algorithm is used to control the rate of task dispatches. Each
-   * queue has a token bucket that holds tokens, up to the maximum
-   * specified by `max_burst_size`. Each time a task is dispatched, a
-   * token is removed from the bucket. Tasks will be dispatched until
-   * the queue's bucket runs out of tokens. The bucket will be
-   * continuously refilled with new tokens based on
-   * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second].
-   * Cloud Tasks will pick the value of `max_burst_size` based on the
-   * value of
-   * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second].
-   * For queues that were created or updated using
-   * `queue.yaml/xml`, `max_burst_size` is equal to
-   * [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
-   * Since `max_burst_size` is output only, if
-   * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] is called on a queue
-   * created by `queue.yaml/xml`, `max_burst_size` will be reset based
-   * on the value of
-   * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second],
-   * regardless of whether
-   * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second]
-   * is updated.
-   * 
- * - * int32 max_burst_size = 2; - * - * @return The maxBurstSize. - */ - @java.lang.Override - public int getMaxBurstSize() { - return maxBurstSize_; - } - - public static final int MAX_CONCURRENT_DISPATCHES_FIELD_NUMBER = 3; - private int maxConcurrentDispatches_; - /** - * - * - *
-   * The maximum number of concurrent tasks that Cloud Tasks allows
-   * to be dispatched for this queue. After this threshold has been
-   * reached, Cloud Tasks stops dispatching tasks until the number of
-   * concurrent requests decreases.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * The maximum allowed value is 5,000.
-   * This field has the same meaning as
-   * [max_concurrent_requests in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests).
-   * 
- * - * int32 max_concurrent_dispatches = 3; - * - * @return The maxConcurrentDispatches. - */ - @java.lang.Override - public int getMaxConcurrentDispatches() { - return maxConcurrentDispatches_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (java.lang.Double.doubleToRawLongBits(maxDispatchesPerSecond_) != 0) { - output.writeDouble(1, maxDispatchesPerSecond_); - } - if (maxBurstSize_ != 0) { - output.writeInt32(2, maxBurstSize_); - } - if (maxConcurrentDispatches_ != 0) { - output.writeInt32(3, maxConcurrentDispatches_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(maxDispatchesPerSecond_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, maxDispatchesPerSecond_); - } - if (maxBurstSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxBurstSize_); - } - if (maxConcurrentDispatches_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxConcurrentDispatches_); - } - size += 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.v2.RateLimits)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.RateLimits other = (com.google.cloud.tasks.v2.RateLimits) obj; - - if (java.lang.Double.doubleToLongBits(getMaxDispatchesPerSecond()) - != java.lang.Double.doubleToLongBits(other.getMaxDispatchesPerSecond())) return false; - if (getMaxBurstSize() != other.getMaxBurstSize()) return false; - if (getMaxConcurrentDispatches() != other.getMaxConcurrentDispatches()) return false; - if (!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) + MAX_DISPATCHES_PER_SECOND_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMaxDispatchesPerSecond())); - hash = (37 * hash) + MAX_BURST_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getMaxBurstSize(); - hash = (37 * hash) + MAX_CONCURRENT_DISPATCHES_FIELD_NUMBER; - hash = (53 * hash) + getMaxConcurrentDispatches(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.RateLimits parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.RateLimits parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.RateLimits parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.RateLimits parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.RateLimits parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.RateLimits parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.RateLimits parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.RateLimits parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.RateLimits parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.RateLimits parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.RateLimits parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.RateLimits parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.RateLimits prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Rate limits.
-   * This message determines the maximum rate that tasks can be dispatched by a
-   * queue, regardless of whether the dispatch is a first task attempt or a retry.
-   * Note: The debugging command, [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask], will run a task
-   * even if the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.RateLimits} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.RateLimits) - com.google.cloud.tasks.v2.RateLimitsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.QueueProto - .internal_static_google_cloud_tasks_v2_RateLimits_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.QueueProto - .internal_static_google_cloud_tasks_v2_RateLimits_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.RateLimits.class, - com.google.cloud.tasks.v2.RateLimits.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.RateLimits.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - maxDispatchesPerSecond_ = 0D; - - maxBurstSize_ = 0; - - maxConcurrentDispatches_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.QueueProto - .internal_static_google_cloud_tasks_v2_RateLimits_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.RateLimits getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.RateLimits.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.RateLimits build() { - com.google.cloud.tasks.v2.RateLimits result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.RateLimits buildPartial() { - com.google.cloud.tasks.v2.RateLimits result = new com.google.cloud.tasks.v2.RateLimits(this); - result.maxDispatchesPerSecond_ = maxDispatchesPerSecond_; - result.maxBurstSize_ = maxBurstSize_; - result.maxConcurrentDispatches_ = maxConcurrentDispatches_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.RateLimits) { - return mergeFrom((com.google.cloud.tasks.v2.RateLimits) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.RateLimits other) { - if (other == com.google.cloud.tasks.v2.RateLimits.getDefaultInstance()) return this; - if (other.getMaxDispatchesPerSecond() != 0D) { - setMaxDispatchesPerSecond(other.getMaxDispatchesPerSecond()); - } - if (other.getMaxBurstSize() != 0) { - setMaxBurstSize(other.getMaxBurstSize()); - } - if (other.getMaxConcurrentDispatches() != 0) { - setMaxConcurrentDispatches(other.getMaxConcurrentDispatches()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 9: - { - maxDispatchesPerSecond_ = input.readDouble(); - - break; - } // case 9 - case 16: - { - maxBurstSize_ = input.readInt32(); - - break; - } // case 16 - case 24: - { - maxConcurrentDispatches_ = input.readInt32(); - - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private double maxDispatchesPerSecond_; - /** - * - * - *
-     * The maximum rate at which tasks are dispatched from this queue.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * * The maximum allowed value is 500.
-     * This field has the same meaning as
-     * [rate in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate).
-     * 
- * - * double max_dispatches_per_second = 1; - * - * @return The maxDispatchesPerSecond. - */ - @java.lang.Override - public double getMaxDispatchesPerSecond() { - return maxDispatchesPerSecond_; - } - /** - * - * - *
-     * The maximum rate at which tasks are dispatched from this queue.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * * The maximum allowed value is 500.
-     * This field has the same meaning as
-     * [rate in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate).
-     * 
- * - * double max_dispatches_per_second = 1; - * - * @param value The maxDispatchesPerSecond to set. - * @return This builder for chaining. - */ - public Builder setMaxDispatchesPerSecond(double value) { - - maxDispatchesPerSecond_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum rate at which tasks are dispatched from this queue.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * * The maximum allowed value is 500.
-     * This field has the same meaning as
-     * [rate in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate).
-     * 
- * - * double max_dispatches_per_second = 1; - * - * @return This builder for chaining. - */ - public Builder clearMaxDispatchesPerSecond() { - - maxDispatchesPerSecond_ = 0D; - onChanged(); - return this; - } - - private int maxBurstSize_; - /** - * - * - *
-     * Output only. The max burst size.
-     * Max burst size limits how fast tasks in queue are processed when
-     * many tasks are in the queue and the rate is high. This field
-     * allows the queue to have a high rate so processing starts shortly
-     * after a task is enqueued, but still limits resource usage when
-     * many tasks are enqueued in a short period of time.
-     * The [token bucket](https://wikipedia.org/wiki/Token_Bucket)
-     * algorithm is used to control the rate of task dispatches. Each
-     * queue has a token bucket that holds tokens, up to the maximum
-     * specified by `max_burst_size`. Each time a task is dispatched, a
-     * token is removed from the bucket. Tasks will be dispatched until
-     * the queue's bucket runs out of tokens. The bucket will be
-     * continuously refilled with new tokens based on
-     * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second].
-     * Cloud Tasks will pick the value of `max_burst_size` based on the
-     * value of
-     * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second].
-     * For queues that were created or updated using
-     * `queue.yaml/xml`, `max_burst_size` is equal to
-     * [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
-     * Since `max_burst_size` is output only, if
-     * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] is called on a queue
-     * created by `queue.yaml/xml`, `max_burst_size` will be reset based
-     * on the value of
-     * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second],
-     * regardless of whether
-     * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second]
-     * is updated.
-     * 
- * - * int32 max_burst_size = 2; - * - * @return The maxBurstSize. - */ - @java.lang.Override - public int getMaxBurstSize() { - return maxBurstSize_; - } - /** - * - * - *
-     * Output only. The max burst size.
-     * Max burst size limits how fast tasks in queue are processed when
-     * many tasks are in the queue and the rate is high. This field
-     * allows the queue to have a high rate so processing starts shortly
-     * after a task is enqueued, but still limits resource usage when
-     * many tasks are enqueued in a short period of time.
-     * The [token bucket](https://wikipedia.org/wiki/Token_Bucket)
-     * algorithm is used to control the rate of task dispatches. Each
-     * queue has a token bucket that holds tokens, up to the maximum
-     * specified by `max_burst_size`. Each time a task is dispatched, a
-     * token is removed from the bucket. Tasks will be dispatched until
-     * the queue's bucket runs out of tokens. The bucket will be
-     * continuously refilled with new tokens based on
-     * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second].
-     * Cloud Tasks will pick the value of `max_burst_size` based on the
-     * value of
-     * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second].
-     * For queues that were created or updated using
-     * `queue.yaml/xml`, `max_burst_size` is equal to
-     * [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
-     * Since `max_burst_size` is output only, if
-     * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] is called on a queue
-     * created by `queue.yaml/xml`, `max_burst_size` will be reset based
-     * on the value of
-     * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second],
-     * regardless of whether
-     * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second]
-     * is updated.
-     * 
- * - * int32 max_burst_size = 2; - * - * @param value The maxBurstSize to set. - * @return This builder for chaining. - */ - public Builder setMaxBurstSize(int value) { - - maxBurstSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The max burst size.
-     * Max burst size limits how fast tasks in queue are processed when
-     * many tasks are in the queue and the rate is high. This field
-     * allows the queue to have a high rate so processing starts shortly
-     * after a task is enqueued, but still limits resource usage when
-     * many tasks are enqueued in a short period of time.
-     * The [token bucket](https://wikipedia.org/wiki/Token_Bucket)
-     * algorithm is used to control the rate of task dispatches. Each
-     * queue has a token bucket that holds tokens, up to the maximum
-     * specified by `max_burst_size`. Each time a task is dispatched, a
-     * token is removed from the bucket. Tasks will be dispatched until
-     * the queue's bucket runs out of tokens. The bucket will be
-     * continuously refilled with new tokens based on
-     * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second].
-     * Cloud Tasks will pick the value of `max_burst_size` based on the
-     * value of
-     * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second].
-     * For queues that were created or updated using
-     * `queue.yaml/xml`, `max_burst_size` is equal to
-     * [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
-     * Since `max_burst_size` is output only, if
-     * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] is called on a queue
-     * created by `queue.yaml/xml`, `max_burst_size` will be reset based
-     * on the value of
-     * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second],
-     * regardless of whether
-     * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second]
-     * is updated.
-     * 
- * - * int32 max_burst_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearMaxBurstSize() { - - maxBurstSize_ = 0; - onChanged(); - return this; - } - - private int maxConcurrentDispatches_; - /** - * - * - *
-     * The maximum number of concurrent tasks that Cloud Tasks allows
-     * to be dispatched for this queue. After this threshold has been
-     * reached, Cloud Tasks stops dispatching tasks until the number of
-     * concurrent requests decreases.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * The maximum allowed value is 5,000.
-     * This field has the same meaning as
-     * [max_concurrent_requests in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests).
-     * 
- * - * int32 max_concurrent_dispatches = 3; - * - * @return The maxConcurrentDispatches. - */ - @java.lang.Override - public int getMaxConcurrentDispatches() { - return maxConcurrentDispatches_; - } - /** - * - * - *
-     * The maximum number of concurrent tasks that Cloud Tasks allows
-     * to be dispatched for this queue. After this threshold has been
-     * reached, Cloud Tasks stops dispatching tasks until the number of
-     * concurrent requests decreases.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * The maximum allowed value is 5,000.
-     * This field has the same meaning as
-     * [max_concurrent_requests in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests).
-     * 
- * - * int32 max_concurrent_dispatches = 3; - * - * @param value The maxConcurrentDispatches to set. - * @return This builder for chaining. - */ - public Builder setMaxConcurrentDispatches(int value) { - - maxConcurrentDispatches_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of concurrent tasks that Cloud Tasks allows
-     * to be dispatched for this queue. After this threshold has been
-     * reached, Cloud Tasks stops dispatching tasks until the number of
-     * concurrent requests decreases.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * The maximum allowed value is 5,000.
-     * This field has the same meaning as
-     * [max_concurrent_requests in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests).
-     * 
- * - * int32 max_concurrent_dispatches = 3; - * - * @return This builder for chaining. - */ - public Builder clearMaxConcurrentDispatches() { - - maxConcurrentDispatches_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.RateLimits) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.RateLimits) - private static final com.google.cloud.tasks.v2.RateLimits DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.RateLimits(); - } - - public static com.google.cloud.tasks.v2.RateLimits getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RateLimits parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.RateLimits getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RateLimitsOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RateLimitsOrBuilder.java deleted file mode 100644 index 838dcb63..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RateLimitsOrBuilder.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2020 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/v2/queue.proto - -package com.google.cloud.tasks.v2; - -public interface RateLimitsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.RateLimits) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The maximum rate at which tasks are dispatched from this queue.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * * The maximum allowed value is 500.
-   * This field has the same meaning as
-   * [rate in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate).
-   * 
- * - * double max_dispatches_per_second = 1; - * - * @return The maxDispatchesPerSecond. - */ - double getMaxDispatchesPerSecond(); - - /** - * - * - *
-   * Output only. The max burst size.
-   * Max burst size limits how fast tasks in queue are processed when
-   * many tasks are in the queue and the rate is high. This field
-   * allows the queue to have a high rate so processing starts shortly
-   * after a task is enqueued, but still limits resource usage when
-   * many tasks are enqueued in a short period of time.
-   * The [token bucket](https://wikipedia.org/wiki/Token_Bucket)
-   * algorithm is used to control the rate of task dispatches. Each
-   * queue has a token bucket that holds tokens, up to the maximum
-   * specified by `max_burst_size`. Each time a task is dispatched, a
-   * token is removed from the bucket. Tasks will be dispatched until
-   * the queue's bucket runs out of tokens. The bucket will be
-   * continuously refilled with new tokens based on
-   * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second].
-   * Cloud Tasks will pick the value of `max_burst_size` based on the
-   * value of
-   * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second].
-   * For queues that were created or updated using
-   * `queue.yaml/xml`, `max_burst_size` is equal to
-   * [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
-   * Since `max_burst_size` is output only, if
-   * [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] is called on a queue
-   * created by `queue.yaml/xml`, `max_burst_size` will be reset based
-   * on the value of
-   * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second],
-   * regardless of whether
-   * [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second]
-   * is updated.
-   * 
- * - * int32 max_burst_size = 2; - * - * @return The maxBurstSize. - */ - int getMaxBurstSize(); - - /** - * - * - *
-   * The maximum number of concurrent tasks that Cloud Tasks allows
-   * to be dispatched for this queue. After this threshold has been
-   * reached, Cloud Tasks stops dispatching tasks until the number of
-   * concurrent requests decreases.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * The maximum allowed value is 5,000.
-   * This field has the same meaning as
-   * [max_concurrent_requests in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests).
-   * 
- * - * int32 max_concurrent_dispatches = 3; - * - * @return The maxConcurrentDispatches. - */ - int getMaxConcurrentDispatches(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequest.java deleted file mode 100644 index aef02304..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequest.java +++ /dev/null @@ -1,635 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * Request message for [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.ResumeQueueRequest} - */ -public final class ResumeQueueRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.ResumeQueueRequest) - ResumeQueueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResumeQueueRequest.newBuilder() to construct. - private ResumeQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ResumeQueueRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ResumeQueueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ResumeQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ResumeQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.ResumeQueueRequest.class, - com.google.cloud.tasks.v2.ResumeQueueRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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.v2.ResumeQueueRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.ResumeQueueRequest other = - (com.google.cloud.tasks.v2.ResumeQueueRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.ResumeQueueRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.ResumeQueueRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ResumeQueueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.ResumeQueueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ResumeQueueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.ResumeQueueRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ResumeQueueRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.ResumeQueueRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ResumeQueueRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.ResumeQueueRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.ResumeQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.ResumeQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.ResumeQueueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.ResumeQueueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.ResumeQueueRequest) - com.google.cloud.tasks.v2.ResumeQueueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ResumeQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ResumeQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.ResumeQueueRequest.class, - com.google.cloud.tasks.v2.ResumeQueueRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.ResumeQueueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_ResumeQueueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.ResumeQueueRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.ResumeQueueRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.ResumeQueueRequest build() { - com.google.cloud.tasks.v2.ResumeQueueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.ResumeQueueRequest buildPartial() { - com.google.cloud.tasks.v2.ResumeQueueRequest result = - new com.google.cloud.tasks.v2.ResumeQueueRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.ResumeQueueRequest) { - return mergeFrom((com.google.cloud.tasks.v2.ResumeQueueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.ResumeQueueRequest other) { - if (other == com.google.cloud.tasks.v2.ResumeQueueRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.ResumeQueueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.ResumeQueueRequest) - private static final com.google.cloud.tasks.v2.ResumeQueueRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.ResumeQueueRequest(); - } - - public static com.google.cloud.tasks.v2.ResumeQueueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResumeQueueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.ResumeQueueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequestOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequestOrBuilder.java deleted file mode 100644 index 0b0b032e..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -public interface ResumeQueueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.ResumeQueueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RetryConfig.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RetryConfig.java deleted file mode 100644 index ae3f5693..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RetryConfig.java +++ /dev/null @@ -1,1911 +0,0 @@ -/* - * Copyright 2020 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/v2/queue.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * Retry config.
- * These settings determine when a failed task attempt is retried.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.RetryConfig} - */ -public final class RetryConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.RetryConfig) - RetryConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use RetryConfig.newBuilder() to construct. - private RetryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RetryConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RetryConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.QueueProto - .internal_static_google_cloud_tasks_v2_RetryConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.QueueProto - .internal_static_google_cloud_tasks_v2_RetryConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.RetryConfig.class, - com.google.cloud.tasks.v2.RetryConfig.Builder.class); - } - - public static final int MAX_ATTEMPTS_FIELD_NUMBER = 1; - private int maxAttempts_; - /** - * - * - *
-   * Number of attempts per task.
-   * Cloud Tasks will attempt the task `max_attempts` times (that is, if the
-   * first attempt fails, then there will be `max_attempts - 1` retries). Must
-   * be >= -1.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * -1 indicates unlimited attempts.
-   * This field has the same meaning as
-   * [task_retry_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * int32 max_attempts = 1; - * - * @return The maxAttempts. - */ - @java.lang.Override - public int getMaxAttempts() { - return maxAttempts_; - } - - public static final int MAX_RETRY_DURATION_FIELD_NUMBER = 2; - private com.google.protobuf.Duration maxRetryDuration_; - /** - * - * - *
-   * If positive, `max_retry_duration` specifies the time limit for
-   * retrying a failed task, measured from when the task was first
-   * attempted. Once `max_retry_duration` time has passed *and* the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts]
-   * times, no further attempts will be made and the task will be
-   * deleted.
-   * If zero, then the task age is unlimited.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_retry_duration` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [task_age_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - * - * @return Whether the maxRetryDuration field is set. - */ - @java.lang.Override - public boolean hasMaxRetryDuration() { - return maxRetryDuration_ != null; - } - /** - * - * - *
-   * If positive, `max_retry_duration` specifies the time limit for
-   * retrying a failed task, measured from when the task was first
-   * attempted. Once `max_retry_duration` time has passed *and* the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts]
-   * times, no further attempts will be made and the task will be
-   * deleted.
-   * If zero, then the task age is unlimited.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_retry_duration` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [task_age_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - * - * @return The maxRetryDuration. - */ - @java.lang.Override - public com.google.protobuf.Duration getMaxRetryDuration() { - return maxRetryDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxRetryDuration_; - } - /** - * - * - *
-   * If positive, `max_retry_duration` specifies the time limit for
-   * retrying a failed task, measured from when the task was first
-   * attempted. Once `max_retry_duration` time has passed *and* the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts]
-   * times, no further attempts will be made and the task will be
-   * deleted.
-   * If zero, then the task age is unlimited.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_retry_duration` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [task_age_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getMaxRetryDurationOrBuilder() { - return getMaxRetryDuration(); - } - - public static final int MIN_BACKOFF_FIELD_NUMBER = 3; - private com.google.protobuf.Duration minBackoff_; - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `min_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [min_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration min_backoff = 3; - * - * @return Whether the minBackoff field is set. - */ - @java.lang.Override - public boolean hasMinBackoff() { - return minBackoff_ != null; - } - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `min_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [min_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration min_backoff = 3; - * - * @return The minBackoff. - */ - @java.lang.Override - public com.google.protobuf.Duration getMinBackoff() { - return minBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minBackoff_; - } - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `min_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [min_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration min_backoff = 3; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getMinBackoffOrBuilder() { - return getMinBackoff(); - } - - public static final int MAX_BACKOFF_FIELD_NUMBER = 4; - private com.google.protobuf.Duration maxBackoff_; - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [max_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_backoff = 4; - * - * @return Whether the maxBackoff field is set. - */ - @java.lang.Override - public boolean hasMaxBackoff() { - return maxBackoff_ != null; - } - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [max_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_backoff = 4; - * - * @return The maxBackoff. - */ - @java.lang.Override - public com.google.protobuf.Duration getMaxBackoff() { - return maxBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxBackoff_; - } - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [max_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_backoff = 4; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getMaxBackoffOrBuilder() { - return getMaxBackoff(); - } - - public static final int MAX_DOUBLINGS_FIELD_NUMBER = 5; - private int maxDoublings_; - /** - * - * - *
-   * The time between retries will double `max_doublings` times.
-   * A task's retry interval starts at
-   * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff], then doubles
-   * `max_doublings` times, then increases linearly, and finally
-   * retries retries at intervals of
-   * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] up to
-   * [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts] times.
-   * For example, if [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] is 10s,
-   * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] is 300s, and
-   * `max_doublings` is 3, then the a task will first be retried in
-   * 10s. The retry interval will double three times, and then
-   * increase linearly by 2^3 * 10s.  Finally, the task will retry at
-   * intervals of [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] until the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts]
-   * times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
-   * 240s, 300s, 300s, ....
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field has the same meaning as
-   * [max_doublings in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * int32 max_doublings = 5; - * - * @return The maxDoublings. - */ - @java.lang.Override - public int getMaxDoublings() { - return maxDoublings_; - } - - 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 (maxAttempts_ != 0) { - output.writeInt32(1, maxAttempts_); - } - if (maxRetryDuration_ != null) { - output.writeMessage(2, getMaxRetryDuration()); - } - if (minBackoff_ != null) { - output.writeMessage(3, getMinBackoff()); - } - if (maxBackoff_ != null) { - output.writeMessage(4, getMaxBackoff()); - } - if (maxDoublings_ != 0) { - output.writeInt32(5, maxDoublings_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxAttempts_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, maxAttempts_); - } - if (maxRetryDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxRetryDuration()); - } - if (minBackoff_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMinBackoff()); - } - if (maxBackoff_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMaxBackoff()); - } - if (maxDoublings_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxDoublings_); - } - 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.v2.RetryConfig)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.RetryConfig other = (com.google.cloud.tasks.v2.RetryConfig) obj; - - if (getMaxAttempts() != other.getMaxAttempts()) return false; - if (hasMaxRetryDuration() != other.hasMaxRetryDuration()) return false; - if (hasMaxRetryDuration()) { - if (!getMaxRetryDuration().equals(other.getMaxRetryDuration())) return false; - } - if (hasMinBackoff() != other.hasMinBackoff()) return false; - if (hasMinBackoff()) { - if (!getMinBackoff().equals(other.getMinBackoff())) return false; - } - if (hasMaxBackoff() != other.hasMaxBackoff()) return false; - if (hasMaxBackoff()) { - if (!getMaxBackoff().equals(other.getMaxBackoff())) return false; - } - if (getMaxDoublings() != other.getMaxDoublings()) 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) + MAX_ATTEMPTS_FIELD_NUMBER; - hash = (53 * hash) + getMaxAttempts(); - if (hasMaxRetryDuration()) { - hash = (37 * hash) + MAX_RETRY_DURATION_FIELD_NUMBER; - hash = (53 * hash) + getMaxRetryDuration().hashCode(); - } - if (hasMinBackoff()) { - hash = (37 * hash) + MIN_BACKOFF_FIELD_NUMBER; - hash = (53 * hash) + getMinBackoff().hashCode(); - } - if (hasMaxBackoff()) { - hash = (37 * hash) + MAX_BACKOFF_FIELD_NUMBER; - hash = (53 * hash) + getMaxBackoff().hashCode(); - } - hash = (37 * hash) + MAX_DOUBLINGS_FIELD_NUMBER; - hash = (53 * hash) + getMaxDoublings(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.RetryConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.RetryConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.RetryConfig parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.RetryConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.RetryConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.RetryConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.RetryConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.RetryConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.RetryConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.RetryConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.RetryConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.RetryConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.RetryConfig 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; - } - /** - * - * - *
-   * Retry config.
-   * These settings determine when a failed task attempt is retried.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.RetryConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.RetryConfig) - com.google.cloud.tasks.v2.RetryConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.QueueProto - .internal_static_google_cloud_tasks_v2_RetryConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.QueueProto - .internal_static_google_cloud_tasks_v2_RetryConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.RetryConfig.class, - com.google.cloud.tasks.v2.RetryConfig.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.RetryConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - maxAttempts_ = 0; - - if (maxRetryDurationBuilder_ == null) { - maxRetryDuration_ = null; - } else { - maxRetryDuration_ = null; - maxRetryDurationBuilder_ = null; - } - if (minBackoffBuilder_ == null) { - minBackoff_ = null; - } else { - minBackoff_ = null; - minBackoffBuilder_ = null; - } - if (maxBackoffBuilder_ == null) { - maxBackoff_ = null; - } else { - maxBackoff_ = null; - maxBackoffBuilder_ = null; - } - maxDoublings_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.QueueProto - .internal_static_google_cloud_tasks_v2_RetryConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.RetryConfig getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.RetryConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.RetryConfig build() { - com.google.cloud.tasks.v2.RetryConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.RetryConfig buildPartial() { - com.google.cloud.tasks.v2.RetryConfig result = - new com.google.cloud.tasks.v2.RetryConfig(this); - result.maxAttempts_ = maxAttempts_; - if (maxRetryDurationBuilder_ == null) { - result.maxRetryDuration_ = maxRetryDuration_; - } else { - result.maxRetryDuration_ = maxRetryDurationBuilder_.build(); - } - if (minBackoffBuilder_ == null) { - result.minBackoff_ = minBackoff_; - } else { - result.minBackoff_ = minBackoffBuilder_.build(); - } - if (maxBackoffBuilder_ == null) { - result.maxBackoff_ = maxBackoff_; - } else { - result.maxBackoff_ = maxBackoffBuilder_.build(); - } - result.maxDoublings_ = maxDoublings_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.RetryConfig) { - return mergeFrom((com.google.cloud.tasks.v2.RetryConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.RetryConfig other) { - if (other == com.google.cloud.tasks.v2.RetryConfig.getDefaultInstance()) return this; - if (other.getMaxAttempts() != 0) { - setMaxAttempts(other.getMaxAttempts()); - } - if (other.hasMaxRetryDuration()) { - mergeMaxRetryDuration(other.getMaxRetryDuration()); - } - if (other.hasMinBackoff()) { - mergeMinBackoff(other.getMinBackoff()); - } - if (other.hasMaxBackoff()) { - mergeMaxBackoff(other.getMaxBackoff()); - } - if (other.getMaxDoublings() != 0) { - setMaxDoublings(other.getMaxDoublings()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - maxAttempts_ = input.readInt32(); - - break; - } // case 8 - case 18: - { - input.readMessage( - getMaxRetryDurationFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getMinBackoffFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getMaxBackoffFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 40: - { - maxDoublings_ = input.readInt32(); - - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int maxAttempts_; - /** - * - * - *
-     * Number of attempts per task.
-     * Cloud Tasks will attempt the task `max_attempts` times (that is, if the
-     * first attempt fails, then there will be `max_attempts - 1` retries). Must
-     * be >= -1.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * -1 indicates unlimited attempts.
-     * This field has the same meaning as
-     * [task_retry_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * int32 max_attempts = 1; - * - * @return The maxAttempts. - */ - @java.lang.Override - public int getMaxAttempts() { - return maxAttempts_; - } - /** - * - * - *
-     * Number of attempts per task.
-     * Cloud Tasks will attempt the task `max_attempts` times (that is, if the
-     * first attempt fails, then there will be `max_attempts - 1` retries). Must
-     * be >= -1.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * -1 indicates unlimited attempts.
-     * This field has the same meaning as
-     * [task_retry_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * int32 max_attempts = 1; - * - * @param value The maxAttempts to set. - * @return This builder for chaining. - */ - public Builder setMaxAttempts(int value) { - - maxAttempts_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Number of attempts per task.
-     * Cloud Tasks will attempt the task `max_attempts` times (that is, if the
-     * first attempt fails, then there will be `max_attempts - 1` retries). Must
-     * be >= -1.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * -1 indicates unlimited attempts.
-     * This field has the same meaning as
-     * [task_retry_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * int32 max_attempts = 1; - * - * @return This builder for chaining. - */ - public Builder clearMaxAttempts() { - - maxAttempts_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Duration maxRetryDuration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - maxRetryDurationBuilder_; - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - * - * @return Whether the maxRetryDuration field is set. - */ - public boolean hasMaxRetryDuration() { - return maxRetryDurationBuilder_ != null || maxRetryDuration_ != null; - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - * - * @return The maxRetryDuration. - */ - public com.google.protobuf.Duration getMaxRetryDuration() { - if (maxRetryDurationBuilder_ == null) { - return maxRetryDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxRetryDuration_; - } else { - return maxRetryDurationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - */ - public Builder setMaxRetryDuration(com.google.protobuf.Duration value) { - if (maxRetryDurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maxRetryDuration_ = value; - onChanged(); - } else { - maxRetryDurationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - */ - public Builder setMaxRetryDuration(com.google.protobuf.Duration.Builder builderForValue) { - if (maxRetryDurationBuilder_ == null) { - maxRetryDuration_ = builderForValue.build(); - onChanged(); - } else { - maxRetryDurationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - */ - public Builder mergeMaxRetryDuration(com.google.protobuf.Duration value) { - if (maxRetryDurationBuilder_ == null) { - if (maxRetryDuration_ != null) { - maxRetryDuration_ = - com.google.protobuf.Duration.newBuilder(maxRetryDuration_) - .mergeFrom(value) - .buildPartial(); - } else { - maxRetryDuration_ = value; - } - onChanged(); - } else { - maxRetryDurationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - */ - public Builder clearMaxRetryDuration() { - if (maxRetryDurationBuilder_ == null) { - maxRetryDuration_ = null; - onChanged(); - } else { - maxRetryDuration_ = null; - maxRetryDurationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - */ - public com.google.protobuf.Duration.Builder getMaxRetryDurationBuilder() { - - onChanged(); - return getMaxRetryDurationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - */ - public com.google.protobuf.DurationOrBuilder getMaxRetryDurationOrBuilder() { - if (maxRetryDurationBuilder_ != null) { - return maxRetryDurationBuilder_.getMessageOrBuilder(); - } else { - return maxRetryDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxRetryDuration_; - } - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getMaxRetryDurationFieldBuilder() { - if (maxRetryDurationBuilder_ == null) { - maxRetryDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMaxRetryDuration(), getParentForChildren(), isClean()); - maxRetryDuration_ = null; - } - return maxRetryDurationBuilder_; - } - - private com.google.protobuf.Duration minBackoff_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - minBackoffBuilder_; - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 3; - * - * @return Whether the minBackoff field is set. - */ - public boolean hasMinBackoff() { - return minBackoffBuilder_ != null || minBackoff_ != null; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 3; - * - * @return The minBackoff. - */ - public com.google.protobuf.Duration getMinBackoff() { - if (minBackoffBuilder_ == null) { - return minBackoff_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minBackoff_; - } else { - return minBackoffBuilder_.getMessage(); - } - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 3; - */ - public Builder setMinBackoff(com.google.protobuf.Duration value) { - if (minBackoffBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - minBackoff_ = value; - onChanged(); - } else { - minBackoffBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 3; - */ - public Builder setMinBackoff(com.google.protobuf.Duration.Builder builderForValue) { - if (minBackoffBuilder_ == null) { - minBackoff_ = builderForValue.build(); - onChanged(); - } else { - minBackoffBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 3; - */ - public Builder mergeMinBackoff(com.google.protobuf.Duration value) { - if (minBackoffBuilder_ == null) { - if (minBackoff_ != null) { - minBackoff_ = - com.google.protobuf.Duration.newBuilder(minBackoff_).mergeFrom(value).buildPartial(); - } else { - minBackoff_ = value; - } - onChanged(); - } else { - minBackoffBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 3; - */ - public Builder clearMinBackoff() { - if (minBackoffBuilder_ == null) { - minBackoff_ = null; - onChanged(); - } else { - minBackoff_ = null; - minBackoffBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 3; - */ - public com.google.protobuf.Duration.Builder getMinBackoffBuilder() { - - onChanged(); - return getMinBackoffFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 3; - */ - public com.google.protobuf.DurationOrBuilder getMinBackoffOrBuilder() { - if (minBackoffBuilder_ != null) { - return minBackoffBuilder_.getMessageOrBuilder(); - } else { - return minBackoff_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minBackoff_; - } - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getMinBackoffFieldBuilder() { - if (minBackoffBuilder_ == null) { - minBackoffBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMinBackoff(), getParentForChildren(), isClean()); - minBackoff_ = null; - } - return minBackoffBuilder_; - } - - private com.google.protobuf.Duration maxBackoff_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - maxBackoffBuilder_; - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 4; - * - * @return Whether the maxBackoff field is set. - */ - public boolean hasMaxBackoff() { - return maxBackoffBuilder_ != null || maxBackoff_ != null; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 4; - * - * @return The maxBackoff. - */ - public com.google.protobuf.Duration getMaxBackoff() { - if (maxBackoffBuilder_ == null) { - return maxBackoff_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxBackoff_; - } else { - return maxBackoffBuilder_.getMessage(); - } - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 4; - */ - public Builder setMaxBackoff(com.google.protobuf.Duration value) { - if (maxBackoffBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maxBackoff_ = value; - onChanged(); - } else { - maxBackoffBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 4; - */ - public Builder setMaxBackoff(com.google.protobuf.Duration.Builder builderForValue) { - if (maxBackoffBuilder_ == null) { - maxBackoff_ = builderForValue.build(); - onChanged(); - } else { - maxBackoffBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 4; - */ - public Builder mergeMaxBackoff(com.google.protobuf.Duration value) { - if (maxBackoffBuilder_ == null) { - if (maxBackoff_ != null) { - maxBackoff_ = - com.google.protobuf.Duration.newBuilder(maxBackoff_).mergeFrom(value).buildPartial(); - } else { - maxBackoff_ = value; - } - onChanged(); - } else { - maxBackoffBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 4; - */ - public Builder clearMaxBackoff() { - if (maxBackoffBuilder_ == null) { - maxBackoff_ = null; - onChanged(); - } else { - maxBackoff_ = null; - maxBackoffBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 4; - */ - public com.google.protobuf.Duration.Builder getMaxBackoffBuilder() { - - onChanged(); - return getMaxBackoffFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 4; - */ - public com.google.protobuf.DurationOrBuilder getMaxBackoffOrBuilder() { - if (maxBackoffBuilder_ != null) { - return maxBackoffBuilder_.getMessageOrBuilder(); - } else { - return maxBackoff_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxBackoff_; - } - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getMaxBackoffFieldBuilder() { - if (maxBackoffBuilder_ == null) { - maxBackoffBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMaxBackoff(), getParentForChildren(), isClean()); - maxBackoff_ = null; - } - return maxBackoffBuilder_; - } - - private int maxDoublings_; - /** - * - * - *
-     * The time between retries will double `max_doublings` times.
-     * A task's retry interval starts at
-     * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff], then doubles
-     * `max_doublings` times, then increases linearly, and finally
-     * retries retries at intervals of
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] up to
-     * [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts] times.
-     * For example, if [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] is 10s,
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] is 300s, and
-     * `max_doublings` is 3, then the a task will first be retried in
-     * 10s. The retry interval will double three times, and then
-     * increase linearly by 2^3 * 10s.  Finally, the task will retry at
-     * intervals of [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] until the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts]
-     * times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
-     * 240s, 300s, 300s, ....
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field has the same meaning as
-     * [max_doublings in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * int32 max_doublings = 5; - * - * @return The maxDoublings. - */ - @java.lang.Override - public int getMaxDoublings() { - return maxDoublings_; - } - /** - * - * - *
-     * The time between retries will double `max_doublings` times.
-     * A task's retry interval starts at
-     * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff], then doubles
-     * `max_doublings` times, then increases linearly, and finally
-     * retries retries at intervals of
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] up to
-     * [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts] times.
-     * For example, if [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] is 10s,
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] is 300s, and
-     * `max_doublings` is 3, then the a task will first be retried in
-     * 10s. The retry interval will double three times, and then
-     * increase linearly by 2^3 * 10s.  Finally, the task will retry at
-     * intervals of [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] until the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts]
-     * times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
-     * 240s, 300s, 300s, ....
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field has the same meaning as
-     * [max_doublings in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * int32 max_doublings = 5; - * - * @param value The maxDoublings to set. - * @return This builder for chaining. - */ - public Builder setMaxDoublings(int value) { - - maxDoublings_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The time between retries will double `max_doublings` times.
-     * A task's retry interval starts at
-     * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff], then doubles
-     * `max_doublings` times, then increases linearly, and finally
-     * retries retries at intervals of
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] up to
-     * [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts] times.
-     * For example, if [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] is 10s,
-     * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] is 300s, and
-     * `max_doublings` is 3, then the a task will first be retried in
-     * 10s. The retry interval will double three times, and then
-     * increase linearly by 2^3 * 10s.  Finally, the task will retry at
-     * intervals of [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] until the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts]
-     * times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
-     * 240s, 300s, 300s, ....
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field has the same meaning as
-     * [max_doublings in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * int32 max_doublings = 5; - * - * @return This builder for chaining. - */ - public Builder clearMaxDoublings() { - - maxDoublings_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.RetryConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.RetryConfig) - private static final com.google.cloud.tasks.v2.RetryConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.RetryConfig(); - } - - public static com.google.cloud.tasks.v2.RetryConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.RetryConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RetryConfigOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RetryConfigOrBuilder.java deleted file mode 100644 index adf90087..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RetryConfigOrBuilder.java +++ /dev/null @@ -1,281 +0,0 @@ -/* - * Copyright 2020 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/v2/queue.proto - -package com.google.cloud.tasks.v2; - -public interface RetryConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.RetryConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Number of attempts per task.
-   * Cloud Tasks will attempt the task `max_attempts` times (that is, if the
-   * first attempt fails, then there will be `max_attempts - 1` retries). Must
-   * be >= -1.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * -1 indicates unlimited attempts.
-   * This field has the same meaning as
-   * [task_retry_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * int32 max_attempts = 1; - * - * @return The maxAttempts. - */ - int getMaxAttempts(); - - /** - * - * - *
-   * If positive, `max_retry_duration` specifies the time limit for
-   * retrying a failed task, measured from when the task was first
-   * attempted. Once `max_retry_duration` time has passed *and* the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts]
-   * times, no further attempts will be made and the task will be
-   * deleted.
-   * If zero, then the task age is unlimited.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_retry_duration` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [task_age_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - * - * @return Whether the maxRetryDuration field is set. - */ - boolean hasMaxRetryDuration(); - /** - * - * - *
-   * If positive, `max_retry_duration` specifies the time limit for
-   * retrying a failed task, measured from when the task was first
-   * attempted. Once `max_retry_duration` time has passed *and* the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts]
-   * times, no further attempts will be made and the task will be
-   * deleted.
-   * If zero, then the task age is unlimited.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_retry_duration` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [task_age_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - * - * @return The maxRetryDuration. - */ - com.google.protobuf.Duration getMaxRetryDuration(); - /** - * - * - *
-   * If positive, `max_retry_duration` specifies the time limit for
-   * retrying a failed task, measured from when the task was first
-   * attempted. Once `max_retry_duration` time has passed *and* the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts]
-   * times, no further attempts will be made and the task will be
-   * deleted.
-   * If zero, then the task age is unlimited.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_retry_duration` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [task_age_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - */ - com.google.protobuf.DurationOrBuilder getMaxRetryDurationOrBuilder(); - - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `min_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [min_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration min_backoff = 3; - * - * @return Whether the minBackoff field is set. - */ - boolean hasMinBackoff(); - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `min_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [min_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration min_backoff = 3; - * - * @return The minBackoff. - */ - com.google.protobuf.Duration getMinBackoff(); - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `min_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [min_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration min_backoff = 3; - */ - com.google.protobuf.DurationOrBuilder getMinBackoffOrBuilder(); - - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [max_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_backoff = 4; - * - * @return Whether the maxBackoff field is set. - */ - boolean hasMaxBackoff(); - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [max_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_backoff = 4; - * - * @return The maxBackoff. - */ - com.google.protobuf.Duration getMaxBackoff(); - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [max_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_backoff = 4; - */ - com.google.protobuf.DurationOrBuilder getMaxBackoffOrBuilder(); - - /** - * - * - *
-   * The time between retries will double `max_doublings` times.
-   * A task's retry interval starts at
-   * [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff], then doubles
-   * `max_doublings` times, then increases linearly, and finally
-   * retries retries at intervals of
-   * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] up to
-   * [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts] times.
-   * For example, if [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] is 10s,
-   * [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] is 300s, and
-   * `max_doublings` is 3, then the a task will first be retried in
-   * 10s. The retry interval will double three times, and then
-   * increase linearly by 2^3 * 10s.  Finally, the task will retry at
-   * intervals of [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] until the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts]
-   * times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
-   * 240s, 300s, 300s, ....
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field has the same meaning as
-   * [max_doublings in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * int32 max_doublings = 5; - * - * @return The maxDoublings. - */ - int getMaxDoublings(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequest.java deleted file mode 100644 index ce5175e6..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequest.java +++ /dev/null @@ -1,848 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * Request message for forcing a task to run now using
- * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.RunTaskRequest} - */ -public final class RunTaskRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.RunTaskRequest) - RunTaskRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RunTaskRequest.newBuilder() to construct. - private RunTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RunTaskRequest() { - name_ = ""; - responseView_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RunTaskRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_RunTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_RunTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.RunTaskRequest.class, - com.google.cloud.tasks.v2.RunTaskRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESPONSE_VIEW_FIELD_NUMBER = 2; - private int responseView_; - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2.Task.View result = - com.google.cloud.tasks.v2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2.Task.View.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - output.writeEnum(2, responseView_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (responseView_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, responseView_); - } - size += 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.v2.RunTaskRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.RunTaskRequest other = (com.google.cloud.tasks.v2.RunTaskRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (responseView_ != other.responseView_) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; - hash = (53 * hash) + responseView_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.RunTaskRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.RunTaskRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.RunTaskRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.RunTaskRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.RunTaskRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.RunTaskRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.RunTaskRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.RunTaskRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.RunTaskRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.RunTaskRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.RunTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.RunTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.RunTaskRequest 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 forcing a task to run now using
-   * [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.RunTaskRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.RunTaskRequest) - com.google.cloud.tasks.v2.RunTaskRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_RunTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_RunTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.RunTaskRequest.class, - com.google.cloud.tasks.v2.RunTaskRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.RunTaskRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - responseView_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_RunTaskRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.RunTaskRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.RunTaskRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.RunTaskRequest build() { - com.google.cloud.tasks.v2.RunTaskRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.RunTaskRequest buildPartial() { - com.google.cloud.tasks.v2.RunTaskRequest result = - new com.google.cloud.tasks.v2.RunTaskRequest(this); - result.name_ = name_; - result.responseView_ = responseView_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.RunTaskRequest) { - return mergeFrom((com.google.cloud.tasks.v2.RunTaskRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.RunTaskRequest other) { - if (other == com.google.cloud.tasks.v2.RunTaskRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.responseView_ != 0) { - setResponseViewValue(other.getResponseViewValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - responseView_ = input.readEnum(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int responseView_ = 0; - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @param value The enum numeric value on the wire for responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseViewValue(int value) { - - responseView_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2.Task.View result = - com.google.cloud.tasks.v2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2.Task.View.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @param value The responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseView(com.google.cloud.tasks.v2.Task.View value) { - if (value == null) { - throw new NullPointerException(); - } - - responseView_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @return This builder for chaining. - */ - public Builder clearResponseView() { - - responseView_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.RunTaskRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.RunTaskRequest) - private static final com.google.cloud.tasks.v2.RunTaskRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.RunTaskRequest(); - } - - public static com.google.cloud.tasks.v2.RunTaskRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunTaskRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.RunTaskRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequestOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequestOrBuilder.java deleted file mode 100644 index bf13da8d..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequestOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -public interface RunTaskRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.RunTaskRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - int getResponseViewValue(); - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2.Task.View response_view = 2; - * - * @return The responseView. - */ - com.google.cloud.tasks.v2.Task.View getResponseView(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/StackdriverLoggingConfig.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/StackdriverLoggingConfig.java deleted file mode 100644 index 79f375ea..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/StackdriverLoggingConfig.java +++ /dev/null @@ -1,545 +0,0 @@ -/* - * Copyright 2020 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/v2/queue.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * Configuration options for writing logs to
- * [Stackdriver Logging](https://cloud.google.com/logging/docs/).
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.StackdriverLoggingConfig} - */ -public final class StackdriverLoggingConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.StackdriverLoggingConfig) - StackdriverLoggingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use StackdriverLoggingConfig.newBuilder() to construct. - private StackdriverLoggingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private StackdriverLoggingConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new StackdriverLoggingConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.QueueProto - .internal_static_google_cloud_tasks_v2_StackdriverLoggingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.QueueProto - .internal_static_google_cloud_tasks_v2_StackdriverLoggingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.StackdriverLoggingConfig.class, - com.google.cloud.tasks.v2.StackdriverLoggingConfig.Builder.class); - } - - public static final int SAMPLING_RATIO_FIELD_NUMBER = 1; - private double samplingRatio_; - /** - * - * - *
-   * Specifies the fraction of operations to write to
-   * [Stackdriver Logging](https://cloud.google.com/logging/docs/).
-   * This field may contain any value between 0.0 and 1.0, inclusive.
-   * 0.0 is the default and means that no operations are logged.
-   * 
- * - * double sampling_ratio = 1; - * - * @return The samplingRatio. - */ - @java.lang.Override - public double getSamplingRatio() { - return samplingRatio_; - } - - 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 (java.lang.Double.doubleToRawLongBits(samplingRatio_) != 0) { - output.writeDouble(1, samplingRatio_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(samplingRatio_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, samplingRatio_); - } - 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.v2.StackdriverLoggingConfig)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.StackdriverLoggingConfig other = - (com.google.cloud.tasks.v2.StackdriverLoggingConfig) obj; - - if (java.lang.Double.doubleToLongBits(getSamplingRatio()) - != java.lang.Double.doubleToLongBits(other.getSamplingRatio())) 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) + SAMPLING_RATIO_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getSamplingRatio())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.StackdriverLoggingConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.StackdriverLoggingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.StackdriverLoggingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.StackdriverLoggingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.StackdriverLoggingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.StackdriverLoggingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.StackdriverLoggingConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.StackdriverLoggingConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.StackdriverLoggingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.StackdriverLoggingConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.StackdriverLoggingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.StackdriverLoggingConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.StackdriverLoggingConfig 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; - } - /** - * - * - *
-   * Configuration options for writing logs to
-   * [Stackdriver Logging](https://cloud.google.com/logging/docs/).
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.StackdriverLoggingConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.StackdriverLoggingConfig) - com.google.cloud.tasks.v2.StackdriverLoggingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.QueueProto - .internal_static_google_cloud_tasks_v2_StackdriverLoggingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.QueueProto - .internal_static_google_cloud_tasks_v2_StackdriverLoggingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.StackdriverLoggingConfig.class, - com.google.cloud.tasks.v2.StackdriverLoggingConfig.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.StackdriverLoggingConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - samplingRatio_ = 0D; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.QueueProto - .internal_static_google_cloud_tasks_v2_StackdriverLoggingConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.StackdriverLoggingConfig getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.StackdriverLoggingConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.StackdriverLoggingConfig build() { - com.google.cloud.tasks.v2.StackdriverLoggingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.StackdriverLoggingConfig buildPartial() { - com.google.cloud.tasks.v2.StackdriverLoggingConfig result = - new com.google.cloud.tasks.v2.StackdriverLoggingConfig(this); - result.samplingRatio_ = samplingRatio_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.StackdriverLoggingConfig) { - return mergeFrom((com.google.cloud.tasks.v2.StackdriverLoggingConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.StackdriverLoggingConfig other) { - if (other == com.google.cloud.tasks.v2.StackdriverLoggingConfig.getDefaultInstance()) - return this; - if (other.getSamplingRatio() != 0D) { - setSamplingRatio(other.getSamplingRatio()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 9: - { - samplingRatio_ = input.readDouble(); - - break; - } // case 9 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private double samplingRatio_; - /** - * - * - *
-     * Specifies the fraction of operations to write to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/).
-     * This field may contain any value between 0.0 and 1.0, inclusive.
-     * 0.0 is the default and means that no operations are logged.
-     * 
- * - * double sampling_ratio = 1; - * - * @return The samplingRatio. - */ - @java.lang.Override - public double getSamplingRatio() { - return samplingRatio_; - } - /** - * - * - *
-     * Specifies the fraction of operations to write to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/).
-     * This field may contain any value between 0.0 and 1.0, inclusive.
-     * 0.0 is the default and means that no operations are logged.
-     * 
- * - * double sampling_ratio = 1; - * - * @param value The samplingRatio to set. - * @return This builder for chaining. - */ - public Builder setSamplingRatio(double value) { - - samplingRatio_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the fraction of operations to write to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/).
-     * This field may contain any value between 0.0 and 1.0, inclusive.
-     * 0.0 is the default and means that no operations are logged.
-     * 
- * - * double sampling_ratio = 1; - * - * @return This builder for chaining. - */ - public Builder clearSamplingRatio() { - - samplingRatio_ = 0D; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.StackdriverLoggingConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.StackdriverLoggingConfig) - private static final com.google.cloud.tasks.v2.StackdriverLoggingConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.StackdriverLoggingConfig(); - } - - public static com.google.cloud.tasks.v2.StackdriverLoggingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StackdriverLoggingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.StackdriverLoggingConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/StackdriverLoggingConfigOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/StackdriverLoggingConfigOrBuilder.java deleted file mode 100644 index af110ade..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/StackdriverLoggingConfigOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2020 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/v2/queue.proto - -package com.google.cloud.tasks.v2; - -public interface StackdriverLoggingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.StackdriverLoggingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Specifies the fraction of operations to write to
-   * [Stackdriver Logging](https://cloud.google.com/logging/docs/).
-   * This field may contain any value between 0.0 and 1.0, inclusive.
-   * 0.0 is the default and means that no operations are logged.
-   * 
- * - * double sampling_ratio = 1; - * - * @return The samplingRatio. - */ - double getSamplingRatio(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TargetProto.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TargetProto.java deleted file mode 100644 index 38185289..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TargetProto.java +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Copyright 2020 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/v2/target.proto - -package com.google.cloud.tasks.v2; - -public final class TargetProto { - private TargetProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_HttpRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_HttpRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_HttpRequest_HeadersEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_HttpRequest_HeadersEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_AppEngineHttpRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_AppEngineHttpRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_AppEngineHttpRequest_HeadersEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_AppEngineHttpRequest_HeadersEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_AppEngineRouting_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_AppEngineRouting_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_OAuthToken_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_OAuthToken_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_OidcToken_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_OidcToken_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\"google/cloud/tasks/v2/target.proto\022\025go" - + "ogle.cloud.tasks.v2\032\037google/api/field_be" - + "havior.proto\"\341\002\n\013HttpRequest\022\020\n\003url\030\001 \001(" - + "\tB\003\340A\002\0226\n\013http_method\030\002 \001(\0162!.google.clo" - + "ud.tasks.v2.HttpMethod\022@\n\007headers\030\003 \003(\0132" - + "/.google.cloud.tasks.v2.HttpRequest.Head" - + "ersEntry\022\014\n\004body\030\004 \001(\014\0228\n\013oauth_token\030\005 " - + "\001(\0132!.google.cloud.tasks.v2.OAuthTokenH\000" - + "\0226\n\noidc_token\030\006 \001(\0132 .google.cloud.task" - + "s.v2.OidcTokenH\000\032.\n\014HeadersEntry\022\013\n\003key\030" - + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\026\n\024authorizatio" - + "n_header\"\262\002\n\024AppEngineHttpRequest\0226\n\013htt" - + "p_method\030\001 \001(\0162!.google.cloud.tasks.v2.H" - + "ttpMethod\022C\n\022app_engine_routing\030\002 \001(\0132\'." - + "google.cloud.tasks.v2.AppEngineRouting\022\024" - + "\n\014relative_uri\030\003 \001(\t\022I\n\007headers\030\004 \003(\01328." - + "google.cloud.tasks.v2.AppEngineHttpReque" - + "st.HeadersEntry\022\014\n\004body\030\005 \001(\014\032.\n\014Headers" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"T\n" - + "\020AppEngineRouting\022\017\n\007service\030\001 \001(\t\022\017\n\007ve" - + "rsion\030\002 \001(\t\022\020\n\010instance\030\003 \001(\t\022\014\n\004host\030\004 " - + "\001(\t\":\n\nOAuthToken\022\035\n\025service_account_ema" - + "il\030\001 \001(\t\022\r\n\005scope\030\002 \001(\t\"<\n\tOidcToken\022\035\n\025" - + "service_account_email\030\001 \001(\t\022\020\n\010audience\030" - + "\002 \001(\t*s\n\nHttpMethod\022\033\n\027HTTP_METHOD_UNSPE" - + "CIFIED\020\000\022\010\n\004POST\020\001\022\007\n\003GET\020\002\022\010\n\004HEAD\020\003\022\007\n" - + "\003PUT\020\004\022\n\n\006DELETE\020\005\022\t\n\005PATCH\020\006\022\013\n\007OPTIONS" - + "\020\007Bf\n\031com.google.cloud.tasks.v2B\013TargetP" - + "rotoP\001Z:google.golang.org/genproto/googl" - + "eapis/cloud/tasks/v2;tasksb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_cloud_tasks_v2_HttpRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_tasks_v2_HttpRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_HttpRequest_descriptor, - new java.lang.String[] { - "Url", - "HttpMethod", - "Headers", - "Body", - "OauthToken", - "OidcToken", - "AuthorizationHeader", - }); - internal_static_google_cloud_tasks_v2_HttpRequest_HeadersEntry_descriptor = - internal_static_google_cloud_tasks_v2_HttpRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_tasks_v2_HttpRequest_HeadersEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_HttpRequest_HeadersEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_tasks_v2_AppEngineHttpRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_tasks_v2_AppEngineHttpRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_AppEngineHttpRequest_descriptor, - new java.lang.String[] { - "HttpMethod", "AppEngineRouting", "RelativeUri", "Headers", "Body", - }); - internal_static_google_cloud_tasks_v2_AppEngineHttpRequest_HeadersEntry_descriptor = - internal_static_google_cloud_tasks_v2_AppEngineHttpRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_tasks_v2_AppEngineHttpRequest_HeadersEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_AppEngineHttpRequest_HeadersEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_tasks_v2_AppEngineRouting_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_tasks_v2_AppEngineRouting_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_AppEngineRouting_descriptor, - new java.lang.String[] { - "Service", "Version", "Instance", "Host", - }); - internal_static_google_cloud_tasks_v2_OAuthToken_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_tasks_v2_OAuthToken_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_OAuthToken_descriptor, - new java.lang.String[] { - "ServiceAccountEmail", "Scope", - }); - internal_static_google_cloud_tasks_v2_OidcToken_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_tasks_v2_OidcToken_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_OidcToken_descriptor, - new java.lang.String[] { - "ServiceAccountEmail", "Audience", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Task.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Task.java deleted file mode 100644 index 0ea5a5a4..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Task.java +++ /dev/null @@ -1,3626 +0,0 @@ -/* - * Copyright 2020 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/v2/task.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * A unit of scheduled work.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.Task} - */ -public final class Task extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.Task) - TaskOrBuilder { - private static final long serialVersionUID = 0L; - // Use Task.newBuilder() to construct. - private Task(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Task() { - name_ = ""; - view_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Task(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.TaskProto - .internal_static_google_cloud_tasks_v2_Task_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.TaskProto - .internal_static_google_cloud_tasks_v2_Task_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.Task.class, com.google.cloud.tasks.v2.Task.Builder.class); - } - - /** - * - * - *
-   * The view specifies a subset of [Task][google.cloud.tasks.v2.Task] data.
-   * When a task is returned in a response, not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * 
- * - * Protobuf enum {@code google.cloud.tasks.v2.Task.View} - */ - public enum View implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unspecified. Defaults to BASIC.
-     * 
- * - * VIEW_UNSPECIFIED = 0; - */ - VIEW_UNSPECIFIED(0), - /** - * - * - *
-     * The basic view omits fields which can be large or can contain
-     * sensitive data.
-     * This view does not include the
-     * [body in AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest.body].
-     * Bodies are desirable to return only when needed, because they
-     * can be large and because of the sensitivity of the data that you
-     * choose to store in it.
-     * 
- * - * BASIC = 1; - */ - BASIC(1), - /** - * - * - *
-     * All information is returned.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Queue][google.cloud.tasks.v2.Queue] resource.
-     * 
- * - * FULL = 2; - */ - FULL(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Unspecified. Defaults to BASIC.
-     * 
- * - * VIEW_UNSPECIFIED = 0; - */ - public static final int VIEW_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The basic view omits fields which can be large or can contain
-     * sensitive data.
-     * This view does not include the
-     * [body in AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest.body].
-     * Bodies are desirable to return only when needed, because they
-     * can be large and because of the sensitivity of the data that you
-     * choose to store in it.
-     * 
- * - * BASIC = 1; - */ - public static final int BASIC_VALUE = 1; - /** - * - * - *
-     * All information is returned.
-     * Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Queue][google.cloud.tasks.v2.Queue] resource.
-     * 
- * - * FULL = 2; - */ - public static final int FULL_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static View valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static View forNumber(int value) { - switch (value) { - case 0: - return VIEW_UNSPECIFIED; - case 1: - return BASIC; - case 2: - return FULL; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public View findValueByNumber(int number) { - return View.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.tasks.v2.Task.getDescriptor().getEnumTypes().get(0); - } - - private static final View[] VALUES = values(); - - public static View valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private View(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.tasks.v2.Task.View) - } - - private int messageTypeCase_ = 0; - private java.lang.Object messageType_; - - public enum MessageTypeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - APP_ENGINE_HTTP_REQUEST(2), - HTTP_REQUEST(3), - MESSAGETYPE_NOT_SET(0); - private final int value; - - private MessageTypeCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MessageTypeCase valueOf(int value) { - return forNumber(value); - } - - public static MessageTypeCase forNumber(int value) { - switch (value) { - case 2: - return APP_ENGINE_HTTP_REQUEST; - case 3: - return HTTP_REQUEST; - case 0: - return MESSAGETYPE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public MessageTypeCase getMessageTypeCase() { - return MessageTypeCase.forNumber(messageTypeCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   * The task name.
-   * The task name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the task's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-   *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   * The task name.
-   * The task name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the task's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-   *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int APP_ENGINE_HTTP_REQUEST_FIELD_NUMBER = 2; - /** - * - * - *
-   * HTTP request that is sent to the App Engine app handler.
-   * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2.AppEngineHttpRequest app_engine_http_request = 2; - * - * @return Whether the appEngineHttpRequest field is set. - */ - @java.lang.Override - public boolean hasAppEngineHttpRequest() { - return messageTypeCase_ == 2; - } - /** - * - * - *
-   * HTTP request that is sent to the App Engine app handler.
-   * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2.AppEngineHttpRequest app_engine_http_request = 2; - * - * @return The appEngineHttpRequest. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.AppEngineHttpRequest getAppEngineHttpRequest() { - if (messageTypeCase_ == 2) { - return (com.google.cloud.tasks.v2.AppEngineHttpRequest) messageType_; - } - return com.google.cloud.tasks.v2.AppEngineHttpRequest.getDefaultInstance(); - } - /** - * - * - *
-   * HTTP request that is sent to the App Engine app handler.
-   * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2.AppEngineHttpRequest app_engine_http_request = 2; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.AppEngineHttpRequestOrBuilder - getAppEngineHttpRequestOrBuilder() { - if (messageTypeCase_ == 2) { - return (com.google.cloud.tasks.v2.AppEngineHttpRequest) messageType_; - } - return com.google.cloud.tasks.v2.AppEngineHttpRequest.getDefaultInstance(); - } - - public static final int HTTP_REQUEST_FIELD_NUMBER = 3; - /** - * - * - *
-   * HTTP request that is sent to the worker.
-   * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2.HttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2.HttpRequest http_request = 3; - * - * @return Whether the httpRequest field is set. - */ - @java.lang.Override - public boolean hasHttpRequest() { - return messageTypeCase_ == 3; - } - /** - * - * - *
-   * HTTP request that is sent to the worker.
-   * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2.HttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2.HttpRequest http_request = 3; - * - * @return The httpRequest. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.HttpRequest getHttpRequest() { - if (messageTypeCase_ == 3) { - return (com.google.cloud.tasks.v2.HttpRequest) messageType_; - } - return com.google.cloud.tasks.v2.HttpRequest.getDefaultInstance(); - } - /** - * - * - *
-   * HTTP request that is sent to the worker.
-   * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2.HttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2.HttpRequest http_request = 3; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.HttpRequestOrBuilder getHttpRequestOrBuilder() { - if (messageTypeCase_ == 3) { - return (com.google.cloud.tasks.v2.HttpRequest) messageType_; - } - return com.google.cloud.tasks.v2.HttpRequest.getDefaultInstance(); - } - - public static final int SCHEDULE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp scheduleTime_; - /** - * - * - *
-   * The time when the task is scheduled to be attempted or retried.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - * - * @return Whether the scheduleTime field is set. - */ - @java.lang.Override - public boolean hasScheduleTime() { - return scheduleTime_ != null; - } - /** - * - * - *
-   * The time when the task is scheduled to be attempted or retried.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - * - * @return The scheduleTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } - /** - * - * - *
-   * The time when the task is scheduled to be attempted or retried.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { - return getScheduleTime(); - } - - public static final int CREATE_TIME_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. The time that the task was created.
-   * `create_time` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Timestamp create_time = 5; - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. The time that the task was created.
-   * `create_time` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Timestamp create_time = 5; - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. The time that the task was created.
-   * `create_time` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Timestamp create_time = 5; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int DISPATCH_DEADLINE_FIELD_NUMBER = 6; - private com.google.protobuf.Duration dispatchDeadline_; - /** - * - * - *
-   * The deadline for requests sent to the worker. If the worker does not
-   * respond by this deadline then the request is cancelled and the attempt
-   * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-   * task according to the [RetryConfig][google.cloud.tasks.v2.RetryConfig].
-   * Note that when the request is cancelled, Cloud Tasks will stop listing for
-   * the response, but whether the worker stops processing depends on the
-   * worker. For example, if the worker is stuck, it may not react to cancelled
-   * requests.
-   * The default and maximum values depend on the type of request:
-   * * For [HTTP tasks][google.cloud.tasks.v2.HttpRequest], the default is 10 minutes. The deadline
-   *   must be in the interval [15 seconds, 30 minutes].
-   * * For [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest], 0 indicates that the
-   *   request has the default deadline. The default deadline depends on the
-   *   [scaling
-   *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-   *   of the service: 10 minutes for standard apps with automatic scaling, 24
-   *   hours for standard apps with manual and basic scaling, and 60 minutes for
-   *   flex apps. If the request deadline is set, it must be in the interval [15
-   *   seconds, 24 hours 15 seconds]. Regardless of the task's
-   *   `dispatch_deadline`, the app handler will not run for longer than than
-   *   the service's timeout. We recommend setting the `dispatch_deadline` to
-   *   at most a few seconds more than the app handler's timeout. For more
-   *   information see
-   *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-   * `dispatch_deadline` will be truncated to the nearest millisecond. The
-   * deadline is an approximate deadline.
-   * 
- * - * .google.protobuf.Duration dispatch_deadline = 6; - * - * @return Whether the dispatchDeadline field is set. - */ - @java.lang.Override - public boolean hasDispatchDeadline() { - return dispatchDeadline_ != null; - } - /** - * - * - *
-   * The deadline for requests sent to the worker. If the worker does not
-   * respond by this deadline then the request is cancelled and the attempt
-   * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-   * task according to the [RetryConfig][google.cloud.tasks.v2.RetryConfig].
-   * Note that when the request is cancelled, Cloud Tasks will stop listing for
-   * the response, but whether the worker stops processing depends on the
-   * worker. For example, if the worker is stuck, it may not react to cancelled
-   * requests.
-   * The default and maximum values depend on the type of request:
-   * * For [HTTP tasks][google.cloud.tasks.v2.HttpRequest], the default is 10 minutes. The deadline
-   *   must be in the interval [15 seconds, 30 minutes].
-   * * For [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest], 0 indicates that the
-   *   request has the default deadline. The default deadline depends on the
-   *   [scaling
-   *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-   *   of the service: 10 minutes for standard apps with automatic scaling, 24
-   *   hours for standard apps with manual and basic scaling, and 60 minutes for
-   *   flex apps. If the request deadline is set, it must be in the interval [15
-   *   seconds, 24 hours 15 seconds]. Regardless of the task's
-   *   `dispatch_deadline`, the app handler will not run for longer than than
-   *   the service's timeout. We recommend setting the `dispatch_deadline` to
-   *   at most a few seconds more than the app handler's timeout. For more
-   *   information see
-   *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-   * `dispatch_deadline` will be truncated to the nearest millisecond. The
-   * deadline is an approximate deadline.
-   * 
- * - * .google.protobuf.Duration dispatch_deadline = 6; - * - * @return The dispatchDeadline. - */ - @java.lang.Override - public com.google.protobuf.Duration getDispatchDeadline() { - return dispatchDeadline_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : dispatchDeadline_; - } - /** - * - * - *
-   * The deadline for requests sent to the worker. If the worker does not
-   * respond by this deadline then the request is cancelled and the attempt
-   * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-   * task according to the [RetryConfig][google.cloud.tasks.v2.RetryConfig].
-   * Note that when the request is cancelled, Cloud Tasks will stop listing for
-   * the response, but whether the worker stops processing depends on the
-   * worker. For example, if the worker is stuck, it may not react to cancelled
-   * requests.
-   * The default and maximum values depend on the type of request:
-   * * For [HTTP tasks][google.cloud.tasks.v2.HttpRequest], the default is 10 minutes. The deadline
-   *   must be in the interval [15 seconds, 30 minutes].
-   * * For [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest], 0 indicates that the
-   *   request has the default deadline. The default deadline depends on the
-   *   [scaling
-   *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-   *   of the service: 10 minutes for standard apps with automatic scaling, 24
-   *   hours for standard apps with manual and basic scaling, and 60 minutes for
-   *   flex apps. If the request deadline is set, it must be in the interval [15
-   *   seconds, 24 hours 15 seconds]. Regardless of the task's
-   *   `dispatch_deadline`, the app handler will not run for longer than than
-   *   the service's timeout. We recommend setting the `dispatch_deadline` to
-   *   at most a few seconds more than the app handler's timeout. For more
-   *   information see
-   *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-   * `dispatch_deadline` will be truncated to the nearest millisecond. The
-   * deadline is an approximate deadline.
-   * 
- * - * .google.protobuf.Duration dispatch_deadline = 6; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getDispatchDeadlineOrBuilder() { - return getDispatchDeadline(); - } - - public static final int DISPATCH_COUNT_FIELD_NUMBER = 7; - private int dispatchCount_; - /** - * - * - *
-   * Output only. The number of attempts dispatched.
-   * This count includes attempts which have been dispatched but haven't
-   * received a response.
-   * 
- * - * int32 dispatch_count = 7; - * - * @return The dispatchCount. - */ - @java.lang.Override - public int getDispatchCount() { - return dispatchCount_; - } - - public static final int RESPONSE_COUNT_FIELD_NUMBER = 8; - private int responseCount_; - /** - * - * - *
-   * Output only. The number of attempts which have received a response.
-   * 
- * - * int32 response_count = 8; - * - * @return The responseCount. - */ - @java.lang.Override - public int getResponseCount() { - return responseCount_; - } - - public static final int FIRST_ATTEMPT_FIELD_NUMBER = 9; - private com.google.cloud.tasks.v2.Attempt firstAttempt_; - /** - * - * - *
-   * Output only. The status of the task's first attempt.
-   * Only [dispatch_time][google.cloud.tasks.v2.Attempt.dispatch_time] will be set.
-   * The other [Attempt][google.cloud.tasks.v2.Attempt] information is not retained by Cloud Tasks.
-   * 
- * - * .google.cloud.tasks.v2.Attempt first_attempt = 9; - * - * @return Whether the firstAttempt field is set. - */ - @java.lang.Override - public boolean hasFirstAttempt() { - return firstAttempt_ != null; - } - /** - * - * - *
-   * Output only. The status of the task's first attempt.
-   * Only [dispatch_time][google.cloud.tasks.v2.Attempt.dispatch_time] will be set.
-   * The other [Attempt][google.cloud.tasks.v2.Attempt] information is not retained by Cloud Tasks.
-   * 
- * - * .google.cloud.tasks.v2.Attempt first_attempt = 9; - * - * @return The firstAttempt. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.Attempt getFirstAttempt() { - return firstAttempt_ == null - ? com.google.cloud.tasks.v2.Attempt.getDefaultInstance() - : firstAttempt_; - } - /** - * - * - *
-   * Output only. The status of the task's first attempt.
-   * Only [dispatch_time][google.cloud.tasks.v2.Attempt.dispatch_time] will be set.
-   * The other [Attempt][google.cloud.tasks.v2.Attempt] information is not retained by Cloud Tasks.
-   * 
- * - * .google.cloud.tasks.v2.Attempt first_attempt = 9; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.AttemptOrBuilder getFirstAttemptOrBuilder() { - return getFirstAttempt(); - } - - public static final int LAST_ATTEMPT_FIELD_NUMBER = 10; - private com.google.cloud.tasks.v2.Attempt lastAttempt_; - /** - * - * - *
-   * Output only. The status of the task's last attempt.
-   * 
- * - * .google.cloud.tasks.v2.Attempt last_attempt = 10; - * - * @return Whether the lastAttempt field is set. - */ - @java.lang.Override - public boolean hasLastAttempt() { - return lastAttempt_ != null; - } - /** - * - * - *
-   * Output only. The status of the task's last attempt.
-   * 
- * - * .google.cloud.tasks.v2.Attempt last_attempt = 10; - * - * @return The lastAttempt. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.Attempt getLastAttempt() { - return lastAttempt_ == null - ? com.google.cloud.tasks.v2.Attempt.getDefaultInstance() - : lastAttempt_; - } - /** - * - * - *
-   * Output only. The status of the task's last attempt.
-   * 
- * - * .google.cloud.tasks.v2.Attempt last_attempt = 10; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.AttemptOrBuilder getLastAttemptOrBuilder() { - return getLastAttempt(); - } - - public static final int VIEW_FIELD_NUMBER = 11; - private int view_; - /** - * - * - *
-   * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2.Task] has
-   * been returned.
-   * 
- * - * .google.cloud.tasks.v2.Task.View view = 11; - * - * @return The enum numeric value on the wire for view. - */ - @java.lang.Override - public int getViewValue() { - return view_; - } - /** - * - * - *
-   * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2.Task] has
-   * been returned.
-   * 
- * - * .google.cloud.tasks.v2.Task.View view = 11; - * - * @return The view. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.Task.View getView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2.Task.View result = com.google.cloud.tasks.v2.Task.View.valueOf(view_); - return result == null ? com.google.cloud.tasks.v2.Task.View.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (messageTypeCase_ == 2) { - output.writeMessage(2, (com.google.cloud.tasks.v2.AppEngineHttpRequest) messageType_); - } - if (messageTypeCase_ == 3) { - output.writeMessage(3, (com.google.cloud.tasks.v2.HttpRequest) messageType_); - } - if (scheduleTime_ != null) { - output.writeMessage(4, getScheduleTime()); - } - if (createTime_ != null) { - output.writeMessage(5, getCreateTime()); - } - if (dispatchDeadline_ != null) { - output.writeMessage(6, getDispatchDeadline()); - } - if (dispatchCount_ != 0) { - output.writeInt32(7, dispatchCount_); - } - if (responseCount_ != 0) { - output.writeInt32(8, responseCount_); - } - if (firstAttempt_ != null) { - output.writeMessage(9, getFirstAttempt()); - } - if (lastAttempt_ != null) { - output.writeMessage(10, getLastAttempt()); - } - if (view_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - output.writeEnum(11, view_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (messageTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.tasks.v2.AppEngineHttpRequest) messageType_); - } - if (messageTypeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.tasks.v2.HttpRequest) messageType_); - } - if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getScheduleTime()); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); - } - if (dispatchDeadline_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getDispatchDeadline()); - } - if (dispatchCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, dispatchCount_); - } - if (responseCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, responseCount_); - } - if (firstAttempt_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getFirstAttempt()); - } - if (lastAttempt_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getLastAttempt()); - } - if (view_ != com.google.cloud.tasks.v2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, view_); - } - 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.v2.Task)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.Task other = (com.google.cloud.tasks.v2.Task) obj; - - if (!getName().equals(other.getName())) return false; - if (hasScheduleTime() != other.hasScheduleTime()) return false; - if (hasScheduleTime()) { - if (!getScheduleTime().equals(other.getScheduleTime())) return false; - } - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasDispatchDeadline() != other.hasDispatchDeadline()) return false; - if (hasDispatchDeadline()) { - if (!getDispatchDeadline().equals(other.getDispatchDeadline())) return false; - } - if (getDispatchCount() != other.getDispatchCount()) return false; - if (getResponseCount() != other.getResponseCount()) return false; - if (hasFirstAttempt() != other.hasFirstAttempt()) return false; - if (hasFirstAttempt()) { - if (!getFirstAttempt().equals(other.getFirstAttempt())) return false; - } - if (hasLastAttempt() != other.hasLastAttempt()) return false; - if (hasLastAttempt()) { - if (!getLastAttempt().equals(other.getLastAttempt())) return false; - } - if (view_ != other.view_) return false; - if (!getMessageTypeCase().equals(other.getMessageTypeCase())) return false; - switch (messageTypeCase_) { - case 2: - if (!getAppEngineHttpRequest().equals(other.getAppEngineHttpRequest())) return false; - break; - case 3: - if (!getHttpRequest().equals(other.getHttpRequest())) return false; - break; - case 0: - default: - } - 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasScheduleTime()) { - hash = (37 * hash) + SCHEDULE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getScheduleTime().hashCode(); - } - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasDispatchDeadline()) { - hash = (37 * hash) + DISPATCH_DEADLINE_FIELD_NUMBER; - hash = (53 * hash) + getDispatchDeadline().hashCode(); - } - hash = (37 * hash) + DISPATCH_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getDispatchCount(); - hash = (37 * hash) + RESPONSE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getResponseCount(); - if (hasFirstAttempt()) { - hash = (37 * hash) + FIRST_ATTEMPT_FIELD_NUMBER; - hash = (53 * hash) + getFirstAttempt().hashCode(); - } - if (hasLastAttempt()) { - hash = (37 * hash) + LAST_ATTEMPT_FIELD_NUMBER; - hash = (53 * hash) + getLastAttempt().hashCode(); - } - hash = (37 * hash) + VIEW_FIELD_NUMBER; - hash = (53 * hash) + view_; - switch (messageTypeCase_) { - case 2: - hash = (37 * hash) + APP_ENGINE_HTTP_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getAppEngineHttpRequest().hashCode(); - break; - case 3: - hash = (37 * hash) + HTTP_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getHttpRequest().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.Task parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.Task parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.Task parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.Task parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.Task parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.Task parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.Task parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.Task parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.Task parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.Task parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.Task parseFrom(com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.Task parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.Task prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A unit of scheduled work.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.Task} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.Task) - com.google.cloud.tasks.v2.TaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.TaskProto - .internal_static_google_cloud_tasks_v2_Task_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.TaskProto - .internal_static_google_cloud_tasks_v2_Task_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.Task.class, com.google.cloud.tasks.v2.Task.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.Task.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (appEngineHttpRequestBuilder_ != null) { - appEngineHttpRequestBuilder_.clear(); - } - if (httpRequestBuilder_ != null) { - httpRequestBuilder_.clear(); - } - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = null; - } else { - scheduleTime_ = null; - scheduleTimeBuilder_ = null; - } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (dispatchDeadlineBuilder_ == null) { - dispatchDeadline_ = null; - } else { - dispatchDeadline_ = null; - dispatchDeadlineBuilder_ = null; - } - dispatchCount_ = 0; - - responseCount_ = 0; - - if (firstAttemptBuilder_ == null) { - firstAttempt_ = null; - } else { - firstAttempt_ = null; - firstAttemptBuilder_ = null; - } - if (lastAttemptBuilder_ == null) { - lastAttempt_ = null; - } else { - lastAttempt_ = null; - lastAttemptBuilder_ = null; - } - view_ = 0; - - messageTypeCase_ = 0; - messageType_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.TaskProto - .internal_static_google_cloud_tasks_v2_Task_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.Task getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.Task.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.Task build() { - com.google.cloud.tasks.v2.Task result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.Task buildPartial() { - com.google.cloud.tasks.v2.Task result = new com.google.cloud.tasks.v2.Task(this); - result.name_ = name_; - if (messageTypeCase_ == 2) { - if (appEngineHttpRequestBuilder_ == null) { - result.messageType_ = messageType_; - } else { - result.messageType_ = appEngineHttpRequestBuilder_.build(); - } - } - if (messageTypeCase_ == 3) { - if (httpRequestBuilder_ == null) { - result.messageType_ = messageType_; - } else { - result.messageType_ = httpRequestBuilder_.build(); - } - } - if (scheduleTimeBuilder_ == null) { - result.scheduleTime_ = scheduleTime_; - } else { - result.scheduleTime_ = scheduleTimeBuilder_.build(); - } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (dispatchDeadlineBuilder_ == null) { - result.dispatchDeadline_ = dispatchDeadline_; - } else { - result.dispatchDeadline_ = dispatchDeadlineBuilder_.build(); - } - result.dispatchCount_ = dispatchCount_; - result.responseCount_ = responseCount_; - if (firstAttemptBuilder_ == null) { - result.firstAttempt_ = firstAttempt_; - } else { - result.firstAttempt_ = firstAttemptBuilder_.build(); - } - if (lastAttemptBuilder_ == null) { - result.lastAttempt_ = lastAttempt_; - } else { - result.lastAttempt_ = lastAttemptBuilder_.build(); - } - result.view_ = view_; - result.messageTypeCase_ = messageTypeCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.Task) { - return mergeFrom((com.google.cloud.tasks.v2.Task) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.Task other) { - if (other == com.google.cloud.tasks.v2.Task.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasScheduleTime()) { - mergeScheduleTime(other.getScheduleTime()); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasDispatchDeadline()) { - mergeDispatchDeadline(other.getDispatchDeadline()); - } - if (other.getDispatchCount() != 0) { - setDispatchCount(other.getDispatchCount()); - } - if (other.getResponseCount() != 0) { - setResponseCount(other.getResponseCount()); - } - if (other.hasFirstAttempt()) { - mergeFirstAttempt(other.getFirstAttempt()); - } - if (other.hasLastAttempt()) { - mergeLastAttempt(other.getLastAttempt()); - } - if (other.view_ != 0) { - setViewValue(other.getViewValue()); - } - switch (other.getMessageTypeCase()) { - case APP_ENGINE_HTTP_REQUEST: - { - mergeAppEngineHttpRequest(other.getAppEngineHttpRequest()); - break; - } - case HTTP_REQUEST: - { - mergeHttpRequest(other.getHttpRequest()); - break; - } - case MESSAGETYPE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage( - getAppEngineHttpRequestFieldBuilder().getBuilder(), extensionRegistry); - messageTypeCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getHttpRequestFieldBuilder().getBuilder(), extensionRegistry); - messageTypeCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 50: - { - input.readMessage( - getDispatchDeadlineFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 56: - { - dispatchCount_ = input.readInt32(); - - break; - } // case 56 - case 64: - { - responseCount_ = input.readInt32(); - - break; - } // case 64 - case 74: - { - input.readMessage(getFirstAttemptFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 74 - case 82: - { - input.readMessage(getLastAttemptFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 82 - case 88: - { - view_ = input.readEnum(); - - break; - } // case 88 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int messageTypeCase_ = 0; - private java.lang.Object messageType_; - - public MessageTypeCase getMessageTypeCase() { - return MessageTypeCase.forNumber(messageTypeCase_); - } - - public Builder clearMessageType() { - messageTypeCase_ = 0; - messageType_ = null; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask].
-     * The task name.
-     * The task name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the task's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-     *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask].
-     * The task name.
-     * The task name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the task's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-     *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask].
-     * The task name.
-     * The task name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the task's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-     *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask].
-     * The task name.
-     * The task name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the task's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-     *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask].
-     * The task name.
-     * The task name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the task's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-     *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.AppEngineHttpRequest, - com.google.cloud.tasks.v2.AppEngineHttpRequest.Builder, - com.google.cloud.tasks.v2.AppEngineHttpRequestOrBuilder> - appEngineHttpRequestBuilder_; - /** - * - * - *
-     * HTTP request that is sent to the App Engine app handler.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2.AppEngineHttpRequest app_engine_http_request = 2; - * - * @return Whether the appEngineHttpRequest field is set. - */ - @java.lang.Override - public boolean hasAppEngineHttpRequest() { - return messageTypeCase_ == 2; - } - /** - * - * - *
-     * HTTP request that is sent to the App Engine app handler.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2.AppEngineHttpRequest app_engine_http_request = 2; - * - * @return The appEngineHttpRequest. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.AppEngineHttpRequest getAppEngineHttpRequest() { - if (appEngineHttpRequestBuilder_ == null) { - if (messageTypeCase_ == 2) { - return (com.google.cloud.tasks.v2.AppEngineHttpRequest) messageType_; - } - return com.google.cloud.tasks.v2.AppEngineHttpRequest.getDefaultInstance(); - } else { - if (messageTypeCase_ == 2) { - return appEngineHttpRequestBuilder_.getMessage(); - } - return com.google.cloud.tasks.v2.AppEngineHttpRequest.getDefaultInstance(); - } - } - /** - * - * - *
-     * HTTP request that is sent to the App Engine app handler.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2.AppEngineHttpRequest app_engine_http_request = 2; - */ - public Builder setAppEngineHttpRequest(com.google.cloud.tasks.v2.AppEngineHttpRequest value) { - if (appEngineHttpRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - messageType_ = value; - onChanged(); - } else { - appEngineHttpRequestBuilder_.setMessage(value); - } - messageTypeCase_ = 2; - return this; - } - /** - * - * - *
-     * HTTP request that is sent to the App Engine app handler.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2.AppEngineHttpRequest app_engine_http_request = 2; - */ - public Builder setAppEngineHttpRequest( - com.google.cloud.tasks.v2.AppEngineHttpRequest.Builder builderForValue) { - if (appEngineHttpRequestBuilder_ == null) { - messageType_ = builderForValue.build(); - onChanged(); - } else { - appEngineHttpRequestBuilder_.setMessage(builderForValue.build()); - } - messageTypeCase_ = 2; - return this; - } - /** - * - * - *
-     * HTTP request that is sent to the App Engine app handler.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2.AppEngineHttpRequest app_engine_http_request = 2; - */ - public Builder mergeAppEngineHttpRequest(com.google.cloud.tasks.v2.AppEngineHttpRequest value) { - if (appEngineHttpRequestBuilder_ == null) { - if (messageTypeCase_ == 2 - && messageType_ - != com.google.cloud.tasks.v2.AppEngineHttpRequest.getDefaultInstance()) { - messageType_ = - com.google.cloud.tasks.v2.AppEngineHttpRequest.newBuilder( - (com.google.cloud.tasks.v2.AppEngineHttpRequest) messageType_) - .mergeFrom(value) - .buildPartial(); - } else { - messageType_ = value; - } - onChanged(); - } else { - if (messageTypeCase_ == 2) { - appEngineHttpRequestBuilder_.mergeFrom(value); - } else { - appEngineHttpRequestBuilder_.setMessage(value); - } - } - messageTypeCase_ = 2; - return this; - } - /** - * - * - *
-     * HTTP request that is sent to the App Engine app handler.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2.AppEngineHttpRequest app_engine_http_request = 2; - */ - public Builder clearAppEngineHttpRequest() { - if (appEngineHttpRequestBuilder_ == null) { - if (messageTypeCase_ == 2) { - messageTypeCase_ = 0; - messageType_ = null; - onChanged(); - } - } else { - if (messageTypeCase_ == 2) { - messageTypeCase_ = 0; - messageType_ = null; - } - appEngineHttpRequestBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * HTTP request that is sent to the App Engine app handler.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2.AppEngineHttpRequest app_engine_http_request = 2; - */ - public com.google.cloud.tasks.v2.AppEngineHttpRequest.Builder getAppEngineHttpRequestBuilder() { - return getAppEngineHttpRequestFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * HTTP request that is sent to the App Engine app handler.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2.AppEngineHttpRequest app_engine_http_request = 2; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.AppEngineHttpRequestOrBuilder - getAppEngineHttpRequestOrBuilder() { - if ((messageTypeCase_ == 2) && (appEngineHttpRequestBuilder_ != null)) { - return appEngineHttpRequestBuilder_.getMessageOrBuilder(); - } else { - if (messageTypeCase_ == 2) { - return (com.google.cloud.tasks.v2.AppEngineHttpRequest) messageType_; - } - return com.google.cloud.tasks.v2.AppEngineHttpRequest.getDefaultInstance(); - } - } - /** - * - * - *
-     * HTTP request that is sent to the App Engine app handler.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2.AppEngineHttpRequest app_engine_http_request = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.AppEngineHttpRequest, - com.google.cloud.tasks.v2.AppEngineHttpRequest.Builder, - com.google.cloud.tasks.v2.AppEngineHttpRequestOrBuilder> - getAppEngineHttpRequestFieldBuilder() { - if (appEngineHttpRequestBuilder_ == null) { - if (!(messageTypeCase_ == 2)) { - messageType_ = com.google.cloud.tasks.v2.AppEngineHttpRequest.getDefaultInstance(); - } - appEngineHttpRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.AppEngineHttpRequest, - com.google.cloud.tasks.v2.AppEngineHttpRequest.Builder, - com.google.cloud.tasks.v2.AppEngineHttpRequestOrBuilder>( - (com.google.cloud.tasks.v2.AppEngineHttpRequest) messageType_, - getParentForChildren(), - isClean()); - messageType_ = null; - } - messageTypeCase_ = 2; - onChanged(); - ; - return appEngineHttpRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.HttpRequest, - com.google.cloud.tasks.v2.HttpRequest.Builder, - com.google.cloud.tasks.v2.HttpRequestOrBuilder> - httpRequestBuilder_; - /** - * - * - *
-     * HTTP request that is sent to the worker.
-     * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2.HttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2.HttpRequest http_request = 3; - * - * @return Whether the httpRequest field is set. - */ - @java.lang.Override - public boolean hasHttpRequest() { - return messageTypeCase_ == 3; - } - /** - * - * - *
-     * HTTP request that is sent to the worker.
-     * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2.HttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2.HttpRequest http_request = 3; - * - * @return The httpRequest. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.HttpRequest getHttpRequest() { - if (httpRequestBuilder_ == null) { - if (messageTypeCase_ == 3) { - return (com.google.cloud.tasks.v2.HttpRequest) messageType_; - } - return com.google.cloud.tasks.v2.HttpRequest.getDefaultInstance(); - } else { - if (messageTypeCase_ == 3) { - return httpRequestBuilder_.getMessage(); - } - return com.google.cloud.tasks.v2.HttpRequest.getDefaultInstance(); - } - } - /** - * - * - *
-     * HTTP request that is sent to the worker.
-     * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2.HttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2.HttpRequest http_request = 3; - */ - public Builder setHttpRequest(com.google.cloud.tasks.v2.HttpRequest value) { - if (httpRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - messageType_ = value; - onChanged(); - } else { - httpRequestBuilder_.setMessage(value); - } - messageTypeCase_ = 3; - return this; - } - /** - * - * - *
-     * HTTP request that is sent to the worker.
-     * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2.HttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2.HttpRequest http_request = 3; - */ - public Builder setHttpRequest(com.google.cloud.tasks.v2.HttpRequest.Builder builderForValue) { - if (httpRequestBuilder_ == null) { - messageType_ = builderForValue.build(); - onChanged(); - } else { - httpRequestBuilder_.setMessage(builderForValue.build()); - } - messageTypeCase_ = 3; - return this; - } - /** - * - * - *
-     * HTTP request that is sent to the worker.
-     * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2.HttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2.HttpRequest http_request = 3; - */ - public Builder mergeHttpRequest(com.google.cloud.tasks.v2.HttpRequest value) { - if (httpRequestBuilder_ == null) { - if (messageTypeCase_ == 3 - && messageType_ != com.google.cloud.tasks.v2.HttpRequest.getDefaultInstance()) { - messageType_ = - com.google.cloud.tasks.v2.HttpRequest.newBuilder( - (com.google.cloud.tasks.v2.HttpRequest) messageType_) - .mergeFrom(value) - .buildPartial(); - } else { - messageType_ = value; - } - onChanged(); - } else { - if (messageTypeCase_ == 3) { - httpRequestBuilder_.mergeFrom(value); - } else { - httpRequestBuilder_.setMessage(value); - } - } - messageTypeCase_ = 3; - return this; - } - /** - * - * - *
-     * HTTP request that is sent to the worker.
-     * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2.HttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2.HttpRequest http_request = 3; - */ - public Builder clearHttpRequest() { - if (httpRequestBuilder_ == null) { - if (messageTypeCase_ == 3) { - messageTypeCase_ = 0; - messageType_ = null; - onChanged(); - } - } else { - if (messageTypeCase_ == 3) { - messageTypeCase_ = 0; - messageType_ = null; - } - httpRequestBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * HTTP request that is sent to the worker.
-     * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2.HttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2.HttpRequest http_request = 3; - */ - public com.google.cloud.tasks.v2.HttpRequest.Builder getHttpRequestBuilder() { - return getHttpRequestFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * HTTP request that is sent to the worker.
-     * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2.HttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2.HttpRequest http_request = 3; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.HttpRequestOrBuilder getHttpRequestOrBuilder() { - if ((messageTypeCase_ == 3) && (httpRequestBuilder_ != null)) { - return httpRequestBuilder_.getMessageOrBuilder(); - } else { - if (messageTypeCase_ == 3) { - return (com.google.cloud.tasks.v2.HttpRequest) messageType_; - } - return com.google.cloud.tasks.v2.HttpRequest.getDefaultInstance(); - } - } - /** - * - * - *
-     * HTTP request that is sent to the worker.
-     * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2.HttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2.HttpRequest http_request = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.HttpRequest, - com.google.cloud.tasks.v2.HttpRequest.Builder, - com.google.cloud.tasks.v2.HttpRequestOrBuilder> - getHttpRequestFieldBuilder() { - if (httpRequestBuilder_ == null) { - if (!(messageTypeCase_ == 3)) { - messageType_ = com.google.cloud.tasks.v2.HttpRequest.getDefaultInstance(); - } - httpRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.HttpRequest, - com.google.cloud.tasks.v2.HttpRequest.Builder, - com.google.cloud.tasks.v2.HttpRequestOrBuilder>( - (com.google.cloud.tasks.v2.HttpRequest) messageType_, - getParentForChildren(), - isClean()); - messageType_ = null; - } - messageTypeCase_ = 3; - onChanged(); - ; - return httpRequestBuilder_; - } - - private com.google.protobuf.Timestamp scheduleTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - scheduleTimeBuilder_; - /** - * - * - *
-     * The time when the task is scheduled to be attempted or retried.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - * - * @return Whether the scheduleTime field is set. - */ - public boolean hasScheduleTime() { - return scheduleTimeBuilder_ != null || scheduleTime_ != null; - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted or retried.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - * - * @return The scheduleTime. - */ - public com.google.protobuf.Timestamp getScheduleTime() { - if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } else { - return scheduleTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted or retried.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - */ - public Builder setScheduleTime(com.google.protobuf.Timestamp value) { - if (scheduleTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduleTime_ = value; - onChanged(); - } else { - scheduleTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted or retried.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - */ - public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = builderForValue.build(); - onChanged(); - } else { - scheduleTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted or retried.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - */ - public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { - if (scheduleTimeBuilder_ == null) { - if (scheduleTime_ != null) { - scheduleTime_ = - com.google.protobuf.Timestamp.newBuilder(scheduleTime_) - .mergeFrom(value) - .buildPartial(); - } else { - scheduleTime_ = value; - } - onChanged(); - } else { - scheduleTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted or retried.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - */ - public Builder clearScheduleTime() { - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = null; - onChanged(); - } else { - scheduleTime_ = null; - scheduleTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted or retried.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - */ - public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { - - onChanged(); - return getScheduleTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted or retried.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - */ - public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { - if (scheduleTimeBuilder_ != null) { - return scheduleTimeBuilder_.getMessageOrBuilder(); - } else { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted or retried.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getScheduleTimeFieldBuilder() { - if (scheduleTimeBuilder_ == null) { - scheduleTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getScheduleTime(), getParentForChildren(), isClean()); - scheduleTime_ = null; - } - return scheduleTimeBuilder_; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 5; - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 5; - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 5; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 5; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 5; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 5; - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 5; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 5; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Duration dispatchDeadline_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - dispatchDeadlineBuilder_; - /** - * - * - *
-     * The deadline for requests sent to the worker. If the worker does not
-     * respond by this deadline then the request is cancelled and the attempt
-     * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-     * task according to the [RetryConfig][google.cloud.tasks.v2.RetryConfig].
-     * Note that when the request is cancelled, Cloud Tasks will stop listing for
-     * the response, but whether the worker stops processing depends on the
-     * worker. For example, if the worker is stuck, it may not react to cancelled
-     * requests.
-     * The default and maximum values depend on the type of request:
-     * * For [HTTP tasks][google.cloud.tasks.v2.HttpRequest], the default is 10 minutes. The deadline
-     *   must be in the interval [15 seconds, 30 minutes].
-     * * For [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest], 0 indicates that the
-     *   request has the default deadline. The default deadline depends on the
-     *   [scaling
-     *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-     *   of the service: 10 minutes for standard apps with automatic scaling, 24
-     *   hours for standard apps with manual and basic scaling, and 60 minutes for
-     *   flex apps. If the request deadline is set, it must be in the interval [15
-     *   seconds, 24 hours 15 seconds]. Regardless of the task's
-     *   `dispatch_deadline`, the app handler will not run for longer than than
-     *   the service's timeout. We recommend setting the `dispatch_deadline` to
-     *   at most a few seconds more than the app handler's timeout. For more
-     *   information see
-     *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-     * `dispatch_deadline` will be truncated to the nearest millisecond. The
-     * deadline is an approximate deadline.
-     * 
- * - * .google.protobuf.Duration dispatch_deadline = 6; - * - * @return Whether the dispatchDeadline field is set. - */ - public boolean hasDispatchDeadline() { - return dispatchDeadlineBuilder_ != null || dispatchDeadline_ != null; - } - /** - * - * - *
-     * The deadline for requests sent to the worker. If the worker does not
-     * respond by this deadline then the request is cancelled and the attempt
-     * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-     * task according to the [RetryConfig][google.cloud.tasks.v2.RetryConfig].
-     * Note that when the request is cancelled, Cloud Tasks will stop listing for
-     * the response, but whether the worker stops processing depends on the
-     * worker. For example, if the worker is stuck, it may not react to cancelled
-     * requests.
-     * The default and maximum values depend on the type of request:
-     * * For [HTTP tasks][google.cloud.tasks.v2.HttpRequest], the default is 10 minutes. The deadline
-     *   must be in the interval [15 seconds, 30 minutes].
-     * * For [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest], 0 indicates that the
-     *   request has the default deadline. The default deadline depends on the
-     *   [scaling
-     *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-     *   of the service: 10 minutes for standard apps with automatic scaling, 24
-     *   hours for standard apps with manual and basic scaling, and 60 minutes for
-     *   flex apps. If the request deadline is set, it must be in the interval [15
-     *   seconds, 24 hours 15 seconds]. Regardless of the task's
-     *   `dispatch_deadline`, the app handler will not run for longer than than
-     *   the service's timeout. We recommend setting the `dispatch_deadline` to
-     *   at most a few seconds more than the app handler's timeout. For more
-     *   information see
-     *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-     * `dispatch_deadline` will be truncated to the nearest millisecond. The
-     * deadline is an approximate deadline.
-     * 
- * - * .google.protobuf.Duration dispatch_deadline = 6; - * - * @return The dispatchDeadline. - */ - public com.google.protobuf.Duration getDispatchDeadline() { - if (dispatchDeadlineBuilder_ == null) { - return dispatchDeadline_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : dispatchDeadline_; - } else { - return dispatchDeadlineBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The deadline for requests sent to the worker. If the worker does not
-     * respond by this deadline then the request is cancelled and the attempt
-     * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-     * task according to the [RetryConfig][google.cloud.tasks.v2.RetryConfig].
-     * Note that when the request is cancelled, Cloud Tasks will stop listing for
-     * the response, but whether the worker stops processing depends on the
-     * worker. For example, if the worker is stuck, it may not react to cancelled
-     * requests.
-     * The default and maximum values depend on the type of request:
-     * * For [HTTP tasks][google.cloud.tasks.v2.HttpRequest], the default is 10 minutes. The deadline
-     *   must be in the interval [15 seconds, 30 minutes].
-     * * For [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest], 0 indicates that the
-     *   request has the default deadline. The default deadline depends on the
-     *   [scaling
-     *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-     *   of the service: 10 minutes for standard apps with automatic scaling, 24
-     *   hours for standard apps with manual and basic scaling, and 60 minutes for
-     *   flex apps. If the request deadline is set, it must be in the interval [15
-     *   seconds, 24 hours 15 seconds]. Regardless of the task's
-     *   `dispatch_deadline`, the app handler will not run for longer than than
-     *   the service's timeout. We recommend setting the `dispatch_deadline` to
-     *   at most a few seconds more than the app handler's timeout. For more
-     *   information see
-     *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-     * `dispatch_deadline` will be truncated to the nearest millisecond. The
-     * deadline is an approximate deadline.
-     * 
- * - * .google.protobuf.Duration dispatch_deadline = 6; - */ - public Builder setDispatchDeadline(com.google.protobuf.Duration value) { - if (dispatchDeadlineBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dispatchDeadline_ = value; - onChanged(); - } else { - dispatchDeadlineBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The deadline for requests sent to the worker. If the worker does not
-     * respond by this deadline then the request is cancelled and the attempt
-     * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-     * task according to the [RetryConfig][google.cloud.tasks.v2.RetryConfig].
-     * Note that when the request is cancelled, Cloud Tasks will stop listing for
-     * the response, but whether the worker stops processing depends on the
-     * worker. For example, if the worker is stuck, it may not react to cancelled
-     * requests.
-     * The default and maximum values depend on the type of request:
-     * * For [HTTP tasks][google.cloud.tasks.v2.HttpRequest], the default is 10 minutes. The deadline
-     *   must be in the interval [15 seconds, 30 minutes].
-     * * For [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest], 0 indicates that the
-     *   request has the default deadline. The default deadline depends on the
-     *   [scaling
-     *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-     *   of the service: 10 minutes for standard apps with automatic scaling, 24
-     *   hours for standard apps with manual and basic scaling, and 60 minutes for
-     *   flex apps. If the request deadline is set, it must be in the interval [15
-     *   seconds, 24 hours 15 seconds]. Regardless of the task's
-     *   `dispatch_deadline`, the app handler will not run for longer than than
-     *   the service's timeout. We recommend setting the `dispatch_deadline` to
-     *   at most a few seconds more than the app handler's timeout. For more
-     *   information see
-     *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-     * `dispatch_deadline` will be truncated to the nearest millisecond. The
-     * deadline is an approximate deadline.
-     * 
- * - * .google.protobuf.Duration dispatch_deadline = 6; - */ - public Builder setDispatchDeadline(com.google.protobuf.Duration.Builder builderForValue) { - if (dispatchDeadlineBuilder_ == null) { - dispatchDeadline_ = builderForValue.build(); - onChanged(); - } else { - dispatchDeadlineBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The deadline for requests sent to the worker. If the worker does not
-     * respond by this deadline then the request is cancelled and the attempt
-     * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-     * task according to the [RetryConfig][google.cloud.tasks.v2.RetryConfig].
-     * Note that when the request is cancelled, Cloud Tasks will stop listing for
-     * the response, but whether the worker stops processing depends on the
-     * worker. For example, if the worker is stuck, it may not react to cancelled
-     * requests.
-     * The default and maximum values depend on the type of request:
-     * * For [HTTP tasks][google.cloud.tasks.v2.HttpRequest], the default is 10 minutes. The deadline
-     *   must be in the interval [15 seconds, 30 minutes].
-     * * For [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest], 0 indicates that the
-     *   request has the default deadline. The default deadline depends on the
-     *   [scaling
-     *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-     *   of the service: 10 minutes for standard apps with automatic scaling, 24
-     *   hours for standard apps with manual and basic scaling, and 60 minutes for
-     *   flex apps. If the request deadline is set, it must be in the interval [15
-     *   seconds, 24 hours 15 seconds]. Regardless of the task's
-     *   `dispatch_deadline`, the app handler will not run for longer than than
-     *   the service's timeout. We recommend setting the `dispatch_deadline` to
-     *   at most a few seconds more than the app handler's timeout. For more
-     *   information see
-     *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-     * `dispatch_deadline` will be truncated to the nearest millisecond. The
-     * deadline is an approximate deadline.
-     * 
- * - * .google.protobuf.Duration dispatch_deadline = 6; - */ - public Builder mergeDispatchDeadline(com.google.protobuf.Duration value) { - if (dispatchDeadlineBuilder_ == null) { - if (dispatchDeadline_ != null) { - dispatchDeadline_ = - com.google.protobuf.Duration.newBuilder(dispatchDeadline_) - .mergeFrom(value) - .buildPartial(); - } else { - dispatchDeadline_ = value; - } - onChanged(); - } else { - dispatchDeadlineBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The deadline for requests sent to the worker. If the worker does not
-     * respond by this deadline then the request is cancelled and the attempt
-     * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-     * task according to the [RetryConfig][google.cloud.tasks.v2.RetryConfig].
-     * Note that when the request is cancelled, Cloud Tasks will stop listing for
-     * the response, but whether the worker stops processing depends on the
-     * worker. For example, if the worker is stuck, it may not react to cancelled
-     * requests.
-     * The default and maximum values depend on the type of request:
-     * * For [HTTP tasks][google.cloud.tasks.v2.HttpRequest], the default is 10 minutes. The deadline
-     *   must be in the interval [15 seconds, 30 minutes].
-     * * For [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest], 0 indicates that the
-     *   request has the default deadline. The default deadline depends on the
-     *   [scaling
-     *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-     *   of the service: 10 minutes for standard apps with automatic scaling, 24
-     *   hours for standard apps with manual and basic scaling, and 60 minutes for
-     *   flex apps. If the request deadline is set, it must be in the interval [15
-     *   seconds, 24 hours 15 seconds]. Regardless of the task's
-     *   `dispatch_deadline`, the app handler will not run for longer than than
-     *   the service's timeout. We recommend setting the `dispatch_deadline` to
-     *   at most a few seconds more than the app handler's timeout. For more
-     *   information see
-     *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-     * `dispatch_deadline` will be truncated to the nearest millisecond. The
-     * deadline is an approximate deadline.
-     * 
- * - * .google.protobuf.Duration dispatch_deadline = 6; - */ - public Builder clearDispatchDeadline() { - if (dispatchDeadlineBuilder_ == null) { - dispatchDeadline_ = null; - onChanged(); - } else { - dispatchDeadline_ = null; - dispatchDeadlineBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The deadline for requests sent to the worker. If the worker does not
-     * respond by this deadline then the request is cancelled and the attempt
-     * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-     * task according to the [RetryConfig][google.cloud.tasks.v2.RetryConfig].
-     * Note that when the request is cancelled, Cloud Tasks will stop listing for
-     * the response, but whether the worker stops processing depends on the
-     * worker. For example, if the worker is stuck, it may not react to cancelled
-     * requests.
-     * The default and maximum values depend on the type of request:
-     * * For [HTTP tasks][google.cloud.tasks.v2.HttpRequest], the default is 10 minutes. The deadline
-     *   must be in the interval [15 seconds, 30 minutes].
-     * * For [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest], 0 indicates that the
-     *   request has the default deadline. The default deadline depends on the
-     *   [scaling
-     *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-     *   of the service: 10 minutes for standard apps with automatic scaling, 24
-     *   hours for standard apps with manual and basic scaling, and 60 minutes for
-     *   flex apps. If the request deadline is set, it must be in the interval [15
-     *   seconds, 24 hours 15 seconds]. Regardless of the task's
-     *   `dispatch_deadline`, the app handler will not run for longer than than
-     *   the service's timeout. We recommend setting the `dispatch_deadline` to
-     *   at most a few seconds more than the app handler's timeout. For more
-     *   information see
-     *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-     * `dispatch_deadline` will be truncated to the nearest millisecond. The
-     * deadline is an approximate deadline.
-     * 
- * - * .google.protobuf.Duration dispatch_deadline = 6; - */ - public com.google.protobuf.Duration.Builder getDispatchDeadlineBuilder() { - - onChanged(); - return getDispatchDeadlineFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The deadline for requests sent to the worker. If the worker does not
-     * respond by this deadline then the request is cancelled and the attempt
-     * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-     * task according to the [RetryConfig][google.cloud.tasks.v2.RetryConfig].
-     * Note that when the request is cancelled, Cloud Tasks will stop listing for
-     * the response, but whether the worker stops processing depends on the
-     * worker. For example, if the worker is stuck, it may not react to cancelled
-     * requests.
-     * The default and maximum values depend on the type of request:
-     * * For [HTTP tasks][google.cloud.tasks.v2.HttpRequest], the default is 10 minutes. The deadline
-     *   must be in the interval [15 seconds, 30 minutes].
-     * * For [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest], 0 indicates that the
-     *   request has the default deadline. The default deadline depends on the
-     *   [scaling
-     *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-     *   of the service: 10 minutes for standard apps with automatic scaling, 24
-     *   hours for standard apps with manual and basic scaling, and 60 minutes for
-     *   flex apps. If the request deadline is set, it must be in the interval [15
-     *   seconds, 24 hours 15 seconds]. Regardless of the task's
-     *   `dispatch_deadline`, the app handler will not run for longer than than
-     *   the service's timeout. We recommend setting the `dispatch_deadline` to
-     *   at most a few seconds more than the app handler's timeout. For more
-     *   information see
-     *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-     * `dispatch_deadline` will be truncated to the nearest millisecond. The
-     * deadline is an approximate deadline.
-     * 
- * - * .google.protobuf.Duration dispatch_deadline = 6; - */ - public com.google.protobuf.DurationOrBuilder getDispatchDeadlineOrBuilder() { - if (dispatchDeadlineBuilder_ != null) { - return dispatchDeadlineBuilder_.getMessageOrBuilder(); - } else { - return dispatchDeadline_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : dispatchDeadline_; - } - } - /** - * - * - *
-     * The deadline for requests sent to the worker. If the worker does not
-     * respond by this deadline then the request is cancelled and the attempt
-     * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-     * task according to the [RetryConfig][google.cloud.tasks.v2.RetryConfig].
-     * Note that when the request is cancelled, Cloud Tasks will stop listing for
-     * the response, but whether the worker stops processing depends on the
-     * worker. For example, if the worker is stuck, it may not react to cancelled
-     * requests.
-     * The default and maximum values depend on the type of request:
-     * * For [HTTP tasks][google.cloud.tasks.v2.HttpRequest], the default is 10 minutes. The deadline
-     *   must be in the interval [15 seconds, 30 minutes].
-     * * For [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest], 0 indicates that the
-     *   request has the default deadline. The default deadline depends on the
-     *   [scaling
-     *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-     *   of the service: 10 minutes for standard apps with automatic scaling, 24
-     *   hours for standard apps with manual and basic scaling, and 60 minutes for
-     *   flex apps. If the request deadline is set, it must be in the interval [15
-     *   seconds, 24 hours 15 seconds]. Regardless of the task's
-     *   `dispatch_deadline`, the app handler will not run for longer than than
-     *   the service's timeout. We recommend setting the `dispatch_deadline` to
-     *   at most a few seconds more than the app handler's timeout. For more
-     *   information see
-     *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-     * `dispatch_deadline` will be truncated to the nearest millisecond. The
-     * deadline is an approximate deadline.
-     * 
- * - * .google.protobuf.Duration dispatch_deadline = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getDispatchDeadlineFieldBuilder() { - if (dispatchDeadlineBuilder_ == null) { - dispatchDeadlineBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDispatchDeadline(), getParentForChildren(), isClean()); - dispatchDeadline_ = null; - } - return dispatchDeadlineBuilder_; - } - - private int dispatchCount_; - /** - * - * - *
-     * Output only. The number of attempts dispatched.
-     * This count includes attempts which have been dispatched but haven't
-     * received a response.
-     * 
- * - * int32 dispatch_count = 7; - * - * @return The dispatchCount. - */ - @java.lang.Override - public int getDispatchCount() { - return dispatchCount_; - } - /** - * - * - *
-     * Output only. The number of attempts dispatched.
-     * This count includes attempts which have been dispatched but haven't
-     * received a response.
-     * 
- * - * int32 dispatch_count = 7; - * - * @param value The dispatchCount to set. - * @return This builder for chaining. - */ - public Builder setDispatchCount(int value) { - - dispatchCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The number of attempts dispatched.
-     * This count includes attempts which have been dispatched but haven't
-     * received a response.
-     * 
- * - * int32 dispatch_count = 7; - * - * @return This builder for chaining. - */ - public Builder clearDispatchCount() { - - dispatchCount_ = 0; - onChanged(); - return this; - } - - private int responseCount_; - /** - * - * - *
-     * Output only. The number of attempts which have received a response.
-     * 
- * - * int32 response_count = 8; - * - * @return The responseCount. - */ - @java.lang.Override - public int getResponseCount() { - return responseCount_; - } - /** - * - * - *
-     * Output only. The number of attempts which have received a response.
-     * 
- * - * int32 response_count = 8; - * - * @param value The responseCount to set. - * @return This builder for chaining. - */ - public Builder setResponseCount(int value) { - - responseCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The number of attempts which have received a response.
-     * 
- * - * int32 response_count = 8; - * - * @return This builder for chaining. - */ - public Builder clearResponseCount() { - - responseCount_ = 0; - onChanged(); - return this; - } - - private com.google.cloud.tasks.v2.Attempt firstAttempt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.Attempt, - com.google.cloud.tasks.v2.Attempt.Builder, - com.google.cloud.tasks.v2.AttemptOrBuilder> - firstAttemptBuilder_; - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2.Attempt.dispatch_time] will be set.
-     * The other [Attempt][google.cloud.tasks.v2.Attempt] information is not retained by Cloud Tasks.
-     * 
- * - * .google.cloud.tasks.v2.Attempt first_attempt = 9; - * - * @return Whether the firstAttempt field is set. - */ - public boolean hasFirstAttempt() { - return firstAttemptBuilder_ != null || firstAttempt_ != null; - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2.Attempt.dispatch_time] will be set.
-     * The other [Attempt][google.cloud.tasks.v2.Attempt] information is not retained by Cloud Tasks.
-     * 
- * - * .google.cloud.tasks.v2.Attempt first_attempt = 9; - * - * @return The firstAttempt. - */ - public com.google.cloud.tasks.v2.Attempt getFirstAttempt() { - if (firstAttemptBuilder_ == null) { - return firstAttempt_ == null - ? com.google.cloud.tasks.v2.Attempt.getDefaultInstance() - : firstAttempt_; - } else { - return firstAttemptBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2.Attempt.dispatch_time] will be set.
-     * The other [Attempt][google.cloud.tasks.v2.Attempt] information is not retained by Cloud Tasks.
-     * 
- * - * .google.cloud.tasks.v2.Attempt first_attempt = 9; - */ - public Builder setFirstAttempt(com.google.cloud.tasks.v2.Attempt value) { - if (firstAttemptBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - firstAttempt_ = value; - onChanged(); - } else { - firstAttemptBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2.Attempt.dispatch_time] will be set.
-     * The other [Attempt][google.cloud.tasks.v2.Attempt] information is not retained by Cloud Tasks.
-     * 
- * - * .google.cloud.tasks.v2.Attempt first_attempt = 9; - */ - public Builder setFirstAttempt(com.google.cloud.tasks.v2.Attempt.Builder builderForValue) { - if (firstAttemptBuilder_ == null) { - firstAttempt_ = builderForValue.build(); - onChanged(); - } else { - firstAttemptBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2.Attempt.dispatch_time] will be set.
-     * The other [Attempt][google.cloud.tasks.v2.Attempt] information is not retained by Cloud Tasks.
-     * 
- * - * .google.cloud.tasks.v2.Attempt first_attempt = 9; - */ - public Builder mergeFirstAttempt(com.google.cloud.tasks.v2.Attempt value) { - if (firstAttemptBuilder_ == null) { - if (firstAttempt_ != null) { - firstAttempt_ = - com.google.cloud.tasks.v2.Attempt.newBuilder(firstAttempt_) - .mergeFrom(value) - .buildPartial(); - } else { - firstAttempt_ = value; - } - onChanged(); - } else { - firstAttemptBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2.Attempt.dispatch_time] will be set.
-     * The other [Attempt][google.cloud.tasks.v2.Attempt] information is not retained by Cloud Tasks.
-     * 
- * - * .google.cloud.tasks.v2.Attempt first_attempt = 9; - */ - public Builder clearFirstAttempt() { - if (firstAttemptBuilder_ == null) { - firstAttempt_ = null; - onChanged(); - } else { - firstAttempt_ = null; - firstAttemptBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2.Attempt.dispatch_time] will be set.
-     * The other [Attempt][google.cloud.tasks.v2.Attempt] information is not retained by Cloud Tasks.
-     * 
- * - * .google.cloud.tasks.v2.Attempt first_attempt = 9; - */ - public com.google.cloud.tasks.v2.Attempt.Builder getFirstAttemptBuilder() { - - onChanged(); - return getFirstAttemptFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2.Attempt.dispatch_time] will be set.
-     * The other [Attempt][google.cloud.tasks.v2.Attempt] information is not retained by Cloud Tasks.
-     * 
- * - * .google.cloud.tasks.v2.Attempt first_attempt = 9; - */ - public com.google.cloud.tasks.v2.AttemptOrBuilder getFirstAttemptOrBuilder() { - if (firstAttemptBuilder_ != null) { - return firstAttemptBuilder_.getMessageOrBuilder(); - } else { - return firstAttempt_ == null - ? com.google.cloud.tasks.v2.Attempt.getDefaultInstance() - : firstAttempt_; - } - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2.Attempt.dispatch_time] will be set.
-     * The other [Attempt][google.cloud.tasks.v2.Attempt] information is not retained by Cloud Tasks.
-     * 
- * - * .google.cloud.tasks.v2.Attempt first_attempt = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.Attempt, - com.google.cloud.tasks.v2.Attempt.Builder, - com.google.cloud.tasks.v2.AttemptOrBuilder> - getFirstAttemptFieldBuilder() { - if (firstAttemptBuilder_ == null) { - firstAttemptBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.Attempt, - com.google.cloud.tasks.v2.Attempt.Builder, - com.google.cloud.tasks.v2.AttemptOrBuilder>( - getFirstAttempt(), getParentForChildren(), isClean()); - firstAttempt_ = null; - } - return firstAttemptBuilder_; - } - - private com.google.cloud.tasks.v2.Attempt lastAttempt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.Attempt, - com.google.cloud.tasks.v2.Attempt.Builder, - com.google.cloud.tasks.v2.AttemptOrBuilder> - lastAttemptBuilder_; - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * 
- * - * .google.cloud.tasks.v2.Attempt last_attempt = 10; - * - * @return Whether the lastAttempt field is set. - */ - public boolean hasLastAttempt() { - return lastAttemptBuilder_ != null || lastAttempt_ != null; - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * 
- * - * .google.cloud.tasks.v2.Attempt last_attempt = 10; - * - * @return The lastAttempt. - */ - public com.google.cloud.tasks.v2.Attempt getLastAttempt() { - if (lastAttemptBuilder_ == null) { - return lastAttempt_ == null - ? com.google.cloud.tasks.v2.Attempt.getDefaultInstance() - : lastAttempt_; - } else { - return lastAttemptBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * 
- * - * .google.cloud.tasks.v2.Attempt last_attempt = 10; - */ - public Builder setLastAttempt(com.google.cloud.tasks.v2.Attempt value) { - if (lastAttemptBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lastAttempt_ = value; - onChanged(); - } else { - lastAttemptBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * 
- * - * .google.cloud.tasks.v2.Attempt last_attempt = 10; - */ - public Builder setLastAttempt(com.google.cloud.tasks.v2.Attempt.Builder builderForValue) { - if (lastAttemptBuilder_ == null) { - lastAttempt_ = builderForValue.build(); - onChanged(); - } else { - lastAttemptBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * 
- * - * .google.cloud.tasks.v2.Attempt last_attempt = 10; - */ - public Builder mergeLastAttempt(com.google.cloud.tasks.v2.Attempt value) { - if (lastAttemptBuilder_ == null) { - if (lastAttempt_ != null) { - lastAttempt_ = - com.google.cloud.tasks.v2.Attempt.newBuilder(lastAttempt_) - .mergeFrom(value) - .buildPartial(); - } else { - lastAttempt_ = value; - } - onChanged(); - } else { - lastAttemptBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * 
- * - * .google.cloud.tasks.v2.Attempt last_attempt = 10; - */ - public Builder clearLastAttempt() { - if (lastAttemptBuilder_ == null) { - lastAttempt_ = null; - onChanged(); - } else { - lastAttempt_ = null; - lastAttemptBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * 
- * - * .google.cloud.tasks.v2.Attempt last_attempt = 10; - */ - public com.google.cloud.tasks.v2.Attempt.Builder getLastAttemptBuilder() { - - onChanged(); - return getLastAttemptFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * 
- * - * .google.cloud.tasks.v2.Attempt last_attempt = 10; - */ - public com.google.cloud.tasks.v2.AttemptOrBuilder getLastAttemptOrBuilder() { - if (lastAttemptBuilder_ != null) { - return lastAttemptBuilder_.getMessageOrBuilder(); - } else { - return lastAttempt_ == null - ? com.google.cloud.tasks.v2.Attempt.getDefaultInstance() - : lastAttempt_; - } - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * 
- * - * .google.cloud.tasks.v2.Attempt last_attempt = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.Attempt, - com.google.cloud.tasks.v2.Attempt.Builder, - com.google.cloud.tasks.v2.AttemptOrBuilder> - getLastAttemptFieldBuilder() { - if (lastAttemptBuilder_ == null) { - lastAttemptBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.Attempt, - com.google.cloud.tasks.v2.Attempt.Builder, - com.google.cloud.tasks.v2.AttemptOrBuilder>( - getLastAttempt(), getParentForChildren(), isClean()); - lastAttempt_ = null; - } - return lastAttemptBuilder_; - } - - private int view_ = 0; - /** - * - * - *
-     * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2.Task] has
-     * been returned.
-     * 
- * - * .google.cloud.tasks.v2.Task.View view = 11; - * - * @return The enum numeric value on the wire for view. - */ - @java.lang.Override - public int getViewValue() { - return view_; - } - /** - * - * - *
-     * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2.Task] has
-     * been returned.
-     * 
- * - * .google.cloud.tasks.v2.Task.View view = 11; - * - * @param value The enum numeric value on the wire for view to set. - * @return This builder for chaining. - */ - public Builder setViewValue(int value) { - - view_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2.Task] has
-     * been returned.
-     * 
- * - * .google.cloud.tasks.v2.Task.View view = 11; - * - * @return The view. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.Task.View getView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2.Task.View result = - com.google.cloud.tasks.v2.Task.View.valueOf(view_); - return result == null ? com.google.cloud.tasks.v2.Task.View.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2.Task] has
-     * been returned.
-     * 
- * - * .google.cloud.tasks.v2.Task.View view = 11; - * - * @param value The view to set. - * @return This builder for chaining. - */ - public Builder setView(com.google.cloud.tasks.v2.Task.View value) { - if (value == null) { - throw new NullPointerException(); - } - - view_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2.Task] has
-     * been returned.
-     * 
- * - * .google.cloud.tasks.v2.Task.View view = 11; - * - * @return This builder for chaining. - */ - public Builder clearView() { - - view_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.Task) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.Task) - private static final com.google.cloud.tasks.v2.Task DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.Task(); - } - - public static com.google.cloud.tasks.v2.Task getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Task parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.Task getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java deleted file mode 100644 index abe36d35..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java +++ /dev/null @@ -1,257 +0,0 @@ -/* - * Copyright 2022 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.v2; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class TaskName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_QUEUE_TASK = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/queues/{queue}/tasks/{task}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String queue; - private final String task; - - @Deprecated - protected TaskName() { - project = null; - location = null; - queue = null; - task = null; - } - - private TaskName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - queue = Preconditions.checkNotNull(builder.getQueue()); - task = Preconditions.checkNotNull(builder.getTask()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getQueue() { - return queue; - } - - public String getTask() { - return task; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static TaskName of(String project, String location, String queue, String task) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setQueue(queue) - .setTask(task) - .build(); - } - - public static String format(String project, String location, String queue, String task) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setQueue(queue) - .setTask(task) - .build() - .toString(); - } - - public static TaskName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_QUEUE_TASK.validatedMatch( - formattedString, "TaskName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("queue"), - matchMap.get("task")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (TaskName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_QUEUE_TASK.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - if (queue != null) { - fieldMapBuilder.put("queue", queue); - } - if (task != null) { - fieldMapBuilder.put("task", task); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_QUEUE_TASK.instantiate( - "project", project, "location", location, "queue", queue, "task", task); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - TaskName that = ((TaskName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.queue, that.queue) - && Objects.equals(this.task, that.task); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - h *= 1000003; - h ^= Objects.hashCode(queue); - h *= 1000003; - h ^= Objects.hashCode(task); - return h; - } - - /** Builder for projects/{project}/locations/{location}/queues/{queue}/tasks/{task}. */ - public static class Builder { - private String project; - private String location; - private String queue; - private String task; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getQueue() { - return queue; - } - - public String getTask() { - return task; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setQueue(String queue) { - this.queue = queue; - return this; - } - - public Builder setTask(String task) { - this.task = task; - return this; - } - - private Builder(TaskName taskName) { - this.project = taskName.project; - this.location = taskName.location; - this.queue = taskName.queue; - this.task = taskName.task; - } - - public TaskName build() { - return new TaskName(this); - } - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskOrBuilder.java deleted file mode 100644 index 007aaaac..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskOrBuilder.java +++ /dev/null @@ -1,477 +0,0 @@ -/* - * Copyright 2020 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/v2/task.proto - -package com.google.cloud.tasks.v2; - -public interface TaskOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.Task) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   * The task name.
-   * The task name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the task's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-   *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask].
-   * The task name.
-   * The task name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the task's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-   *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * HTTP request that is sent to the App Engine app handler.
-   * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2.AppEngineHttpRequest app_engine_http_request = 2; - * - * @return Whether the appEngineHttpRequest field is set. - */ - boolean hasAppEngineHttpRequest(); - /** - * - * - *
-   * HTTP request that is sent to the App Engine app handler.
-   * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2.AppEngineHttpRequest app_engine_http_request = 2; - * - * @return The appEngineHttpRequest. - */ - com.google.cloud.tasks.v2.AppEngineHttpRequest getAppEngineHttpRequest(); - /** - * - * - *
-   * HTTP request that is sent to the App Engine app handler.
-   * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2.AppEngineHttpRequest app_engine_http_request = 2; - */ - com.google.cloud.tasks.v2.AppEngineHttpRequestOrBuilder getAppEngineHttpRequestOrBuilder(); - - /** - * - * - *
-   * HTTP request that is sent to the worker.
-   * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2.HttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2.HttpRequest http_request = 3; - * - * @return Whether the httpRequest field is set. - */ - boolean hasHttpRequest(); - /** - * - * - *
-   * HTTP request that is sent to the worker.
-   * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2.HttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2.HttpRequest http_request = 3; - * - * @return The httpRequest. - */ - com.google.cloud.tasks.v2.HttpRequest getHttpRequest(); - /** - * - * - *
-   * HTTP request that is sent to the worker.
-   * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2.HttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2.HttpRequest http_request = 3; - */ - com.google.cloud.tasks.v2.HttpRequestOrBuilder getHttpRequestOrBuilder(); - - /** - * - * - *
-   * The time when the task is scheduled to be attempted or retried.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - * - * @return Whether the scheduleTime field is set. - */ - boolean hasScheduleTime(); - /** - * - * - *
-   * The time when the task is scheduled to be attempted or retried.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - * - * @return The scheduleTime. - */ - com.google.protobuf.Timestamp getScheduleTime(); - /** - * - * - *
-   * The time when the task is scheduled to be attempted or retried.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - */ - com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The time that the task was created.
-   * `create_time` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Timestamp create_time = 5; - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Output only. The time that the task was created.
-   * `create_time` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Timestamp create_time = 5; - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Output only. The time that the task was created.
-   * `create_time` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Timestamp create_time = 5; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * The deadline for requests sent to the worker. If the worker does not
-   * respond by this deadline then the request is cancelled and the attempt
-   * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-   * task according to the [RetryConfig][google.cloud.tasks.v2.RetryConfig].
-   * Note that when the request is cancelled, Cloud Tasks will stop listing for
-   * the response, but whether the worker stops processing depends on the
-   * worker. For example, if the worker is stuck, it may not react to cancelled
-   * requests.
-   * The default and maximum values depend on the type of request:
-   * * For [HTTP tasks][google.cloud.tasks.v2.HttpRequest], the default is 10 minutes. The deadline
-   *   must be in the interval [15 seconds, 30 minutes].
-   * * For [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest], 0 indicates that the
-   *   request has the default deadline. The default deadline depends on the
-   *   [scaling
-   *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-   *   of the service: 10 minutes for standard apps with automatic scaling, 24
-   *   hours for standard apps with manual and basic scaling, and 60 minutes for
-   *   flex apps. If the request deadline is set, it must be in the interval [15
-   *   seconds, 24 hours 15 seconds]. Regardless of the task's
-   *   `dispatch_deadline`, the app handler will not run for longer than than
-   *   the service's timeout. We recommend setting the `dispatch_deadline` to
-   *   at most a few seconds more than the app handler's timeout. For more
-   *   information see
-   *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-   * `dispatch_deadline` will be truncated to the nearest millisecond. The
-   * deadline is an approximate deadline.
-   * 
- * - * .google.protobuf.Duration dispatch_deadline = 6; - * - * @return Whether the dispatchDeadline field is set. - */ - boolean hasDispatchDeadline(); - /** - * - * - *
-   * The deadline for requests sent to the worker. If the worker does not
-   * respond by this deadline then the request is cancelled and the attempt
-   * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-   * task according to the [RetryConfig][google.cloud.tasks.v2.RetryConfig].
-   * Note that when the request is cancelled, Cloud Tasks will stop listing for
-   * the response, but whether the worker stops processing depends on the
-   * worker. For example, if the worker is stuck, it may not react to cancelled
-   * requests.
-   * The default and maximum values depend on the type of request:
-   * * For [HTTP tasks][google.cloud.tasks.v2.HttpRequest], the default is 10 minutes. The deadline
-   *   must be in the interval [15 seconds, 30 minutes].
-   * * For [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest], 0 indicates that the
-   *   request has the default deadline. The default deadline depends on the
-   *   [scaling
-   *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-   *   of the service: 10 minutes for standard apps with automatic scaling, 24
-   *   hours for standard apps with manual and basic scaling, and 60 minutes for
-   *   flex apps. If the request deadline is set, it must be in the interval [15
-   *   seconds, 24 hours 15 seconds]. Regardless of the task's
-   *   `dispatch_deadline`, the app handler will not run for longer than than
-   *   the service's timeout. We recommend setting the `dispatch_deadline` to
-   *   at most a few seconds more than the app handler's timeout. For more
-   *   information see
-   *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-   * `dispatch_deadline` will be truncated to the nearest millisecond. The
-   * deadline is an approximate deadline.
-   * 
- * - * .google.protobuf.Duration dispatch_deadline = 6; - * - * @return The dispatchDeadline. - */ - com.google.protobuf.Duration getDispatchDeadline(); - /** - * - * - *
-   * The deadline for requests sent to the worker. If the worker does not
-   * respond by this deadline then the request is cancelled and the attempt
-   * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-   * task according to the [RetryConfig][google.cloud.tasks.v2.RetryConfig].
-   * Note that when the request is cancelled, Cloud Tasks will stop listing for
-   * the response, but whether the worker stops processing depends on the
-   * worker. For example, if the worker is stuck, it may not react to cancelled
-   * requests.
-   * The default and maximum values depend on the type of request:
-   * * For [HTTP tasks][google.cloud.tasks.v2.HttpRequest], the default is 10 minutes. The deadline
-   *   must be in the interval [15 seconds, 30 minutes].
-   * * For [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest], 0 indicates that the
-   *   request has the default deadline. The default deadline depends on the
-   *   [scaling
-   *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-   *   of the service: 10 minutes for standard apps with automatic scaling, 24
-   *   hours for standard apps with manual and basic scaling, and 60 minutes for
-   *   flex apps. If the request deadline is set, it must be in the interval [15
-   *   seconds, 24 hours 15 seconds]. Regardless of the task's
-   *   `dispatch_deadline`, the app handler will not run for longer than than
-   *   the service's timeout. We recommend setting the `dispatch_deadline` to
-   *   at most a few seconds more than the app handler's timeout. For more
-   *   information see
-   *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-   * `dispatch_deadline` will be truncated to the nearest millisecond. The
-   * deadline is an approximate deadline.
-   * 
- * - * .google.protobuf.Duration dispatch_deadline = 6; - */ - com.google.protobuf.DurationOrBuilder getDispatchDeadlineOrBuilder(); - - /** - * - * - *
-   * Output only. The number of attempts dispatched.
-   * This count includes attempts which have been dispatched but haven't
-   * received a response.
-   * 
- * - * int32 dispatch_count = 7; - * - * @return The dispatchCount. - */ - int getDispatchCount(); - - /** - * - * - *
-   * Output only. The number of attempts which have received a response.
-   * 
- * - * int32 response_count = 8; - * - * @return The responseCount. - */ - int getResponseCount(); - - /** - * - * - *
-   * Output only. The status of the task's first attempt.
-   * Only [dispatch_time][google.cloud.tasks.v2.Attempt.dispatch_time] will be set.
-   * The other [Attempt][google.cloud.tasks.v2.Attempt] information is not retained by Cloud Tasks.
-   * 
- * - * .google.cloud.tasks.v2.Attempt first_attempt = 9; - * - * @return Whether the firstAttempt field is set. - */ - boolean hasFirstAttempt(); - /** - * - * - *
-   * Output only. The status of the task's first attempt.
-   * Only [dispatch_time][google.cloud.tasks.v2.Attempt.dispatch_time] will be set.
-   * The other [Attempt][google.cloud.tasks.v2.Attempt] information is not retained by Cloud Tasks.
-   * 
- * - * .google.cloud.tasks.v2.Attempt first_attempt = 9; - * - * @return The firstAttempt. - */ - com.google.cloud.tasks.v2.Attempt getFirstAttempt(); - /** - * - * - *
-   * Output only. The status of the task's first attempt.
-   * Only [dispatch_time][google.cloud.tasks.v2.Attempt.dispatch_time] will be set.
-   * The other [Attempt][google.cloud.tasks.v2.Attempt] information is not retained by Cloud Tasks.
-   * 
- * - * .google.cloud.tasks.v2.Attempt first_attempt = 9; - */ - com.google.cloud.tasks.v2.AttemptOrBuilder getFirstAttemptOrBuilder(); - - /** - * - * - *
-   * Output only. The status of the task's last attempt.
-   * 
- * - * .google.cloud.tasks.v2.Attempt last_attempt = 10; - * - * @return Whether the lastAttempt field is set. - */ - boolean hasLastAttempt(); - /** - * - * - *
-   * Output only. The status of the task's last attempt.
-   * 
- * - * .google.cloud.tasks.v2.Attempt last_attempt = 10; - * - * @return The lastAttempt. - */ - com.google.cloud.tasks.v2.Attempt getLastAttempt(); - /** - * - * - *
-   * Output only. The status of the task's last attempt.
-   * 
- * - * .google.cloud.tasks.v2.Attempt last_attempt = 10; - */ - com.google.cloud.tasks.v2.AttemptOrBuilder getLastAttemptOrBuilder(); - - /** - * - * - *
-   * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2.Task] has
-   * been returned.
-   * 
- * - * .google.cloud.tasks.v2.Task.View view = 11; - * - * @return The enum numeric value on the wire for view. - */ - int getViewValue(); - /** - * - * - *
-   * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2.Task] has
-   * been returned.
-   * 
- * - * .google.cloud.tasks.v2.Task.View view = 11; - * - * @return The view. - */ - com.google.cloud.tasks.v2.Task.View getView(); - - public com.google.cloud.tasks.v2.Task.MessageTypeCase getMessageTypeCase(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskProto.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskProto.java deleted file mode 100644 index ed8a2c9b..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskProto.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright 2020 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/v2/task.proto - -package com.google.cloud.tasks.v2; - -public final class TaskProto { - private TaskProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_Task_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_Task_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2_Attempt_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2_Attempt_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n google/cloud/tasks/v2/task.proto\022\025goog" - + "le.cloud.tasks.v2\032\031google/api/resource.p" - + "roto\032\"google/cloud/tasks/v2/target.proto" - + "\032\036google/protobuf/duration.proto\032\037google" - + "/protobuf/timestamp.proto\032\027google/rpc/st" - + "atus.proto\"\264\005\n\004Task\022\014\n\004name\030\001 \001(\t\022N\n\027app" - + "_engine_http_request\030\002 \001(\0132+.google.clou" - + "d.tasks.v2.AppEngineHttpRequestH\000\022:\n\014htt" - + "p_request\030\003 \001(\0132\".google.cloud.tasks.v2." - + "HttpRequestH\000\0221\n\rschedule_time\030\004 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\022/\n\013create_time\030" - + "\005 \001(\0132\032.google.protobuf.Timestamp\0224\n\021dis" - + "patch_deadline\030\006 \001(\0132\031.google.protobuf.D" - + "uration\022\026\n\016dispatch_count\030\007 \001(\005\022\026\n\016respo" - + "nse_count\030\010 \001(\005\0225\n\rfirst_attempt\030\t \001(\0132\036" - + ".google.cloud.tasks.v2.Attempt\0224\n\014last_a" - + "ttempt\030\n \001(\0132\036.google.cloud.tasks.v2.Att" - + "empt\022.\n\004view\030\013 \001(\0162 .google.cloud.tasks." - + "v2.Task.View\"1\n\004View\022\024\n\020VIEW_UNSPECIFIED" - + "\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002:h\352Ae\n\036cloudtasks" - + ".googleapis.com/Task\022Cprojects/{project}" - + "/locations/{location}/queues/{queue}/tas" - + "ks/{task}B\016\n\014message_type\"\317\001\n\007Attempt\0221\n" - + "\rschedule_time\030\001 \001(\0132\032.google.protobuf.T" - + "imestamp\0221\n\rdispatch_time\030\002 \001(\0132\032.google" - + ".protobuf.Timestamp\0221\n\rresponse_time\030\003 \001" - + "(\0132\032.google.protobuf.Timestamp\022+\n\017respon" - + "se_status\030\004 \001(\0132\022.google.rpc.StatusBd\n\031c" - + "om.google.cloud.tasks.v2B\tTaskProtoP\001Z:g" - + "oogle.golang.org/genproto/googleapis/clo" - + "ud/tasks/v2;tasksb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.tasks.v2.TargetProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_tasks_v2_Task_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_tasks_v2_Task_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_Task_descriptor, - new java.lang.String[] { - "Name", - "AppEngineHttpRequest", - "HttpRequest", - "ScheduleTime", - "CreateTime", - "DispatchDeadline", - "DispatchCount", - "ResponseCount", - "FirstAttempt", - "LastAttempt", - "View", - "MessageType", - }); - internal_static_google_cloud_tasks_v2_Attempt_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_tasks_v2_Attempt_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2_Attempt_descriptor, - new java.lang.String[] { - "ScheduleTime", "DispatchTime", "ResponseTime", "ResponseStatus", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.tasks.v2.TargetProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/UpdateQueueRequest.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/UpdateQueueRequest.java deleted file mode 100644 index 33c74f9a..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/UpdateQueueRequest.java +++ /dev/null @@ -1,1026 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -/** - * - * - *
- * Request message for [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2.UpdateQueueRequest} - */ -public final class UpdateQueueRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2.UpdateQueueRequest) - UpdateQueueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateQueueRequest.newBuilder() to construct. - private UpdateQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateQueueRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateQueueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_UpdateQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_UpdateQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.UpdateQueueRequest.class, - com.google.cloud.tasks.v2.UpdateQueueRequest.Builder.class); - } - - public static final int QUEUE_FIELD_NUMBER = 1; - private com.google.cloud.tasks.v2.Queue queue_; - /** - * - * - *
-   * Required. The queue to create or update.
-   * The queue's [name][google.cloud.tasks.v2.Queue.name] must be specified.
-   * Output only fields cannot be modified using UpdateQueue.
-   * Any value specified for an output only field will be ignored.
-   * The queue's [name][google.cloud.tasks.v2.Queue.name] cannot be changed.
-   * 
- * - * .google.cloud.tasks.v2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the queue field is set. - */ - @java.lang.Override - public boolean hasQueue() { - return queue_ != null; - } - /** - * - * - *
-   * Required. The queue to create or update.
-   * The queue's [name][google.cloud.tasks.v2.Queue.name] must be specified.
-   * Output only fields cannot be modified using UpdateQueue.
-   * Any value specified for an output only field will be ignored.
-   * The queue's [name][google.cloud.tasks.v2.Queue.name] cannot be changed.
-   * 
- * - * .google.cloud.tasks.v2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The queue. - */ - @java.lang.Override - public com.google.cloud.tasks.v2.Queue getQueue() { - return queue_ == null ? com.google.cloud.tasks.v2.Queue.getDefaultInstance() : queue_; - } - /** - * - * - *
-   * Required. The queue to create or update.
-   * The queue's [name][google.cloud.tasks.v2.Queue.name] must be specified.
-   * Output only fields cannot be modified using UpdateQueue.
-   * Any value specified for an output only field will be ignored.
-   * The queue's [name][google.cloud.tasks.v2.Queue.name] cannot be changed.
-   * 
- * - * .google.cloud.tasks.v2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.cloud.tasks.v2.QueueOrBuilder getQueueOrBuilder() { - return getQueue(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * A mask used to specify which fields of the queue are being updated.
-   * If empty, then all fields will be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * A mask used to specify which fields of the queue are being updated.
-   * If empty, then all fields will be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * A mask used to specify which fields of the queue are being updated.
-   * If empty, then all fields will be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - 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 (queue_ != null) { - output.writeMessage(1, getQueue()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (queue_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getQueue()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - 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.v2.UpdateQueueRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2.UpdateQueueRequest other = - (com.google.cloud.tasks.v2.UpdateQueueRequest) obj; - - if (hasQueue() != other.hasQueue()) return false; - if (hasQueue()) { - if (!getQueue().equals(other.getQueue())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasQueue()) { - hash = (37 * hash) + QUEUE_FIELD_NUMBER; - hash = (53 * hash) + getQueue().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2.UpdateQueueRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.UpdateQueueRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.UpdateQueueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.UpdateQueueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.UpdateQueueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2.UpdateQueueRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.UpdateQueueRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.UpdateQueueRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.UpdateQueueRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.UpdateQueueRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2.UpdateQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2.UpdateQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2.UpdateQueueRequest 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 [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2.UpdateQueueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2.UpdateQueueRequest) - com.google.cloud.tasks.v2.UpdateQueueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_UpdateQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_UpdateQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2.UpdateQueueRequest.class, - com.google.cloud.tasks.v2.UpdateQueueRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2.UpdateQueueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (queueBuilder_ == null) { - queue_ = null; - } else { - queue_ = null; - queueBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2.CloudTasksProto - .internal_static_google_cloud_tasks_v2_UpdateQueueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.UpdateQueueRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2.UpdateQueueRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2.UpdateQueueRequest build() { - com.google.cloud.tasks.v2.UpdateQueueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.UpdateQueueRequest buildPartial() { - com.google.cloud.tasks.v2.UpdateQueueRequest result = - new com.google.cloud.tasks.v2.UpdateQueueRequest(this); - if (queueBuilder_ == null) { - result.queue_ = queue_; - } else { - result.queue_ = queueBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2.UpdateQueueRequest) { - return mergeFrom((com.google.cloud.tasks.v2.UpdateQueueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2.UpdateQueueRequest other) { - if (other == com.google.cloud.tasks.v2.UpdateQueueRequest.getDefaultInstance()) return this; - if (other.hasQueue()) { - mergeQueue(other.getQueue()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getQueueFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.cloud.tasks.v2.Queue queue_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.Queue, - com.google.cloud.tasks.v2.Queue.Builder, - com.google.cloud.tasks.v2.QueueOrBuilder> - queueBuilder_; - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the queue field is set. - */ - public boolean hasQueue() { - return queueBuilder_ != null || queue_ != null; - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The queue. - */ - public com.google.cloud.tasks.v2.Queue getQueue() { - if (queueBuilder_ == null) { - return queue_ == null ? com.google.cloud.tasks.v2.Queue.getDefaultInstance() : queue_; - } else { - return queueBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setQueue(com.google.cloud.tasks.v2.Queue value) { - if (queueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queue_ = value; - onChanged(); - } else { - queueBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setQueue(com.google.cloud.tasks.v2.Queue.Builder builderForValue) { - if (queueBuilder_ == null) { - queue_ = builderForValue.build(); - onChanged(); - } else { - queueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeQueue(com.google.cloud.tasks.v2.Queue value) { - if (queueBuilder_ == null) { - if (queue_ != null) { - queue_ = - com.google.cloud.tasks.v2.Queue.newBuilder(queue_).mergeFrom(value).buildPartial(); - } else { - queue_ = value; - } - onChanged(); - } else { - queueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearQueue() { - if (queueBuilder_ == null) { - queue_ = null; - onChanged(); - } else { - queue_ = null; - queueBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.tasks.v2.Queue.Builder getQueueBuilder() { - - onChanged(); - return getQueueFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.tasks.v2.QueueOrBuilder getQueueOrBuilder() { - if (queueBuilder_ != null) { - return queueBuilder_.getMessageOrBuilder(); - } else { - return queue_ == null ? com.google.cloud.tasks.v2.Queue.getDefaultInstance() : queue_; - } - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.Queue, - com.google.cloud.tasks.v2.Queue.Builder, - com.google.cloud.tasks.v2.QueueOrBuilder> - getQueueFieldBuilder() { - if (queueBuilder_ == null) { - queueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2.Queue, - com.google.cloud.tasks.v2.Queue.Builder, - com.google.cloud.tasks.v2.QueueOrBuilder>( - getQueue(), getParentForChildren(), isClean()); - queue_ = null; - } - return queueBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2.UpdateQueueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2.UpdateQueueRequest) - private static final com.google.cloud.tasks.v2.UpdateQueueRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2.UpdateQueueRequest(); - } - - public static com.google.cloud.tasks.v2.UpdateQueueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateQueueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2.UpdateQueueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/UpdateQueueRequestOrBuilder.java b/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/UpdateQueueRequestOrBuilder.java deleted file mode 100644 index 769807c0..00000000 --- a/proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/UpdateQueueRequestOrBuilder.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright 2020 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/v2/cloudtasks.proto - -package com.google.cloud.tasks.v2; - -public interface UpdateQueueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2.UpdateQueueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue to create or update.
-   * The queue's [name][google.cloud.tasks.v2.Queue.name] must be specified.
-   * Output only fields cannot be modified using UpdateQueue.
-   * Any value specified for an output only field will be ignored.
-   * The queue's [name][google.cloud.tasks.v2.Queue.name] cannot be changed.
-   * 
- * - * .google.cloud.tasks.v2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return Whether the queue field is set. - */ - boolean hasQueue(); - /** - * - * - *
-   * Required. The queue to create or update.
-   * The queue's [name][google.cloud.tasks.v2.Queue.name] must be specified.
-   * Output only fields cannot be modified using UpdateQueue.
-   * Any value specified for an output only field will be ignored.
-   * The queue's [name][google.cloud.tasks.v2.Queue.name] cannot be changed.
-   * 
- * - * .google.cloud.tasks.v2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The queue. - */ - com.google.cloud.tasks.v2.Queue getQueue(); - /** - * - * - *
-   * Required. The queue to create or update.
-   * The queue's [name][google.cloud.tasks.v2.Queue.name] must be specified.
-   * Output only fields cannot be modified using UpdateQueue.
-   * Any value specified for an output only field will be ignored.
-   * The queue's [name][google.cloud.tasks.v2.Queue.name] cannot be changed.
-   * 
- * - * .google.cloud.tasks.v2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.tasks.v2.QueueOrBuilder getQueueOrBuilder(); - - /** - * - * - *
-   * A mask used to specify which fields of the queue are being updated.
-   * If empty, then all fields will be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * A mask used to specify which fields of the queue are being updated.
-   * If empty, then all fields will be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * A mask used to specify which fields of the queue are being updated.
-   * If empty, then all fields will be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/cloudtasks.proto b/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/cloudtasks.proto deleted file mode 100644 index d30aae51..00000000 --- a/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/cloudtasks.proto +++ /dev/null @@ -1,655 +0,0 @@ -// Copyright 2019 Google LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -syntax = "proto3"; - -package google.cloud.tasks.v2; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/tasks/v2/queue.proto"; -import "google/cloud/tasks/v2/task.proto"; -import "google/iam/v1/iam_policy.proto"; -import "google/iam/v1/policy.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2;tasks"; -option java_multiple_files = true; -option java_outer_classname = "CloudTasksProto"; -option java_package = "com.google.cloud.tasks.v2"; -option objc_class_prefix = "TASKS"; - -// Cloud Tasks allows developers to manage the execution of background -// work in their applications. -service CloudTasks { - option (google.api.default_host) = "cloudtasks.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Lists queues. - // - // Queues are returned in lexicographical order. - rpc ListQueues(ListQueuesRequest) returns (ListQueuesResponse) { - option (google.api.http) = { - get: "/v2/{parent=projects/*/locations/*}/queues" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets a queue. - rpc GetQueue(GetQueueRequest) returns (Queue) { - option (google.api.http) = { - get: "/v2/{name=projects/*/locations/*/queues/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a queue. - // - // Queues created with this method allow tasks to live for a maximum of 31 - // days. After a task is 31 days old, the task will be deleted regardless of whether - // it was dispatched or not. - // - // WARNING: Using this method may have unintended side effects if you are - // using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. - // Read - // [Overview of Queue Management and - // queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using - // this method. - rpc CreateQueue(CreateQueueRequest) returns (Queue) { - option (google.api.http) = { - post: "/v2/{parent=projects/*/locations/*}/queues" - body: "queue" - }; - option (google.api.method_signature) = "parent,queue"; - } - - // Updates a queue. - // - // This method creates the queue if it does not exist and updates - // the queue if it does exist. - // - // Queues created with this method allow tasks to live for a maximum of 31 - // days. After a task is 31 days old, the task will be deleted regardless of whether - // it was dispatched or not. - // - // WARNING: Using this method may have unintended side effects if you are - // using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. - // Read - // [Overview of Queue Management and - // queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using - // this method. - rpc UpdateQueue(UpdateQueueRequest) returns (Queue) { - option (google.api.http) = { - patch: "/v2/{queue.name=projects/*/locations/*/queues/*}" - body: "queue" - }; - option (google.api.method_signature) = "queue,update_mask"; - } - - // Deletes a queue. - // - // This command will delete the queue even if it has tasks in it. - // - // Note: If you delete a queue, a queue with the same name can't be created - // for 7 days. - // - // WARNING: Using this method may have unintended side effects if you are - // using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. - // Read - // [Overview of Queue Management and - // queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using - // this method. - rpc DeleteQueue(DeleteQueueRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v2/{name=projects/*/locations/*/queues/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Purges a queue by deleting all of its tasks. - // - // All tasks created before this method is called are permanently deleted. - // - // Purge operations can take up to one minute to take effect. Tasks - // might be dispatched before the purge takes effect. A purge is irreversible. - rpc PurgeQueue(PurgeQueueRequest) returns (Queue) { - option (google.api.http) = { - post: "/v2/{name=projects/*/locations/*/queues/*}:purge" - body: "*" - }; - option (google.api.method_signature) = "name"; - } - - // Pauses the queue. - // - // If a queue is paused then the system will stop dispatching tasks - // until the queue is resumed via - // [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. Tasks can still be added - // when the queue is paused. A queue is paused if its - // [state][google.cloud.tasks.v2.Queue.state] is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. - rpc PauseQueue(PauseQueueRequest) returns (Queue) { - option (google.api.http) = { - post: "/v2/{name=projects/*/locations/*/queues/*}:pause" - body: "*" - }; - option (google.api.method_signature) = "name"; - } - - // Resume a queue. - // - // This method resumes a queue after it has been - // [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED] or - // [DISABLED][google.cloud.tasks.v2.Queue.State.DISABLED]. The state of a queue is stored - // in the queue's [state][google.cloud.tasks.v2.Queue.state]; after calling this method it - // will be set to [RUNNING][google.cloud.tasks.v2.Queue.State.RUNNING]. - // - // WARNING: Resuming many high-QPS queues at the same time can - // lead to target overloading. If you are resuming high-QPS - // queues, follow the 500/50/5 pattern described in - // [Managing Cloud Tasks Scaling - // Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). - rpc ResumeQueue(ResumeQueueRequest) returns (Queue) { - option (google.api.http) = { - post: "/v2/{name=projects/*/locations/*/queues/*}:resume" - body: "*" - }; - option (google.api.method_signature) = "name"; - } - - // Gets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. - // Returns an empty policy if the resource exists and does not have a policy - // set. - // - // Authorization requires the following - // [Google IAM](https://cloud.google.com/iam) permission on the specified - // resource parent: - // - // * `cloudtasks.queues.getIamPolicy` - rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { - option (google.api.http) = { - post: "/v2/{resource=projects/*/locations/*/queues/*}:getIamPolicy" - body: "*" - }; - option (google.api.method_signature) = "resource"; - } - - // Sets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Replaces any existing - // policy. - // - // Note: The Cloud Console does not check queue-level IAM permissions yet. - // Project-level permissions are required to use the Cloud Console. - // - // Authorization requires the following - // [Google IAM](https://cloud.google.com/iam) permission on the specified - // resource parent: - // - // * `cloudtasks.queues.setIamPolicy` - rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { - option (google.api.http) = { - post: "/v2/{resource=projects/*/locations/*/queues/*}:setIamPolicy" - body: "*" - }; - option (google.api.method_signature) = "resource,policy"; - } - - // Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2.Queue]. - // If the resource does not exist, this will return an empty set of - // permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. - // - // Note: This operation is designed to be used for building permission-aware - // UIs and command-line tools, not for authorization checking. This operation - // may "fail open" without warning. - rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { - option (google.api.http) = { - post: "/v2/{resource=projects/*/locations/*/queues/*}:testIamPermissions" - body: "*" - }; - option (google.api.method_signature) = "resource,permissions"; - } - - // Lists the tasks in a queue. - // - // By default, only the [BASIC][google.cloud.tasks.v2.Task.View.BASIC] view is retrieved - // due to performance considerations; - // [response_view][google.cloud.tasks.v2.ListTasksRequest.response_view] controls the - // subset of information which is returned. - // - // The tasks may be returned in any order. The ordering may change at any - // time. - rpc ListTasks(ListTasksRequest) returns (ListTasksResponse) { - option (google.api.http) = { - get: "/v2/{parent=projects/*/locations/*/queues/*}/tasks" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets a task. - rpc GetTask(GetTaskRequest) returns (Task) { - option (google.api.http) = { - get: "/v2/{name=projects/*/locations/*/queues/*/tasks/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a task and adds it to a queue. - // - // Tasks cannot be updated after creation; there is no UpdateTask command. - // - // * The maximum task size is 100KB. - rpc CreateTask(CreateTaskRequest) returns (Task) { - option (google.api.http) = { - post: "/v2/{parent=projects/*/locations/*/queues/*}/tasks" - body: "*" - }; - option (google.api.method_signature) = "parent,task"; - } - - // Deletes a task. - // - // A task can be deleted if it is scheduled or dispatched. A task - // cannot be deleted if it has executed successfully or permanently - // failed. - rpc DeleteTask(DeleteTaskRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v2/{name=projects/*/locations/*/queues/*/tasks/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Forces a task to run now. - // - // When this method is called, Cloud Tasks will dispatch the task, even if - // the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits] or - // is [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED]. - // - // This command is meant to be used for manual debugging. For - // example, [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] can be used to retry a failed - // task after a fix has been made or to manually force a task to be - // dispatched now. - // - // The dispatched task is returned. That is, the task that is returned - // contains the [status][Task.status] after the task is dispatched but - // before the task is received by its target. - // - // If Cloud Tasks receives a successful response from the task's - // target, then the task will be deleted; otherwise the task's - // [schedule_time][google.cloud.tasks.v2.Task.schedule_time] will be reset to the time that - // [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] was called plus the retry delay specified - // in the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig]. - // - // [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask] returns - // [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a - // task that has already succeeded or permanently failed. - rpc RunTask(RunTaskRequest) returns (Task) { - option (google.api.http) = { - post: "/v2/{name=projects/*/locations/*/queues/*/tasks/*}:run" - body: "*" - }; - option (google.api.method_signature) = "name"; - } -} - -// Request message for [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues]. -message ListQueuesRequest { - // Required. The location name. - // For example: `projects/PROJECT_ID/locations/LOCATION_ID` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "cloudtasks.googleapis.com/Queue" - } - ]; - - // `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2.Queue] - // field can be used as a filter and several operators as supported. - // For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as - // described in - // [Stackdriver's Advanced Logs - // Filters](https://cloud.google.com/logging/docs/view/advanced_filters). - // - // Sample filter "state: PAUSED". - // - // Note that using filters might cause fewer queues than the - // requested page_size to be returned. - string filter = 2; - - // Requested page size. - // - // The maximum page size is 9800. If unspecified, the page size will - // be the maximum. Fewer queues than requested might be returned, - // even if more queues exist; use the - // [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] in the - // response to determine if more queues exist. - int32 page_size = 3; - - // A token identifying the page of results to return. - // - // To request the first page results, page_token must be empty. To - // request the next page of results, page_token must be the value of - // [next_page_token][google.cloud.tasks.v2.ListQueuesResponse.next_page_token] returned - // from the previous call to [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] - // method. It is an error to switch the value of the - // [filter][google.cloud.tasks.v2.ListQueuesRequest.filter] while iterating through pages. - string page_token = 4; -} - -// Response message for [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues]. -message ListQueuesResponse { - // The list of queues. - repeated Queue queues = 1; - - // A token to retrieve next page of results. - // - // To return the next page of results, call - // [ListQueues][google.cloud.tasks.v2.CloudTasks.ListQueues] with this value as the - // [page_token][google.cloud.tasks.v2.ListQueuesRequest.page_token]. - // - // If the next_page_token is empty, there are no more results. - // - // The page token is valid for only 2 hours. - string next_page_token = 2; -} - -// Request message for [GetQueue][google.cloud.tasks.v2.CloudTasks.GetQueue]. -message GetQueueRequest { - // Required. The resource name of the queue. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Queue" - } - ]; -} - -// Request message for [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue]. -message CreateQueueRequest { - // Required. The location name in which the queue will be created. - // For example: `projects/PROJECT_ID/locations/LOCATION_ID` - // - // The list of allowed locations can be obtained by calling Cloud - // Tasks' implementation of - // [ListLocations][google.cloud.location.Locations.ListLocations]. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "cloudtasks.googleapis.com/Queue" - } - ]; - - // Required. The queue to create. - // - // [Queue's name][google.cloud.tasks.v2.Queue.name] cannot be the same as an existing queue. - Queue queue = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue]. -message UpdateQueueRequest { - // Required. The queue to create or update. - // - // The queue's [name][google.cloud.tasks.v2.Queue.name] must be specified. - // - // Output only fields cannot be modified using UpdateQueue. - // Any value specified for an output only field will be ignored. - // The queue's [name][google.cloud.tasks.v2.Queue.name] cannot be changed. - Queue queue = 1 [(google.api.field_behavior) = REQUIRED]; - - // A mask used to specify which fields of the queue are being updated. - // - // If empty, then all fields will be updated. - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for [DeleteQueue][google.cloud.tasks.v2.CloudTasks.DeleteQueue]. -message DeleteQueueRequest { - // Required. The queue name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Queue" - } - ]; -} - -// Request message for [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue]. -message PurgeQueueRequest { - // Required. The queue name. For example: - // `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Queue" - } - ]; -} - -// Request message for [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue]. -message PauseQueueRequest { - // Required. The queue name. For example: - // `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Queue" - } - ]; -} - -// Request message for [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. -message ResumeQueueRequest { - // Required. The queue name. For example: - // `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Queue" - } - ]; -} - -// Request message for listing tasks using [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks]. -message ListTasksRequest { - // Required. The queue name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "cloudtasks.googleapis.com/Task" - } - ]; - - // The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be - // returned. - // - // By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all - // information is retrieved by default because some data, such as - // payloads, might be desirable to return only when needed because - // of its large size or because of the sensitivity of data that it - // contains. - // - // Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires - // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) - // permission on the [Task][google.cloud.tasks.v2.Task] resource. - Task.View response_view = 2; - - // Maximum page size. - // - // Fewer tasks than requested might be returned, even if more tasks exist; use - // [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] in the response to - // determine if more tasks exist. - // - // The maximum page size is 1000. If unspecified, the page size will be the - // maximum. - int32 page_size = 3; - - // A token identifying the page of results to return. - // - // To request the first page results, page_token must be empty. To - // request the next page of results, page_token must be the value of - // [next_page_token][google.cloud.tasks.v2.ListTasksResponse.next_page_token] returned - // from the previous call to [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] - // method. - // - // The page token is valid for only 2 hours. - string page_token = 4; -} - -// Response message for listing tasks using [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks]. -message ListTasksResponse { - // The list of tasks. - repeated Task tasks = 1; - - // A token to retrieve next page of results. - // - // To return the next page of results, call - // [ListTasks][google.cloud.tasks.v2.CloudTasks.ListTasks] with this value as the - // [page_token][google.cloud.tasks.v2.ListTasksRequest.page_token]. - // - // If the next_page_token is empty, there are no more results. - string next_page_token = 2; -} - -// Request message for getting a task using [GetTask][google.cloud.tasks.v2.CloudTasks.GetTask]. -message GetTaskRequest { - // Required. The task name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Task" - } - ]; - - // The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be - // returned. - // - // By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all - // information is retrieved by default because some data, such as - // payloads, might be desirable to return only when needed because - // of its large size or because of the sensitivity of data that it - // contains. - // - // Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires - // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) - // permission on the [Task][google.cloud.tasks.v2.Task] resource. - Task.View response_view = 2; -} - -// Request message for [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask]. -message CreateTaskRequest { - // Required. The queue name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - // - // The queue must already exist. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "cloudtasks.googleapis.com/Task" - } - ]; - - // Required. The task to add. - // - // Task names have the following format: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. - // The user can optionally specify a task [name][google.cloud.tasks.v2.Task.name]. If a - // name is not specified then the system will generate a random - // unique task id, which will be set in the task returned in the - // [response][google.cloud.tasks.v2.Task.name]. - // - // If [schedule_time][google.cloud.tasks.v2.Task.schedule_time] is not set or is in the - // past then Cloud Tasks will set it to the current time. - // - // Task De-duplication: - // - // Explicitly specifying a task ID enables task de-duplication. If - // a task's ID is identical to that of an existing task or a task - // that was deleted or executed recently then the call will fail - // with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. - // If the task's queue was created using Cloud Tasks, then another task with - // the same name can't be created for ~1hour after the original task was - // deleted or executed. If the task's queue was created using queue.yaml or - // queue.xml, then another task with the same name can't be created - // for ~9days after the original task was deleted or executed. - // - // Because there is an extra lookup cost to identify duplicate task - // names, these [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] calls have significantly - // increased latency. Using hashed strings for the task id or for - // the prefix of the task id is recommended. Choosing task ids that - // are sequential or have sequential prefixes, for example using a - // timestamp, causes an increase in latency and error rates in all - // task commands. The infrastructure relies on an approximately - // uniform distribution of task ids to store and serve tasks - // efficiently. - Task task = 2 [(google.api.field_behavior) = REQUIRED]; - - // The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be - // returned. - // - // By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all - // information is retrieved by default because some data, such as - // payloads, might be desirable to return only when needed because - // of its large size or because of the sensitivity of data that it - // contains. - // - // Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires - // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) - // permission on the [Task][google.cloud.tasks.v2.Task] resource. - Task.View response_view = 3; -} - -// Request message for deleting a task using -// [DeleteTask][google.cloud.tasks.v2.CloudTasks.DeleteTask]. -message DeleteTaskRequest { - // Required. The task name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Task" - } - ]; -} - -// Request message for forcing a task to run now using -// [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask]. -message RunTaskRequest { - // Required. The task name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Task" - } - ]; - - // The response_view specifies which subset of the [Task][google.cloud.tasks.v2.Task] will be - // returned. - // - // By default response_view is [BASIC][google.cloud.tasks.v2.Task.View.BASIC]; not all - // information is retrieved by default because some data, such as - // payloads, might be desirable to return only when needed because - // of its large size or because of the sensitivity of data that it - // contains. - // - // Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires - // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) - // permission on the [Task][google.cloud.tasks.v2.Task] resource. - Task.View response_view = 2; -} diff --git a/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/queue.proto b/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/queue.proto deleted file mode 100644 index 3de39792..00000000 --- a/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/queue.proto +++ /dev/null @@ -1,360 +0,0 @@ -// Copyright 2019 Google LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -syntax = "proto3"; - -package google.cloud.tasks.v2; - -import "google/api/resource.proto"; -import "google/cloud/tasks/v2/target.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2;tasks"; -option java_multiple_files = true; -option java_outer_classname = "QueueProto"; -option java_package = "com.google.cloud.tasks.v2"; - -// A queue is a container of related tasks. Queues are configured to manage -// how those tasks are dispatched. Configurable properties include rate limits, -// retry options, queue types, and others. -message Queue { - option (google.api.resource) = { - type: "cloudtasks.googleapis.com/Queue" - pattern: "projects/{project}/locations/{location}/queues/{queue}" - }; - - // State of the queue. - enum State { - // Unspecified state. - STATE_UNSPECIFIED = 0; - - // The queue is running. Tasks can be dispatched. - // - // If the queue was created using Cloud Tasks and the queue has - // had no activity (method calls or task dispatches) for 30 days, - // the queue may take a few minutes to re-activate. Some method - // calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and - // tasks may not be dispatched for a few minutes until the queue - // has been re-activated. - RUNNING = 1; - - // Tasks are paused by the user. If the queue is paused then Cloud - // Tasks will stop delivering tasks from it, but more tasks can - // still be added to it by the user. - PAUSED = 2; - - // The queue is disabled. - // - // A queue becomes `DISABLED` when - // [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref) - // or - // [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref) - // is uploaded which does not contain the queue. You cannot directly disable - // a queue. - // - // When a queue is disabled, tasks can still be added to a queue - // but the tasks are not dispatched. - // - // To permanently delete this queue and all of its tasks, call - // [DeleteQueue][google.cloud.tasks.v2.CloudTasks.DeleteQueue]. - DISABLED = 3; - } - - // Caller-specified and required in [CreateQueue][google.cloud.tasks.v2.CloudTasks.CreateQueue], - // after which it becomes output only. - // - // The queue name. - // - // The queue name must have the following format: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - // - // * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), - // hyphens (-), colons (:), or periods (.). - // For more information, see - // [Identifying - // projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) - // * `LOCATION_ID` is the canonical ID for the queue's location. - // The list of available locations can be obtained by calling - // [ListLocations][google.cloud.location.Locations.ListLocations]. - // For more information, see https://cloud.google.com/about/locations/. - // * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or - // hyphens (-). The maximum length is 100 characters. - string name = 1; - - // Overrides for - // [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. - // These settings apply only to - // [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in this queue. - // [Http tasks][google.cloud.tasks.v2.HttpRequest] are not affected. - // - // If set, `app_engine_routing_override` is used for all - // [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest] in the queue, no matter what the - // setting is for the - // [task-level app_engine_routing][google.cloud.tasks.v2.AppEngineHttpRequest.app_engine_routing]. - AppEngineRouting app_engine_routing_override = 2; - - // Rate limits for task dispatches. - // - // [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2.Queue.retry_config] are - // related because they both control task attempts. However they control task - // attempts in different ways: - // - // * [rate_limits][google.cloud.tasks.v2.Queue.rate_limits] controls the total rate of - // dispatches from a queue (i.e. all traffic dispatched from the - // queue, regardless of whether the dispatch is from a first - // attempt or a retry). - // * [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls what happens to - // particular a task after its first attempt fails. That is, - // [retry_config][google.cloud.tasks.v2.Queue.retry_config] controls task retries (the - // second attempt, third attempt, etc). - // - // The queue's actual dispatch rate is the result of: - // - // * Number of tasks in the queue - // * User-specified throttling: [rate_limits][google.cloud.tasks.v2.Queue.rate_limits], - // [retry_config][google.cloud.tasks.v2.Queue.retry_config], and the - // [queue's state][google.cloud.tasks.v2.Queue.state]. - // * System throttling due to `429` (Too Many Requests) or `503` (Service - // Unavailable) responses from the worker, high error rates, or to smooth - // sudden large traffic spikes. - RateLimits rate_limits = 3; - - // Settings that determine the retry behavior. - // - // * For tasks created using Cloud Tasks: the queue-level retry settings - // apply to all tasks in the queue that were created using Cloud Tasks. - // Retry settings cannot be set on individual tasks. - // * For tasks created using the App Engine SDK: the queue-level retry - // settings apply to all tasks in the queue which do not have retry settings - // explicitly set on the task and were created by the App Engine SDK. See - // [App Engine - // documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks). - RetryConfig retry_config = 4; - - // Output only. The state of the queue. - // - // `state` can only be changed by called - // [PauseQueue][google.cloud.tasks.v2.CloudTasks.PauseQueue], - // [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue], or uploading - // [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref). - // [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] cannot be used to change `state`. - State state = 5; - - // Output only. The last time this queue was purged. - // - // All tasks that were [created][google.cloud.tasks.v2.Task.create_time] before this time - // were purged. - // - // A queue can be purged using [PurgeQueue][google.cloud.tasks.v2.CloudTasks.PurgeQueue], the - // [App Engine Task Queue SDK, or the Cloud - // Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). - // - // Purge time will be truncated to the nearest microsecond. Purge - // time will be unset if the queue has never been purged. - google.protobuf.Timestamp purge_time = 6; - - // Configuration options for writing logs to - // [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this - // field is unset, then no logs are written. - StackdriverLoggingConfig stackdriver_logging_config = 9; -} - -// Rate limits. -// -// This message determines the maximum rate that tasks can be dispatched by a -// queue, regardless of whether the dispatch is a first task attempt or a retry. -// -// Note: The debugging command, [RunTask][google.cloud.tasks.v2.CloudTasks.RunTask], will run a task -// even if the queue has reached its [RateLimits][google.cloud.tasks.v2.RateLimits]. -message RateLimits { - // The maximum rate at which tasks are dispatched from this queue. - // - // If unspecified when the queue is created, Cloud Tasks will pick the - // default. - // - // * The maximum allowed value is 500. - // - // - // This field has the same meaning as - // [rate in - // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate). - double max_dispatches_per_second = 1; - - // Output only. The max burst size. - // - // Max burst size limits how fast tasks in queue are processed when - // many tasks are in the queue and the rate is high. This field - // allows the queue to have a high rate so processing starts shortly - // after a task is enqueued, but still limits resource usage when - // many tasks are enqueued in a short period of time. - // - // The [token bucket](https://wikipedia.org/wiki/Token_Bucket) - // algorithm is used to control the rate of task dispatches. Each - // queue has a token bucket that holds tokens, up to the maximum - // specified by `max_burst_size`. Each time a task is dispatched, a - // token is removed from the bucket. Tasks will be dispatched until - // the queue's bucket runs out of tokens. The bucket will be - // continuously refilled with new tokens based on - // [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second]. - // - // Cloud Tasks will pick the value of `max_burst_size` based on the - // value of - // [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second]. - // - // For queues that were created or updated using - // `queue.yaml/xml`, `max_burst_size` is equal to - // [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size). - // Since `max_burst_size` is output only, if - // [UpdateQueue][google.cloud.tasks.v2.CloudTasks.UpdateQueue] is called on a queue - // created by `queue.yaml/xml`, `max_burst_size` will be reset based - // on the value of - // [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second], - // regardless of whether - // [max_dispatches_per_second][google.cloud.tasks.v2.RateLimits.max_dispatches_per_second] - // is updated. - // - int32 max_burst_size = 2; - - // The maximum number of concurrent tasks that Cloud Tasks allows - // to be dispatched for this queue. After this threshold has been - // reached, Cloud Tasks stops dispatching tasks until the number of - // concurrent requests decreases. - // - // If unspecified when the queue is created, Cloud Tasks will pick the - // default. - // - // - // The maximum allowed value is 5,000. - // - // - // This field has the same meaning as - // [max_concurrent_requests in - // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests). - int32 max_concurrent_dispatches = 3; -} - -// Retry config. -// -// These settings determine when a failed task attempt is retried. -message RetryConfig { - // Number of attempts per task. - // - // Cloud Tasks will attempt the task `max_attempts` times (that is, if the - // first attempt fails, then there will be `max_attempts - 1` retries). Must - // be >= -1. - // - // If unspecified when the queue is created, Cloud Tasks will pick the - // default. - // - // -1 indicates unlimited attempts. - // - // This field has the same meaning as - // [task_retry_limit in - // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). - int32 max_attempts = 1; - - // If positive, `max_retry_duration` specifies the time limit for - // retrying a failed task, measured from when the task was first - // attempted. Once `max_retry_duration` time has passed *and* the - // task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts] - // times, no further attempts will be made and the task will be - // deleted. - // - // If zero, then the task age is unlimited. - // - // If unspecified when the queue is created, Cloud Tasks will pick the - // default. - // - // - // `max_retry_duration` will be truncated to the nearest second. - // - // This field has the same meaning as - // [task_age_limit in - // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). - google.protobuf.Duration max_retry_duration = 2; - - // A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between - // [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and - // [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails, - // if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be - // retried. - // - // If unspecified when the queue is created, Cloud Tasks will pick the - // default. - // - // - // `min_backoff` will be truncated to the nearest second. - // - // This field has the same meaning as - // [min_backoff_seconds in - // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). - google.protobuf.Duration min_backoff = 3; - - // A task will be [scheduled][google.cloud.tasks.v2.Task.schedule_time] for retry between - // [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] and - // [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] duration after it fails, - // if the queue's [RetryConfig][google.cloud.tasks.v2.RetryConfig] specifies that the task should be - // retried. - // - // If unspecified when the queue is created, Cloud Tasks will pick the - // default. - // - // - // `max_backoff` will be truncated to the nearest second. - // - // This field has the same meaning as - // [max_backoff_seconds in - // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). - google.protobuf.Duration max_backoff = 4; - - // The time between retries will double `max_doublings` times. - // - // A task's retry interval starts at - // [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff], then doubles - // `max_doublings` times, then increases linearly, and finally - // retries retries at intervals of - // [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] up to - // [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts] times. - // - // For example, if [min_backoff][google.cloud.tasks.v2.RetryConfig.min_backoff] is 10s, - // [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] is 300s, and - // `max_doublings` is 3, then the a task will first be retried in - // 10s. The retry interval will double three times, and then - // increase linearly by 2^3 * 10s. Finally, the task will retry at - // intervals of [max_backoff][google.cloud.tasks.v2.RetryConfig.max_backoff] until the - // task has been attempted [max_attempts][google.cloud.tasks.v2.RetryConfig.max_attempts] - // times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s, - // 240s, 300s, 300s, .... - // - // If unspecified when the queue is created, Cloud Tasks will pick the - // default. - // - // - // This field has the same meaning as - // [max_doublings in - // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). - int32 max_doublings = 5; -} - -// Configuration options for writing logs to -// [Stackdriver Logging](https://cloud.google.com/logging/docs/). -message StackdriverLoggingConfig { - // Specifies the fraction of operations to write to - // [Stackdriver Logging](https://cloud.google.com/logging/docs/). - // This field may contain any value between 0.0 and 1.0, inclusive. - // 0.0 is the default and means that no operations are logged. - double sampling_ratio = 1; -} diff --git a/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/target.proto b/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/target.proto deleted file mode 100644 index db7ef20f..00000000 --- a/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/target.proto +++ /dev/null @@ -1,423 +0,0 @@ -// Copyright 2019 Google LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -syntax = "proto3"; - -package google.cloud.tasks.v2; - -import "google/api/field_behavior.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2;tasks"; -option java_multiple_files = true; -option java_outer_classname = "TargetProto"; -option java_package = "com.google.cloud.tasks.v2"; - -// HTTP request. -// -// The task will be pushed to the worker as an HTTP request. If the worker -// or the redirected worker acknowledges the task by returning a successful HTTP -// response code ([`200` - `299`]), the task will be removed from the queue. If -// any other HTTP response code is returned or no response is received, the -// task will be retried according to the following: -// -// * User-specified throttling: [retry configuration][google.cloud.tasks.v2.Queue.retry_config], -// [rate limits][google.cloud.tasks.v2.Queue.rate_limits], and the [queue's state][google.cloud.tasks.v2.Queue.state]. -// -// * System throttling: To prevent the worker from overloading, Cloud Tasks may -// temporarily reduce the queue's effective rate. User-specified settings -// will not be changed. -// -// System throttling happens because: -// -// * Cloud Tasks backs off on all errors. Normally the backoff specified in -// [rate limits][google.cloud.tasks.v2.Queue.rate_limits] will be used. But if the worker returns -// `429` (Too Many Requests), `503` (Service Unavailable), or the rate of -// errors is high, Cloud Tasks will use a higher backoff rate. The retry -// specified in the `Retry-After` HTTP response header is considered. -// -// * To prevent traffic spikes and to smooth sudden increases in traffic, -// dispatches ramp up slowly when the queue is newly created or idle and -// if large numbers of tasks suddenly become available to dispatch (due to -// spikes in create task rates, the queue being unpaused, or many tasks -// that are scheduled at the same time). -message HttpRequest { - // Required. The full url path that the request will be sent to. - // - // This string must begin with either "http://" or "https://". Some examples - // are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will - // encode some characters for safety and compatibility. The maximum allowed - // URL length is 2083 characters after encoding. - // - // The `Location` header response from a redirect response [`300` - `399`] - // may be followed. The redirect is not counted as a separate attempt. - string url = 1 [(google.api.field_behavior) = REQUIRED]; - - // The HTTP method to use for the request. The default is POST. - HttpMethod http_method = 2; - - // HTTP request headers. - // - // This map contains the header field names and values. - // Headers can be set when the - // [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. - // - // These headers represent a subset of the headers that will accompany the - // task's HTTP request. Some HTTP request headers will be ignored or replaced. - // - // A partial list of headers that will be ignored or replaced is: - // - // * Host: This will be computed by Cloud Tasks and derived from - // [HttpRequest.url][google.cloud.tasks.v2.HttpRequest.url]. - // * Content-Length: This will be computed by Cloud Tasks. - // * User-Agent: This will be set to `"Google-Cloud-Tasks"`. - // * `X-Google-*`: Google use only. - // * `X-AppEngine-*`: Google use only. - // - // `Content-Type` won't be set by Cloud Tasks. You can explicitly set - // `Content-Type` to a media type when the - // [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. - // For example, `Content-Type` can be set to `"application/octet-stream"` or - // `"application/json"`. - // - // Headers which can have multiple values (according to RFC2616) can be - // specified using comma-separated values. - // - // The size of the headers must be less than 80KB. - map headers = 3; - - // HTTP request body. - // - // A request body is allowed only if the - // [HTTP method][google.cloud.tasks.v2.HttpRequest.http_method] is POST, PUT, or PATCH. It is an - // error to set body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2.HttpMethod]. - bytes body = 4; - - // The mode for generating an `Authorization` header for HTTP requests. - // - // If specified, all `Authorization` headers in the [HttpRequest.headers][google.cloud.tasks.v2.HttpRequest.headers] - // field will be overridden. - oneof authorization_header { - // If specified, an - // [OAuth token](https://developers.google.com/identity/protocols/OAuth2) - // will be generated and attached as an `Authorization` header in the HTTP - // request. - // - // This type of authorization should generally only be used when calling - // Google APIs hosted on *.googleapis.com. - OAuthToken oauth_token = 5; - - // If specified, an - // [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) - // token will be generated and attached as an `Authorization` header in the - // HTTP request. - // - // This type of authorization can be used for many scenarios, including - // calling Cloud Run, or endpoints where you intend to validate the token - // yourself. - OidcToken oidc_token = 6; - } -} - -// App Engine HTTP request. -// -// The message defines the HTTP request that is sent to an App Engine app when -// the task is dispatched. -// -// Using [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] requires -// [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control) -// Google IAM permission for the project -// and the following scope: -// -// `https://www.googleapis.com/auth/cloud-platform` -// -// The task will be delivered to the App Engine app which belongs to the same -// project as the queue. For more information, see -// [How Requests are -// Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) -// and how routing is affected by -// [dispatch -// files](https://cloud.google.com/appengine/docs/python/config/dispatchref). -// Traffic is encrypted during transport and never leaves Google datacenters. -// Because this traffic is carried over a communication mechanism internal to -// Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS). -// The request to the handler, however, will appear to have used the HTTP -// protocol. -// -// The [AppEngineRouting][google.cloud.tasks.v2.AppEngineRouting] used to construct the URL that the task is -// delivered to can be set at the queue-level or task-level: -// -// * If [app_engine_routing_override is set on the -// queue][Queue.app_engine_routing_override], this value is used for all -// tasks in the queue, no matter what the setting is for the [task-level -// app_engine_routing][AppEngineHttpRequest.app_engine_routing]. -// -// -// The `url` that the task will be sent to is: -// -// * `url =` [host][google.cloud.tasks.v2.AppEngineRouting.host] `+` -// [relative_uri][google.cloud.tasks.v2.AppEngineHttpRequest.relative_uri] -// -// Tasks can be dispatched to secure app handlers, unsecure app handlers, and -// URIs restricted with -// [`login: -// admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref). -// Because tasks are not run as any user, they cannot be dispatched to URIs -// restricted with -// [`login: -// required`](https://cloud.google.com/appengine/docs/standard/python/config/appref) -// Task dispatches also do not follow redirects. -// -// The task attempt has succeeded if the app's request handler returns an HTTP -// response code in the range [`200` - `299`]. The task attempt has failed if -// the app's handler returns a non-2xx response code or Cloud Tasks does -// not receive response before the [deadline][google.cloud.tasks.v2.Task.dispatch_deadline]. Failed -// tasks will be retried according to the -// [retry configuration][google.cloud.tasks.v2.Queue.retry_config]. `503` (Service Unavailable) is -// considered an App Engine system error instead of an application error and -// will cause Cloud Tasks' traffic congestion control to temporarily throttle -// the queue's dispatches. Unlike other types of task targets, a `429` (Too Many -// Requests) response from an app handler does not cause traffic congestion -// control to throttle the queue. -message AppEngineHttpRequest { - // The HTTP method to use for the request. The default is POST. - // - // The app's request handler for the task's target URL must be able to handle - // HTTP requests with this http_method, otherwise the task attempt will fail - // with error code 405 (Method Not Allowed). See - // [Writing a push task request - // handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) - // and the documentation for the request handlers in the language your app is - // written in e.g. - // [Python Request - // Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass). - HttpMethod http_method = 1; - - // Task-level setting for App Engine routing. - // - // * If [app_engine_routing_override is set on the - // queue][Queue.app_engine_routing_override], this value is used for all - // tasks in the queue, no matter what the setting is for the [task-level - // app_engine_routing][AppEngineHttpRequest.app_engine_routing]. - AppEngineRouting app_engine_routing = 2; - - // The relative URI. - // - // The relative URI must begin with "/" and must be a valid HTTP relative URI. - // It can contain a path and query string arguments. - // If the relative URI is empty, then the root path "/" will be used. - // No spaces are allowed, and the maximum length allowed is 2083 characters. - string relative_uri = 3; - - // HTTP request headers. - // - // This map contains the header field names and values. - // Headers can be set when the - // [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. - // Repeated headers are not supported but a header value can contain commas. - // - // Cloud Tasks sets some headers to default values: - // - // * `User-Agent`: By default, this header is - // `"AppEngine-Google; (+http://code.google.com/appengine)"`. - // This header can be modified, but Cloud Tasks will append - // `"AppEngine-Google; (+http://code.google.com/appengine)"` to the - // modified `User-Agent`. - // - // If the task has a [body][google.cloud.tasks.v2.AppEngineHttpRequest.body], Cloud - // Tasks sets the following headers: - // - // * `Content-Type`: By default, the `Content-Type` header is set to - // `"application/octet-stream"`. The default can be overridden by explicitly - // setting `Content-Type` to a particular media type when the - // [task is created][google.cloud.tasks.v2.CloudTasks.CreateTask]. - // For example, `Content-Type` can be set to `"application/json"`. - // * `Content-Length`: This is computed by Cloud Tasks. This value is - // output only. It cannot be changed. - // - // The headers below cannot be set or overridden: - // - // * `Host` - // * `X-Google-*` - // * `X-AppEngine-*` - // - // In addition, Cloud Tasks sets some headers when the task is dispatched, - // such as headers containing information about the task; see - // [request - // headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers). - // These headers are set only when the task is dispatched, so they are not - // visible when the task is returned in a Cloud Tasks response. - // - // Although there is no specific limit for the maximum number of headers or - // the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2.Task]. For more - // information, see the [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask] documentation. - map headers = 4; - - // HTTP request body. - // - // A request body is allowed only if the HTTP method is POST or PUT. It is - // an error to set a body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2.HttpMethod]. - bytes body = 5; -} - -// App Engine Routing. -// -// Defines routing characteristics specific to App Engine - service, version, -// and instance. -// -// For more information about services, versions, and instances see -// [An Overview of App -// Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine), -// [Microservices Architecture on Google App -// Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine), -// [App Engine Standard request -// routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed), -// and [App Engine Flex request -// routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). -// -// Using [AppEngineRouting][google.cloud.tasks.v2.AppEngineRouting] requires -// [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control) -// Google IAM permission for the project -// and the following scope: -// -// `https://www.googleapis.com/auth/cloud-platform` -message AppEngineRouting { - // App service. - // - // By default, the task is sent to the service which is the default - // service when the task is attempted. - // - // For some queues or tasks which were created using the App Engine - // Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable - // into [service][google.cloud.tasks.v2.AppEngineRouting.service], - // [version][google.cloud.tasks.v2.AppEngineRouting.version], and - // [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks - // which were created using the App Engine SDK use a custom domain - // name; custom domains are not parsed by Cloud Tasks. If - // [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then - // [service][google.cloud.tasks.v2.AppEngineRouting.service], - // [version][google.cloud.tasks.v2.AppEngineRouting.version], and - // [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string. - string service = 1; - - // App version. - // - // By default, the task is sent to the version which is the default - // version when the task is attempted. - // - // For some queues or tasks which were created using the App Engine - // Task Queue API, [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable - // into [service][google.cloud.tasks.v2.AppEngineRouting.service], - // [version][google.cloud.tasks.v2.AppEngineRouting.version], and - // [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. For example, some tasks - // which were created using the App Engine SDK use a custom domain - // name; custom domains are not parsed by Cloud Tasks. If - // [host][google.cloud.tasks.v2.AppEngineRouting.host] is not parsable, then - // [service][google.cloud.tasks.v2.AppEngineRouting.service], - // [version][google.cloud.tasks.v2.AppEngineRouting.version], and - // [instance][google.cloud.tasks.v2.AppEngineRouting.instance] are the empty string. - string version = 2; - - // App instance. - // - // By default, the task is sent to an instance which is available when - // the task is attempted. - // - // Requests can only be sent to a specific instance if - // [manual scaling is used in App Engine - // Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). - // App Engine Flex does not support instances. For more information, see - // [App Engine Standard request - // routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) - // and [App Engine Flex request - // routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). - string instance = 3; - - // Output only. The host that the task is sent to. - // - // The host is constructed from the domain name of the app associated with - // the queue's project ID (for example .appspot.com), and the - // [service][google.cloud.tasks.v2.AppEngineRouting.service], [version][google.cloud.tasks.v2.AppEngineRouting.version], - // and [instance][google.cloud.tasks.v2.AppEngineRouting.instance]. Tasks which were created using - // the App Engine SDK might have a custom domain name. - // - // For more information, see - // [How Requests are - // Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). - string host = 4; -} - -// The HTTP method used to deliver the task. -enum HttpMethod { - // HTTP method unspecified - HTTP_METHOD_UNSPECIFIED = 0; - - // HTTP POST - POST = 1; - - // HTTP GET - GET = 2; - - // HTTP HEAD - HEAD = 3; - - // HTTP PUT - PUT = 4; - - // HTTP DELETE - DELETE = 5; - - // HTTP PATCH - PATCH = 6; - - // HTTP OPTIONS - OPTIONS = 7; -} - -// Contains information needed for generating an -// [OAuth token](https://developers.google.com/identity/protocols/OAuth2). -// This type of authorization should generally only be used when calling Google -// APIs hosted on *.googleapis.com. -message OAuthToken { - // [Service account email](https://cloud.google.com/iam/docs/service-accounts) - // to be used for generating OAuth token. - // The service account must be within the same project as the queue. The - // caller must have iam.serviceAccounts.actAs permission for the service - // account. - string service_account_email = 1; - - // OAuth scope to be used for generating OAuth access token. - // If not specified, "https://www.googleapis.com/auth/cloud-platform" - // will be used. - string scope = 2; -} - -// Contains information needed for generating an -// [OpenID Connect -// token](https://developers.google.com/identity/protocols/OpenIDConnect). -// This type of authorization can be used for many scenarios, including -// calling Cloud Run, or endpoints where you intend to validate the token -// yourself. -message OidcToken { - // [Service account email](https://cloud.google.com/iam/docs/service-accounts) - // to be used for generating OIDC token. - // The service account must be within the same project as the queue. The - // caller must have iam.serviceAccounts.actAs permission for the service - // account. - string service_account_email = 1; - - // Audience to be used when generating OIDC token. If not specified, the URI - // specified in target will be used. - string audience = 2; -} diff --git a/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/task.proto b/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/task.proto deleted file mode 100644 index 9669b21a..00000000 --- a/proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/task.proto +++ /dev/null @@ -1,190 +0,0 @@ -// Copyright 2019 Google LLC. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// - -syntax = "proto3"; - -package google.cloud.tasks.v2; - -import "google/api/resource.proto"; -import "google/cloud/tasks/v2/target.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; -import "google/rpc/status.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2;tasks"; -option java_multiple_files = true; -option java_outer_classname = "TaskProto"; -option java_package = "com.google.cloud.tasks.v2"; - -// A unit of scheduled work. -message Task { - option (google.api.resource) = { - type: "cloudtasks.googleapis.com/Task" - pattern: "projects/{project}/locations/{location}/queues/{queue}/tasks/{task}" - }; - - // The view specifies a subset of [Task][google.cloud.tasks.v2.Task] data. - // - // When a task is returned in a response, not all - // information is retrieved by default because some data, such as - // payloads, might be desirable to return only when needed because - // of its large size or because of the sensitivity of data that it - // contains. - enum View { - // Unspecified. Defaults to BASIC. - VIEW_UNSPECIFIED = 0; - - // The basic view omits fields which can be large or can contain - // sensitive data. - // - // This view does not include the - // [body in AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest.body]. - // Bodies are desirable to return only when needed, because they - // can be large and because of the sensitivity of the data that you - // choose to store in it. - BASIC = 1; - - // All information is returned. - // - // Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires - // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) - // permission on the [Queue][google.cloud.tasks.v2.Queue] resource. - FULL = 2; - } - - // Optionally caller-specified in [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask]. - // - // The task name. - // - // The task name must have the following format: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - // - // * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), - // hyphens (-), colons (:), or periods (.). - // For more information, see - // [Identifying - // projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) - // * `LOCATION_ID` is the canonical ID for the task's location. - // The list of available locations can be obtained by calling - // [ListLocations][google.cloud.location.Locations.ListLocations]. - // For more information, see https://cloud.google.com/about/locations/. - // * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or - // hyphens (-). The maximum length is 100 characters. - // * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), - // hyphens (-), or underscores (_). The maximum length is 500 characters. - string name = 1; - - // Required. The message to send to the worker. - oneof message_type { - // HTTP request that is sent to the App Engine app handler. - // - // An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] set. - AppEngineHttpRequest app_engine_http_request = 2; - - // HTTP request that is sent to the worker. - // - // An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2.HttpRequest] set. - HttpRequest http_request = 3; - } - - // The time when the task is scheduled to be attempted or retried. - // - // `schedule_time` will be truncated to the nearest microsecond. - google.protobuf.Timestamp schedule_time = 4; - - // Output only. The time that the task was created. - // - // `create_time` will be truncated to the nearest second. - google.protobuf.Timestamp create_time = 5; - - // The deadline for requests sent to the worker. If the worker does not - // respond by this deadline then the request is cancelled and the attempt - // is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the - // task according to the [RetryConfig][google.cloud.tasks.v2.RetryConfig]. - // - // Note that when the request is cancelled, Cloud Tasks will stop listing for - // the response, but whether the worker stops processing depends on the - // worker. For example, if the worker is stuck, it may not react to cancelled - // requests. - // - // The default and maximum values depend on the type of request: - // - // * For [HTTP tasks][google.cloud.tasks.v2.HttpRequest], the default is 10 minutes. The deadline - // must be in the interval [15 seconds, 30 minutes]. - // - // * For [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest], 0 indicates that the - // request has the default deadline. The default deadline depends on the - // [scaling - // type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling) - // of the service: 10 minutes for standard apps with automatic scaling, 24 - // hours for standard apps with manual and basic scaling, and 60 minutes for - // flex apps. If the request deadline is set, it must be in the interval [15 - // seconds, 24 hours 15 seconds]. Regardless of the task's - // `dispatch_deadline`, the app handler will not run for longer than than - // the service's timeout. We recommend setting the `dispatch_deadline` to - // at most a few seconds more than the app handler's timeout. For more - // information see - // [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts). - // - // `dispatch_deadline` will be truncated to the nearest millisecond. The - // deadline is an approximate deadline. - google.protobuf.Duration dispatch_deadline = 6; - - // Output only. The number of attempts dispatched. - // - // This count includes attempts which have been dispatched but haven't - // received a response. - int32 dispatch_count = 7; - - // Output only. The number of attempts which have received a response. - int32 response_count = 8; - - // Output only. The status of the task's first attempt. - // - // Only [dispatch_time][google.cloud.tasks.v2.Attempt.dispatch_time] will be set. - // The other [Attempt][google.cloud.tasks.v2.Attempt] information is not retained by Cloud Tasks. - Attempt first_attempt = 9; - - // Output only. The status of the task's last attempt. - Attempt last_attempt = 10; - - // Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2.Task] has - // been returned. - View view = 11; -} - -// The status of a task attempt. -message Attempt { - // Output only. The time that this attempt was scheduled. - // - // `schedule_time` will be truncated to the nearest microsecond. - google.protobuf.Timestamp schedule_time = 1; - - // Output only. The time that this attempt was dispatched. - // - // `dispatch_time` will be truncated to the nearest microsecond. - google.protobuf.Timestamp dispatch_time = 2; - - // Output only. The time that this attempt response was received. - // - // `response_time` will be truncated to the nearest microsecond. - google.protobuf.Timestamp response_time = 3; - - // Output only. The response from the worker for this attempt. - // - // If `response_time` is unset, then the task has not been attempted or is - // currently running and the `response_status` field is meaningless. - google.rpc.Status response_status = 4; -} diff --git a/proto-google-cloud-tasks-v2beta2/clirr-ignored-differences.xml b/proto-google-cloud-tasks-v2beta2/clirr-ignored-differences.xml deleted file mode 100644 index 8c734a78..00000000 --- a/proto-google-cloud-tasks-v2beta2/clirr-ignored-differences.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - 7012 - com/google/cloud/tasks/v2beta2/*OrBuilder - * get*(*) - - - 7012 - com/google/cloud/tasks/v2beta2/*OrBuilder - boolean contains*(*) - - - 7012 - com/google/cloud/tasks/v2beta2/*OrBuilder - boolean has*(*) - - diff --git a/proto-google-cloud-tasks-v2beta2/pom.xml b/proto-google-cloud-tasks-v2beta2/pom.xml deleted file mode 100644 index c3ed14c6..00000000 --- a/proto-google-cloud-tasks-v2beta2/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - 4.0.0 - com.google.api.grpc - proto-google-cloud-tasks-v2beta2 - 0.93.12 - proto-google-cloud-tasks-v2beta2 - PROTO library for proto-google-cloud-tasks-v2beta2 - - com.google.cloud - google-cloud-tasks-parent - 2.3.12 - - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-common-protos - - - com.google.api - api-common - - - com.google.guava - guava - - - com.google.api.grpc - proto-google-iam-v1 - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - \ No newline at end of file diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequest.java deleted file mode 100644 index b406754a..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequest.java +++ /dev/null @@ -1,966 +0,0 @@ -/* - * Copyright 2020 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; - -/** - * - * - *
- * Request message for acknowledging a task using
- * [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.AcknowledgeTaskRequest} - */ -public final class AcknowledgeTaskRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.AcknowledgeTaskRequest) - AcknowledgeTaskRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use AcknowledgeTaskRequest.newBuilder() to construct. - private AcknowledgeTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AcknowledgeTaskRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AcknowledgeTaskRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_AcknowledgeTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_AcknowledgeTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest.class, - com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCHEDULE_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp scheduleTime_; - /** - * - * - *
-   * Required. The task's current schedule time, available in the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-   * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-   * to ensure that your worker currently holds the lease.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the scheduleTime field is set. - */ - @java.lang.Override - public boolean hasScheduleTime() { - return scheduleTime_ != null; - } - /** - * - * - *
-   * Required. The task's current schedule time, available in the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-   * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-   * to ensure that your worker currently holds the lease.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The scheduleTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } - /** - * - * - *
-   * Required. The task's current schedule time, available in the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-   * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-   * to ensure that your worker currently holds the lease.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { - return getScheduleTime(); - } - - 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(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (scheduleTime_ != null) { - output.writeMessage(2, getScheduleTime()); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScheduleTime()); - } - 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.AcknowledgeTaskRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest other = - (com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (hasScheduleTime() != other.hasScheduleTime()) return false; - if (hasScheduleTime()) { - if (!getScheduleTime().equals(other.getScheduleTime())) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasScheduleTime()) { - hash = (37 * hash) + SCHEDULE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getScheduleTime().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest 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.AcknowledgeTaskRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest 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.AcknowledgeTaskRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest 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.AcknowledgeTaskRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest 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.AcknowledgeTaskRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest 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.AcknowledgeTaskRequest 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.AcknowledgeTaskRequest 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.AcknowledgeTaskRequest 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 acknowledging a task using
-   * [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.AcknowledgeTaskRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.AcknowledgeTaskRequest) - com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_AcknowledgeTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_AcknowledgeTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest.class, - com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = null; - } else { - scheduleTime_ = null; - scheduleTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_AcknowledgeTaskRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest build() { - com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest buildPartial() { - com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest result = - new com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest(this); - result.name_ = name_; - if (scheduleTimeBuilder_ == null) { - result.scheduleTime_ = scheduleTime_; - } else { - result.scheduleTime_ = scheduleTimeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest other) { - if (other == com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasScheduleTime()) { - mergeScheduleTime(other.getScheduleTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp scheduleTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - scheduleTimeBuilder_; - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the scheduleTime field is set. - */ - public boolean hasScheduleTime() { - return scheduleTimeBuilder_ != null || scheduleTime_ != null; - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The scheduleTime. - */ - public com.google.protobuf.Timestamp getScheduleTime() { - if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } else { - return scheduleTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setScheduleTime(com.google.protobuf.Timestamp value) { - if (scheduleTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduleTime_ = value; - onChanged(); - } else { - scheduleTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = builderForValue.build(); - onChanged(); - } else { - scheduleTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { - if (scheduleTimeBuilder_ == null) { - if (scheduleTime_ != null) { - scheduleTime_ = - com.google.protobuf.Timestamp.newBuilder(scheduleTime_) - .mergeFrom(value) - .buildPartial(); - } else { - scheduleTime_ = value; - } - onChanged(); - } else { - scheduleTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearScheduleTime() { - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = null; - onChanged(); - } else { - scheduleTime_ = null; - scheduleTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { - - onChanged(); - return getScheduleTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { - if (scheduleTimeBuilder_ != null) { - return scheduleTimeBuilder_.getMessageOrBuilder(); - } else { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getScheduleTimeFieldBuilder() { - if (scheduleTimeBuilder_ == null) { - scheduleTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getScheduleTime(), getParentForChildren(), isClean()); - scheduleTime_ = null; - } - return scheduleTimeBuilder_; - } - - @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.AcknowledgeTaskRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.AcknowledgeTaskRequest) - private static final com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest(); - } - - public static com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AcknowledgeTaskRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequestOrBuilder.java deleted file mode 100644 index 5836a48c..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequestOrBuilder.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2020 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; - -public interface AcknowledgeTaskRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.AcknowledgeTaskRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The task's current schedule time, available in the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-   * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-   * to ensure that your worker currently holds the lease.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the scheduleTime field is set. - */ - boolean hasScheduleTime(); - /** - * - * - *
-   * Required. The task's current schedule time, available in the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-   * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-   * to ensure that your worker currently holds the lease.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The scheduleTime. - */ - com.google.protobuf.Timestamp getScheduleTime(); - /** - * - * - *
-   * Required. The task's current schedule time, available in the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-   * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-   * to ensure that your worker currently holds the lease.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequest.java deleted file mode 100644 index 7855dea5..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequest.java +++ /dev/null @@ -1,2040 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta2; - -/** - * - * - *
- * App Engine HTTP request.
- * The message defines the HTTP request that is sent to an App Engine app when
- * the task is dispatched.
- * This proto can only be used for tasks in a queue which has
- * [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] set.
- * Using [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] requires
- * [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
- * Google IAM permission for the project
- * and the following scope:
- * `https://www.googleapis.com/auth/cloud-platform`
- * The task will be delivered to the App Engine app which belongs to the same
- * project as the queue. For more information, see
- * [How Requests are
- * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
- * and how routing is affected by
- * [dispatch
- * files](https://cloud.google.com/appengine/docs/python/config/dispatchref).
- * Traffic is encrypted during transport and never leaves Google datacenters.
- * Because this traffic is carried over a communication mechanism internal to
- * Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS).
- * The request to the handler, however, will appear to have used the HTTP
- * protocol.
- * The [AppEngineRouting][google.cloud.tasks.v2beta2.AppEngineRouting] used to construct the URL that the task is
- * delivered to can be set at the queue-level or task-level:
- * * If set,
- *   [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override]
- *   is used for all tasks in the queue, no matter what the setting
- *   is for the
- *   [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
- * The `url` that the task will be sent to is:
- * * `url =` [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] `+`
- *   [relative_url][google.cloud.tasks.v2beta2.AppEngineHttpRequest.relative_url]
- * Tasks can be dispatched to secure app handlers, unsecure app handlers, and
- * URIs restricted with
- * [`login:
- * admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref).
- * Because tasks are not run as any user, they cannot be dispatched to URIs
- * restricted with
- * [`login:
- * required`](https://cloud.google.com/appengine/docs/standard/python/config/appref)
- * Task dispatches also do not follow redirects.
- * The task attempt has succeeded if the app's request handler returns an HTTP
- * response code in the range [`200` - `299`]. The task attempt has failed if
- * the app's handler returns a non-2xx response code or Cloud Tasks does
- * not receive response before the [deadline][Task.dispatch_deadline]. Failed
- * tasks will be retried according to the
- * [retry configuration][google.cloud.tasks.v2beta2.Queue.retry_config]. `503` (Service Unavailable) is
- * considered an App Engine system error instead of an application error and
- * will cause Cloud Tasks' traffic congestion control to temporarily throttle
- * the queue's dispatches. Unlike other types of task targets, a `429` (Too Many
- * Requests) response from an app handler does not cause traffic congestion
- * control to throttle the queue.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.AppEngineHttpRequest} - */ -public final class AppEngineHttpRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.AppEngineHttpRequest) - AppEngineHttpRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use AppEngineHttpRequest.newBuilder() to construct. - private AppEngineHttpRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AppEngineHttpRequest() { - httpMethod_ = 0; - relativeUrl_ = ""; - payload_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AppEngineHttpRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_AppEngineHttpRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetHeaders(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_AppEngineHttpRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.class, - com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.Builder.class); - } - - public static final int HTTP_METHOD_FIELD_NUMBER = 1; - private int httpMethod_; - /** - * - * - *
-   * The HTTP method to use for the request. The default is POST.
-   * The app's request handler for the task's target URL must be able to handle
-   * HTTP requests with this http_method, otherwise the task attempt fails with
-   * error code 405 (Method Not Allowed). See [Writing a push task request
-   * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-   * and the App Engine documentation for your runtime on [How Requests are
-   * Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
-   * 
- * - * .google.cloud.tasks.v2beta2.HttpMethod http_method = 1; - * - * @return The enum numeric value on the wire for httpMethod. - */ - @java.lang.Override - public int getHttpMethodValue() { - return httpMethod_; - } - /** - * - * - *
-   * The HTTP method to use for the request. The default is POST.
-   * The app's request handler for the task's target URL must be able to handle
-   * HTTP requests with this http_method, otherwise the task attempt fails with
-   * error code 405 (Method Not Allowed). See [Writing a push task request
-   * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-   * and the App Engine documentation for your runtime on [How Requests are
-   * Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
-   * 
- * - * .google.cloud.tasks.v2beta2.HttpMethod http_method = 1; - * - * @return The httpMethod. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.HttpMethod getHttpMethod() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta2.HttpMethod result = - com.google.cloud.tasks.v2beta2.HttpMethod.valueOf(httpMethod_); - return result == null ? com.google.cloud.tasks.v2beta2.HttpMethod.UNRECOGNIZED : result; - } - - public static final int APP_ENGINE_ROUTING_FIELD_NUMBER = 2; - private com.google.cloud.tasks.v2beta2.AppEngineRouting appEngineRouting_; - /** - * - * - *
-   * Task-level setting for App Engine routing.
-   * If set,
-   * [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override]
-   * is used for all tasks in the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing = 2; - * - * @return Whether the appEngineRouting field is set. - */ - @java.lang.Override - public boolean hasAppEngineRouting() { - return appEngineRouting_ != null; - } - /** - * - * - *
-   * Task-level setting for App Engine routing.
-   * If set,
-   * [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override]
-   * is used for all tasks in the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing = 2; - * - * @return The appEngineRouting. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineRouting getAppEngineRouting() { - return appEngineRouting_ == null - ? com.google.cloud.tasks.v2beta2.AppEngineRouting.getDefaultInstance() - : appEngineRouting_; - } - /** - * - * - *
-   * Task-level setting for App Engine routing.
-   * If set,
-   * [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override]
-   * is used for all tasks in the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing = 2; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineRoutingOrBuilder getAppEngineRoutingOrBuilder() { - return getAppEngineRouting(); - } - - public static final int RELATIVE_URL_FIELD_NUMBER = 3; - private volatile java.lang.Object relativeUrl_; - /** - * - * - *
-   * The relative URL.
-   * The relative URL must begin with "/" and must be a valid HTTP relative URL.
-   * It can contain a path and query string arguments.
-   * If the relative URL is empty, then the root path "/" will be used.
-   * No spaces are allowed, and the maximum length allowed is 2083 characters.
-   * 
- * - * string relative_url = 3; - * - * @return The relativeUrl. - */ - @java.lang.Override - public java.lang.String getRelativeUrl() { - java.lang.Object ref = relativeUrl_; - 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(); - relativeUrl_ = s; - return s; - } - } - /** - * - * - *
-   * The relative URL.
-   * The relative URL must begin with "/" and must be a valid HTTP relative URL.
-   * It can contain a path and query string arguments.
-   * If the relative URL is empty, then the root path "/" will be used.
-   * No spaces are allowed, and the maximum length allowed is 2083 characters.
-   * 
- * - * string relative_url = 3; - * - * @return The bytes for relativeUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRelativeUrlBytes() { - java.lang.Object ref = relativeUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - relativeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HEADERS_FIELD_NUMBER = 4; - - private static final class HeadersDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_AppEngineHttpRequest_HeadersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField headers_; - - private com.google.protobuf.MapField internalGetHeaders() { - if (headers_ == null) { - return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); - } - return headers_; - } - - public int getHeadersCount() { - return internalGetHeaders().getMap().size(); - } - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [payload][google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta2.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public boolean containsHeaders(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetHeaders().getMap().containsKey(key); - } - /** Use {@link #getHeadersMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHeaders() { - return getHeadersMap(); - } - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [payload][google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta2.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public java.util.Map getHeadersMap() { - return internalGetHeaders().getMap(); - } - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [payload][google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta2.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHeaders().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [payload][google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta2.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public java.lang.String getHeadersOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHeaders().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int PAYLOAD_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString payload_; - /** - * - * - *
-   * Payload.
-   * The payload will be sent as the HTTP message body. A message
-   * body, and thus a payload, is allowed only if the HTTP method is
-   * POST or PUT. It is an error to set a data payload on a task with
-   * an incompatible [HttpMethod][google.cloud.tasks.v2beta2.HttpMethod].
-   * 
- * - * bytes payload = 5; - * - * @return The payload. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPayload() { - return payload_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (httpMethod_ - != com.google.cloud.tasks.v2beta2.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) { - output.writeEnum(1, httpMethod_); - } - if (appEngineRouting_ != null) { - output.writeMessage(2, getAppEngineRouting()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativeUrl_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, relativeUrl_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetHeaders(), HeadersDefaultEntryHolder.defaultEntry, 4); - if (!payload_.isEmpty()) { - output.writeBytes(5, payload_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (httpMethod_ - != com.google.cloud.tasks.v2beta2.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, httpMethod_); - } - if (appEngineRouting_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAppEngineRouting()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativeUrl_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, relativeUrl_); - } - for (java.util.Map.Entry entry : - internalGetHeaders().getMap().entrySet()) { - com.google.protobuf.MapEntry headers__ = - HeadersDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, headers__); - } - if (!payload_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, payload_); - } - 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.AppEngineHttpRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.AppEngineHttpRequest other = - (com.google.cloud.tasks.v2beta2.AppEngineHttpRequest) obj; - - if (httpMethod_ != other.httpMethod_) return false; - if (hasAppEngineRouting() != other.hasAppEngineRouting()) return false; - if (hasAppEngineRouting()) { - if (!getAppEngineRouting().equals(other.getAppEngineRouting())) return false; - } - if (!getRelativeUrl().equals(other.getRelativeUrl())) return false; - if (!internalGetHeaders().equals(other.internalGetHeaders())) return false; - if (!getPayload().equals(other.getPayload())) 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) + HTTP_METHOD_FIELD_NUMBER; - hash = (53 * hash) + httpMethod_; - if (hasAppEngineRouting()) { - hash = (37 * hash) + APP_ENGINE_ROUTING_FIELD_NUMBER; - hash = (53 * hash) + getAppEngineRouting().hashCode(); - } - hash = (37 * hash) + RELATIVE_URL_FIELD_NUMBER; - hash = (53 * hash) + getRelativeUrl().hashCode(); - if (!internalGetHeaders().getMap().isEmpty()) { - hash = (37 * hash) + HEADERS_FIELD_NUMBER; - hash = (53 * hash) + internalGetHeaders().hashCode(); - } - hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.AppEngineHttpRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineHttpRequest 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.AppEngineHttpRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineHttpRequest 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.AppEngineHttpRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineHttpRequest 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.AppEngineHttpRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineHttpRequest 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.AppEngineHttpRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineHttpRequest 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.AppEngineHttpRequest 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.AppEngineHttpRequest 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.AppEngineHttpRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * App Engine HTTP request.
-   * The message defines the HTTP request that is sent to an App Engine app when
-   * the task is dispatched.
-   * This proto can only be used for tasks in a queue which has
-   * [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] set.
-   * Using [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] requires
-   * [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
-   * Google IAM permission for the project
-   * and the following scope:
-   * `https://www.googleapis.com/auth/cloud-platform`
-   * The task will be delivered to the App Engine app which belongs to the same
-   * project as the queue. For more information, see
-   * [How Requests are
-   * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-   * and how routing is affected by
-   * [dispatch
-   * files](https://cloud.google.com/appengine/docs/python/config/dispatchref).
-   * Traffic is encrypted during transport and never leaves Google datacenters.
-   * Because this traffic is carried over a communication mechanism internal to
-   * Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS).
-   * The request to the handler, however, will appear to have used the HTTP
-   * protocol.
-   * The [AppEngineRouting][google.cloud.tasks.v2beta2.AppEngineRouting] used to construct the URL that the task is
-   * delivered to can be set at the queue-level or task-level:
-   * * If set,
-   *   [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override]
-   *   is used for all tasks in the queue, no matter what the setting
-   *   is for the
-   *   [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-   * The `url` that the task will be sent to is:
-   * * `url =` [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] `+`
-   *   [relative_url][google.cloud.tasks.v2beta2.AppEngineHttpRequest.relative_url]
-   * Tasks can be dispatched to secure app handlers, unsecure app handlers, and
-   * URIs restricted with
-   * [`login:
-   * admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref).
-   * Because tasks are not run as any user, they cannot be dispatched to URIs
-   * restricted with
-   * [`login:
-   * required`](https://cloud.google.com/appengine/docs/standard/python/config/appref)
-   * Task dispatches also do not follow redirects.
-   * The task attempt has succeeded if the app's request handler returns an HTTP
-   * response code in the range [`200` - `299`]. The task attempt has failed if
-   * the app's handler returns a non-2xx response code or Cloud Tasks does
-   * not receive response before the [deadline][Task.dispatch_deadline]. Failed
-   * tasks will be retried according to the
-   * [retry configuration][google.cloud.tasks.v2beta2.Queue.retry_config]. `503` (Service Unavailable) is
-   * considered an App Engine system error instead of an application error and
-   * will cause Cloud Tasks' traffic congestion control to temporarily throttle
-   * the queue's dispatches. Unlike other types of task targets, a `429` (Too Many
-   * Requests) response from an app handler does not cause traffic congestion
-   * control to throttle the queue.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.AppEngineHttpRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.AppEngineHttpRequest) - com.google.cloud.tasks.v2beta2.AppEngineHttpRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_AppEngineHttpRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetHeaders(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - return internalGetMutableHeaders(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_AppEngineHttpRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.class, - com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - httpMethod_ = 0; - - if (appEngineRoutingBuilder_ == null) { - appEngineRouting_ = null; - } else { - appEngineRouting_ = null; - appEngineRoutingBuilder_ = null; - } - relativeUrl_ = ""; - - internalGetMutableHeaders().clear(); - payload_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_AppEngineHttpRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineHttpRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineHttpRequest build() { - com.google.cloud.tasks.v2beta2.AppEngineHttpRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineHttpRequest buildPartial() { - com.google.cloud.tasks.v2beta2.AppEngineHttpRequest result = - new com.google.cloud.tasks.v2beta2.AppEngineHttpRequest(this); - int from_bitField0_ = bitField0_; - result.httpMethod_ = httpMethod_; - if (appEngineRoutingBuilder_ == null) { - result.appEngineRouting_ = appEngineRouting_; - } else { - result.appEngineRouting_ = appEngineRoutingBuilder_.build(); - } - result.relativeUrl_ = relativeUrl_; - result.headers_ = internalGetHeaders(); - result.headers_.makeImmutable(); - result.payload_ = payload_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.AppEngineHttpRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta2.AppEngineHttpRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.AppEngineHttpRequest other) { - if (other == com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.getDefaultInstance()) - return this; - if (other.httpMethod_ != 0) { - setHttpMethodValue(other.getHttpMethodValue()); - } - if (other.hasAppEngineRouting()) { - mergeAppEngineRouting(other.getAppEngineRouting()); - } - if (!other.getRelativeUrl().isEmpty()) { - relativeUrl_ = other.relativeUrl_; - onChanged(); - } - internalGetMutableHeaders().mergeFrom(other.internalGetHeaders()); - if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { - setPayload(other.getPayload()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - httpMethod_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - input.readMessage( - getAppEngineRoutingFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - relativeUrl_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry headers__ = - input.readMessage( - HeadersDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableHeaders() - .getMutableMap() - .put(headers__.getKey(), headers__.getValue()); - break; - } // case 34 - case 42: - { - payload_ = input.readBytes(); - - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int httpMethod_ = 0; - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * The app's request handler for the task's target URL must be able to handle
-     * HTTP requests with this http_method, otherwise the task attempt fails with
-     * error code 405 (Method Not Allowed). See [Writing a push task request
-     * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-     * and the App Engine documentation for your runtime on [How Requests are
-     * Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
-     * 
- * - * .google.cloud.tasks.v2beta2.HttpMethod http_method = 1; - * - * @return The enum numeric value on the wire for httpMethod. - */ - @java.lang.Override - public int getHttpMethodValue() { - return httpMethod_; - } - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * The app's request handler for the task's target URL must be able to handle
-     * HTTP requests with this http_method, otherwise the task attempt fails with
-     * error code 405 (Method Not Allowed). See [Writing a push task request
-     * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-     * and the App Engine documentation for your runtime on [How Requests are
-     * Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
-     * 
- * - * .google.cloud.tasks.v2beta2.HttpMethod http_method = 1; - * - * @param value The enum numeric value on the wire for httpMethod to set. - * @return This builder for chaining. - */ - public Builder setHttpMethodValue(int value) { - - httpMethod_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * The app's request handler for the task's target URL must be able to handle
-     * HTTP requests with this http_method, otherwise the task attempt fails with
-     * error code 405 (Method Not Allowed). See [Writing a push task request
-     * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-     * and the App Engine documentation for your runtime on [How Requests are
-     * Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
-     * 
- * - * .google.cloud.tasks.v2beta2.HttpMethod http_method = 1; - * - * @return The httpMethod. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.HttpMethod getHttpMethod() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta2.HttpMethod result = - com.google.cloud.tasks.v2beta2.HttpMethod.valueOf(httpMethod_); - return result == null ? com.google.cloud.tasks.v2beta2.HttpMethod.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * The app's request handler for the task's target URL must be able to handle
-     * HTTP requests with this http_method, otherwise the task attempt fails with
-     * error code 405 (Method Not Allowed). See [Writing a push task request
-     * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-     * and the App Engine documentation for your runtime on [How Requests are
-     * Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
-     * 
- * - * .google.cloud.tasks.v2beta2.HttpMethod http_method = 1; - * - * @param value The httpMethod to set. - * @return This builder for chaining. - */ - public Builder setHttpMethod(com.google.cloud.tasks.v2beta2.HttpMethod value) { - if (value == null) { - throw new NullPointerException(); - } - - httpMethod_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * The app's request handler for the task's target URL must be able to handle
-     * HTTP requests with this http_method, otherwise the task attempt fails with
-     * error code 405 (Method Not Allowed). See [Writing a push task request
-     * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-     * and the App Engine documentation for your runtime on [How Requests are
-     * Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
-     * 
- * - * .google.cloud.tasks.v2beta2.HttpMethod http_method = 1; - * - * @return This builder for chaining. - */ - public Builder clearHttpMethod() { - - httpMethod_ = 0; - onChanged(); - return this; - } - - private com.google.cloud.tasks.v2beta2.AppEngineRouting appEngineRouting_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.AppEngineRouting, - com.google.cloud.tasks.v2beta2.AppEngineRouting.Builder, - com.google.cloud.tasks.v2beta2.AppEngineRoutingOrBuilder> - appEngineRoutingBuilder_; - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * If set,
-     * [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override]
-     * is used for all tasks in the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing = 2; - * - * @return Whether the appEngineRouting field is set. - */ - public boolean hasAppEngineRouting() { - return appEngineRoutingBuilder_ != null || appEngineRouting_ != null; - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * If set,
-     * [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override]
-     * is used for all tasks in the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing = 2; - * - * @return The appEngineRouting. - */ - public com.google.cloud.tasks.v2beta2.AppEngineRouting getAppEngineRouting() { - if (appEngineRoutingBuilder_ == null) { - return appEngineRouting_ == null - ? com.google.cloud.tasks.v2beta2.AppEngineRouting.getDefaultInstance() - : appEngineRouting_; - } else { - return appEngineRoutingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * If set,
-     * [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override]
-     * is used for all tasks in the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing = 2; - */ - public Builder setAppEngineRouting(com.google.cloud.tasks.v2beta2.AppEngineRouting value) { - if (appEngineRoutingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - appEngineRouting_ = value; - onChanged(); - } else { - appEngineRoutingBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * If set,
-     * [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override]
-     * is used for all tasks in the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing = 2; - */ - public Builder setAppEngineRouting( - com.google.cloud.tasks.v2beta2.AppEngineRouting.Builder builderForValue) { - if (appEngineRoutingBuilder_ == null) { - appEngineRouting_ = builderForValue.build(); - onChanged(); - } else { - appEngineRoutingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * If set,
-     * [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override]
-     * is used for all tasks in the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing = 2; - */ - public Builder mergeAppEngineRouting(com.google.cloud.tasks.v2beta2.AppEngineRouting value) { - if (appEngineRoutingBuilder_ == null) { - if (appEngineRouting_ != null) { - appEngineRouting_ = - com.google.cloud.tasks.v2beta2.AppEngineRouting.newBuilder(appEngineRouting_) - .mergeFrom(value) - .buildPartial(); - } else { - appEngineRouting_ = value; - } - onChanged(); - } else { - appEngineRoutingBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * If set,
-     * [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override]
-     * is used for all tasks in the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing = 2; - */ - public Builder clearAppEngineRouting() { - if (appEngineRoutingBuilder_ == null) { - appEngineRouting_ = null; - onChanged(); - } else { - appEngineRouting_ = null; - appEngineRoutingBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * If set,
-     * [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override]
-     * is used for all tasks in the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing = 2; - */ - public com.google.cloud.tasks.v2beta2.AppEngineRouting.Builder getAppEngineRoutingBuilder() { - - onChanged(); - return getAppEngineRoutingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * If set,
-     * [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override]
-     * is used for all tasks in the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing = 2; - */ - public com.google.cloud.tasks.v2beta2.AppEngineRoutingOrBuilder getAppEngineRoutingOrBuilder() { - if (appEngineRoutingBuilder_ != null) { - return appEngineRoutingBuilder_.getMessageOrBuilder(); - } else { - return appEngineRouting_ == null - ? com.google.cloud.tasks.v2beta2.AppEngineRouting.getDefaultInstance() - : appEngineRouting_; - } - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * If set,
-     * [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override]
-     * is used for all tasks in the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.AppEngineRouting, - com.google.cloud.tasks.v2beta2.AppEngineRouting.Builder, - com.google.cloud.tasks.v2beta2.AppEngineRoutingOrBuilder> - getAppEngineRoutingFieldBuilder() { - if (appEngineRoutingBuilder_ == null) { - appEngineRoutingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.AppEngineRouting, - com.google.cloud.tasks.v2beta2.AppEngineRouting.Builder, - com.google.cloud.tasks.v2beta2.AppEngineRoutingOrBuilder>( - getAppEngineRouting(), getParentForChildren(), isClean()); - appEngineRouting_ = null; - } - return appEngineRoutingBuilder_; - } - - private java.lang.Object relativeUrl_ = ""; - /** - * - * - *
-     * The relative URL.
-     * The relative URL must begin with "/" and must be a valid HTTP relative URL.
-     * It can contain a path and query string arguments.
-     * If the relative URL is empty, then the root path "/" will be used.
-     * No spaces are allowed, and the maximum length allowed is 2083 characters.
-     * 
- * - * string relative_url = 3; - * - * @return The relativeUrl. - */ - public java.lang.String getRelativeUrl() { - java.lang.Object ref = relativeUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - relativeUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The relative URL.
-     * The relative URL must begin with "/" and must be a valid HTTP relative URL.
-     * It can contain a path and query string arguments.
-     * If the relative URL is empty, then the root path "/" will be used.
-     * No spaces are allowed, and the maximum length allowed is 2083 characters.
-     * 
- * - * string relative_url = 3; - * - * @return The bytes for relativeUrl. - */ - public com.google.protobuf.ByteString getRelativeUrlBytes() { - java.lang.Object ref = relativeUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - relativeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The relative URL.
-     * The relative URL must begin with "/" and must be a valid HTTP relative URL.
-     * It can contain a path and query string arguments.
-     * If the relative URL is empty, then the root path "/" will be used.
-     * No spaces are allowed, and the maximum length allowed is 2083 characters.
-     * 
- * - * string relative_url = 3; - * - * @param value The relativeUrl to set. - * @return This builder for chaining. - */ - public Builder setRelativeUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - relativeUrl_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The relative URL.
-     * The relative URL must begin with "/" and must be a valid HTTP relative URL.
-     * It can contain a path and query string arguments.
-     * If the relative URL is empty, then the root path "/" will be used.
-     * No spaces are allowed, and the maximum length allowed is 2083 characters.
-     * 
- * - * string relative_url = 3; - * - * @return This builder for chaining. - */ - public Builder clearRelativeUrl() { - - relativeUrl_ = getDefaultInstance().getRelativeUrl(); - onChanged(); - return this; - } - /** - * - * - *
-     * The relative URL.
-     * The relative URL must begin with "/" and must be a valid HTTP relative URL.
-     * It can contain a path and query string arguments.
-     * If the relative URL is empty, then the root path "/" will be used.
-     * No spaces are allowed, and the maximum length allowed is 2083 characters.
-     * 
- * - * string relative_url = 3; - * - * @param value The bytes for relativeUrl to set. - * @return This builder for chaining. - */ - public Builder setRelativeUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - relativeUrl_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField headers_; - - private com.google.protobuf.MapField internalGetHeaders() { - if (headers_ == null) { - return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); - } - return headers_; - } - - private com.google.protobuf.MapField - internalGetMutableHeaders() { - onChanged(); - ; - if (headers_ == null) { - headers_ = com.google.protobuf.MapField.newMapField(HeadersDefaultEntryHolder.defaultEntry); - } - if (!headers_.isMutable()) { - headers_ = headers_.copy(); - } - return headers_; - } - - public int getHeadersCount() { - return internalGetHeaders().getMap().size(); - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     * Repeated headers are not supported but a header value can contain commas.
-     * Cloud Tasks sets some headers to default values:
-     * * `User-Agent`: By default, this header is
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-     *   This header can be modified, but Cloud Tasks will append
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-     *   modified `User-Agent`.
-     * If the task has a [payload][google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload], Cloud
-     * Tasks sets the following headers:
-     * * `Content-Type`: By default, the `Content-Type` header is set to
-     *   `"application/octet-stream"`. The default can be overridden by explicitly
-     *   setting `Content-Type` to a particular media type when the
-     *   [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     *   For example, `Content-Type` can be set to `"application/json"`.
-     * * `Content-Length`: This is computed by Cloud Tasks. This value is
-     *   output only.   It cannot be changed.
-     * The headers below cannot be set or overridden:
-     * * `Host`
-     * * `X-Google-*`
-     * * `X-AppEngine-*`
-     * In addition, Cloud Tasks sets some headers when the task is dispatched,
-     * such as headers containing information about the task; see
-     * [request
-     * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
-     * These headers are set only when the task is dispatched, so they are not
-     * visible when the task is returned in a Cloud Tasks response.
-     * Although there is no specific limit for the maximum number of headers or
-     * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta2.Task]. For more
-     * information, see the [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] documentation.
-     * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public boolean containsHeaders(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetHeaders().getMap().containsKey(key); - } - /** Use {@link #getHeadersMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHeaders() { - return getHeadersMap(); - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     * Repeated headers are not supported but a header value can contain commas.
-     * Cloud Tasks sets some headers to default values:
-     * * `User-Agent`: By default, this header is
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-     *   This header can be modified, but Cloud Tasks will append
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-     *   modified `User-Agent`.
-     * If the task has a [payload][google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload], Cloud
-     * Tasks sets the following headers:
-     * * `Content-Type`: By default, the `Content-Type` header is set to
-     *   `"application/octet-stream"`. The default can be overridden by explicitly
-     *   setting `Content-Type` to a particular media type when the
-     *   [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     *   For example, `Content-Type` can be set to `"application/json"`.
-     * * `Content-Length`: This is computed by Cloud Tasks. This value is
-     *   output only.   It cannot be changed.
-     * The headers below cannot be set or overridden:
-     * * `Host`
-     * * `X-Google-*`
-     * * `X-AppEngine-*`
-     * In addition, Cloud Tasks sets some headers when the task is dispatched,
-     * such as headers containing information about the task; see
-     * [request
-     * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
-     * These headers are set only when the task is dispatched, so they are not
-     * visible when the task is returned in a Cloud Tasks response.
-     * Although there is no specific limit for the maximum number of headers or
-     * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta2.Task]. For more
-     * information, see the [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] documentation.
-     * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public java.util.Map getHeadersMap() { - return internalGetHeaders().getMap(); - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     * Repeated headers are not supported but a header value can contain commas.
-     * Cloud Tasks sets some headers to default values:
-     * * `User-Agent`: By default, this header is
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-     *   This header can be modified, but Cloud Tasks will append
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-     *   modified `User-Agent`.
-     * If the task has a [payload][google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload], Cloud
-     * Tasks sets the following headers:
-     * * `Content-Type`: By default, the `Content-Type` header is set to
-     *   `"application/octet-stream"`. The default can be overridden by explicitly
-     *   setting `Content-Type` to a particular media type when the
-     *   [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     *   For example, `Content-Type` can be set to `"application/json"`.
-     * * `Content-Length`: This is computed by Cloud Tasks. This value is
-     *   output only.   It cannot be changed.
-     * The headers below cannot be set or overridden:
-     * * `Host`
-     * * `X-Google-*`
-     * * `X-AppEngine-*`
-     * In addition, Cloud Tasks sets some headers when the task is dispatched,
-     * such as headers containing information about the task; see
-     * [request
-     * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
-     * These headers are set only when the task is dispatched, so they are not
-     * visible when the task is returned in a Cloud Tasks response.
-     * Although there is no specific limit for the maximum number of headers or
-     * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta2.Task]. For more
-     * information, see the [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] documentation.
-     * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public java.lang.String getHeadersOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHeaders().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     * Repeated headers are not supported but a header value can contain commas.
-     * Cloud Tasks sets some headers to default values:
-     * * `User-Agent`: By default, this header is
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-     *   This header can be modified, but Cloud Tasks will append
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-     *   modified `User-Agent`.
-     * If the task has a [payload][google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload], Cloud
-     * Tasks sets the following headers:
-     * * `Content-Type`: By default, the `Content-Type` header is set to
-     *   `"application/octet-stream"`. The default can be overridden by explicitly
-     *   setting `Content-Type` to a particular media type when the
-     *   [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     *   For example, `Content-Type` can be set to `"application/json"`.
-     * * `Content-Length`: This is computed by Cloud Tasks. This value is
-     *   output only.   It cannot be changed.
-     * The headers below cannot be set or overridden:
-     * * `Host`
-     * * `X-Google-*`
-     * * `X-AppEngine-*`
-     * In addition, Cloud Tasks sets some headers when the task is dispatched,
-     * such as headers containing information about the task; see
-     * [request
-     * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
-     * These headers are set only when the task is dispatched, so they are not
-     * visible when the task is returned in a Cloud Tasks response.
-     * Although there is no specific limit for the maximum number of headers or
-     * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta2.Task]. For more
-     * information, see the [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] documentation.
-     * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public java.lang.String getHeadersOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHeaders().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearHeaders() { - internalGetMutableHeaders().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     * Repeated headers are not supported but a header value can contain commas.
-     * Cloud Tasks sets some headers to default values:
-     * * `User-Agent`: By default, this header is
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-     *   This header can be modified, but Cloud Tasks will append
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-     *   modified `User-Agent`.
-     * If the task has a [payload][google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload], Cloud
-     * Tasks sets the following headers:
-     * * `Content-Type`: By default, the `Content-Type` header is set to
-     *   `"application/octet-stream"`. The default can be overridden by explicitly
-     *   setting `Content-Type` to a particular media type when the
-     *   [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     *   For example, `Content-Type` can be set to `"application/json"`.
-     * * `Content-Length`: This is computed by Cloud Tasks. This value is
-     *   output only.   It cannot be changed.
-     * The headers below cannot be set or overridden:
-     * * `Host`
-     * * `X-Google-*`
-     * * `X-AppEngine-*`
-     * In addition, Cloud Tasks sets some headers when the task is dispatched,
-     * such as headers containing information about the task; see
-     * [request
-     * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
-     * These headers are set only when the task is dispatched, so they are not
-     * visible when the task is returned in a Cloud Tasks response.
-     * Although there is no specific limit for the maximum number of headers or
-     * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta2.Task]. For more
-     * information, see the [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] documentation.
-     * 
- * - * map<string, string> headers = 4; - */ - public Builder removeHeaders(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableHeaders().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableHeaders() { - return internalGetMutableHeaders().getMutableMap(); - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     * Repeated headers are not supported but a header value can contain commas.
-     * Cloud Tasks sets some headers to default values:
-     * * `User-Agent`: By default, this header is
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-     *   This header can be modified, but Cloud Tasks will append
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-     *   modified `User-Agent`.
-     * If the task has a [payload][google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload], Cloud
-     * Tasks sets the following headers:
-     * * `Content-Type`: By default, the `Content-Type` header is set to
-     *   `"application/octet-stream"`. The default can be overridden by explicitly
-     *   setting `Content-Type` to a particular media type when the
-     *   [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     *   For example, `Content-Type` can be set to `"application/json"`.
-     * * `Content-Length`: This is computed by Cloud Tasks. This value is
-     *   output only.   It cannot be changed.
-     * The headers below cannot be set or overridden:
-     * * `Host`
-     * * `X-Google-*`
-     * * `X-AppEngine-*`
-     * In addition, Cloud Tasks sets some headers when the task is dispatched,
-     * such as headers containing information about the task; see
-     * [request
-     * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
-     * These headers are set only when the task is dispatched, so they are not
-     * visible when the task is returned in a Cloud Tasks response.
-     * Although there is no specific limit for the maximum number of headers or
-     * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta2.Task]. For more
-     * information, see the [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] documentation.
-     * 
- * - * map<string, string> headers = 4; - */ - public Builder putHeaders(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableHeaders().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     * Repeated headers are not supported but a header value can contain commas.
-     * Cloud Tasks sets some headers to default values:
-     * * `User-Agent`: By default, this header is
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-     *   This header can be modified, but Cloud Tasks will append
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-     *   modified `User-Agent`.
-     * If the task has a [payload][google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload], Cloud
-     * Tasks sets the following headers:
-     * * `Content-Type`: By default, the `Content-Type` header is set to
-     *   `"application/octet-stream"`. The default can be overridden by explicitly
-     *   setting `Content-Type` to a particular media type when the
-     *   [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     *   For example, `Content-Type` can be set to `"application/json"`.
-     * * `Content-Length`: This is computed by Cloud Tasks. This value is
-     *   output only.   It cannot be changed.
-     * The headers below cannot be set or overridden:
-     * * `Host`
-     * * `X-Google-*`
-     * * `X-AppEngine-*`
-     * In addition, Cloud Tasks sets some headers when the task is dispatched,
-     * such as headers containing information about the task; see
-     * [request
-     * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
-     * These headers are set only when the task is dispatched, so they are not
-     * visible when the task is returned in a Cloud Tasks response.
-     * Although there is no specific limit for the maximum number of headers or
-     * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta2.Task]. For more
-     * information, see the [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] documentation.
-     * 
- * - * map<string, string> headers = 4; - */ - public Builder putAllHeaders(java.util.Map values) { - internalGetMutableHeaders().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; - /** - * - * - *
-     * Payload.
-     * The payload will be sent as the HTTP message body. A message
-     * body, and thus a payload, is allowed only if the HTTP method is
-     * POST or PUT. It is an error to set a data payload on a task with
-     * an incompatible [HttpMethod][google.cloud.tasks.v2beta2.HttpMethod].
-     * 
- * - * bytes payload = 5; - * - * @return The payload. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPayload() { - return payload_; - } - /** - * - * - *
-     * Payload.
-     * The payload will be sent as the HTTP message body. A message
-     * body, and thus a payload, is allowed only if the HTTP method is
-     * POST or PUT. It is an error to set a data payload on a task with
-     * an incompatible [HttpMethod][google.cloud.tasks.v2beta2.HttpMethod].
-     * 
- * - * bytes payload = 5; - * - * @param value The payload to set. - * @return This builder for chaining. - */ - public Builder setPayload(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - payload_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Payload.
-     * The payload will be sent as the HTTP message body. A message
-     * body, and thus a payload, is allowed only if the HTTP method is
-     * POST or PUT. It is an error to set a data payload on a task with
-     * an incompatible [HttpMethod][google.cloud.tasks.v2beta2.HttpMethod].
-     * 
- * - * bytes payload = 5; - * - * @return This builder for chaining. - */ - public Builder clearPayload() { - - payload_ = getDefaultInstance().getPayload(); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.AppEngineHttpRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.AppEngineHttpRequest) - private static final com.google.cloud.tasks.v2beta2.AppEngineHttpRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.AppEngineHttpRequest(); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineHttpRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AppEngineHttpRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineHttpRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequestOrBuilder.java deleted file mode 100644 index 4a27f8c2..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequestOrBuilder.java +++ /dev/null @@ -1,378 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta2; - -public interface AppEngineHttpRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.AppEngineHttpRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The HTTP method to use for the request. The default is POST.
-   * The app's request handler for the task's target URL must be able to handle
-   * HTTP requests with this http_method, otherwise the task attempt fails with
-   * error code 405 (Method Not Allowed). See [Writing a push task request
-   * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-   * and the App Engine documentation for your runtime on [How Requests are
-   * Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
-   * 
- * - * .google.cloud.tasks.v2beta2.HttpMethod http_method = 1; - * - * @return The enum numeric value on the wire for httpMethod. - */ - int getHttpMethodValue(); - /** - * - * - *
-   * The HTTP method to use for the request. The default is POST.
-   * The app's request handler for the task's target URL must be able to handle
-   * HTTP requests with this http_method, otherwise the task attempt fails with
-   * error code 405 (Method Not Allowed). See [Writing a push task request
-   * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-   * and the App Engine documentation for your runtime on [How Requests are
-   * Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
-   * 
- * - * .google.cloud.tasks.v2beta2.HttpMethod http_method = 1; - * - * @return The httpMethod. - */ - com.google.cloud.tasks.v2beta2.HttpMethod getHttpMethod(); - - /** - * - * - *
-   * Task-level setting for App Engine routing.
-   * If set,
-   * [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override]
-   * is used for all tasks in the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing = 2; - * - * @return Whether the appEngineRouting field is set. - */ - boolean hasAppEngineRouting(); - /** - * - * - *
-   * Task-level setting for App Engine routing.
-   * If set,
-   * [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override]
-   * is used for all tasks in the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing = 2; - * - * @return The appEngineRouting. - */ - com.google.cloud.tasks.v2beta2.AppEngineRouting getAppEngineRouting(); - /** - * - * - *
-   * Task-level setting for App Engine routing.
-   * If set,
-   * [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override]
-   * is used for all tasks in the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing = 2; - */ - com.google.cloud.tasks.v2beta2.AppEngineRoutingOrBuilder getAppEngineRoutingOrBuilder(); - - /** - * - * - *
-   * The relative URL.
-   * The relative URL must begin with "/" and must be a valid HTTP relative URL.
-   * It can contain a path and query string arguments.
-   * If the relative URL is empty, then the root path "/" will be used.
-   * No spaces are allowed, and the maximum length allowed is 2083 characters.
-   * 
- * - * string relative_url = 3; - * - * @return The relativeUrl. - */ - java.lang.String getRelativeUrl(); - /** - * - * - *
-   * The relative URL.
-   * The relative URL must begin with "/" and must be a valid HTTP relative URL.
-   * It can contain a path and query string arguments.
-   * If the relative URL is empty, then the root path "/" will be used.
-   * No spaces are allowed, and the maximum length allowed is 2083 characters.
-   * 
- * - * string relative_url = 3; - * - * @return The bytes for relativeUrl. - */ - com.google.protobuf.ByteString getRelativeUrlBytes(); - - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [payload][google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta2.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - int getHeadersCount(); - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [payload][google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta2.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - boolean containsHeaders(java.lang.String key); - /** Use {@link #getHeadersMap()} instead. */ - @java.lang.Deprecated - java.util.Map getHeaders(); - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [payload][google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta2.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - java.util.Map getHeadersMap(); - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [payload][google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta2.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - - /* nullable */ - java.lang.String getHeadersOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [payload][google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta2.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - java.lang.String getHeadersOrThrow(java.lang.String key); - - /** - * - * - *
-   * Payload.
-   * The payload will be sent as the HTTP message body. A message
-   * body, and thus a payload, is allowed only if the HTTP method is
-   * POST or PUT. It is an error to set a data payload on a task with
-   * an incompatible [HttpMethod][google.cloud.tasks.v2beta2.HttpMethod].
-   * 
- * - * bytes payload = 5; - * - * @return The payload. - */ - com.google.protobuf.ByteString getPayload(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpTarget.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpTarget.java deleted file mode 100644 index 770cc7cb..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpTarget.java +++ /dev/null @@ -1,778 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta2; - -/** - * - * - *
- * App Engine HTTP target.
- * The task will be delivered to the App Engine application hostname
- * specified by its [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget] and [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest].
- * The documentation for [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] explains how the
- * task's host URL is constructed.
- * Using [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget] requires
- * [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
- * Google IAM permission for the project
- * and the following scope:
- * `https://www.googleapis.com/auth/cloud-platform`
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.AppEngineHttpTarget} - */ -public final class AppEngineHttpTarget extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.AppEngineHttpTarget) - AppEngineHttpTargetOrBuilder { - private static final long serialVersionUID = 0L; - // Use AppEngineHttpTarget.newBuilder() to construct. - private AppEngineHttpTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AppEngineHttpTarget() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AppEngineHttpTarget(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_AppEngineHttpTarget_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_AppEngineHttpTarget_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.class, - com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.Builder.class); - } - - public static final int APP_ENGINE_ROUTING_OVERRIDE_FIELD_NUMBER = 1; - private com.google.cloud.tasks.v2beta2.AppEngineRouting appEngineRoutingOverride_; - /** - * - * - *
-   * Overrides for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-   * If set, `app_engine_routing_override` is used for all tasks in
-   * the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing_override = 1; - * - * @return Whether the appEngineRoutingOverride field is set. - */ - @java.lang.Override - public boolean hasAppEngineRoutingOverride() { - return appEngineRoutingOverride_ != null; - } - /** - * - * - *
-   * Overrides for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-   * If set, `app_engine_routing_override` is used for all tasks in
-   * the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing_override = 1; - * - * @return The appEngineRoutingOverride. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineRouting getAppEngineRoutingOverride() { - return appEngineRoutingOverride_ == null - ? com.google.cloud.tasks.v2beta2.AppEngineRouting.getDefaultInstance() - : appEngineRoutingOverride_; - } - /** - * - * - *
-   * Overrides for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-   * If set, `app_engine_routing_override` is used for all tasks in
-   * the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing_override = 1; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineRoutingOrBuilder - getAppEngineRoutingOverrideOrBuilder() { - return getAppEngineRoutingOverride(); - } - - 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 (appEngineRoutingOverride_ != null) { - output.writeMessage(1, getAppEngineRoutingOverride()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (appEngineRoutingOverride_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, getAppEngineRoutingOverride()); - } - 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.AppEngineHttpTarget)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.AppEngineHttpTarget other = - (com.google.cloud.tasks.v2beta2.AppEngineHttpTarget) obj; - - if (hasAppEngineRoutingOverride() != other.hasAppEngineRoutingOverride()) return false; - if (hasAppEngineRoutingOverride()) { - if (!getAppEngineRoutingOverride().equals(other.getAppEngineRoutingOverride())) 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 (hasAppEngineRoutingOverride()) { - hash = (37 * hash) + APP_ENGINE_ROUTING_OVERRIDE_FIELD_NUMBER; - hash = (53 * hash) + getAppEngineRoutingOverride().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.AppEngineHttpTarget parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineHttpTarget 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.AppEngineHttpTarget parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineHttpTarget 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.AppEngineHttpTarget parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineHttpTarget 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.AppEngineHttpTarget parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineHttpTarget 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.AppEngineHttpTarget parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineHttpTarget 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.AppEngineHttpTarget 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.AppEngineHttpTarget 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.AppEngineHttpTarget prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * App Engine HTTP target.
-   * The task will be delivered to the App Engine application hostname
-   * specified by its [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget] and [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest].
-   * The documentation for [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] explains how the
-   * task's host URL is constructed.
-   * Using [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget] requires
-   * [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
-   * Google IAM permission for the project
-   * and the following scope:
-   * `https://www.googleapis.com/auth/cloud-platform`
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.AppEngineHttpTarget} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.AppEngineHttpTarget) - com.google.cloud.tasks.v2beta2.AppEngineHttpTargetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_AppEngineHttpTarget_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_AppEngineHttpTarget_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.class, - com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (appEngineRoutingOverrideBuilder_ == null) { - appEngineRoutingOverride_ = null; - } else { - appEngineRoutingOverride_ = null; - appEngineRoutingOverrideBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_AppEngineHttpTarget_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineHttpTarget getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineHttpTarget build() { - com.google.cloud.tasks.v2beta2.AppEngineHttpTarget result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineHttpTarget buildPartial() { - com.google.cloud.tasks.v2beta2.AppEngineHttpTarget result = - new com.google.cloud.tasks.v2beta2.AppEngineHttpTarget(this); - if (appEngineRoutingOverrideBuilder_ == null) { - result.appEngineRoutingOverride_ = appEngineRoutingOverride_; - } else { - result.appEngineRoutingOverride_ = appEngineRoutingOverrideBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.AppEngineHttpTarget) { - return mergeFrom((com.google.cloud.tasks.v2beta2.AppEngineHttpTarget) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.AppEngineHttpTarget other) { - if (other == com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.getDefaultInstance()) - return this; - if (other.hasAppEngineRoutingOverride()) { - mergeAppEngineRoutingOverride(other.getAppEngineRoutingOverride()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getAppEngineRoutingOverrideFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.cloud.tasks.v2beta2.AppEngineRouting appEngineRoutingOverride_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.AppEngineRouting, - com.google.cloud.tasks.v2beta2.AppEngineRouting.Builder, - com.google.cloud.tasks.v2beta2.AppEngineRoutingOrBuilder> - appEngineRoutingOverrideBuilder_; - /** - * - * - *
-     * Overrides for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * If set, `app_engine_routing_override` is used for all tasks in
-     * the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing_override = 1; - * - * @return Whether the appEngineRoutingOverride field is set. - */ - public boolean hasAppEngineRoutingOverride() { - return appEngineRoutingOverrideBuilder_ != null || appEngineRoutingOverride_ != null; - } - /** - * - * - *
-     * Overrides for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * If set, `app_engine_routing_override` is used for all tasks in
-     * the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing_override = 1; - * - * @return The appEngineRoutingOverride. - */ - public com.google.cloud.tasks.v2beta2.AppEngineRouting getAppEngineRoutingOverride() { - if (appEngineRoutingOverrideBuilder_ == null) { - return appEngineRoutingOverride_ == null - ? com.google.cloud.tasks.v2beta2.AppEngineRouting.getDefaultInstance() - : appEngineRoutingOverride_; - } else { - return appEngineRoutingOverrideBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Overrides for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * If set, `app_engine_routing_override` is used for all tasks in
-     * the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing_override = 1; - */ - public Builder setAppEngineRoutingOverride( - com.google.cloud.tasks.v2beta2.AppEngineRouting value) { - if (appEngineRoutingOverrideBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - appEngineRoutingOverride_ = value; - onChanged(); - } else { - appEngineRoutingOverrideBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Overrides for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * If set, `app_engine_routing_override` is used for all tasks in
-     * the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing_override = 1; - */ - public Builder setAppEngineRoutingOverride( - com.google.cloud.tasks.v2beta2.AppEngineRouting.Builder builderForValue) { - if (appEngineRoutingOverrideBuilder_ == null) { - appEngineRoutingOverride_ = builderForValue.build(); - onChanged(); - } else { - appEngineRoutingOverrideBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Overrides for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * If set, `app_engine_routing_override` is used for all tasks in
-     * the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing_override = 1; - */ - public Builder mergeAppEngineRoutingOverride( - com.google.cloud.tasks.v2beta2.AppEngineRouting value) { - if (appEngineRoutingOverrideBuilder_ == null) { - if (appEngineRoutingOverride_ != null) { - appEngineRoutingOverride_ = - com.google.cloud.tasks.v2beta2.AppEngineRouting.newBuilder(appEngineRoutingOverride_) - .mergeFrom(value) - .buildPartial(); - } else { - appEngineRoutingOverride_ = value; - } - onChanged(); - } else { - appEngineRoutingOverrideBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Overrides for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * If set, `app_engine_routing_override` is used for all tasks in
-     * the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing_override = 1; - */ - public Builder clearAppEngineRoutingOverride() { - if (appEngineRoutingOverrideBuilder_ == null) { - appEngineRoutingOverride_ = null; - onChanged(); - } else { - appEngineRoutingOverride_ = null; - appEngineRoutingOverrideBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Overrides for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * If set, `app_engine_routing_override` is used for all tasks in
-     * the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing_override = 1; - */ - public com.google.cloud.tasks.v2beta2.AppEngineRouting.Builder - getAppEngineRoutingOverrideBuilder() { - - onChanged(); - return getAppEngineRoutingOverrideFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Overrides for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * If set, `app_engine_routing_override` is used for all tasks in
-     * the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing_override = 1; - */ - public com.google.cloud.tasks.v2beta2.AppEngineRoutingOrBuilder - getAppEngineRoutingOverrideOrBuilder() { - if (appEngineRoutingOverrideBuilder_ != null) { - return appEngineRoutingOverrideBuilder_.getMessageOrBuilder(); - } else { - return appEngineRoutingOverride_ == null - ? com.google.cloud.tasks.v2beta2.AppEngineRouting.getDefaultInstance() - : appEngineRoutingOverride_; - } - } - /** - * - * - *
-     * Overrides for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * If set, `app_engine_routing_override` is used for all tasks in
-     * the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing_override = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.AppEngineRouting, - com.google.cloud.tasks.v2beta2.AppEngineRouting.Builder, - com.google.cloud.tasks.v2beta2.AppEngineRoutingOrBuilder> - getAppEngineRoutingOverrideFieldBuilder() { - if (appEngineRoutingOverrideBuilder_ == null) { - appEngineRoutingOverrideBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.AppEngineRouting, - com.google.cloud.tasks.v2beta2.AppEngineRouting.Builder, - com.google.cloud.tasks.v2beta2.AppEngineRoutingOrBuilder>( - getAppEngineRoutingOverride(), getParentForChildren(), isClean()); - appEngineRoutingOverride_ = null; - } - return appEngineRoutingOverrideBuilder_; - } - - @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.AppEngineHttpTarget) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.AppEngineHttpTarget) - private static final com.google.cloud.tasks.v2beta2.AppEngineHttpTarget DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.AppEngineHttpTarget(); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineHttpTarget getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AppEngineHttpTarget parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineHttpTarget getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpTargetOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpTargetOrBuilder.java deleted file mode 100644 index e4f6a8d5..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpTargetOrBuilder.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta2; - -public interface AppEngineHttpTargetOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.AppEngineHttpTarget) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Overrides for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-   * If set, `app_engine_routing_override` is used for all tasks in
-   * the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing_override = 1; - * - * @return Whether the appEngineRoutingOverride field is set. - */ - boolean hasAppEngineRoutingOverride(); - /** - * - * - *
-   * Overrides for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-   * If set, `app_engine_routing_override` is used for all tasks in
-   * the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing_override = 1; - * - * @return The appEngineRoutingOverride. - */ - com.google.cloud.tasks.v2beta2.AppEngineRouting getAppEngineRoutingOverride(); - /** - * - * - *
-   * Overrides for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-   * If set, `app_engine_routing_override` is used for all tasks in
-   * the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineRouting app_engine_routing_override = 1; - */ - com.google.cloud.tasks.v2beta2.AppEngineRoutingOrBuilder getAppEngineRoutingOverrideOrBuilder(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRouting.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRouting.java deleted file mode 100644 index e7392c84..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRouting.java +++ /dev/null @@ -1,1731 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta2; - -/** - * - * - *
- * App Engine Routing.
- * Defines routing characteristics specific to App Engine - service, version,
- * and instance.
- * For more information about services, versions, and instances see
- * [An Overview of App
- * Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
- * [Microservices Architecture on Google App
- * Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
- * [App Engine Standard request
- * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
- * and [App Engine Flex request
- * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.AppEngineRouting} - */ -public final class AppEngineRouting extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.AppEngineRouting) - AppEngineRoutingOrBuilder { - private static final long serialVersionUID = 0L; - // Use AppEngineRouting.newBuilder() to construct. - private AppEngineRouting(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AppEngineRouting() { - service_ = ""; - version_ = ""; - instance_ = ""; - host_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AppEngineRouting(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_AppEngineRouting_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_AppEngineRouting_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.AppEngineRouting.class, - com.google.cloud.tasks.v2beta2.AppEngineRouting.Builder.class); - } - - public static final int SERVICE_FIELD_NUMBER = 1; - private volatile java.lang.Object service_; - /** - * - * - *
-   * App service.
-   * By default, the task is sent to the service which is the default
-   * service when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string service = 1; - * - * @return The service. - */ - @java.lang.Override - public java.lang.String getService() { - java.lang.Object ref = service_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - service_ = s; - return s; - } - } - /** - * - * - *
-   * App service.
-   * By default, the task is sent to the service which is the default
-   * service when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string service = 1; - * - * @return The bytes for service. - */ - @java.lang.Override - public com.google.protobuf.ByteString getServiceBytes() { - java.lang.Object ref = service_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - service_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object version_; - /** - * - * - *
-   * App version.
-   * By default, the task is sent to the version which is the default
-   * version when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string version = 2; - * - * @return The version. - */ - @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - * - * - *
-   * App version.
-   * By default, the task is sent to the version which is the default
-   * version when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string version = 2; - * - * @return The bytes for version. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INSTANCE_FIELD_NUMBER = 3; - private volatile java.lang.Object instance_; - /** - * - * - *
-   * App instance.
-   * By default, the task is sent to an instance which is available when
-   * the task is attempted.
-   * Requests can only be sent to a specific instance if
-   * [manual scaling is used in App Engine
-   * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-   * App Engine Flex does not support instances. For more information, see
-   * [App Engine Standard request
-   * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-   * and [App Engine Flex request
-   * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-   * 
- * - * string instance = 3; - * - * @return The instance. - */ - @java.lang.Override - public java.lang.String getInstance() { - java.lang.Object ref = instance_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instance_ = s; - return s; - } - } - /** - * - * - *
-   * App instance.
-   * By default, the task is sent to an instance which is available when
-   * the task is attempted.
-   * Requests can only be sent to a specific instance if
-   * [manual scaling is used in App Engine
-   * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-   * App Engine Flex does not support instances. For more information, see
-   * [App Engine Standard request
-   * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-   * and [App Engine Flex request
-   * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-   * 
- * - * string instance = 3; - * - * @return The bytes for instance. - */ - @java.lang.Override - public com.google.protobuf.ByteString getInstanceBytes() { - java.lang.Object ref = instance_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instance_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HOST_FIELD_NUMBER = 4; - private volatile java.lang.Object host_; - /** - * - * - *
-   * Output only. The host that the task is sent to.
-   * For more information, see
-   * [How Requests are
-   * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-   * The host is constructed as:
-   * * `host = [application_domain_name]`</br>
-   *   `| [service] + '.' + [application_domain_name]`</br>
-   *   `| [version] + '.' + [application_domain_name]`</br>
-   *   `| [version_dot_service]+ '.' + [application_domain_name]`</br>
-   *   `| [instance] + '.' + [application_domain_name]`</br>
-   *   `| [instance_dot_service] + '.' + [application_domain_name]`</br>
-   *   `| [instance_dot_version] + '.' + [application_domain_name]`</br>
-   *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
-   * * `application_domain_name` = The domain name of the app, for
-   *   example <app-id>.appspot.com, which is associated with the
-   *   queue's project ID. Some tasks which were created using the App Engine
-   *   SDK use a custom domain name.
-   * * `service =` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-   * * `version =` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
-   * * `version_dot_service =`
-   *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
-   *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-   * * `instance =` [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]
-   * * `instance_dot_service =`
-   *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-   *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-   * * `instance_dot_version =`
-   *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-   *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
-   * * `instance_dot_version_dot_service =`
-   *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-   *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
-   *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-   * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty, then the task will be sent
-   * to the service which is the default service when the task is attempted.
-   * If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty, then the task will be sent
-   * to the version which is the default version when the task is attempted.
-   * If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is empty, then the task
-   * will be sent to an instance which is available when the task is
-   * attempted.
-   * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or
-   * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is invalid, then the task
-   * will be sent to the default version of the default service when
-   * the task is attempted.
-   * 
- * - * string host = 4; - * - * @return The host. - */ - @java.lang.Override - public java.lang.String getHost() { - java.lang.Object ref = host_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - host_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The host that the task is sent to.
-   * For more information, see
-   * [How Requests are
-   * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-   * The host is constructed as:
-   * * `host = [application_domain_name]`</br>
-   *   `| [service] + '.' + [application_domain_name]`</br>
-   *   `| [version] + '.' + [application_domain_name]`</br>
-   *   `| [version_dot_service]+ '.' + [application_domain_name]`</br>
-   *   `| [instance] + '.' + [application_domain_name]`</br>
-   *   `| [instance_dot_service] + '.' + [application_domain_name]`</br>
-   *   `| [instance_dot_version] + '.' + [application_domain_name]`</br>
-   *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
-   * * `application_domain_name` = The domain name of the app, for
-   *   example <app-id>.appspot.com, which is associated with the
-   *   queue's project ID. Some tasks which were created using the App Engine
-   *   SDK use a custom domain name.
-   * * `service =` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-   * * `version =` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
-   * * `version_dot_service =`
-   *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
-   *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-   * * `instance =` [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]
-   * * `instance_dot_service =`
-   *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-   *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-   * * `instance_dot_version =`
-   *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-   *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
-   * * `instance_dot_version_dot_service =`
-   *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-   *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
-   *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-   * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty, then the task will be sent
-   * to the service which is the default service when the task is attempted.
-   * If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty, then the task will be sent
-   * to the version which is the default version when the task is attempted.
-   * If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is empty, then the task
-   * will be sent to an instance which is available when the task is
-   * attempted.
-   * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or
-   * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is invalid, then the task
-   * will be sent to the default version of the default service when
-   * the task is attempted.
-   * 
- * - * string host = 4; - * - * @return The bytes for host. - */ - @java.lang.Override - public com.google.protobuf.ByteString getHostBytes() { - java.lang.Object ref = host_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - host_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instance_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, host_); - } - 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(service_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instance_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, host_); - } - 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.AppEngineRouting)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.AppEngineRouting other = - (com.google.cloud.tasks.v2beta2.AppEngineRouting) obj; - - if (!getService().equals(other.getService())) return false; - if (!getVersion().equals(other.getVersion())) return false; - if (!getInstance().equals(other.getInstance())) return false; - if (!getHost().equals(other.getHost())) return false; - if (!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) + SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getService().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + INSTANCE_FIELD_NUMBER; - hash = (53 * hash) + getInstance().hashCode(); - hash = (37 * hash) + HOST_FIELD_NUMBER; - hash = (53 * hash) + getHost().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineRouting parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta2.AppEngineRouting prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * App Engine Routing.
-   * Defines routing characteristics specific to App Engine - service, version,
-   * and instance.
-   * For more information about services, versions, and instances see
-   * [An Overview of App
-   * Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
-   * [Microservices Architecture on Google App
-   * Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
-   * [App Engine Standard request
-   * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
-   * and [App Engine Flex request
-   * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.AppEngineRouting} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.AppEngineRouting) - com.google.cloud.tasks.v2beta2.AppEngineRoutingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_AppEngineRouting_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_AppEngineRouting_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.AppEngineRouting.class, - com.google.cloud.tasks.v2beta2.AppEngineRouting.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.AppEngineRouting.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - service_ = ""; - - version_ = ""; - - instance_ = ""; - - host_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_AppEngineRouting_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineRouting getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.AppEngineRouting.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineRouting build() { - com.google.cloud.tasks.v2beta2.AppEngineRouting result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineRouting buildPartial() { - com.google.cloud.tasks.v2beta2.AppEngineRouting result = - new com.google.cloud.tasks.v2beta2.AppEngineRouting(this); - result.service_ = service_; - result.version_ = version_; - result.instance_ = instance_; - result.host_ = host_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.AppEngineRouting) { - return mergeFrom((com.google.cloud.tasks.v2beta2.AppEngineRouting) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.AppEngineRouting other) { - if (other == com.google.cloud.tasks.v2beta2.AppEngineRouting.getDefaultInstance()) - return this; - if (!other.getService().isEmpty()) { - service_ = other.service_; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (!other.getInstance().isEmpty()) { - instance_ = other.instance_; - onChanged(); - } - if (!other.getHost().isEmpty()) { - host_ = other.host_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - service_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - version_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - instance_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - host_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object service_ = ""; - /** - * - * - *
-     * App service.
-     * By default, the task is sent to the service which is the default
-     * service when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string service = 1; - * - * @return The service. - */ - public java.lang.String getService() { - java.lang.Object ref = service_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - service_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * App service.
-     * By default, the task is sent to the service which is the default
-     * service when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string service = 1; - * - * @return The bytes for service. - */ - public com.google.protobuf.ByteString getServiceBytes() { - java.lang.Object ref = service_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - service_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * App service.
-     * By default, the task is sent to the service which is the default
-     * service when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string service = 1; - * - * @param value The service to set. - * @return This builder for chaining. - */ - public Builder setService(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - service_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * App service.
-     * By default, the task is sent to the service which is the default
-     * service when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string service = 1; - * - * @return This builder for chaining. - */ - public Builder clearService() { - - service_ = getDefaultInstance().getService(); - onChanged(); - return this; - } - /** - * - * - *
-     * App service.
-     * By default, the task is sent to the service which is the default
-     * service when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string service = 1; - * - * @param value The bytes for service to set. - * @return This builder for chaining. - */ - public Builder setServiceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - service_ = value; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - * - * - *
-     * App version.
-     * By default, the task is sent to the version which is the default
-     * version when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string version = 2; - * - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * App version.
-     * By default, the task is sent to the version which is the default
-     * version when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string version = 2; - * - * @return The bytes for version. - */ - public com.google.protobuf.ByteString getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * App version.
-     * By default, the task is sent to the version which is the default
-     * version when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string version = 2; - * - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * App version.
-     * By default, the task is sent to the version which is the default
-     * version when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string version = 2; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - * - * - *
-     * App version.
-     * By default, the task is sent to the version which is the default
-     * version when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string version = 2; - * - * @param value The bytes for version to set. - * @return This builder for chaining. - */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private java.lang.Object instance_ = ""; - /** - * - * - *
-     * App instance.
-     * By default, the task is sent to an instance which is available when
-     * the task is attempted.
-     * Requests can only be sent to a specific instance if
-     * [manual scaling is used in App Engine
-     * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-     * App Engine Flex does not support instances. For more information, see
-     * [App Engine Standard request
-     * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-     * and [App Engine Flex request
-     * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-     * 
- * - * string instance = 3; - * - * @return The instance. - */ - public java.lang.String getInstance() { - java.lang.Object ref = instance_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instance_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * App instance.
-     * By default, the task is sent to an instance which is available when
-     * the task is attempted.
-     * Requests can only be sent to a specific instance if
-     * [manual scaling is used in App Engine
-     * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-     * App Engine Flex does not support instances. For more information, see
-     * [App Engine Standard request
-     * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-     * and [App Engine Flex request
-     * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-     * 
- * - * string instance = 3; - * - * @return The bytes for instance. - */ - public com.google.protobuf.ByteString getInstanceBytes() { - java.lang.Object ref = instance_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instance_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * App instance.
-     * By default, the task is sent to an instance which is available when
-     * the task is attempted.
-     * Requests can only be sent to a specific instance if
-     * [manual scaling is used in App Engine
-     * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-     * App Engine Flex does not support instances. For more information, see
-     * [App Engine Standard request
-     * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-     * and [App Engine Flex request
-     * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-     * 
- * - * string instance = 3; - * - * @param value The instance to set. - * @return This builder for chaining. - */ - public Builder setInstance(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - instance_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * App instance.
-     * By default, the task is sent to an instance which is available when
-     * the task is attempted.
-     * Requests can only be sent to a specific instance if
-     * [manual scaling is used in App Engine
-     * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-     * App Engine Flex does not support instances. For more information, see
-     * [App Engine Standard request
-     * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-     * and [App Engine Flex request
-     * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-     * 
- * - * string instance = 3; - * - * @return This builder for chaining. - */ - public Builder clearInstance() { - - instance_ = getDefaultInstance().getInstance(); - onChanged(); - return this; - } - /** - * - * - *
-     * App instance.
-     * By default, the task is sent to an instance which is available when
-     * the task is attempted.
-     * Requests can only be sent to a specific instance if
-     * [manual scaling is used in App Engine
-     * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-     * App Engine Flex does not support instances. For more information, see
-     * [App Engine Standard request
-     * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-     * and [App Engine Flex request
-     * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-     * 
- * - * string instance = 3; - * - * @param value The bytes for instance to set. - * @return This builder for chaining. - */ - public Builder setInstanceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - instance_ = value; - onChanged(); - return this; - } - - private java.lang.Object host_ = ""; - /** - * - * - *
-     * Output only. The host that the task is sent to.
-     * For more information, see
-     * [How Requests are
-     * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-     * The host is constructed as:
-     * * `host = [application_domain_name]`</br>
-     *   `| [service] + '.' + [application_domain_name]`</br>
-     *   `| [version] + '.' + [application_domain_name]`</br>
-     *   `| [version_dot_service]+ '.' + [application_domain_name]`</br>
-     *   `| [instance] + '.' + [application_domain_name]`</br>
-     *   `| [instance_dot_service] + '.' + [application_domain_name]`</br>
-     *   `| [instance_dot_version] + '.' + [application_domain_name]`</br>
-     *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
-     * * `application_domain_name` = The domain name of the app, for
-     *   example <app-id>.appspot.com, which is associated with the
-     *   queue's project ID. Some tasks which were created using the App Engine
-     *   SDK use a custom domain name.
-     * * `service =` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-     * * `version =` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
-     * * `version_dot_service =`
-     *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
-     *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-     * * `instance =` [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]
-     * * `instance_dot_service =`
-     *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-     *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-     * * `instance_dot_version =`
-     *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-     *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
-     * * `instance_dot_version_dot_service =`
-     *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-     *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
-     *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-     * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty, then the task will be sent
-     * to the service which is the default service when the task is attempted.
-     * If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty, then the task will be sent
-     * to the version which is the default version when the task is attempted.
-     * If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is empty, then the task
-     * will be sent to an instance which is available when the task is
-     * attempted.
-     * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is invalid, then the task
-     * will be sent to the default version of the default service when
-     * the task is attempted.
-     * 
- * - * string host = 4; - * - * @return The host. - */ - public java.lang.String getHost() { - java.lang.Object ref = host_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - host_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The host that the task is sent to.
-     * For more information, see
-     * [How Requests are
-     * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-     * The host is constructed as:
-     * * `host = [application_domain_name]`</br>
-     *   `| [service] + '.' + [application_domain_name]`</br>
-     *   `| [version] + '.' + [application_domain_name]`</br>
-     *   `| [version_dot_service]+ '.' + [application_domain_name]`</br>
-     *   `| [instance] + '.' + [application_domain_name]`</br>
-     *   `| [instance_dot_service] + '.' + [application_domain_name]`</br>
-     *   `| [instance_dot_version] + '.' + [application_domain_name]`</br>
-     *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
-     * * `application_domain_name` = The domain name of the app, for
-     *   example <app-id>.appspot.com, which is associated with the
-     *   queue's project ID. Some tasks which were created using the App Engine
-     *   SDK use a custom domain name.
-     * * `service =` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-     * * `version =` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
-     * * `version_dot_service =`
-     *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
-     *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-     * * `instance =` [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]
-     * * `instance_dot_service =`
-     *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-     *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-     * * `instance_dot_version =`
-     *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-     *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
-     * * `instance_dot_version_dot_service =`
-     *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-     *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
-     *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-     * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty, then the task will be sent
-     * to the service which is the default service when the task is attempted.
-     * If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty, then the task will be sent
-     * to the version which is the default version when the task is attempted.
-     * If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is empty, then the task
-     * will be sent to an instance which is available when the task is
-     * attempted.
-     * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is invalid, then the task
-     * will be sent to the default version of the default service when
-     * the task is attempted.
-     * 
- * - * string host = 4; - * - * @return The bytes for host. - */ - public com.google.protobuf.ByteString getHostBytes() { - java.lang.Object ref = host_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - host_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The host that the task is sent to.
-     * For more information, see
-     * [How Requests are
-     * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-     * The host is constructed as:
-     * * `host = [application_domain_name]`</br>
-     *   `| [service] + '.' + [application_domain_name]`</br>
-     *   `| [version] + '.' + [application_domain_name]`</br>
-     *   `| [version_dot_service]+ '.' + [application_domain_name]`</br>
-     *   `| [instance] + '.' + [application_domain_name]`</br>
-     *   `| [instance_dot_service] + '.' + [application_domain_name]`</br>
-     *   `| [instance_dot_version] + '.' + [application_domain_name]`</br>
-     *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
-     * * `application_domain_name` = The domain name of the app, for
-     *   example <app-id>.appspot.com, which is associated with the
-     *   queue's project ID. Some tasks which were created using the App Engine
-     *   SDK use a custom domain name.
-     * * `service =` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-     * * `version =` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
-     * * `version_dot_service =`
-     *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
-     *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-     * * `instance =` [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]
-     * * `instance_dot_service =`
-     *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-     *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-     * * `instance_dot_version =`
-     *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-     *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
-     * * `instance_dot_version_dot_service =`
-     *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-     *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
-     *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-     * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty, then the task will be sent
-     * to the service which is the default service when the task is attempted.
-     * If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty, then the task will be sent
-     * to the version which is the default version when the task is attempted.
-     * If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is empty, then the task
-     * will be sent to an instance which is available when the task is
-     * attempted.
-     * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is invalid, then the task
-     * will be sent to the default version of the default service when
-     * the task is attempted.
-     * 
- * - * string host = 4; - * - * @param value The host to set. - * @return This builder for chaining. - */ - public Builder setHost(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - host_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The host that the task is sent to.
-     * For more information, see
-     * [How Requests are
-     * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-     * The host is constructed as:
-     * * `host = [application_domain_name]`</br>
-     *   `| [service] + '.' + [application_domain_name]`</br>
-     *   `| [version] + '.' + [application_domain_name]`</br>
-     *   `| [version_dot_service]+ '.' + [application_domain_name]`</br>
-     *   `| [instance] + '.' + [application_domain_name]`</br>
-     *   `| [instance_dot_service] + '.' + [application_domain_name]`</br>
-     *   `| [instance_dot_version] + '.' + [application_domain_name]`</br>
-     *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
-     * * `application_domain_name` = The domain name of the app, for
-     *   example <app-id>.appspot.com, which is associated with the
-     *   queue's project ID. Some tasks which were created using the App Engine
-     *   SDK use a custom domain name.
-     * * `service =` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-     * * `version =` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
-     * * `version_dot_service =`
-     *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
-     *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-     * * `instance =` [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]
-     * * `instance_dot_service =`
-     *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-     *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-     * * `instance_dot_version =`
-     *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-     *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
-     * * `instance_dot_version_dot_service =`
-     *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-     *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
-     *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-     * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty, then the task will be sent
-     * to the service which is the default service when the task is attempted.
-     * If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty, then the task will be sent
-     * to the version which is the default version when the task is attempted.
-     * If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is empty, then the task
-     * will be sent to an instance which is available when the task is
-     * attempted.
-     * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is invalid, then the task
-     * will be sent to the default version of the default service when
-     * the task is attempted.
-     * 
- * - * string host = 4; - * - * @return This builder for chaining. - */ - public Builder clearHost() { - - host_ = getDefaultInstance().getHost(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The host that the task is sent to.
-     * For more information, see
-     * [How Requests are
-     * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-     * The host is constructed as:
-     * * `host = [application_domain_name]`</br>
-     *   `| [service] + '.' + [application_domain_name]`</br>
-     *   `| [version] + '.' + [application_domain_name]`</br>
-     *   `| [version_dot_service]+ '.' + [application_domain_name]`</br>
-     *   `| [instance] + '.' + [application_domain_name]`</br>
-     *   `| [instance_dot_service] + '.' + [application_domain_name]`</br>
-     *   `| [instance_dot_version] + '.' + [application_domain_name]`</br>
-     *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
-     * * `application_domain_name` = The domain name of the app, for
-     *   example <app-id>.appspot.com, which is associated with the
-     *   queue's project ID. Some tasks which were created using the App Engine
-     *   SDK use a custom domain name.
-     * * `service =` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-     * * `version =` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
-     * * `version_dot_service =`
-     *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
-     *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-     * * `instance =` [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]
-     * * `instance_dot_service =`
-     *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-     *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-     * * `instance_dot_version =`
-     *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-     *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
-     * * `instance_dot_version_dot_service =`
-     *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-     *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
-     *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-     * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty, then the task will be sent
-     * to the service which is the default service when the task is attempted.
-     * If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty, then the task will be sent
-     * to the version which is the default version when the task is attempted.
-     * If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is empty, then the task
-     * will be sent to an instance which is available when the task is
-     * attempted.
-     * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or
-     * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is invalid, then the task
-     * will be sent to the default version of the default service when
-     * the task is attempted.
-     * 
- * - * string host = 4; - * - * @param value The bytes for host to set. - * @return This builder for chaining. - */ - public Builder setHostBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - host_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.AppEngineRouting) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.AppEngineRouting) - private static final com.google.cloud.tasks.v2beta2.AppEngineRouting DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.AppEngineRouting(); - } - - public static com.google.cloud.tasks.v2beta2.AppEngineRouting getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AppEngineRouting parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineRouting getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRoutingOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRoutingOrBuilder.java deleted file mode 100644 index bc74a98e..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRoutingOrBuilder.java +++ /dev/null @@ -1,285 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta2; - -public interface AppEngineRoutingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.AppEngineRouting) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * App service.
-   * By default, the task is sent to the service which is the default
-   * service when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string service = 1; - * - * @return The service. - */ - java.lang.String getService(); - /** - * - * - *
-   * App service.
-   * By default, the task is sent to the service which is the default
-   * service when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string service = 1; - * - * @return The bytes for service. - */ - com.google.protobuf.ByteString getServiceBytes(); - - /** - * - * - *
-   * App version.
-   * By default, the task is sent to the version which is the default
-   * version when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string version = 2; - * - * @return The version. - */ - java.lang.String getVersion(); - /** - * - * - *
-   * App version.
-   * By default, the task is sent to the version which is the default
-   * version when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string version = 2; - * - * @return The bytes for version. - */ - com.google.protobuf.ByteString getVersionBytes(); - - /** - * - * - *
-   * App instance.
-   * By default, the task is sent to an instance which is available when
-   * the task is attempted.
-   * Requests can only be sent to a specific instance if
-   * [manual scaling is used in App Engine
-   * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-   * App Engine Flex does not support instances. For more information, see
-   * [App Engine Standard request
-   * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-   * and [App Engine Flex request
-   * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-   * 
- * - * string instance = 3; - * - * @return The instance. - */ - java.lang.String getInstance(); - /** - * - * - *
-   * App instance.
-   * By default, the task is sent to an instance which is available when
-   * the task is attempted.
-   * Requests can only be sent to a specific instance if
-   * [manual scaling is used in App Engine
-   * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-   * App Engine Flex does not support instances. For more information, see
-   * [App Engine Standard request
-   * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-   * and [App Engine Flex request
-   * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-   * 
- * - * string instance = 3; - * - * @return The bytes for instance. - */ - com.google.protobuf.ByteString getInstanceBytes(); - - /** - * - * - *
-   * Output only. The host that the task is sent to.
-   * For more information, see
-   * [How Requests are
-   * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-   * The host is constructed as:
-   * * `host = [application_domain_name]`</br>
-   *   `| [service] + '.' + [application_domain_name]`</br>
-   *   `| [version] + '.' + [application_domain_name]`</br>
-   *   `| [version_dot_service]+ '.' + [application_domain_name]`</br>
-   *   `| [instance] + '.' + [application_domain_name]`</br>
-   *   `| [instance_dot_service] + '.' + [application_domain_name]`</br>
-   *   `| [instance_dot_version] + '.' + [application_domain_name]`</br>
-   *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
-   * * `application_domain_name` = The domain name of the app, for
-   *   example <app-id>.appspot.com, which is associated with the
-   *   queue's project ID. Some tasks which were created using the App Engine
-   *   SDK use a custom domain name.
-   * * `service =` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-   * * `version =` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
-   * * `version_dot_service =`
-   *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
-   *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-   * * `instance =` [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]
-   * * `instance_dot_service =`
-   *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-   *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-   * * `instance_dot_version =`
-   *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-   *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
-   * * `instance_dot_version_dot_service =`
-   *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-   *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
-   *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-   * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty, then the task will be sent
-   * to the service which is the default service when the task is attempted.
-   * If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty, then the task will be sent
-   * to the version which is the default version when the task is attempted.
-   * If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is empty, then the task
-   * will be sent to an instance which is available when the task is
-   * attempted.
-   * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or
-   * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is invalid, then the task
-   * will be sent to the default version of the default service when
-   * the task is attempted.
-   * 
- * - * string host = 4; - * - * @return The host. - */ - java.lang.String getHost(); - /** - * - * - *
-   * Output only. The host that the task is sent to.
-   * For more information, see
-   * [How Requests are
-   * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-   * The host is constructed as:
-   * * `host = [application_domain_name]`</br>
-   *   `| [service] + '.' + [application_domain_name]`</br>
-   *   `| [version] + '.' + [application_domain_name]`</br>
-   *   `| [version_dot_service]+ '.' + [application_domain_name]`</br>
-   *   `| [instance] + '.' + [application_domain_name]`</br>
-   *   `| [instance_dot_service] + '.' + [application_domain_name]`</br>
-   *   `| [instance_dot_version] + '.' + [application_domain_name]`</br>
-   *   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
-   * * `application_domain_name` = The domain name of the app, for
-   *   example <app-id>.appspot.com, which is associated with the
-   *   queue's project ID. Some tasks which were created using the App Engine
-   *   SDK use a custom domain name.
-   * * `service =` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-   * * `version =` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
-   * * `version_dot_service =`
-   *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
-   *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-   * * `instance =` [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]
-   * * `instance_dot_service =`
-   *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-   *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-   * * `instance_dot_version =`
-   *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-   *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
-   * * `instance_dot_version_dot_service =`
-   *   [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +`
-   *   [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
-   *   [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
-   * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty, then the task will be sent
-   * to the service which is the default service when the task is attempted.
-   * If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty, then the task will be sent
-   * to the version which is the default version when the task is attempted.
-   * If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is empty, then the task
-   * will be sent to an instance which is available when the task is
-   * attempted.
-   * If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or
-   * [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is invalid, then the task
-   * will be sent to the default version of the default service when
-   * the task is attempted.
-   * 
- * - * string host = 4; - * - * @return The bytes for host. - */ - com.google.protobuf.ByteString getHostBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AttemptStatus.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AttemptStatus.java deleted file mode 100644 index 4d2e3e6c..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AttemptStatus.java +++ /dev/null @@ -1,1555 +0,0 @@ -/* - * Copyright 2020 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/task.proto - -package com.google.cloud.tasks.v2beta2; - -/** - * - * - *
- * The status of a task attempt.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.AttemptStatus} - */ -public final class AttemptStatus extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.AttemptStatus) - AttemptStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use AttemptStatus.newBuilder() to construct. - private AttemptStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AttemptStatus() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AttemptStatus(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.TaskProto - .internal_static_google_cloud_tasks_v2beta2_AttemptStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.TaskProto - .internal_static_google_cloud_tasks_v2beta2_AttemptStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.AttemptStatus.class, - com.google.cloud.tasks.v2beta2.AttemptStatus.Builder.class); - } - - public static final int SCHEDULE_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp scheduleTime_; - /** - * - * - *
-   * Output only. The time that this attempt was scheduled.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - * - * @return Whether the scheduleTime field is set. - */ - @java.lang.Override - public boolean hasScheduleTime() { - return scheduleTime_ != null; - } - /** - * - * - *
-   * Output only. The time that this attempt was scheduled.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - * - * @return The scheduleTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } - /** - * - * - *
-   * Output only. The time that this attempt was scheduled.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { - return getScheduleTime(); - } - - public static final int DISPATCH_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp dispatchTime_; - /** - * - * - *
-   * Output only. The time that this attempt was dispatched.
-   * `dispatch_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - * - * @return Whether the dispatchTime field is set. - */ - @java.lang.Override - public boolean hasDispatchTime() { - return dispatchTime_ != null; - } - /** - * - * - *
-   * Output only. The time that this attempt was dispatched.
-   * `dispatch_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - * - * @return The dispatchTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getDispatchTime() { - return dispatchTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dispatchTime_; - } - /** - * - * - *
-   * Output only. The time that this attempt was dispatched.
-   * `dispatch_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getDispatchTimeOrBuilder() { - return getDispatchTime(); - } - - public static final int RESPONSE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp responseTime_; - /** - * - * - *
-   * Output only. The time that this attempt response was received.
-   * `response_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp response_time = 3; - * - * @return Whether the responseTime field is set. - */ - @java.lang.Override - public boolean hasResponseTime() { - return responseTime_ != null; - } - /** - * - * - *
-   * Output only. The time that this attempt response was received.
-   * `response_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp response_time = 3; - * - * @return The responseTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getResponseTime() { - return responseTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : responseTime_; - } - /** - * - * - *
-   * Output only. The time that this attempt response was received.
-   * `response_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() { - return getResponseTime(); - } - - public static final int RESPONSE_STATUS_FIELD_NUMBER = 4; - private com.google.rpc.Status responseStatus_; - /** - * - * - *
-   * Output only. The response from the target for this attempt.
-   * If the task has not been attempted or the task is currently running
-   * then the response status is unset.
-   * 
- * - * .google.rpc.Status response_status = 4; - * - * @return Whether the responseStatus field is set. - */ - @java.lang.Override - public boolean hasResponseStatus() { - return responseStatus_ != null; - } - /** - * - * - *
-   * Output only. The response from the target for this attempt.
-   * If the task has not been attempted or the task is currently running
-   * then the response status is unset.
-   * 
- * - * .google.rpc.Status response_status = 4; - * - * @return The responseStatus. - */ - @java.lang.Override - public com.google.rpc.Status getResponseStatus() { - return responseStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : responseStatus_; - } - /** - * - * - *
-   * Output only. The response from the target for this attempt.
-   * If the task has not been attempted or the task is currently running
-   * then the response status is unset.
-   * 
- * - * .google.rpc.Status response_status = 4; - */ - @java.lang.Override - public com.google.rpc.StatusOrBuilder getResponseStatusOrBuilder() { - return getResponseStatus(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (scheduleTime_ != null) { - output.writeMessage(1, getScheduleTime()); - } - if (dispatchTime_ != null) { - output.writeMessage(2, getDispatchTime()); - } - if (responseTime_ != null) { - output.writeMessage(3, getResponseTime()); - } - if (responseStatus_ != null) { - output.writeMessage(4, getResponseStatus()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getScheduleTime()); - } - if (dispatchTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDispatchTime()); - } - if (responseTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResponseTime()); - } - if (responseStatus_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResponseStatus()); - } - size += 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.AttemptStatus)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.AttemptStatus other = - (com.google.cloud.tasks.v2beta2.AttemptStatus) obj; - - if (hasScheduleTime() != other.hasScheduleTime()) return false; - if (hasScheduleTime()) { - if (!getScheduleTime().equals(other.getScheduleTime())) return false; - } - if (hasDispatchTime() != other.hasDispatchTime()) return false; - if (hasDispatchTime()) { - if (!getDispatchTime().equals(other.getDispatchTime())) return false; - } - if (hasResponseTime() != other.hasResponseTime()) return false; - if (hasResponseTime()) { - if (!getResponseTime().equals(other.getResponseTime())) return false; - } - if (hasResponseStatus() != other.hasResponseStatus()) return false; - if (hasResponseStatus()) { - if (!getResponseStatus().equals(other.getResponseStatus())) return false; - } - if (!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 (hasScheduleTime()) { - hash = (37 * hash) + SCHEDULE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getScheduleTime().hashCode(); - } - if (hasDispatchTime()) { - hash = (37 * hash) + DISPATCH_TIME_FIELD_NUMBER; - hash = (53 * hash) + getDispatchTime().hashCode(); - } - if (hasResponseTime()) { - hash = (37 * hash) + RESPONSE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getResponseTime().hashCode(); - } - if (hasResponseStatus()) { - hash = (37 * hash) + RESPONSE_STATUS_FIELD_NUMBER; - hash = (53 * hash) + getResponseStatus().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.AttemptStatus parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.AttemptStatus 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.AttemptStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.AttemptStatus 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.AttemptStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.AttemptStatus 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.AttemptStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.AttemptStatus 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.AttemptStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.AttemptStatus 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.AttemptStatus 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.AttemptStatus 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.AttemptStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The status of a task attempt.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.AttemptStatus} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.AttemptStatus) - com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.TaskProto - .internal_static_google_cloud_tasks_v2beta2_AttemptStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.TaskProto - .internal_static_google_cloud_tasks_v2beta2_AttemptStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.AttemptStatus.class, - com.google.cloud.tasks.v2beta2.AttemptStatus.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.AttemptStatus.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = null; - } else { - scheduleTime_ = null; - scheduleTimeBuilder_ = null; - } - if (dispatchTimeBuilder_ == null) { - dispatchTime_ = null; - } else { - dispatchTime_ = null; - dispatchTimeBuilder_ = null; - } - if (responseTimeBuilder_ == null) { - responseTime_ = null; - } else { - responseTime_ = null; - responseTimeBuilder_ = null; - } - if (responseStatusBuilder_ == null) { - responseStatus_ = null; - } else { - responseStatus_ = null; - responseStatusBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.TaskProto - .internal_static_google_cloud_tasks_v2beta2_AttemptStatus_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AttemptStatus getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.AttemptStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AttemptStatus build() { - com.google.cloud.tasks.v2beta2.AttemptStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AttemptStatus buildPartial() { - com.google.cloud.tasks.v2beta2.AttemptStatus result = - new com.google.cloud.tasks.v2beta2.AttemptStatus(this); - if (scheduleTimeBuilder_ == null) { - result.scheduleTime_ = scheduleTime_; - } else { - result.scheduleTime_ = scheduleTimeBuilder_.build(); - } - if (dispatchTimeBuilder_ == null) { - result.dispatchTime_ = dispatchTime_; - } else { - result.dispatchTime_ = dispatchTimeBuilder_.build(); - } - if (responseTimeBuilder_ == null) { - result.responseTime_ = responseTime_; - } else { - result.responseTime_ = responseTimeBuilder_.build(); - } - if (responseStatusBuilder_ == null) { - result.responseStatus_ = responseStatus_; - } else { - result.responseStatus_ = responseStatusBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.AttemptStatus) { - return mergeFrom((com.google.cloud.tasks.v2beta2.AttemptStatus) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.AttemptStatus other) { - if (other == com.google.cloud.tasks.v2beta2.AttemptStatus.getDefaultInstance()) return this; - if (other.hasScheduleTime()) { - mergeScheduleTime(other.getScheduleTime()); - } - if (other.hasDispatchTime()) { - mergeDispatchTime(other.getDispatchTime()); - } - if (other.hasResponseTime()) { - mergeResponseTime(other.getResponseTime()); - } - if (other.hasResponseStatus()) { - mergeResponseStatus(other.getResponseStatus()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getDispatchTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getResponseTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getResponseStatusFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.protobuf.Timestamp scheduleTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - scheduleTimeBuilder_; - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - * - * @return Whether the scheduleTime field is set. - */ - public boolean hasScheduleTime() { - return scheduleTimeBuilder_ != null || scheduleTime_ != null; - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - * - * @return The scheduleTime. - */ - public com.google.protobuf.Timestamp getScheduleTime() { - if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } else { - return scheduleTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - public Builder setScheduleTime(com.google.protobuf.Timestamp value) { - if (scheduleTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduleTime_ = value; - onChanged(); - } else { - scheduleTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = builderForValue.build(); - onChanged(); - } else { - scheduleTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { - if (scheduleTimeBuilder_ == null) { - if (scheduleTime_ != null) { - scheduleTime_ = - com.google.protobuf.Timestamp.newBuilder(scheduleTime_) - .mergeFrom(value) - .buildPartial(); - } else { - scheduleTime_ = value; - } - onChanged(); - } else { - scheduleTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - public Builder clearScheduleTime() { - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = null; - onChanged(); - } else { - scheduleTime_ = null; - scheduleTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { - - onChanged(); - return getScheduleTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { - if (scheduleTimeBuilder_ != null) { - return scheduleTimeBuilder_.getMessageOrBuilder(); - } else { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getScheduleTimeFieldBuilder() { - if (scheduleTimeBuilder_ == null) { - scheduleTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getScheduleTime(), getParentForChildren(), isClean()); - scheduleTime_ = null; - } - return scheduleTimeBuilder_; - } - - private com.google.protobuf.Timestamp dispatchTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - dispatchTimeBuilder_; - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - * - * @return Whether the dispatchTime field is set. - */ - public boolean hasDispatchTime() { - return dispatchTimeBuilder_ != null || dispatchTime_ != null; - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - * - * @return The dispatchTime. - */ - public com.google.protobuf.Timestamp getDispatchTime() { - if (dispatchTimeBuilder_ == null) { - return dispatchTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dispatchTime_; - } else { - return dispatchTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - public Builder setDispatchTime(com.google.protobuf.Timestamp value) { - if (dispatchTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dispatchTime_ = value; - onChanged(); - } else { - dispatchTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - public Builder setDispatchTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (dispatchTimeBuilder_ == null) { - dispatchTime_ = builderForValue.build(); - onChanged(); - } else { - dispatchTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - public Builder mergeDispatchTime(com.google.protobuf.Timestamp value) { - if (dispatchTimeBuilder_ == null) { - if (dispatchTime_ != null) { - dispatchTime_ = - com.google.protobuf.Timestamp.newBuilder(dispatchTime_) - .mergeFrom(value) - .buildPartial(); - } else { - dispatchTime_ = value; - } - onChanged(); - } else { - dispatchTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - public Builder clearDispatchTime() { - if (dispatchTimeBuilder_ == null) { - dispatchTime_ = null; - onChanged(); - } else { - dispatchTime_ = null; - dispatchTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - public com.google.protobuf.Timestamp.Builder getDispatchTimeBuilder() { - - onChanged(); - return getDispatchTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - public com.google.protobuf.TimestampOrBuilder getDispatchTimeOrBuilder() { - if (dispatchTimeBuilder_ != null) { - return dispatchTimeBuilder_.getMessageOrBuilder(); - } else { - return dispatchTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dispatchTime_; - } - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getDispatchTimeFieldBuilder() { - if (dispatchTimeBuilder_ == null) { - dispatchTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDispatchTime(), getParentForChildren(), isClean()); - dispatchTime_ = null; - } - return dispatchTimeBuilder_; - } - - private com.google.protobuf.Timestamp responseTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - responseTimeBuilder_; - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - * - * @return Whether the responseTime field is set. - */ - public boolean hasResponseTime() { - return responseTimeBuilder_ != null || responseTime_ != null; - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - * - * @return The responseTime. - */ - public com.google.protobuf.Timestamp getResponseTime() { - if (responseTimeBuilder_ == null) { - return responseTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : responseTime_; - } else { - return responseTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - public Builder setResponseTime(com.google.protobuf.Timestamp value) { - if (responseTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - responseTime_ = value; - onChanged(); - } else { - responseTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - public Builder setResponseTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (responseTimeBuilder_ == null) { - responseTime_ = builderForValue.build(); - onChanged(); - } else { - responseTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - public Builder mergeResponseTime(com.google.protobuf.Timestamp value) { - if (responseTimeBuilder_ == null) { - if (responseTime_ != null) { - responseTime_ = - com.google.protobuf.Timestamp.newBuilder(responseTime_) - .mergeFrom(value) - .buildPartial(); - } else { - responseTime_ = value; - } - onChanged(); - } else { - responseTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - public Builder clearResponseTime() { - if (responseTimeBuilder_ == null) { - responseTime_ = null; - onChanged(); - } else { - responseTime_ = null; - responseTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - public com.google.protobuf.Timestamp.Builder getResponseTimeBuilder() { - - onChanged(); - return getResponseTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() { - if (responseTimeBuilder_ != null) { - return responseTimeBuilder_.getMessageOrBuilder(); - } else { - return responseTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : responseTime_; - } - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getResponseTimeFieldBuilder() { - if (responseTimeBuilder_ == null) { - responseTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getResponseTime(), getParentForChildren(), isClean()); - responseTime_ = null; - } - return responseTimeBuilder_; - } - - private com.google.rpc.Status responseStatus_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - responseStatusBuilder_; - /** - * - * - *
-     * Output only. The response from the target for this attempt.
-     * If the task has not been attempted or the task is currently running
-     * then the response status is unset.
-     * 
- * - * .google.rpc.Status response_status = 4; - * - * @return Whether the responseStatus field is set. - */ - public boolean hasResponseStatus() { - return responseStatusBuilder_ != null || responseStatus_ != null; - } - /** - * - * - *
-     * Output only. The response from the target for this attempt.
-     * If the task has not been attempted or the task is currently running
-     * then the response status is unset.
-     * 
- * - * .google.rpc.Status response_status = 4; - * - * @return The responseStatus. - */ - public com.google.rpc.Status getResponseStatus() { - if (responseStatusBuilder_ == null) { - return responseStatus_ == null - ? com.google.rpc.Status.getDefaultInstance() - : responseStatus_; - } else { - return responseStatusBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The response from the target for this attempt.
-     * If the task has not been attempted or the task is currently running
-     * then the response status is unset.
-     * 
- * - * .google.rpc.Status response_status = 4; - */ - public Builder setResponseStatus(com.google.rpc.Status value) { - if (responseStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - responseStatus_ = value; - onChanged(); - } else { - responseStatusBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The response from the target for this attempt.
-     * If the task has not been attempted or the task is currently running
-     * then the response status is unset.
-     * 
- * - * .google.rpc.Status response_status = 4; - */ - public Builder setResponseStatus(com.google.rpc.Status.Builder builderForValue) { - if (responseStatusBuilder_ == null) { - responseStatus_ = builderForValue.build(); - onChanged(); - } else { - responseStatusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The response from the target for this attempt.
-     * If the task has not been attempted or the task is currently running
-     * then the response status is unset.
-     * 
- * - * .google.rpc.Status response_status = 4; - */ - public Builder mergeResponseStatus(com.google.rpc.Status value) { - if (responseStatusBuilder_ == null) { - if (responseStatus_ != null) { - responseStatus_ = - com.google.rpc.Status.newBuilder(responseStatus_).mergeFrom(value).buildPartial(); - } else { - responseStatus_ = value; - } - onChanged(); - } else { - responseStatusBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The response from the target for this attempt.
-     * If the task has not been attempted or the task is currently running
-     * then the response status is unset.
-     * 
- * - * .google.rpc.Status response_status = 4; - */ - public Builder clearResponseStatus() { - if (responseStatusBuilder_ == null) { - responseStatus_ = null; - onChanged(); - } else { - responseStatus_ = null; - responseStatusBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The response from the target for this attempt.
-     * If the task has not been attempted or the task is currently running
-     * then the response status is unset.
-     * 
- * - * .google.rpc.Status response_status = 4; - */ - public com.google.rpc.Status.Builder getResponseStatusBuilder() { - - onChanged(); - return getResponseStatusFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The response from the target for this attempt.
-     * If the task has not been attempted or the task is currently running
-     * then the response status is unset.
-     * 
- * - * .google.rpc.Status response_status = 4; - */ - public com.google.rpc.StatusOrBuilder getResponseStatusOrBuilder() { - if (responseStatusBuilder_ != null) { - return responseStatusBuilder_.getMessageOrBuilder(); - } else { - return responseStatus_ == null - ? com.google.rpc.Status.getDefaultInstance() - : responseStatus_; - } - } - /** - * - * - *
-     * Output only. The response from the target for this attempt.
-     * If the task has not been attempted or the task is currently running
-     * then the response status is unset.
-     * 
- * - * .google.rpc.Status response_status = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - getResponseStatusFieldBuilder() { - if (responseStatusBuilder_ == null) { - responseStatusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - getResponseStatus(), getParentForChildren(), isClean()); - responseStatus_ = null; - } - return responseStatusBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.AttemptStatus) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.AttemptStatus) - private static final com.google.cloud.tasks.v2beta2.AttemptStatus DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.AttemptStatus(); - } - - public static com.google.cloud.tasks.v2beta2.AttemptStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AttemptStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AttemptStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AttemptStatusOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AttemptStatusOrBuilder.java deleted file mode 100644 index 04cba740..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AttemptStatusOrBuilder.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Copyright 2020 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/task.proto - -package com.google.cloud.tasks.v2beta2; - -public interface AttemptStatusOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.AttemptStatus) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The time that this attempt was scheduled.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - * - * @return Whether the scheduleTime field is set. - */ - boolean hasScheduleTime(); - /** - * - * - *
-   * Output only. The time that this attempt was scheduled.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - * - * @return The scheduleTime. - */ - com.google.protobuf.Timestamp getScheduleTime(); - /** - * - * - *
-   * Output only. The time that this attempt was scheduled.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The time that this attempt was dispatched.
-   * `dispatch_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - * - * @return Whether the dispatchTime field is set. - */ - boolean hasDispatchTime(); - /** - * - * - *
-   * Output only. The time that this attempt was dispatched.
-   * `dispatch_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - * - * @return The dispatchTime. - */ - com.google.protobuf.Timestamp getDispatchTime(); - /** - * - * - *
-   * Output only. The time that this attempt was dispatched.
-   * `dispatch_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - com.google.protobuf.TimestampOrBuilder getDispatchTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The time that this attempt response was received.
-   * `response_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp response_time = 3; - * - * @return Whether the responseTime field is set. - */ - boolean hasResponseTime(); - /** - * - * - *
-   * Output only. The time that this attempt response was received.
-   * `response_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp response_time = 3; - * - * @return The responseTime. - */ - com.google.protobuf.Timestamp getResponseTime(); - /** - * - * - *
-   * Output only. The time that this attempt response was received.
-   * `response_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The response from the target for this attempt.
-   * If the task has not been attempted or the task is currently running
-   * then the response status is unset.
-   * 
- * - * .google.rpc.Status response_status = 4; - * - * @return Whether the responseStatus field is set. - */ - boolean hasResponseStatus(); - /** - * - * - *
-   * Output only. The response from the target for this attempt.
-   * If the task has not been attempted or the task is currently running
-   * then the response status is unset.
-   * 
- * - * .google.rpc.Status response_status = 4; - * - * @return The responseStatus. - */ - com.google.rpc.Status getResponseStatus(); - /** - * - * - *
-   * Output only. The response from the target for this attempt.
-   * If the task has not been attempted or the task is currently running
-   * then the response status is unset.
-   * 
- * - * .google.rpc.Status response_status = 4; - */ - com.google.rpc.StatusOrBuilder getResponseStatusOrBuilder(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequest.java deleted file mode 100644 index 1735f6e2..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequest.java +++ /dev/null @@ -1,1177 +0,0 @@ -/* - * Copyright 2020 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; - -/** - * - * - *
- * Request message for canceling a lease using
- * [CancelLease][google.cloud.tasks.v2beta2.CloudTasks.CancelLease].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.CancelLeaseRequest} - */ -public final class CancelLeaseRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.CancelLeaseRequest) - CancelLeaseRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CancelLeaseRequest.newBuilder() to construct. - private CancelLeaseRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CancelLeaseRequest() { - name_ = ""; - responseView_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CancelLeaseRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_CancelLeaseRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_CancelLeaseRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.CancelLeaseRequest.class, - com.google.cloud.tasks.v2beta2.CancelLeaseRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCHEDULE_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp scheduleTime_; - /** - * - * - *
-   * Required. The task's current schedule time, available in the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-   * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-   * to ensure that your worker currently holds the lease.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the scheduleTime field is set. - */ - @java.lang.Override - public boolean hasScheduleTime() { - return scheduleTime_ != null; - } - /** - * - * - *
-   * Required. The task's current schedule time, available in the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-   * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-   * to ensure that your worker currently holds the lease.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The scheduleTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } - /** - * - * - *
-   * Required. The task's current schedule time, available in the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-   * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-   * to ensure that your worker currently holds the lease.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { - return getScheduleTime(); - } - - public static final int RESPONSE_VIEW_FIELD_NUMBER = 3; - private int responseView_; - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 3; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 3; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta2.Task.View result = - com.google.cloud.tasks.v2beta2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta2.Task.View.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (scheduleTime_ != null) { - output.writeMessage(2, getScheduleTime()); - } - if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - output.writeEnum(3, responseView_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScheduleTime()); - } - if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, responseView_); - } - 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.CancelLeaseRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.CancelLeaseRequest other = - (com.google.cloud.tasks.v2beta2.CancelLeaseRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (hasScheduleTime() != other.hasScheduleTime()) return false; - if (hasScheduleTime()) { - if (!getScheduleTime().equals(other.getScheduleTime())) return false; - } - if (responseView_ != other.responseView_) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasScheduleTime()) { - hash = (37 * hash) + SCHEDULE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getScheduleTime().hashCode(); - } - hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; - hash = (53 * hash) + responseView_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.CancelLeaseRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.CancelLeaseRequest 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.CancelLeaseRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.CancelLeaseRequest 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.CancelLeaseRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.CancelLeaseRequest 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.CancelLeaseRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.CancelLeaseRequest 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.CancelLeaseRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.CancelLeaseRequest 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.CancelLeaseRequest 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.CancelLeaseRequest 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.CancelLeaseRequest 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 canceling a lease using
-   * [CancelLease][google.cloud.tasks.v2beta2.CloudTasks.CancelLease].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.CancelLeaseRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.CancelLeaseRequest) - com.google.cloud.tasks.v2beta2.CancelLeaseRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_CancelLeaseRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_CancelLeaseRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.CancelLeaseRequest.class, - com.google.cloud.tasks.v2beta2.CancelLeaseRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.CancelLeaseRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = null; - } else { - scheduleTime_ = null; - scheduleTimeBuilder_ = null; - } - responseView_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_CancelLeaseRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.CancelLeaseRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.CancelLeaseRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.CancelLeaseRequest build() { - com.google.cloud.tasks.v2beta2.CancelLeaseRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.CancelLeaseRequest buildPartial() { - com.google.cloud.tasks.v2beta2.CancelLeaseRequest result = - new com.google.cloud.tasks.v2beta2.CancelLeaseRequest(this); - result.name_ = name_; - if (scheduleTimeBuilder_ == null) { - result.scheduleTime_ = scheduleTime_; - } else { - result.scheduleTime_ = scheduleTimeBuilder_.build(); - } - result.responseView_ = responseView_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.CancelLeaseRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta2.CancelLeaseRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.CancelLeaseRequest other) { - if (other == com.google.cloud.tasks.v2beta2.CancelLeaseRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasScheduleTime()) { - mergeScheduleTime(other.getScheduleTime()); - } - if (other.responseView_ != 0) { - setResponseViewValue(other.getResponseViewValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 24: - { - responseView_ = input.readEnum(); - - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp scheduleTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - scheduleTimeBuilder_; - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the scheduleTime field is set. - */ - public boolean hasScheduleTime() { - return scheduleTimeBuilder_ != null || scheduleTime_ != null; - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The scheduleTime. - */ - public com.google.protobuf.Timestamp getScheduleTime() { - if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } else { - return scheduleTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setScheduleTime(com.google.protobuf.Timestamp value) { - if (scheduleTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduleTime_ = value; - onChanged(); - } else { - scheduleTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = builderForValue.build(); - onChanged(); - } else { - scheduleTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { - if (scheduleTimeBuilder_ == null) { - if (scheduleTime_ != null) { - scheduleTime_ = - com.google.protobuf.Timestamp.newBuilder(scheduleTime_) - .mergeFrom(value) - .buildPartial(); - } else { - scheduleTime_ = value; - } - onChanged(); - } else { - scheduleTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearScheduleTime() { - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = null; - onChanged(); - } else { - scheduleTime_ = null; - scheduleTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { - - onChanged(); - return getScheduleTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { - if (scheduleTimeBuilder_ != null) { - return scheduleTimeBuilder_.getMessageOrBuilder(); - } else { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getScheduleTimeFieldBuilder() { - if (scheduleTimeBuilder_ == null) { - scheduleTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getScheduleTime(), getParentForChildren(), isClean()); - scheduleTime_ = null; - } - return scheduleTimeBuilder_; - } - - private int responseView_ = 0; - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 3; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 3; - * - * @param value The enum numeric value on the wire for responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseViewValue(int value) { - - responseView_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 3; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta2.Task.View result = - com.google.cloud.tasks.v2beta2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta2.Task.View.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 3; - * - * @param value The responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseView(com.google.cloud.tasks.v2beta2.Task.View value) { - if (value == null) { - throw new NullPointerException(); - } - - responseView_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 3; - * - * @return This builder for chaining. - */ - public Builder clearResponseView() { - - responseView_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.CancelLeaseRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.CancelLeaseRequest) - private static final com.google.cloud.tasks.v2beta2.CancelLeaseRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.CancelLeaseRequest(); - } - - public static com.google.cloud.tasks.v2beta2.CancelLeaseRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CancelLeaseRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.CancelLeaseRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequestOrBuilder.java deleted file mode 100644 index 7e482e5c..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequestOrBuilder.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright 2020 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; - -public interface CancelLeaseRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.CancelLeaseRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The task's current schedule time, available in the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-   * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-   * to ensure that your worker currently holds the lease.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the scheduleTime field is set. - */ - boolean hasScheduleTime(); - /** - * - * - *
-   * Required. The task's current schedule time, available in the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-   * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-   * to ensure that your worker currently holds the lease.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The scheduleTime. - */ - com.google.protobuf.Timestamp getScheduleTime(); - /** - * - * - *
-   * Required. The task's current schedule time, available in the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-   * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-   * to ensure that your worker currently holds the lease.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder(); - - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 3; - * - * @return The enum numeric value on the wire for responseView. - */ - int getResponseViewValue(); - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 3; - * - * @return The responseView. - */ - com.google.cloud.tasks.v2beta2.Task.View getResponseView(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksProto.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksProto.java deleted file mode 100644 index e0f1f9cc..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksProto.java +++ /dev/null @@ -1,496 +0,0 @@ -/* - * Copyright 2020 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; - -public final class CloudTasksProto { - private CloudTasksProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_ListQueuesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_ListQueuesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_ListQueuesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_ListQueuesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_GetQueueRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_GetQueueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_CreateQueueRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_CreateQueueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_UpdateQueueRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_UpdateQueueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_DeleteQueueRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_DeleteQueueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_PurgeQueueRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_PurgeQueueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_PauseQueueRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_PauseQueueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_ResumeQueueRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_ResumeQueueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_ListTasksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_ListTasksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_ListTasksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_ListTasksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_GetTaskRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_GetTaskRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_CreateTaskRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_CreateTaskRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_DeleteTaskRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_DeleteTaskRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_LeaseTasksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_LeaseTasksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_LeaseTasksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_LeaseTasksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_AcknowledgeTaskRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_AcknowledgeTaskRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_RenewLeaseRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_RenewLeaseRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_CancelLeaseRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_CancelLeaseRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_RunTaskRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_RunTaskRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/tasks/v2beta2/cloudtasks." - + "proto\022\032google.cloud.tasks.v2beta2\032\034googl" - + "e/api/annotations.proto\032\027google/api/clie" - + "nt.proto\032\037google/api/field_behavior.prot" - + "o\032\031google/api/resource.proto\032&google/clo" - + "ud/tasks/v2beta2/queue.proto\032%google/clo" - + "ud/tasks/v2beta2/task.proto\032\036google/iam/" - + "v1/iam_policy.proto\032\032google/iam/v1/polic" - + "y.proto\032\036google/protobuf/duration.proto\032" - + "\033google/protobuf/empty.proto\032 google/pro" - + "tobuf/field_mask.proto\032\037google/protobuf/" - + "timestamp.proto\"\267\001\n\021ListQueuesRequest\0227\n" - + "\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037cloudtasks.google" - + "apis.com/Queue\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_s" - + "ize\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\0222\n\tread_ma" - + "sk\030\005 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" - + "\001\"`\n\022ListQueuesResponse\0221\n\006queues\030\001 \003(\0132" - + "!.google.cloud.tasks.v2beta2.Queue\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"|\n\017GetQueueRequest\0225" - + "\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037cloudtasks.googlea" - + "pis.com/Queue\0222\n\tread_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMaskB\003\340A\001\"\204\001\n\022CreateQueu" - + "eRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037cloudt" - + "asks.googleapis.com/Queue\0225\n\005queue\030\002 \001(\013" - + "2!.google.cloud.tasks.v2beta2.QueueB\003\340A\002" - + "\"|\n\022UpdateQueueRequest\0225\n\005queue\030\001 \001(\0132!." - + "google.cloud.tasks.v2beta2.QueueB\003\340A\002\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" - + "ldMask\"K\n\022DeleteQueueRequest\0225\n\004name\030\001 \001" - + "(\tB\'\340A\002\372A!\n\037cloudtasks.googleapis.com/Qu" - + "eue\"J\n\021PurgeQueueRequest\0225\n\004name\030\001 \001(\tB\'" - + "\340A\002\372A!\n\037cloudtasks.googleapis.com/Queue\"" - + "J\n\021PauseQueueRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372" - + "A!\n\037cloudtasks.googleapis.com/Queue\"K\n\022R" - + "esumeQueueRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n" - + "\037cloudtasks.googleapis.com/Queue\"\257\001\n\020Lis" - + "tTasksRequest\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036c" - + "loudtasks.googleapis.com/Task\022<\n\rrespons" - + "e_view\030\002 \001(\0162%.google.cloud.tasks.v2beta" - + "2.Task.View\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_t" - + "oken\030\005 \001(\t\"]\n\021ListTasksResponse\022/\n\005tasks" - + "\030\001 \003(\0132 .google.cloud.tasks.v2beta2.Task" - + "\022\027\n\017next_page_token\030\002 \001(\t\"\204\001\n\016GetTaskReq" - + "uest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudtasks.g" - + "oogleapis.com/Task\022<\n\rresponse_view\030\002 \001(" - + "\0162%.google.cloud.tasks.v2beta2.Task.View" - + "\"\276\001\n\021CreateTaskRequest\0226\n\006parent\030\001 \001(\tB&" - + "\340A\002\372A \022\036cloudtasks.googleapis.com/Task\0223" - + "\n\004task\030\002 \001(\0132 .google.cloud.tasks.v2beta" - + "2.TaskB\003\340A\002\022<\n\rresponse_view\030\003 \001(\0162%.goo" - + "gle.cloud.tasks.v2beta2.Task.View\"I\n\021Del" - + "eteTaskRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cl" - + "oudtasks.googleapis.com/Task\"\344\001\n\021LeaseTa" - + "sksRequest\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036clou" - + "dtasks.googleapis.com/Task\022\021\n\tmax_tasks\030" - + "\002 \001(\005\0226\n\016lease_duration\030\003 \001(\0132\031.google.p" - + "rotobuf.DurationB\003\340A\002\022<\n\rresponse_view\030\004" - + " \001(\0162%.google.cloud.tasks.v2beta2.Task.V" - + "iew\022\016\n\006filter\030\005 \001(\t\"E\n\022LeaseTasksRespons" - + "e\022/\n\005tasks\030\001 \003(\0132 .google.cloud.tasks.v2" - + "beta2.Task\"\206\001\n\026AcknowledgeTaskRequest\0224\n" - + "\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudtasks.googleap" - + "is.com/Task\0226\n\rschedule_time\030\002 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\002\"\367\001\n\021RenewLea" - + "seRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloudta" - + "sks.googleapis.com/Task\0226\n\rschedule_time" - + "\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\022" - + "6\n\016lease_duration\030\003 \001(\0132\031.google.protobu" - + "f.DurationB\003\340A\002\022<\n\rresponse_view\030\004 \001(\0162%" - + ".google.cloud.tasks.v2beta2.Task.View\"\300\001" - + "\n\022CancelLeaseRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372" - + "A \n\036cloudtasks.googleapis.com/Task\0226\n\rsc" - + "hedule_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\002\022<\n\rresponse_view\030\003 \001(\0162%.goog" - + "le.cloud.tasks.v2beta2.Task.View\"\204\001\n\016Run" - + "TaskRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036cloud" - + "tasks.googleapis.com/Task\022<\n\rresponse_vi" - + "ew\030\002 \001(\0162%.google.cloud.tasks.v2beta2.Ta" - + "sk.View2\324\034\n\nCloudTasks\022\255\001\n\nListQueues\022-." - + "google.cloud.tasks.v2beta2.ListQueuesReq" - + "uest\032..google.cloud.tasks.v2beta2.ListQu" - + "euesResponse\"@\202\323\344\223\0021\022//v2beta2/{parent=p" - + "rojects/*/locations/*}/queues\332A\006parent\022\232" - + "\001\n\010GetQueue\022+.google.cloud.tasks.v2beta2" - + ".GetQueueRequest\032!.google.cloud.tasks.v2" - + "beta2.Queue\">\202\323\344\223\0021\022//v2beta2/{name=proj" - + "ects/*/locations/*/queues/*}\332A\004name\022\257\001\n\013" - + "CreateQueue\022..google.cloud.tasks.v2beta2" - + ".CreateQueueRequest\032!.google.cloud.tasks" - + ".v2beta2.Queue\"M\202\323\344\223\0028\"//v2beta2/{parent" - + "=projects/*/locations/*}/queues:\005queue\332A" - + "\014parent,queue\022\272\001\n\013UpdateQueue\022..google.c" - + "loud.tasks.v2beta2.UpdateQueueRequest\032!." - + "google.cloud.tasks.v2beta2.Queue\"X\202\323\344\223\002>" - + "25/v2beta2/{queue.name=projects/*/locati" - + "ons/*/queues/*}:\005queue\332A\021queue,update_ma" - + "sk\022\225\001\n\013DeleteQueue\022..google.cloud.tasks." - + "v2beta2.DeleteQueueRequest\032\026.google.prot" - + "obuf.Empty\">\202\323\344\223\0021*//v2beta2/{name=proje" - + "cts/*/locations/*/queues/*}\332A\004name\022\247\001\n\nP" - + "urgeQueue\022-.google.cloud.tasks.v2beta2.P" - + "urgeQueueRequest\032!.google.cloud.tasks.v2" - + "beta2.Queue\"G\202\323\344\223\002:\"5/v2beta2/{name=proj" - + "ects/*/locations/*/queues/*}:purge:\001*\332A\004" - + "name\022\247\001\n\nPauseQueue\022-.google.cloud.tasks" - + ".v2beta2.PauseQueueRequest\032!.google.clou" - + "d.tasks.v2beta2.Queue\"G\202\323\344\223\002:\"5/v2beta2/" - + "{name=projects/*/locations/*/queues/*}:p" - + "ause:\001*\332A\004name\022\252\001\n\013ResumeQueue\022..google." - + "cloud.tasks.v2beta2.ResumeQueueRequest\032!" - + ".google.cloud.tasks.v2beta2.Queue\"H\202\323\344\223\002" - + ";\"6/v2beta2/{name=projects/*/locations/*" - + "/queues/*}:resume:\001*\332A\004name\022\241\001\n\014GetIamPo" - + "licy\022\".google.iam.v1.GetIamPolicyRequest" - + "\032\025.google.iam.v1.Policy\"V\202\323\344\223\002E\"@/v2beta" - + "2/{resource=projects/*/locations/*/queue" - + "s/*}:getIamPolicy:\001*\332A\010resource\022\250\001\n\014SetI" - + "amPolicy\022\".google.iam.v1.SetIamPolicyReq" - + "uest\032\025.google.iam.v1.Policy\"]\202\323\344\223\002E\"@/v2" - + "beta2/{resource=projects/*/locations/*/q" - + "ueues/*}:setIamPolicy:\001*\332A\017resource,poli" - + "cy\022\323\001\n\022TestIamPermissions\022(.google.iam.v" - + "1.TestIamPermissionsRequest\032).google.iam" - + ".v1.TestIamPermissionsResponse\"h\202\323\344\223\002K\"F" - + "/v2beta2/{resource=projects/*/locations/" - + "*/queues/*}:testIamPermissions:\001*\332A\024reso" - + "urce,permissions\022\262\001\n\tListTasks\022,.google." - + "cloud.tasks.v2beta2.ListTasksRequest\032-.g" - + "oogle.cloud.tasks.v2beta2.ListTasksRespo" - + "nse\"H\202\323\344\223\0029\0227/v2beta2/{parent=projects/*" - + "/locations/*/queues/*}/tasks\332A\006parent\022\237\001" - + "\n\007GetTask\022*.google.cloud.tasks.v2beta2.G" - + "etTaskRequest\032 .google.cloud.tasks.v2bet" - + "a2.Task\"F\202\323\344\223\0029\0227/v2beta2/{name=projects" - + "/*/locations/*/queues/*/tasks/*}\332A\004name\022" - + "\257\001\n\nCreateTask\022-.google.cloud.tasks.v2be" - + "ta2.CreateTaskRequest\032 .google.cloud.tas" - + "ks.v2beta2.Task\"P\202\323\344\223\002<\"7/v2beta2/{paren" - + "t=projects/*/locations/*/queues/*}/tasks" - + ":\001*\332A\013parent,task\022\233\001\n\nDeleteTask\022-.googl" - + "e.cloud.tasks.v2beta2.DeleteTaskRequest\032" - + "\026.google.protobuf.Empty\"F\202\323\344\223\0029*7/v2beta" - + "2/{name=projects/*/locations/*/queues/*/" - + "tasks/*}\332A\004name\022\315\001\n\nLeaseTasks\022-.google." - + "cloud.tasks.v2beta2.LeaseTasksRequest\032.." - + "google.cloud.tasks.v2beta2.LeaseTasksRes" - + "ponse\"`\202\323\344\223\002B\"=/v2beta2/{parent=projects" - + "/*/locations/*/queues/*}/tasks:lease:\001*\332" - + "A\025parent,lease_duration\022\302\001\n\017AcknowledgeT" - + "ask\0222.google.cloud.tasks.v2beta2.Acknowl" - + "edgeTaskRequest\032\026.google.protobuf.Empty\"" - + "c\202\323\344\223\002H\"C/v2beta2/{name=projects/*/locat" - + "ions/*/queues/*/tasks/*}:acknowledge:\001*\332" - + "A\022name,schedule_time\022\320\001\n\nRenewLease\022-.go" - + "ogle.cloud.tasks.v2beta2.RenewLeaseReque" - + "st\032 .google.cloud.tasks.v2beta2.Task\"q\202\323" - + "\344\223\002G\"B/v2beta2/{name=projects/*/location" - + "s/*/queues/*/tasks/*}:renewLease:\001*\332A!na" - + "me,schedule_time,lease_duration\022\304\001\n\013Canc" - + "elLease\022..google.cloud.tasks.v2beta2.Can" - + "celLeaseRequest\032 .google.cloud.tasks.v2b" - + "eta2.Task\"c\202\323\344\223\002H\"C/v2beta2/{name=projec" - + "ts/*/locations/*/queues/*/tasks/*}:cance" - + "lLease:\001*\332A\022name,schedule_time\022\246\001\n\007RunTa" - + "sk\022*.google.cloud.tasks.v2beta2.RunTaskR" - + "equest\032 .google.cloud.tasks.v2beta2.Task" - + "\"M\202\323\344\223\002@\";/v2beta2/{name=projects/*/loca" - + "tions/*/queues/*/tasks/*}:run:\001*\332A\004name\032" - + "M\312A\031cloudtasks.googleapis.com\322A.https://" - + "www.googleapis.com/auth/cloud-platformB|" - + "\n\036com.google.cloud.tasks.v2beta2B\017CloudT" - + "asksProtoP\001Z?google.golang.org/genproto/" - + "googleapis/cloud/tasks/v2beta2;tasks\242\002\005T" - + "ASKSb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.tasks.v2beta2.QueueProto.getDescriptor(), - com.google.cloud.tasks.v2beta2.TaskProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_tasks_v2beta2_ListQueuesRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_tasks_v2beta2_ListQueuesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_ListQueuesRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", "ReadMask", - }); - internal_static_google_cloud_tasks_v2beta2_ListQueuesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_tasks_v2beta2_ListQueuesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_ListQueuesResponse_descriptor, - new java.lang.String[] { - "Queues", "NextPageToken", - }); - internal_static_google_cloud_tasks_v2beta2_GetQueueRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_tasks_v2beta2_GetQueueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_GetQueueRequest_descriptor, - new java.lang.String[] { - "Name", "ReadMask", - }); - internal_static_google_cloud_tasks_v2beta2_CreateQueueRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_tasks_v2beta2_CreateQueueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_CreateQueueRequest_descriptor, - new java.lang.String[] { - "Parent", "Queue", - }); - internal_static_google_cloud_tasks_v2beta2_UpdateQueueRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_tasks_v2beta2_UpdateQueueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_UpdateQueueRequest_descriptor, - new java.lang.String[] { - "Queue", "UpdateMask", - }); - internal_static_google_cloud_tasks_v2beta2_DeleteQueueRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_tasks_v2beta2_DeleteQueueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_DeleteQueueRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_tasks_v2beta2_PurgeQueueRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_tasks_v2beta2_PurgeQueueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_PurgeQueueRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_tasks_v2beta2_PauseQueueRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_tasks_v2beta2_PauseQueueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_PauseQueueRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_tasks_v2beta2_ResumeQueueRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_tasks_v2beta2_ResumeQueueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_ResumeQueueRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_tasks_v2beta2_ListTasksRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_tasks_v2beta2_ListTasksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_ListTasksRequest_descriptor, - new java.lang.String[] { - "Parent", "ResponseView", "PageSize", "PageToken", - }); - internal_static_google_cloud_tasks_v2beta2_ListTasksResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_tasks_v2beta2_ListTasksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_ListTasksResponse_descriptor, - new java.lang.String[] { - "Tasks", "NextPageToken", - }); - internal_static_google_cloud_tasks_v2beta2_GetTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_tasks_v2beta2_GetTaskRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_GetTaskRequest_descriptor, - new java.lang.String[] { - "Name", "ResponseView", - }); - internal_static_google_cloud_tasks_v2beta2_CreateTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_tasks_v2beta2_CreateTaskRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_CreateTaskRequest_descriptor, - new java.lang.String[] { - "Parent", "Task", "ResponseView", - }); - internal_static_google_cloud_tasks_v2beta2_DeleteTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_tasks_v2beta2_DeleteTaskRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_DeleteTaskRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_tasks_v2beta2_LeaseTasksRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_tasks_v2beta2_LeaseTasksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_LeaseTasksRequest_descriptor, - new java.lang.String[] { - "Parent", "MaxTasks", "LeaseDuration", "ResponseView", "Filter", - }); - internal_static_google_cloud_tasks_v2beta2_LeaseTasksResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_tasks_v2beta2_LeaseTasksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_LeaseTasksResponse_descriptor, - new java.lang.String[] { - "Tasks", - }); - internal_static_google_cloud_tasks_v2beta2_AcknowledgeTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_tasks_v2beta2_AcknowledgeTaskRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_AcknowledgeTaskRequest_descriptor, - new java.lang.String[] { - "Name", "ScheduleTime", - }); - internal_static_google_cloud_tasks_v2beta2_RenewLeaseRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_tasks_v2beta2_RenewLeaseRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_RenewLeaseRequest_descriptor, - new java.lang.String[] { - "Name", "ScheduleTime", "LeaseDuration", "ResponseView", - }); - internal_static_google_cloud_tasks_v2beta2_CancelLeaseRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_tasks_v2beta2_CancelLeaseRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_CancelLeaseRequest_descriptor, - new java.lang.String[] { - "Name", "ScheduleTime", "ResponseView", - }); - internal_static_google_cloud_tasks_v2beta2_RunTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_tasks_v2beta2_RunTaskRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_RunTaskRequest_descriptor, - new java.lang.String[] { - "Name", "ResponseView", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.tasks.v2beta2.QueueProto.getDescriptor(); - com.google.cloud.tasks.v2beta2.TaskProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequest.java deleted file mode 100644 index f17052b1..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequest.java +++ /dev/null @@ -1,942 +0,0 @@ -/* - * Copyright 2020 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; - -/** - * - * - *
- * Request message for [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.CreateQueueRequest} - */ -public final class CreateQueueRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.CreateQueueRequest) - CreateQueueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateQueueRequest.newBuilder() to construct. - private CreateQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateQueueRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateQueueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_CreateQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_CreateQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.CreateQueueRequest.class, - com.google.cloud.tasks.v2beta2.CreateQueueRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The location name in which the queue will be created.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * The list of allowed locations can be obtained by calling Cloud
-   * Tasks' implementation of
-   * [ListLocations][google.cloud.location.Locations.ListLocations].
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The location name in which the queue will be created.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * The list of allowed locations can be obtained by calling Cloud
-   * Tasks' implementation of
-   * [ListLocations][google.cloud.location.Locations.ListLocations].
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUEUE_FIELD_NUMBER = 2; - private com.google.cloud.tasks.v2beta2.Queue queue_; - /** - * - * - *
-   * Required. The queue to create.
-   * [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as an existing queue.
-   * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the queue field is set. - */ - @java.lang.Override - public boolean hasQueue() { - return queue_ != null; - } - /** - * - * - *
-   * Required. The queue to create.
-   * [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as an existing queue.
-   * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The queue. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Queue getQueue() { - return queue_ == null ? com.google.cloud.tasks.v2beta2.Queue.getDefaultInstance() : queue_; - } - /** - * - * - *
-   * Required. The queue to create.
-   * [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as an existing queue.
-   * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.QueueOrBuilder getQueueOrBuilder() { - return getQueue(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (queue_ != null) { - output.writeMessage(2, getQueue()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (queue_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQueue()); - } - 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.CreateQueueRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.CreateQueueRequest other = - (com.google.cloud.tasks.v2beta2.CreateQueueRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasQueue() != other.hasQueue()) return false; - if (hasQueue()) { - if (!getQueue().equals(other.getQueue())) return false; - } - if (!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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasQueue()) { - hash = (37 * hash) + QUEUE_FIELD_NUMBER; - hash = (53 * hash) + getQueue().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.CreateQueueRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.CreateQueueRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.CreateQueueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.CreateQueueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.CreateQueueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.CreateQueueRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.CreateQueueRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.CreateQueueRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.CreateQueueRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.CreateQueueRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.CreateQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.CreateQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta2.CreateQueueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.CreateQueueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.CreateQueueRequest) - com.google.cloud.tasks.v2beta2.CreateQueueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_CreateQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_CreateQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.CreateQueueRequest.class, - com.google.cloud.tasks.v2beta2.CreateQueueRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.CreateQueueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (queueBuilder_ == null) { - queue_ = null; - } else { - queue_ = null; - queueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_CreateQueueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.CreateQueueRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.CreateQueueRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.CreateQueueRequest build() { - com.google.cloud.tasks.v2beta2.CreateQueueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.CreateQueueRequest buildPartial() { - com.google.cloud.tasks.v2beta2.CreateQueueRequest result = - new com.google.cloud.tasks.v2beta2.CreateQueueRequest(this); - result.parent_ = parent_; - if (queueBuilder_ == null) { - result.queue_ = queue_; - } else { - result.queue_ = queueBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.CreateQueueRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta2.CreateQueueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.CreateQueueRequest other) { - if (other == com.google.cloud.tasks.v2beta2.CreateQueueRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasQueue()) { - mergeQueue(other.getQueue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getQueueFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The location name in which the queue will be created.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * The list of allowed locations can be obtained by calling Cloud
-     * Tasks' implementation of
-     * [ListLocations][google.cloud.location.Locations.ListLocations].
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The location name in which the queue will be created.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * The list of allowed locations can be obtained by calling Cloud
-     * Tasks' implementation of
-     * [ListLocations][google.cloud.location.Locations.ListLocations].
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The location name in which the queue will be created.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * The list of allowed locations can be obtained by calling Cloud
-     * Tasks' implementation of
-     * [ListLocations][google.cloud.location.Locations.ListLocations].
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location name in which the queue will be created.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * The list of allowed locations can be obtained by calling Cloud
-     * Tasks' implementation of
-     * [ListLocations][google.cloud.location.Locations.ListLocations].
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location name in which the queue will be created.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * The list of allowed locations can be obtained by calling Cloud
-     * Tasks' implementation of
-     * [ListLocations][google.cloud.location.Locations.ListLocations].
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.cloud.tasks.v2beta2.Queue queue_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.Queue, - com.google.cloud.tasks.v2beta2.Queue.Builder, - com.google.cloud.tasks.v2beta2.QueueOrBuilder> - queueBuilder_; - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the queue field is set. - */ - public boolean hasQueue() { - return queueBuilder_ != null || queue_ != null; - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The queue. - */ - public com.google.cloud.tasks.v2beta2.Queue getQueue() { - if (queueBuilder_ == null) { - return queue_ == null ? com.google.cloud.tasks.v2beta2.Queue.getDefaultInstance() : queue_; - } else { - return queueBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setQueue(com.google.cloud.tasks.v2beta2.Queue value) { - if (queueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queue_ = value; - onChanged(); - } else { - queueBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setQueue(com.google.cloud.tasks.v2beta2.Queue.Builder builderForValue) { - if (queueBuilder_ == null) { - queue_ = builderForValue.build(); - onChanged(); - } else { - queueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeQueue(com.google.cloud.tasks.v2beta2.Queue value) { - if (queueBuilder_ == null) { - if (queue_ != null) { - queue_ = - com.google.cloud.tasks.v2beta2.Queue.newBuilder(queue_) - .mergeFrom(value) - .buildPartial(); - } else { - queue_ = value; - } - onChanged(); - } else { - queueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearQueue() { - if (queueBuilder_ == null) { - queue_ = null; - onChanged(); - } else { - queue_ = null; - queueBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.tasks.v2beta2.Queue.Builder getQueueBuilder() { - - onChanged(); - return getQueueFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.tasks.v2beta2.QueueOrBuilder getQueueOrBuilder() { - if (queueBuilder_ != null) { - return queueBuilder_.getMessageOrBuilder(); - } else { - return queue_ == null ? com.google.cloud.tasks.v2beta2.Queue.getDefaultInstance() : queue_; - } - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.Queue, - com.google.cloud.tasks.v2beta2.Queue.Builder, - com.google.cloud.tasks.v2beta2.QueueOrBuilder> - getQueueFieldBuilder() { - if (queueBuilder_ == null) { - queueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.Queue, - com.google.cloud.tasks.v2beta2.Queue.Builder, - com.google.cloud.tasks.v2beta2.QueueOrBuilder>( - getQueue(), getParentForChildren(), isClean()); - queue_ = null; - } - return queueBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.CreateQueueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.CreateQueueRequest) - private static final com.google.cloud.tasks.v2beta2.CreateQueueRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.CreateQueueRequest(); - } - - public static com.google.cloud.tasks.v2beta2.CreateQueueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateQueueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.CreateQueueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequestOrBuilder.java deleted file mode 100644 index 9676f059..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequestOrBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2020 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; - -public interface CreateQueueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.CreateQueueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The location name in which the queue will be created.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * The list of allowed locations can be obtained by calling Cloud
-   * Tasks' implementation of
-   * [ListLocations][google.cloud.location.Locations.ListLocations].
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The location name in which the queue will be created.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * The list of allowed locations can be obtained by calling Cloud
-   * Tasks' implementation of
-   * [ListLocations][google.cloud.location.Locations.ListLocations].
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The queue to create.
-   * [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as an existing queue.
-   * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the queue field is set. - */ - boolean hasQueue(); - /** - * - * - *
-   * Required. The queue to create.
-   * [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as an existing queue.
-   * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The queue. - */ - com.google.cloud.tasks.v2beta2.Queue getQueue(); - /** - * - * - *
-   * Required. The queue to create.
-   * [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as an existing queue.
-   * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.tasks.v2beta2.QueueOrBuilder getQueueOrBuilder(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequest.java deleted file mode 100644 index 3e284482..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequest.java +++ /dev/null @@ -1,1450 +0,0 @@ -/* - * Copyright 2020 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; - -/** - * - * - *
- * Request message for [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.CreateTaskRequest} - */ -public final class CreateTaskRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.CreateTaskRequest) - CreateTaskRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateTaskRequest.newBuilder() to construct. - private CreateTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateTaskRequest() { - parent_ = ""; - responseView_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateTaskRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_CreateTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_CreateTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.CreateTaskRequest.class, - com.google.cloud.tasks.v2beta2.CreateTaskRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * The queue must already exist.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * The queue must already exist.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TASK_FIELD_NUMBER = 2; - private com.google.cloud.tasks.v2beta2.Task task_; - /** - * - * - *
-   * Required. The task to add.
-   * Task names have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-   * The user can optionally specify a task [name][google.cloud.tasks.v2beta2.Task.name]. If a
-   * name is not specified then the system will generate a random
-   * unique task id, which will be set in the task returned in the
-   * [response][google.cloud.tasks.v2beta2.Task.name].
-   * If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not set or is in the
-   * past then Cloud Tasks will set it to the current time.
-   * Task De-duplication:
-   * Explicitly specifying a task ID enables task de-duplication.  If
-   * a task's ID is identical to that of an existing task or a task
-   * that was deleted or completed recently then the call will fail
-   * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-   * If the task's queue was created using Cloud Tasks, then another task with
-   * the same name can't be created for ~1hour after the original task was
-   * deleted or completed. If the task's queue was created using queue.yaml or
-   * queue.xml, then another task with the same name can't be created
-   * for ~9days after the original task was deleted or completed.
-   * Because there is an extra lookup cost to identify duplicate task
-   * names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] calls have significantly
-   * increased latency. Using hashed strings for the task id or for
-   * the prefix of the task id is recommended. Choosing task ids that
-   * are sequential or have sequential prefixes, for example using a
-   * timestamp, causes an increase in latency and error rates in all
-   * task commands. The infrastructure relies on an approximately
-   * uniform distribution of task ids to store and serve tasks
-   * efficiently.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the task field is set. - */ - @java.lang.Override - public boolean hasTask() { - return task_ != null; - } - /** - * - * - *
-   * Required. The task to add.
-   * Task names have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-   * The user can optionally specify a task [name][google.cloud.tasks.v2beta2.Task.name]. If a
-   * name is not specified then the system will generate a random
-   * unique task id, which will be set in the task returned in the
-   * [response][google.cloud.tasks.v2beta2.Task.name].
-   * If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not set or is in the
-   * past then Cloud Tasks will set it to the current time.
-   * Task De-duplication:
-   * Explicitly specifying a task ID enables task de-duplication.  If
-   * a task's ID is identical to that of an existing task or a task
-   * that was deleted or completed recently then the call will fail
-   * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-   * If the task's queue was created using Cloud Tasks, then another task with
-   * the same name can't be created for ~1hour after the original task was
-   * deleted or completed. If the task's queue was created using queue.yaml or
-   * queue.xml, then another task with the same name can't be created
-   * for ~9days after the original task was deleted or completed.
-   * Because there is an extra lookup cost to identify duplicate task
-   * names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] calls have significantly
-   * increased latency. Using hashed strings for the task id or for
-   * the prefix of the task id is recommended. Choosing task ids that
-   * are sequential or have sequential prefixes, for example using a
-   * timestamp, causes an increase in latency and error rates in all
-   * task commands. The infrastructure relies on an approximately
-   * uniform distribution of task ids to store and serve tasks
-   * efficiently.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @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_; - } - /** - * - * - *
-   * Required. The task to add.
-   * Task names have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-   * The user can optionally specify a task [name][google.cloud.tasks.v2beta2.Task.name]. If a
-   * name is not specified then the system will generate a random
-   * unique task id, which will be set in the task returned in the
-   * [response][google.cloud.tasks.v2beta2.Task.name].
-   * If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not set or is in the
-   * past then Cloud Tasks will set it to the current time.
-   * Task De-duplication:
-   * Explicitly specifying a task ID enables task de-duplication.  If
-   * a task's ID is identical to that of an existing task or a task
-   * that was deleted or completed recently then the call will fail
-   * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-   * If the task's queue was created using Cloud Tasks, then another task with
-   * the same name can't be created for ~1hour after the original task was
-   * deleted or completed. If the task's queue was created using queue.yaml or
-   * queue.xml, then another task with the same name can't be created
-   * for ~9days after the original task was deleted or completed.
-   * Because there is an extra lookup cost to identify duplicate task
-   * names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] calls have significantly
-   * increased latency. Using hashed strings for the task id or for
-   * the prefix of the task id is recommended. Choosing task ids that
-   * are sequential or have sequential prefixes, for example using a
-   * timestamp, causes an increase in latency and error rates in all
-   * task commands. The infrastructure relies on an approximately
-   * uniform distribution of task ids to store and serve tasks
-   * efficiently.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.TaskOrBuilder getTaskOrBuilder() { - return getTask(); - } - - public static final int RESPONSE_VIEW_FIELD_NUMBER = 3; - private int responseView_; - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 3; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 3; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta2.Task.View result = - com.google.cloud.tasks.v2beta2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta2.Task.View.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (task_ != null) { - output.writeMessage(2, getTask()); - } - if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - output.writeEnum(3, responseView_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (task_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTask()); - } - if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, responseView_); - } - 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.CreateTaskRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.CreateTaskRequest other = - (com.google.cloud.tasks.v2beta2.CreateTaskRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasTask() != other.hasTask()) return false; - if (hasTask()) { - if (!getTask().equals(other.getTask())) return false; - } - if (responseView_ != other.responseView_) return false; - if (!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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasTask()) { - hash = (37 * hash) + TASK_FIELD_NUMBER; - hash = (53 * hash) + getTask().hashCode(); - } - hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; - hash = (53 * hash) + responseView_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.CreateTaskRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.CreateTaskRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.CreateTaskRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.CreateTaskRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.CreateTaskRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.CreateTaskRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.CreateTaskRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.CreateTaskRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.CreateTaskRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.CreateTaskRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.CreateTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.CreateTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta2.CreateTaskRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.CreateTaskRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.CreateTaskRequest) - com.google.cloud.tasks.v2beta2.CreateTaskRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_CreateTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_CreateTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.CreateTaskRequest.class, - com.google.cloud.tasks.v2beta2.CreateTaskRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.CreateTaskRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (taskBuilder_ == null) { - task_ = null; - } else { - task_ = null; - taskBuilder_ = null; - } - responseView_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_CreateTaskRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.CreateTaskRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.CreateTaskRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.CreateTaskRequest build() { - com.google.cloud.tasks.v2beta2.CreateTaskRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.CreateTaskRequest buildPartial() { - com.google.cloud.tasks.v2beta2.CreateTaskRequest result = - new com.google.cloud.tasks.v2beta2.CreateTaskRequest(this); - result.parent_ = parent_; - if (taskBuilder_ == null) { - result.task_ = task_; - } else { - result.task_ = taskBuilder_.build(); - } - result.responseView_ = responseView_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.CreateTaskRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta2.CreateTaskRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.CreateTaskRequest other) { - if (other == com.google.cloud.tasks.v2beta2.CreateTaskRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasTask()) { - mergeTask(other.getTask()); - } - if (other.responseView_ != 0) { - setResponseViewValue(other.getResponseViewValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getTaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 24: - { - responseView_ = input.readEnum(); - - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * The queue must already exist.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * The queue must already exist.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * The queue must already exist.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * The queue must already exist.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * The queue must already exist.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.cloud.tasks.v2beta2.Task task_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.Task, - com.google.cloud.tasks.v2beta2.Task.Builder, - com.google.cloud.tasks.v2beta2.TaskOrBuilder> - taskBuilder_; - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2beta2.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2beta2.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or completed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or completed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or completed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the task field is set. - */ - public boolean hasTask() { - return taskBuilder_ != null || task_ != null; - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2beta2.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2beta2.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or completed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or completed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or completed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @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(); - } - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2beta2.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2beta2.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or completed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or completed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or completed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTask(com.google.cloud.tasks.v2beta2.Task value) { - if (taskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - task_ = value; - onChanged(); - } else { - taskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2beta2.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2beta2.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or completed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or completed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or completed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTask(com.google.cloud.tasks.v2beta2.Task.Builder builderForValue) { - if (taskBuilder_ == null) { - task_ = builderForValue.build(); - onChanged(); - } else { - taskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2beta2.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2beta2.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or completed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or completed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or completed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTask(com.google.cloud.tasks.v2beta2.Task value) { - if (taskBuilder_ == null) { - if (task_ != null) { - task_ = - com.google.cloud.tasks.v2beta2.Task.newBuilder(task_).mergeFrom(value).buildPartial(); - } else { - task_ = value; - } - onChanged(); - } else { - taskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2beta2.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2beta2.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or completed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or completed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or completed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTask() { - if (taskBuilder_ == null) { - task_ = null; - onChanged(); - } else { - task_ = null; - taskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2beta2.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2beta2.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or completed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or completed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or completed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.tasks.v2beta2.Task.Builder getTaskBuilder() { - - onChanged(); - return getTaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2beta2.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2beta2.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or completed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or completed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or completed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - 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_; - } - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2beta2.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2beta2.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or completed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or completed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or completed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - 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_; - } - - private int responseView_ = 0; - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 3; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 3; - * - * @param value The enum numeric value on the wire for responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseViewValue(int value) { - - responseView_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 3; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta2.Task.View result = - com.google.cloud.tasks.v2beta2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta2.Task.View.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 3; - * - * @param value The responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseView(com.google.cloud.tasks.v2beta2.Task.View value) { - if (value == null) { - throw new NullPointerException(); - } - - responseView_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 3; - * - * @return This builder for chaining. - */ - public Builder clearResponseView() { - - responseView_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.CreateTaskRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.CreateTaskRequest) - private static final com.google.cloud.tasks.v2beta2.CreateTaskRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.CreateTaskRequest(); - } - - public static com.google.cloud.tasks.v2beta2.CreateTaskRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTaskRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.CreateTaskRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequestOrBuilder.java deleted file mode 100644 index efb3f667..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequestOrBuilder.java +++ /dev/null @@ -1,220 +0,0 @@ -/* - * Copyright 2020 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; - -public interface CreateTaskRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.CreateTaskRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * The queue must already exist.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * The queue must already exist.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The task to add.
-   * Task names have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-   * The user can optionally specify a task [name][google.cloud.tasks.v2beta2.Task.name]. If a
-   * name is not specified then the system will generate a random
-   * unique task id, which will be set in the task returned in the
-   * [response][google.cloud.tasks.v2beta2.Task.name].
-   * If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not set or is in the
-   * past then Cloud Tasks will set it to the current time.
-   * Task De-duplication:
-   * Explicitly specifying a task ID enables task de-duplication.  If
-   * a task's ID is identical to that of an existing task or a task
-   * that was deleted or completed recently then the call will fail
-   * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-   * If the task's queue was created using Cloud Tasks, then another task with
-   * the same name can't be created for ~1hour after the original task was
-   * deleted or completed. If the task's queue was created using queue.yaml or
-   * queue.xml, then another task with the same name can't be created
-   * for ~9days after the original task was deleted or completed.
-   * Because there is an extra lookup cost to identify duplicate task
-   * names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] calls have significantly
-   * increased latency. Using hashed strings for the task id or for
-   * the prefix of the task id is recommended. Choosing task ids that
-   * are sequential or have sequential prefixes, for example using a
-   * timestamp, causes an increase in latency and error rates in all
-   * task commands. The infrastructure relies on an approximately
-   * uniform distribution of task ids to store and serve tasks
-   * efficiently.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the task field is set. - */ - boolean hasTask(); - /** - * - * - *
-   * Required. The task to add.
-   * Task names have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-   * The user can optionally specify a task [name][google.cloud.tasks.v2beta2.Task.name]. If a
-   * name is not specified then the system will generate a random
-   * unique task id, which will be set in the task returned in the
-   * [response][google.cloud.tasks.v2beta2.Task.name].
-   * If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not set or is in the
-   * past then Cloud Tasks will set it to the current time.
-   * Task De-duplication:
-   * Explicitly specifying a task ID enables task de-duplication.  If
-   * a task's ID is identical to that of an existing task or a task
-   * that was deleted or completed recently then the call will fail
-   * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-   * If the task's queue was created using Cloud Tasks, then another task with
-   * the same name can't be created for ~1hour after the original task was
-   * deleted or completed. If the task's queue was created using queue.yaml or
-   * queue.xml, then another task with the same name can't be created
-   * for ~9days after the original task was deleted or completed.
-   * Because there is an extra lookup cost to identify duplicate task
-   * names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] calls have significantly
-   * increased latency. Using hashed strings for the task id or for
-   * the prefix of the task id is recommended. Choosing task ids that
-   * are sequential or have sequential prefixes, for example using a
-   * timestamp, causes an increase in latency and error rates in all
-   * task commands. The infrastructure relies on an approximately
-   * uniform distribution of task ids to store and serve tasks
-   * efficiently.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The task. - */ - com.google.cloud.tasks.v2beta2.Task getTask(); - /** - * - * - *
-   * Required. The task to add.
-   * Task names have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-   * The user can optionally specify a task [name][google.cloud.tasks.v2beta2.Task.name]. If a
-   * name is not specified then the system will generate a random
-   * unique task id, which will be set in the task returned in the
-   * [response][google.cloud.tasks.v2beta2.Task.name].
-   * If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not set or is in the
-   * past then Cloud Tasks will set it to the current time.
-   * Task De-duplication:
-   * Explicitly specifying a task ID enables task de-duplication.  If
-   * a task's ID is identical to that of an existing task or a task
-   * that was deleted or completed recently then the call will fail
-   * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-   * If the task's queue was created using Cloud Tasks, then another task with
-   * the same name can't be created for ~1hour after the original task was
-   * deleted or completed. If the task's queue was created using queue.yaml or
-   * queue.xml, then another task with the same name can't be created
-   * for ~9days after the original task was deleted or completed.
-   * Because there is an extra lookup cost to identify duplicate task
-   * names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] calls have significantly
-   * increased latency. Using hashed strings for the task id or for
-   * the prefix of the task id is recommended. Choosing task ids that
-   * are sequential or have sequential prefixes, for example using a
-   * timestamp, causes an increase in latency and error rates in all
-   * task commands. The infrastructure relies on an approximately
-   * uniform distribution of task ids to store and serve tasks
-   * efficiently.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.tasks.v2beta2.TaskOrBuilder getTaskOrBuilder(); - - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 3; - * - * @return The enum numeric value on the wire for responseView. - */ - int getResponseViewValue(); - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 3; - * - * @return The responseView. - */ - com.google.cloud.tasks.v2beta2.Task.View getResponseView(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequest.java deleted file mode 100644 index e0ce6a86..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequest.java +++ /dev/null @@ -1,636 +0,0 @@ -/* - * Copyright 2020 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; - -/** - * - * - *
- * Request message for [DeleteQueue][google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.DeleteQueueRequest} - */ -public final class DeleteQueueRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.DeleteQueueRequest) - DeleteQueueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteQueueRequest.newBuilder() to construct. - private DeleteQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteQueueRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteQueueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_DeleteQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_DeleteQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.DeleteQueueRequest.class, - com.google.cloud.tasks.v2beta2.DeleteQueueRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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.DeleteQueueRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.DeleteQueueRequest other = - (com.google.cloud.tasks.v2beta2.DeleteQueueRequest) obj; - - if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.DeleteQueueRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.DeleteQueueRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.DeleteQueueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.DeleteQueueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.DeleteQueueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.DeleteQueueRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.DeleteQueueRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.DeleteQueueRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.DeleteQueueRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.DeleteQueueRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.DeleteQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.DeleteQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta2.DeleteQueueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [DeleteQueue][google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.DeleteQueueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.DeleteQueueRequest) - com.google.cloud.tasks.v2beta2.DeleteQueueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_DeleteQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_DeleteQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.DeleteQueueRequest.class, - com.google.cloud.tasks.v2beta2.DeleteQueueRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.DeleteQueueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_DeleteQueueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.DeleteQueueRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.DeleteQueueRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.DeleteQueueRequest build() { - com.google.cloud.tasks.v2beta2.DeleteQueueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.DeleteQueueRequest buildPartial() { - com.google.cloud.tasks.v2beta2.DeleteQueueRequest result = - new com.google.cloud.tasks.v2beta2.DeleteQueueRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.DeleteQueueRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta2.DeleteQueueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.DeleteQueueRequest other) { - if (other == com.google.cloud.tasks.v2beta2.DeleteQueueRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.DeleteQueueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.DeleteQueueRequest) - private static final com.google.cloud.tasks.v2beta2.DeleteQueueRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.DeleteQueueRequest(); - } - - public static com.google.cloud.tasks.v2beta2.DeleteQueueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteQueueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.DeleteQueueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequestOrBuilder.java deleted file mode 100644 index 92e8ff23..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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; - -public interface DeleteQueueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.DeleteQueueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequest.java deleted file mode 100644 index dfc9f8fd..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequest.java +++ /dev/null @@ -1,638 +0,0 @@ -/* - * Copyright 2020 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; - -/** - * - * - *
- * Request message for deleting a task using
- * [DeleteTask][google.cloud.tasks.v2beta2.CloudTasks.DeleteTask].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.DeleteTaskRequest} - */ -public final class DeleteTaskRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.DeleteTaskRequest) - DeleteTaskRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteTaskRequest.newBuilder() to construct. - private DeleteTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteTaskRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteTaskRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_DeleteTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_DeleteTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.DeleteTaskRequest.class, - com.google.cloud.tasks.v2beta2.DeleteTaskRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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.DeleteTaskRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.DeleteTaskRequest other = - (com.google.cloud.tasks.v2beta2.DeleteTaskRequest) obj; - - if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.DeleteTaskRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.DeleteTaskRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.DeleteTaskRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.DeleteTaskRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.DeleteTaskRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.DeleteTaskRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.DeleteTaskRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.DeleteTaskRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.DeleteTaskRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.DeleteTaskRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.DeleteTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.DeleteTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta2.DeleteTaskRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for deleting a task using
-   * [DeleteTask][google.cloud.tasks.v2beta2.CloudTasks.DeleteTask].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.DeleteTaskRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.DeleteTaskRequest) - com.google.cloud.tasks.v2beta2.DeleteTaskRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_DeleteTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_DeleteTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.DeleteTaskRequest.class, - com.google.cloud.tasks.v2beta2.DeleteTaskRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.DeleteTaskRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_DeleteTaskRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.DeleteTaskRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.DeleteTaskRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.DeleteTaskRequest build() { - com.google.cloud.tasks.v2beta2.DeleteTaskRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.DeleteTaskRequest buildPartial() { - com.google.cloud.tasks.v2beta2.DeleteTaskRequest result = - new com.google.cloud.tasks.v2beta2.DeleteTaskRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.DeleteTaskRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta2.DeleteTaskRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.DeleteTaskRequest other) { - if (other == com.google.cloud.tasks.v2beta2.DeleteTaskRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.DeleteTaskRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.DeleteTaskRequest) - private static final com.google.cloud.tasks.v2beta2.DeleteTaskRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.DeleteTaskRequest(); - } - - public static com.google.cloud.tasks.v2beta2.DeleteTaskRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTaskRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.DeleteTaskRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequestOrBuilder.java deleted file mode 100644 index f57510e9..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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; - -public interface DeleteTaskRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.DeleteTaskRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequest.java deleted file mode 100644 index 304e10c7..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequest.java +++ /dev/null @@ -1,942 +0,0 @@ -/* - * Copyright 2020 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; - -/** - * - * - *
- * Request message for [GetQueue][google.cloud.tasks.v2beta2.CloudTasks.GetQueue].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.GetQueueRequest} - */ -public final class GetQueueRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.GetQueueRequest) - GetQueueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetQueueRequest.newBuilder() to construct. - private GetQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetQueueRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetQueueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_GetQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_GetQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.GetQueueRequest.class, - com.google.cloud.tasks.v2beta2.GetQueueRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The resource name of the queue. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The resource name of the queue. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int READ_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask readMask_; - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the readMask field is set. - */ - @java.lang.Override - public boolean hasReadMask() { - return readMask_ != null; - } - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The readMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getReadMask() { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); - } - - 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(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (readMask_ != null) { - output.writeMessage(2, getReadMask()); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (readMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadMask()); - } - 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.GetQueueRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.GetQueueRequest other = - (com.google.cloud.tasks.v2beta2.GetQueueRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (hasReadMask() != other.hasReadMask()) return false; - if (hasReadMask()) { - if (!getReadMask().equals(other.getReadMask())) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasReadMask()) { - hash = (37 * hash) + READ_MASK_FIELD_NUMBER; - hash = (53 * hash) + getReadMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.GetQueueRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.GetQueueRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.GetQueueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.GetQueueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.GetQueueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.GetQueueRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.GetQueueRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.GetQueueRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.GetQueueRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.GetQueueRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.GetQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.GetQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta2.GetQueueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [GetQueue][google.cloud.tasks.v2beta2.CloudTasks.GetQueue].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.GetQueueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.GetQueueRequest) - com.google.cloud.tasks.v2beta2.GetQueueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_GetQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_GetQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.GetQueueRequest.class, - com.google.cloud.tasks.v2beta2.GetQueueRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.GetQueueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; - readMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_GetQueueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.GetQueueRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.GetQueueRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.GetQueueRequest build() { - com.google.cloud.tasks.v2beta2.GetQueueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.GetQueueRequest buildPartial() { - com.google.cloud.tasks.v2beta2.GetQueueRequest result = - new com.google.cloud.tasks.v2beta2.GetQueueRequest(this); - result.name_ = name_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.GetQueueRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta2.GetQueueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.GetQueueRequest other) { - if (other == com.google.cloud.tasks.v2beta2.GetQueueRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasReadMask()) { - mergeReadMask(other.getReadMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The resource name of the queue. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the queue. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the queue. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource name of the queue. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource name of the queue. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.FieldMask readMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - readMaskBuilder_; - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the readMask field is set. - */ - public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The readMask. - */ - public com.google.protobuf.FieldMask getReadMask() { - if (readMaskBuilder_ == null) { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } else { - return readMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setReadMask(com.google.protobuf.FieldMask value) { - if (readMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - readMask_ = value; - onChanged(); - } else { - readMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (readMaskBuilder_ == null) { - readMask_ = builderForValue.build(); - onChanged(); - } else { - readMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeReadMask(com.google.protobuf.FieldMask value) { - if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); - } else { - readMask_ = value; - } - onChanged(); - } else { - readMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; - readMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - - onChanged(); - return getReadMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - if (readMaskBuilder_ != null) { - return readMaskBuilder_.getMessageOrBuilder(); - } else { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getReadMaskFieldBuilder() { - if (readMaskBuilder_ == null) { - readMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), getParentForChildren(), isClean()); - readMask_ = null; - } - return readMaskBuilder_; - } - - @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.GetQueueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.GetQueueRequest) - private static final com.google.cloud.tasks.v2beta2.GetQueueRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.GetQueueRequest(); - } - - public static com.google.cloud.tasks.v2beta2.GetQueueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetQueueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.GetQueueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequestOrBuilder.java deleted file mode 100644 index 8a94e8ad..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequestOrBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2020 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; - -public interface GetQueueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.GetQueueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the queue. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the queue. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the readMask field is set. - */ - boolean hasReadMask(); - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The readMask. - */ - com.google.protobuf.FieldMask getReadMask(); - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequest.java deleted file mode 100644 index f066d064..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequest.java +++ /dev/null @@ -1,847 +0,0 @@ -/* - * Copyright 2020 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; - -/** - * - * - *
- * Request message for getting a task using [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.GetTaskRequest} - */ -public final class GetTaskRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.GetTaskRequest) - GetTaskRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetTaskRequest.newBuilder() to construct. - private GetTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetTaskRequest() { - name_ = ""; - responseView_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetTaskRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_GetTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_GetTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.GetTaskRequest.class, - com.google.cloud.tasks.v2beta2.GetTaskRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESPONSE_VIEW_FIELD_NUMBER = 2; - private int responseView_; - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta2.Task.View result = - com.google.cloud.tasks.v2beta2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta2.Task.View.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - output.writeEnum(2, responseView_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, responseView_); - } - 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.GetTaskRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.GetTaskRequest other = - (com.google.cloud.tasks.v2beta2.GetTaskRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (responseView_ != other.responseView_) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; - hash = (53 * hash) + responseView_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.GetTaskRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.GetTaskRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.GetTaskRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.GetTaskRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.GetTaskRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.GetTaskRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.GetTaskRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.GetTaskRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.GetTaskRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.GetTaskRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.GetTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.GetTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta2.GetTaskRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for getting a task using [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.GetTaskRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.GetTaskRequest) - com.google.cloud.tasks.v2beta2.GetTaskRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_GetTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_GetTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.GetTaskRequest.class, - com.google.cloud.tasks.v2beta2.GetTaskRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.GetTaskRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - responseView_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_GetTaskRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.GetTaskRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.GetTaskRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.GetTaskRequest build() { - com.google.cloud.tasks.v2beta2.GetTaskRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.GetTaskRequest buildPartial() { - com.google.cloud.tasks.v2beta2.GetTaskRequest result = - new com.google.cloud.tasks.v2beta2.GetTaskRequest(this); - result.name_ = name_; - result.responseView_ = responseView_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.GetTaskRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta2.GetTaskRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.GetTaskRequest other) { - if (other == com.google.cloud.tasks.v2beta2.GetTaskRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.responseView_ != 0) { - setResponseViewValue(other.getResponseViewValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - responseView_ = input.readEnum(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int responseView_ = 0; - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @param value The enum numeric value on the wire for responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseViewValue(int value) { - - responseView_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta2.Task.View result = - com.google.cloud.tasks.v2beta2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta2.Task.View.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @param value The responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseView(com.google.cloud.tasks.v2beta2.Task.View value) { - if (value == null) { - throw new NullPointerException(); - } - - responseView_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @return This builder for chaining. - */ - public Builder clearResponseView() { - - responseView_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.GetTaskRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.GetTaskRequest) - private static final com.google.cloud.tasks.v2beta2.GetTaskRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.GetTaskRequest(); - } - - public static com.google.cloud.tasks.v2beta2.GetTaskRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTaskRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.GetTaskRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequestOrBuilder.java deleted file mode 100644 index 627e5389..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequestOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2020 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; - -public interface GetTaskRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.GetTaskRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - int getResponseViewValue(); - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @return The responseView. - */ - com.google.cloud.tasks.v2beta2.Task.View getResponseView(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/HttpMethod.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/HttpMethod.java deleted file mode 100644 index d06ae3b1..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/HttpMethod.java +++ /dev/null @@ -1,242 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta2; - -/** - * - * - *
- * The HTTP method used to execute the task.
- * 
- * - * Protobuf enum {@code google.cloud.tasks.v2beta2.HttpMethod} - */ -public enum HttpMethod implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * HTTP method unspecified
-   * 
- * - * HTTP_METHOD_UNSPECIFIED = 0; - */ - HTTP_METHOD_UNSPECIFIED(0), - /** - * - * - *
-   * HTTP POST
-   * 
- * - * POST = 1; - */ - POST(1), - /** - * - * - *
-   * HTTP GET
-   * 
- * - * GET = 2; - */ - GET(2), - /** - * - * - *
-   * HTTP HEAD
-   * 
- * - * HEAD = 3; - */ - HEAD(3), - /** - * - * - *
-   * HTTP PUT
-   * 
- * - * PUT = 4; - */ - PUT(4), - /** - * - * - *
-   * HTTP DELETE
-   * 
- * - * DELETE = 5; - */ - DELETE(5), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * HTTP method unspecified
-   * 
- * - * HTTP_METHOD_UNSPECIFIED = 0; - */ - public static final int HTTP_METHOD_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * HTTP POST
-   * 
- * - * POST = 1; - */ - public static final int POST_VALUE = 1; - /** - * - * - *
-   * HTTP GET
-   * 
- * - * GET = 2; - */ - public static final int GET_VALUE = 2; - /** - * - * - *
-   * HTTP HEAD
-   * 
- * - * HEAD = 3; - */ - public static final int HEAD_VALUE = 3; - /** - * - * - *
-   * HTTP PUT
-   * 
- * - * PUT = 4; - */ - public static final int PUT_VALUE = 4; - /** - * - * - *
-   * HTTP DELETE
-   * 
- * - * DELETE = 5; - */ - public static final int DELETE_VALUE = 5; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static HttpMethod valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static HttpMethod forNumber(int value) { - switch (value) { - case 0: - return HTTP_METHOD_UNSPECIFIED; - case 1: - return POST; - case 2: - return GET; - case 3: - return HEAD; - case 4: - return PUT; - case 5: - return DELETE; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HttpMethod findValueByNumber(int number) { - return HttpMethod.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.TargetProto.getDescriptor().getEnumTypes().get(0); - } - - private static final HttpMethod[] VALUES = values(); - - public static HttpMethod valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private HttpMethod(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.tasks.v2beta2.HttpMethod) -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequest.java deleted file mode 100644 index 4800eb16..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequest.java +++ /dev/null @@ -1,1728 +0,0 @@ -/* - * Copyright 2020 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; - -/** - * - * - *
- * Request message for leasing tasks using [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.LeaseTasksRequest} - */ -public final class LeaseTasksRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.LeaseTasksRequest) - LeaseTasksRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use LeaseTasksRequest.newBuilder() to construct. - private LeaseTasksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private LeaseTasksRequest() { - parent_ = ""; - responseView_ = 0; - filter_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new LeaseTasksRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_LeaseTasksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_LeaseTasksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.LeaseTasksRequest.class, - com.google.cloud.tasks.v2beta2.LeaseTasksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAX_TASKS_FIELD_NUMBER = 2; - private int maxTasks_; - /** - * - * - *
-   * The maximum number of tasks to lease.
-   * The system will make a best effort to return as close to as
-   * `max_tasks` as possible.
-   * The largest that `max_tasks` can be is 1000.
-   * The maximum total size of a [lease tasks response][google.cloud.tasks.v2beta2.LeaseTasksResponse] is
-   * 32 MB. If the sum of all task sizes requested reaches this limit,
-   * fewer tasks than requested are returned.
-   * 
- * - * int32 max_tasks = 2; - * - * @return The maxTasks. - */ - @java.lang.Override - public int getMaxTasks() { - return maxTasks_; - } - - public static final int LEASE_DURATION_FIELD_NUMBER = 3; - private com.google.protobuf.Duration leaseDuration_; - /** - * - * - *
-   * Required. The duration of the lease.
-   * Each task returned in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will
-   * have its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] set to the current
-   * time plus the `lease_duration`. The task is leased until its
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]; thus, the task will not be
-   * returned to another [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call
-   * before its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
-   * After the worker has successfully finished the work associated
-   * with the task, the worker must call via
-   * [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] before the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. Otherwise the task will be
-   * returned to a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call so
-   * that another worker can retry it.
-   * The maximum lease duration is 1 week.
-   * `lease_duration` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the leaseDuration field is set. - */ - @java.lang.Override - public boolean hasLeaseDuration() { - return leaseDuration_ != null; - } - /** - * - * - *
-   * Required. The duration of the lease.
-   * Each task returned in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will
-   * have its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] set to the current
-   * time plus the `lease_duration`. The task is leased until its
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]; thus, the task will not be
-   * returned to another [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call
-   * before its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
-   * After the worker has successfully finished the work associated
-   * with the task, the worker must call via
-   * [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] before the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. Otherwise the task will be
-   * returned to a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call so
-   * that another worker can retry it.
-   * The maximum lease duration is 1 week.
-   * `lease_duration` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The leaseDuration. - */ - @java.lang.Override - public com.google.protobuf.Duration getLeaseDuration() { - return leaseDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : leaseDuration_; - } - /** - * - * - *
-   * Required. The duration of the lease.
-   * Each task returned in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will
-   * have its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] set to the current
-   * time plus the `lease_duration`. The task is leased until its
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]; thus, the task will not be
-   * returned to another [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call
-   * before its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
-   * After the worker has successfully finished the work associated
-   * with the task, the worker must call via
-   * [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] before the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. Otherwise the task will be
-   * returned to a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call so
-   * that another worker can retry it.
-   * The maximum lease duration is 1 week.
-   * `lease_duration` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getLeaseDurationOrBuilder() { - return getLeaseDuration(); - } - - public static final int RESPONSE_VIEW_FIELD_NUMBER = 4; - private int responseView_; - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 4; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 4; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta2.Task.View result = - com.google.cloud.tasks.v2beta2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta2.Task.View.UNRECOGNIZED : result; - } - - public static final int FILTER_FIELD_NUMBER = 5; - private volatile java.lang.Object filter_; - /** - * - * - *
-   * `filter` can be used to specify a subset of tasks to lease.
-   * When `filter` is set to `tag=<my-tag>` then the
-   * [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will contain only tasks whose
-   * [tag][google.cloud.tasks.v2beta2.PullMessage.tag] is equal to `<my-tag>`. `<my-tag>` must be
-   * less than 500 characters.
-   * When `filter` is set to `tag_function=oldest_tag()`, only tasks which have
-   * the same tag as the task with the oldest
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be returned.
-   * Grammar Syntax:
-   * * `filter = "tag=" tag | "tag_function=" function`
-   * * `tag = string`
-   * * `function = "oldest_tag()"`
-   * The `oldest_tag()` function returns tasks which have the same tag as the
-   * oldest task (ordered by schedule time).
-   * SDK compatibility: Although the SDK allows tags to be either
-   * string or
-   * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-   * only UTF-8 encoded tags can be used in Cloud Tasks. Tag which
-   * aren't UTF-8 encoded can't be used in the
-   * [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter] and the task's
-   * [tag][google.cloud.tasks.v2beta2.PullMessage.tag] will be displayed as empty in Cloud Tasks.
-   * 
- * - * string filter = 5; - * - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - * - * - *
-   * `filter` can be used to specify a subset of tasks to lease.
-   * When `filter` is set to `tag=<my-tag>` then the
-   * [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will contain only tasks whose
-   * [tag][google.cloud.tasks.v2beta2.PullMessage.tag] is equal to `<my-tag>`. `<my-tag>` must be
-   * less than 500 characters.
-   * When `filter` is set to `tag_function=oldest_tag()`, only tasks which have
-   * the same tag as the task with the oldest
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be returned.
-   * Grammar Syntax:
-   * * `filter = "tag=" tag | "tag_function=" function`
-   * * `tag = string`
-   * * `function = "oldest_tag()"`
-   * The `oldest_tag()` function returns tasks which have the same tag as the
-   * oldest task (ordered by schedule time).
-   * SDK compatibility: Although the SDK allows tags to be either
-   * string or
-   * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-   * only UTF-8 encoded tags can be used in Cloud Tasks. Tag which
-   * aren't UTF-8 encoded can't be used in the
-   * [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter] and the task's
-   * [tag][google.cloud.tasks.v2beta2.PullMessage.tag] will be displayed as empty in Cloud Tasks.
-   * 
- * - * string filter = 5; - * - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (maxTasks_ != 0) { - output.writeInt32(2, maxTasks_); - } - if (leaseDuration_ != null) { - output.writeMessage(3, getLeaseDuration()); - } - if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - output.writeEnum(4, responseView_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filter_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (maxTasks_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxTasks_); - } - if (leaseDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLeaseDuration()); - } - if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, responseView_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filter_); - } - 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.LeaseTasksRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.LeaseTasksRequest other = - (com.google.cloud.tasks.v2beta2.LeaseTasksRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getMaxTasks() != other.getMaxTasks()) return false; - if (hasLeaseDuration() != other.hasLeaseDuration()) return false; - if (hasLeaseDuration()) { - if (!getLeaseDuration().equals(other.getLeaseDuration())) return false; - } - if (responseView_ != other.responseView_) return false; - if (!getFilter().equals(other.getFilter())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + MAX_TASKS_FIELD_NUMBER; - hash = (53 * hash) + getMaxTasks(); - if (hasLeaseDuration()) { - hash = (37 * hash) + LEASE_DURATION_FIELD_NUMBER; - hash = (53 * hash) + getLeaseDuration().hashCode(); - } - hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; - hash = (53 * hash) + responseView_; - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.LeaseTasksRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.LeaseTasksRequest 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.LeaseTasksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.LeaseTasksRequest 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.LeaseTasksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.LeaseTasksRequest 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.LeaseTasksRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.LeaseTasksRequest 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.LeaseTasksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.LeaseTasksRequest 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.LeaseTasksRequest 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.LeaseTasksRequest 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.LeaseTasksRequest 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 leasing tasks using [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.LeaseTasksRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.LeaseTasksRequest) - com.google.cloud.tasks.v2beta2.LeaseTasksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_LeaseTasksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_LeaseTasksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.LeaseTasksRequest.class, - com.google.cloud.tasks.v2beta2.LeaseTasksRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.LeaseTasksRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - maxTasks_ = 0; - - if (leaseDurationBuilder_ == null) { - leaseDuration_ = null; - } else { - leaseDuration_ = null; - leaseDurationBuilder_ = null; - } - responseView_ = 0; - - filter_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_LeaseTasksRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.LeaseTasksRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.LeaseTasksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.LeaseTasksRequest build() { - com.google.cloud.tasks.v2beta2.LeaseTasksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.LeaseTasksRequest buildPartial() { - com.google.cloud.tasks.v2beta2.LeaseTasksRequest result = - new com.google.cloud.tasks.v2beta2.LeaseTasksRequest(this); - result.parent_ = parent_; - result.maxTasks_ = maxTasks_; - if (leaseDurationBuilder_ == null) { - result.leaseDuration_ = leaseDuration_; - } else { - result.leaseDuration_ = leaseDurationBuilder_.build(); - } - result.responseView_ = responseView_; - result.filter_ = filter_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.LeaseTasksRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta2.LeaseTasksRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.LeaseTasksRequest other) { - if (other == com.google.cloud.tasks.v2beta2.LeaseTasksRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getMaxTasks() != 0) { - setMaxTasks(other.getMaxTasks()); - } - if (other.hasLeaseDuration()) { - mergeLeaseDuration(other.getLeaseDuration()); - } - if (other.responseView_ != 0) { - setResponseViewValue(other.getResponseViewValue()); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - maxTasks_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - input.readMessage(getLeaseDurationFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 32: - { - responseView_ = input.readEnum(); - - break; - } // case 32 - case 42: - { - filter_ = input.readStringRequireUtf8(); - - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int maxTasks_; - /** - * - * - *
-     * The maximum number of tasks to lease.
-     * The system will make a best effort to return as close to as
-     * `max_tasks` as possible.
-     * The largest that `max_tasks` can be is 1000.
-     * The maximum total size of a [lease tasks response][google.cloud.tasks.v2beta2.LeaseTasksResponse] is
-     * 32 MB. If the sum of all task sizes requested reaches this limit,
-     * fewer tasks than requested are returned.
-     * 
- * - * int32 max_tasks = 2; - * - * @return The maxTasks. - */ - @java.lang.Override - public int getMaxTasks() { - return maxTasks_; - } - /** - * - * - *
-     * The maximum number of tasks to lease.
-     * The system will make a best effort to return as close to as
-     * `max_tasks` as possible.
-     * The largest that `max_tasks` can be is 1000.
-     * The maximum total size of a [lease tasks response][google.cloud.tasks.v2beta2.LeaseTasksResponse] is
-     * 32 MB. If the sum of all task sizes requested reaches this limit,
-     * fewer tasks than requested are returned.
-     * 
- * - * int32 max_tasks = 2; - * - * @param value The maxTasks to set. - * @return This builder for chaining. - */ - public Builder setMaxTasks(int value) { - - maxTasks_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of tasks to lease.
-     * The system will make a best effort to return as close to as
-     * `max_tasks` as possible.
-     * The largest that `max_tasks` can be is 1000.
-     * The maximum total size of a [lease tasks response][google.cloud.tasks.v2beta2.LeaseTasksResponse] is
-     * 32 MB. If the sum of all task sizes requested reaches this limit,
-     * fewer tasks than requested are returned.
-     * 
- * - * int32 max_tasks = 2; - * - * @return This builder for chaining. - */ - public Builder clearMaxTasks() { - - maxTasks_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Duration leaseDuration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - leaseDurationBuilder_; - /** - * - * - *
-     * Required. The duration of the lease.
-     * Each task returned in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will
-     * have its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] set to the current
-     * time plus the `lease_duration`. The task is leased until its
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]; thus, the task will not be
-     * returned to another [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call
-     * before its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
-     * After the worker has successfully finished the work associated
-     * with the task, the worker must call via
-     * [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] before the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. Otherwise the task will be
-     * returned to a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call so
-     * that another worker can retry it.
-     * The maximum lease duration is 1 week.
-     * `lease_duration` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the leaseDuration field is set. - */ - public boolean hasLeaseDuration() { - return leaseDurationBuilder_ != null || leaseDuration_ != null; - } - /** - * - * - *
-     * Required. The duration of the lease.
-     * Each task returned in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will
-     * have its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] set to the current
-     * time plus the `lease_duration`. The task is leased until its
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]; thus, the task will not be
-     * returned to another [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call
-     * before its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
-     * After the worker has successfully finished the work associated
-     * with the task, the worker must call via
-     * [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] before the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. Otherwise the task will be
-     * returned to a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call so
-     * that another worker can retry it.
-     * The maximum lease duration is 1 week.
-     * `lease_duration` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The leaseDuration. - */ - public com.google.protobuf.Duration getLeaseDuration() { - if (leaseDurationBuilder_ == null) { - return leaseDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : leaseDuration_; - } else { - return leaseDurationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The duration of the lease.
-     * Each task returned in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will
-     * have its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] set to the current
-     * time plus the `lease_duration`. The task is leased until its
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]; thus, the task will not be
-     * returned to another [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call
-     * before its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
-     * After the worker has successfully finished the work associated
-     * with the task, the worker must call via
-     * [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] before the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. Otherwise the task will be
-     * returned to a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call so
-     * that another worker can retry it.
-     * The maximum lease duration is 1 week.
-     * `lease_duration` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setLeaseDuration(com.google.protobuf.Duration value) { - if (leaseDurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - leaseDuration_ = value; - onChanged(); - } else { - leaseDurationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The duration of the lease.
-     * Each task returned in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will
-     * have its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] set to the current
-     * time plus the `lease_duration`. The task is leased until its
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]; thus, the task will not be
-     * returned to another [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call
-     * before its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
-     * After the worker has successfully finished the work associated
-     * with the task, the worker must call via
-     * [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] before the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. Otherwise the task will be
-     * returned to a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call so
-     * that another worker can retry it.
-     * The maximum lease duration is 1 week.
-     * `lease_duration` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setLeaseDuration(com.google.protobuf.Duration.Builder builderForValue) { - if (leaseDurationBuilder_ == null) { - leaseDuration_ = builderForValue.build(); - onChanged(); - } else { - leaseDurationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The duration of the lease.
-     * Each task returned in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will
-     * have its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] set to the current
-     * time plus the `lease_duration`. The task is leased until its
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]; thus, the task will not be
-     * returned to another [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call
-     * before its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
-     * After the worker has successfully finished the work associated
-     * with the task, the worker must call via
-     * [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] before the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. Otherwise the task will be
-     * returned to a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call so
-     * that another worker can retry it.
-     * The maximum lease duration is 1 week.
-     * `lease_duration` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeLeaseDuration(com.google.protobuf.Duration value) { - if (leaseDurationBuilder_ == null) { - if (leaseDuration_ != null) { - leaseDuration_ = - com.google.protobuf.Duration.newBuilder(leaseDuration_) - .mergeFrom(value) - .buildPartial(); - } else { - leaseDuration_ = value; - } - onChanged(); - } else { - leaseDurationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The duration of the lease.
-     * Each task returned in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will
-     * have its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] set to the current
-     * time plus the `lease_duration`. The task is leased until its
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]; thus, the task will not be
-     * returned to another [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call
-     * before its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
-     * After the worker has successfully finished the work associated
-     * with the task, the worker must call via
-     * [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] before the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. Otherwise the task will be
-     * returned to a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call so
-     * that another worker can retry it.
-     * The maximum lease duration is 1 week.
-     * `lease_duration` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearLeaseDuration() { - if (leaseDurationBuilder_ == null) { - leaseDuration_ = null; - onChanged(); - } else { - leaseDuration_ = null; - leaseDurationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The duration of the lease.
-     * Each task returned in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will
-     * have its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] set to the current
-     * time plus the `lease_duration`. The task is leased until its
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]; thus, the task will not be
-     * returned to another [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call
-     * before its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
-     * After the worker has successfully finished the work associated
-     * with the task, the worker must call via
-     * [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] before the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. Otherwise the task will be
-     * returned to a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call so
-     * that another worker can retry it.
-     * The maximum lease duration is 1 week.
-     * `lease_duration` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.Duration.Builder getLeaseDurationBuilder() { - - onChanged(); - return getLeaseDurationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The duration of the lease.
-     * Each task returned in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will
-     * have its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] set to the current
-     * time plus the `lease_duration`. The task is leased until its
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]; thus, the task will not be
-     * returned to another [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call
-     * before its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
-     * After the worker has successfully finished the work associated
-     * with the task, the worker must call via
-     * [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] before the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. Otherwise the task will be
-     * returned to a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call so
-     * that another worker can retry it.
-     * The maximum lease duration is 1 week.
-     * `lease_duration` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.DurationOrBuilder getLeaseDurationOrBuilder() { - if (leaseDurationBuilder_ != null) { - return leaseDurationBuilder_.getMessageOrBuilder(); - } else { - return leaseDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : leaseDuration_; - } - } - /** - * - * - *
-     * Required. The duration of the lease.
-     * Each task returned in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will
-     * have its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] set to the current
-     * time plus the `lease_duration`. The task is leased until its
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]; thus, the task will not be
-     * returned to another [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call
-     * before its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
-     * After the worker has successfully finished the work associated
-     * with the task, the worker must call via
-     * [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] before the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. Otherwise the task will be
-     * returned to a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call so
-     * that another worker can retry it.
-     * The maximum lease duration is 1 week.
-     * `lease_duration` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getLeaseDurationFieldBuilder() { - if (leaseDurationBuilder_ == null) { - leaseDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getLeaseDuration(), getParentForChildren(), isClean()); - leaseDuration_ = null; - } - return leaseDurationBuilder_; - } - - private int responseView_ = 0; - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 4; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 4; - * - * @param value The enum numeric value on the wire for responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseViewValue(int value) { - - responseView_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 4; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta2.Task.View result = - com.google.cloud.tasks.v2beta2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta2.Task.View.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 4; - * - * @param value The responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseView(com.google.cloud.tasks.v2beta2.Task.View value) { - if (value == null) { - throw new NullPointerException(); - } - - responseView_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 4; - * - * @return This builder for chaining. - */ - public Builder clearResponseView() { - - responseView_ = 0; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - * - * - *
-     * `filter` can be used to specify a subset of tasks to lease.
-     * When `filter` is set to `tag=<my-tag>` then the
-     * [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will contain only tasks whose
-     * [tag][google.cloud.tasks.v2beta2.PullMessage.tag] is equal to `<my-tag>`. `<my-tag>` must be
-     * less than 500 characters.
-     * When `filter` is set to `tag_function=oldest_tag()`, only tasks which have
-     * the same tag as the task with the oldest
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be returned.
-     * Grammar Syntax:
-     * * `filter = "tag=" tag | "tag_function=" function`
-     * * `tag = string`
-     * * `function = "oldest_tag()"`
-     * The `oldest_tag()` function returns tasks which have the same tag as the
-     * oldest task (ordered by schedule time).
-     * SDK compatibility: Although the SDK allows tags to be either
-     * string or
-     * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-     * only UTF-8 encoded tags can be used in Cloud Tasks. Tag which
-     * aren't UTF-8 encoded can't be used in the
-     * [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter] and the task's
-     * [tag][google.cloud.tasks.v2beta2.PullMessage.tag] will be displayed as empty in Cloud Tasks.
-     * 
- * - * string filter = 5; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * `filter` can be used to specify a subset of tasks to lease.
-     * When `filter` is set to `tag=<my-tag>` then the
-     * [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will contain only tasks whose
-     * [tag][google.cloud.tasks.v2beta2.PullMessage.tag] is equal to `<my-tag>`. `<my-tag>` must be
-     * less than 500 characters.
-     * When `filter` is set to `tag_function=oldest_tag()`, only tasks which have
-     * the same tag as the task with the oldest
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be returned.
-     * Grammar Syntax:
-     * * `filter = "tag=" tag | "tag_function=" function`
-     * * `tag = string`
-     * * `function = "oldest_tag()"`
-     * The `oldest_tag()` function returns tasks which have the same tag as the
-     * oldest task (ordered by schedule time).
-     * SDK compatibility: Although the SDK allows tags to be either
-     * string or
-     * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-     * only UTF-8 encoded tags can be used in Cloud Tasks. Tag which
-     * aren't UTF-8 encoded can't be used in the
-     * [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter] and the task's
-     * [tag][google.cloud.tasks.v2beta2.PullMessage.tag] will be displayed as empty in Cloud Tasks.
-     * 
- * - * string filter = 5; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * `filter` can be used to specify a subset of tasks to lease.
-     * When `filter` is set to `tag=<my-tag>` then the
-     * [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will contain only tasks whose
-     * [tag][google.cloud.tasks.v2beta2.PullMessage.tag] is equal to `<my-tag>`. `<my-tag>` must be
-     * less than 500 characters.
-     * When `filter` is set to `tag_function=oldest_tag()`, only tasks which have
-     * the same tag as the task with the oldest
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be returned.
-     * Grammar Syntax:
-     * * `filter = "tag=" tag | "tag_function=" function`
-     * * `tag = string`
-     * * `function = "oldest_tag()"`
-     * The `oldest_tag()` function returns tasks which have the same tag as the
-     * oldest task (ordered by schedule time).
-     * SDK compatibility: Although the SDK allows tags to be either
-     * string or
-     * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-     * only UTF-8 encoded tags can be used in Cloud Tasks. Tag which
-     * aren't UTF-8 encoded can't be used in the
-     * [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter] and the task's
-     * [tag][google.cloud.tasks.v2beta2.PullMessage.tag] will be displayed as empty in Cloud Tasks.
-     * 
- * - * string filter = 5; - * - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * `filter` can be used to specify a subset of tasks to lease.
-     * When `filter` is set to `tag=<my-tag>` then the
-     * [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will contain only tasks whose
-     * [tag][google.cloud.tasks.v2beta2.PullMessage.tag] is equal to `<my-tag>`. `<my-tag>` must be
-     * less than 500 characters.
-     * When `filter` is set to `tag_function=oldest_tag()`, only tasks which have
-     * the same tag as the task with the oldest
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be returned.
-     * Grammar Syntax:
-     * * `filter = "tag=" tag | "tag_function=" function`
-     * * `tag = string`
-     * * `function = "oldest_tag()"`
-     * The `oldest_tag()` function returns tasks which have the same tag as the
-     * oldest task (ordered by schedule time).
-     * SDK compatibility: Although the SDK allows tags to be either
-     * string or
-     * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-     * only UTF-8 encoded tags can be used in Cloud Tasks. Tag which
-     * aren't UTF-8 encoded can't be used in the
-     * [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter] and the task's
-     * [tag][google.cloud.tasks.v2beta2.PullMessage.tag] will be displayed as empty in Cloud Tasks.
-     * 
- * - * string filter = 5; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - * - * - *
-     * `filter` can be used to specify a subset of tasks to lease.
-     * When `filter` is set to `tag=<my-tag>` then the
-     * [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will contain only tasks whose
-     * [tag][google.cloud.tasks.v2beta2.PullMessage.tag] is equal to `<my-tag>`. `<my-tag>` must be
-     * less than 500 characters.
-     * When `filter` is set to `tag_function=oldest_tag()`, only tasks which have
-     * the same tag as the task with the oldest
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be returned.
-     * Grammar Syntax:
-     * * `filter = "tag=" tag | "tag_function=" function`
-     * * `tag = string`
-     * * `function = "oldest_tag()"`
-     * The `oldest_tag()` function returns tasks which have the same tag as the
-     * oldest task (ordered by schedule time).
-     * SDK compatibility: Although the SDK allows tags to be either
-     * string or
-     * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-     * only UTF-8 encoded tags can be used in Cloud Tasks. Tag which
-     * aren't UTF-8 encoded can't be used in the
-     * [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter] and the task's
-     * [tag][google.cloud.tasks.v2beta2.PullMessage.tag] will be displayed as empty in Cloud Tasks.
-     * 
- * - * string filter = 5; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.LeaseTasksRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.LeaseTasksRequest) - private static final com.google.cloud.tasks.v2beta2.LeaseTasksRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.LeaseTasksRequest(); - } - - public static com.google.cloud.tasks.v2beta2.LeaseTasksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LeaseTasksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.LeaseTasksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequestOrBuilder.java deleted file mode 100644 index 8d97536d..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequestOrBuilder.java +++ /dev/null @@ -1,263 +0,0 @@ -/* - * Copyright 2020 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; - -public interface LeaseTasksRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.LeaseTasksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The maximum number of tasks to lease.
-   * The system will make a best effort to return as close to as
-   * `max_tasks` as possible.
-   * The largest that `max_tasks` can be is 1000.
-   * The maximum total size of a [lease tasks response][google.cloud.tasks.v2beta2.LeaseTasksResponse] is
-   * 32 MB. If the sum of all task sizes requested reaches this limit,
-   * fewer tasks than requested are returned.
-   * 
- * - * int32 max_tasks = 2; - * - * @return The maxTasks. - */ - int getMaxTasks(); - - /** - * - * - *
-   * Required. The duration of the lease.
-   * Each task returned in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will
-   * have its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] set to the current
-   * time plus the `lease_duration`. The task is leased until its
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]; thus, the task will not be
-   * returned to another [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call
-   * before its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
-   * After the worker has successfully finished the work associated
-   * with the task, the worker must call via
-   * [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] before the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. Otherwise the task will be
-   * returned to a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call so
-   * that another worker can retry it.
-   * The maximum lease duration is 1 week.
-   * `lease_duration` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the leaseDuration field is set. - */ - boolean hasLeaseDuration(); - /** - * - * - *
-   * Required. The duration of the lease.
-   * Each task returned in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will
-   * have its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] set to the current
-   * time plus the `lease_duration`. The task is leased until its
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]; thus, the task will not be
-   * returned to another [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call
-   * before its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
-   * After the worker has successfully finished the work associated
-   * with the task, the worker must call via
-   * [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] before the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. Otherwise the task will be
-   * returned to a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call so
-   * that another worker can retry it.
-   * The maximum lease duration is 1 week.
-   * `lease_duration` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The leaseDuration. - */ - com.google.protobuf.Duration getLeaseDuration(); - /** - * - * - *
-   * Required. The duration of the lease.
-   * Each task returned in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will
-   * have its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] set to the current
-   * time plus the `lease_duration`. The task is leased until its
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]; thus, the task will not be
-   * returned to another [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call
-   * before its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
-   * After the worker has successfully finished the work associated
-   * with the task, the worker must call via
-   * [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] before the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. Otherwise the task will be
-   * returned to a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call so
-   * that another worker can retry it.
-   * The maximum lease duration is 1 week.
-   * `lease_duration` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.DurationOrBuilder getLeaseDurationOrBuilder(); - - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 4; - * - * @return The enum numeric value on the wire for responseView. - */ - int getResponseViewValue(); - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 4; - * - * @return The responseView. - */ - com.google.cloud.tasks.v2beta2.Task.View getResponseView(); - - /** - * - * - *
-   * `filter` can be used to specify a subset of tasks to lease.
-   * When `filter` is set to `tag=<my-tag>` then the
-   * [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will contain only tasks whose
-   * [tag][google.cloud.tasks.v2beta2.PullMessage.tag] is equal to `<my-tag>`. `<my-tag>` must be
-   * less than 500 characters.
-   * When `filter` is set to `tag_function=oldest_tag()`, only tasks which have
-   * the same tag as the task with the oldest
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be returned.
-   * Grammar Syntax:
-   * * `filter = "tag=" tag | "tag_function=" function`
-   * * `tag = string`
-   * * `function = "oldest_tag()"`
-   * The `oldest_tag()` function returns tasks which have the same tag as the
-   * oldest task (ordered by schedule time).
-   * SDK compatibility: Although the SDK allows tags to be either
-   * string or
-   * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-   * only UTF-8 encoded tags can be used in Cloud Tasks. Tag which
-   * aren't UTF-8 encoded can't be used in the
-   * [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter] and the task's
-   * [tag][google.cloud.tasks.v2beta2.PullMessage.tag] will be displayed as empty in Cloud Tasks.
-   * 
- * - * string filter = 5; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * `filter` can be used to specify a subset of tasks to lease.
-   * When `filter` is set to `tag=<my-tag>` then the
-   * [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will contain only tasks whose
-   * [tag][google.cloud.tasks.v2beta2.PullMessage.tag] is equal to `<my-tag>`. `<my-tag>` must be
-   * less than 500 characters.
-   * When `filter` is set to `tag_function=oldest_tag()`, only tasks which have
-   * the same tag as the task with the oldest
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be returned.
-   * Grammar Syntax:
-   * * `filter = "tag=" tag | "tag_function=" function`
-   * * `tag = string`
-   * * `function = "oldest_tag()"`
-   * The `oldest_tag()` function returns tasks which have the same tag as the
-   * oldest task (ordered by schedule time).
-   * SDK compatibility: Although the SDK allows tags to be either
-   * string or
-   * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-   * only UTF-8 encoded tags can be used in Cloud Tasks. Tag which
-   * aren't UTF-8 encoded can't be used in the
-   * [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter] and the task's
-   * [tag][google.cloud.tasks.v2beta2.PullMessage.tag] will be displayed as empty in Cloud Tasks.
-   * 
- * - * string filter = 5; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksResponse.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksResponse.java deleted file mode 100644 index b70c2331..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksResponse.java +++ /dev/null @@ -1,925 +0,0 @@ -/* - * Copyright 2020 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 leasing tasks using [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.LeaseTasksResponse} - */ -public final class LeaseTasksResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.LeaseTasksResponse) - LeaseTasksResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use LeaseTasksResponse.newBuilder() to construct. - private LeaseTasksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private LeaseTasksResponse() { - tasks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new LeaseTasksResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_LeaseTasksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_LeaseTasksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.LeaseTasksResponse.class, - com.google.cloud.tasks.v2beta2.LeaseTasksResponse.Builder.class); - } - - public static final int TASKS_FIELD_NUMBER = 1; - private java.util.List tasks_; - /** - * - * - *
-   * The leased tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - @java.lang.Override - public java.util.List getTasksList() { - return tasks_; - } - /** - * - * - *
-   * The leased tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - @java.lang.Override - public java.util.List - getTasksOrBuilderList() { - return tasks_; - } - /** - * - * - *
-   * The leased tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - @java.lang.Override - public int getTasksCount() { - return tasks_.size(); - } - /** - * - * - *
-   * The leased tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task getTasks(int index) { - return tasks_.get(index); - } - /** - * - * - *
-   * The leased tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.TaskOrBuilder getTasksOrBuilder(int index) { - return tasks_.get(index); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < tasks_.size(); i++) { - output.writeMessage(1, tasks_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < tasks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tasks_.get(i)); - } - 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.LeaseTasksResponse)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.LeaseTasksResponse other = - (com.google.cloud.tasks.v2beta2.LeaseTasksResponse) obj; - - if (!getTasksList().equals(other.getTasksList())) 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 (getTasksCount() > 0) { - hash = (37 * hash) + TASKS_FIELD_NUMBER; - hash = (53 * hash) + getTasksList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.LeaseTasksResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.LeaseTasksResponse 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.LeaseTasksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.LeaseTasksResponse 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.LeaseTasksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.LeaseTasksResponse 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.LeaseTasksResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.LeaseTasksResponse 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.LeaseTasksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.LeaseTasksResponse 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.LeaseTasksResponse 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.LeaseTasksResponse 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.LeaseTasksResponse 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 leasing tasks using [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.LeaseTasksResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.LeaseTasksResponse) - com.google.cloud.tasks.v2beta2.LeaseTasksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_LeaseTasksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_LeaseTasksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.LeaseTasksResponse.class, - com.google.cloud.tasks.v2beta2.LeaseTasksResponse.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.LeaseTasksResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - } else { - tasks_ = null; - tasksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_LeaseTasksResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.LeaseTasksResponse getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.LeaseTasksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.LeaseTasksResponse build() { - com.google.cloud.tasks.v2beta2.LeaseTasksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.LeaseTasksResponse buildPartial() { - com.google.cloud.tasks.v2beta2.LeaseTasksResponse result = - new com.google.cloud.tasks.v2beta2.LeaseTasksResponse(this); - int from_bitField0_ = bitField0_; - if (tasksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tasks_ = tasks_; - } else { - result.tasks_ = tasksBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.LeaseTasksResponse) { - return mergeFrom((com.google.cloud.tasks.v2beta2.LeaseTasksResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.LeaseTasksResponse other) { - if (other == com.google.cloud.tasks.v2beta2.LeaseTasksResponse.getDefaultInstance()) - return this; - if (tasksBuilder_ == null) { - if (!other.tasks_.isEmpty()) { - if (tasks_.isEmpty()) { - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTasksIsMutable(); - tasks_.addAll(other.tasks_); - } - onChanged(); - } - } else { - if (!other.tasks_.isEmpty()) { - if (tasksBuilder_.isEmpty()) { - tasksBuilder_.dispose(); - tasksBuilder_ = null; - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000001); - tasksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTasksFieldBuilder() - : null; - } else { - tasksBuilder_.addAllMessages(other.tasks_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.tasks.v2beta2.Task m = - input.readMessage( - com.google.cloud.tasks.v2beta2.Task.parser(), extensionRegistry); - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(m); - } else { - tasksBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List tasks_ = - java.util.Collections.emptyList(); - - private void ensureTasksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - tasks_ = new java.util.ArrayList(tasks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tasks.v2beta2.Task, - com.google.cloud.tasks.v2beta2.Task.Builder, - com.google.cloud.tasks.v2beta2.TaskOrBuilder> - tasksBuilder_; - - /** - * - * - *
-     * The leased tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public java.util.List getTasksList() { - if (tasksBuilder_ == null) { - return java.util.Collections.unmodifiableList(tasks_); - } else { - return tasksBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The leased tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public int getTasksCount() { - if (tasksBuilder_ == null) { - return tasks_.size(); - } else { - return tasksBuilder_.getCount(); - } - } - /** - * - * - *
-     * The leased tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public com.google.cloud.tasks.v2beta2.Task getTasks(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The leased tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public Builder setTasks(int index, com.google.cloud.tasks.v2beta2.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.set(index, value); - onChanged(); - } else { - tasksBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The leased tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public Builder setTasks( - int index, com.google.cloud.tasks.v2beta2.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.set(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The leased tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public Builder addTasks(com.google.cloud.tasks.v2beta2.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(value); - onChanged(); - } else { - tasksBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The leased tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public Builder addTasks(int index, com.google.cloud.tasks.v2beta2.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(index, value); - onChanged(); - } else { - tasksBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The leased tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public Builder addTasks(com.google.cloud.tasks.v2beta2.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The leased tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public Builder addTasks( - int index, com.google.cloud.tasks.v2beta2.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The leased tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public Builder addAllTasks( - java.lang.Iterable values) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tasks_); - onChanged(); - } else { - tasksBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The leased tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public Builder clearTasks() { - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - tasksBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The leased tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public Builder removeTasks(int index) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.remove(index); - onChanged(); - } else { - tasksBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The leased tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public com.google.cloud.tasks.v2beta2.Task.Builder getTasksBuilder(int index) { - return getTasksFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The leased tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public com.google.cloud.tasks.v2beta2.TaskOrBuilder getTasksOrBuilder(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The leased tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public java.util.List - getTasksOrBuilderList() { - if (tasksBuilder_ != null) { - return tasksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tasks_); - } - } - /** - * - * - *
-     * The leased tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public com.google.cloud.tasks.v2beta2.Task.Builder addTasksBuilder() { - return getTasksFieldBuilder() - .addBuilder(com.google.cloud.tasks.v2beta2.Task.getDefaultInstance()); - } - /** - * - * - *
-     * The leased tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public com.google.cloud.tasks.v2beta2.Task.Builder addTasksBuilder(int index) { - return getTasksFieldBuilder() - .addBuilder(index, com.google.cloud.tasks.v2beta2.Task.getDefaultInstance()); - } - /** - * - * - *
-     * The leased tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public java.util.List getTasksBuilderList() { - return getTasksFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tasks.v2beta2.Task, - com.google.cloud.tasks.v2beta2.Task.Builder, - com.google.cloud.tasks.v2beta2.TaskOrBuilder> - getTasksFieldBuilder() { - if (tasksBuilder_ == null) { - tasksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tasks.v2beta2.Task, - com.google.cloud.tasks.v2beta2.Task.Builder, - com.google.cloud.tasks.v2beta2.TaskOrBuilder>( - tasks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - tasks_ = null; - } - return tasksBuilder_; - } - - @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.LeaseTasksResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.LeaseTasksResponse) - private static final com.google.cloud.tasks.v2beta2.LeaseTasksResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.LeaseTasksResponse(); - } - - public static com.google.cloud.tasks.v2beta2.LeaseTasksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LeaseTasksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.LeaseTasksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksResponseOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksResponseOrBuilder.java deleted file mode 100644 index be8e88b3..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksResponseOrBuilder.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2020 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; - -public interface LeaseTasksResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.LeaseTasksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The leased tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - java.util.List getTasksList(); - /** - * - * - *
-   * The leased tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - com.google.cloud.tasks.v2beta2.Task getTasks(int index); - /** - * - * - *
-   * The leased tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - int getTasksCount(); - /** - * - * - *
-   * The leased tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - java.util.List getTasksOrBuilderList(); - /** - * - * - *
-   * The leased tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - com.google.cloud.tasks.v2beta2.TaskOrBuilder getTasksOrBuilder(int index); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequest.java deleted file mode 100644 index 67bc72dd..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequest.java +++ /dev/null @@ -1,1508 +0,0 @@ -/* - * Copyright 2020 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; - -/** - * - * - *
- * Request message for [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.ListQueuesRequest} - */ -public final class ListQueuesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.ListQueuesRequest) - ListQueuesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListQueuesRequest.newBuilder() to construct. - private ListQueuesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListQueuesRequest() { - parent_ = ""; - filter_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListQueuesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ListQueuesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ListQueuesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.ListQueuesRequest.class, - com.google.cloud.tasks.v2beta2.ListQueuesRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The location name.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The location name.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; - /** - * - * - *
-   * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta2.Queue]
-   * field can be used as a filter and several operators as supported.
-   * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-   * described in
-   * [Stackdriver's Advanced Logs
-   * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-   * Sample filter "app_engine_http_target: *".
-   * Note that using filters might cause fewer queues than the
-   * requested_page size to be returned.
-   * 
- * - * string filter = 2; - * - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - * - * - *
-   * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta2.Queue]
-   * field can be used as a filter and several operators as supported.
-   * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-   * described in
-   * [Stackdriver's Advanced Logs
-   * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-   * Sample filter "app_engine_http_target: *".
-   * Note that using filters might cause fewer queues than the
-   * requested_page size to be returned.
-   * 
- * - * string filter = 2; - * - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; - /** - * - * - *
-   * Requested page size.
-   * The maximum page size is 9800. If unspecified, the page size will
-   * be the maximum. Fewer queues than requested might be returned,
-   * even if more queues exist; use the
-   * [next_page_token][google.cloud.tasks.v2beta2.ListQueuesResponse.next_page_token] in the
-   * response to determine if more queues exist.
-   * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2beta2.ListQueuesResponse.next_page_token] returned
-   * from the previous call to [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues]
-   * method. It is an error to switch the value of the
-   * [filter][google.cloud.tasks.v2beta2.ListQueuesRequest.filter] while iterating through pages.
-   * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2beta2.ListQueuesResponse.next_page_token] returned
-   * from the previous call to [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues]
-   * method. It is an error to switch the value of the
-   * [filter][google.cloud.tasks.v2beta2.ListQueuesRequest.filter] while iterating through pages.
-   * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int READ_MASK_FIELD_NUMBER = 5; - private com.google.protobuf.FieldMask readMask_; - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the readMask field is set. - */ - @java.lang.Override - public boolean hasReadMask() { - return readMask_ != null; - } - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The readMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getReadMask() { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); - } - - 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(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); - } - if (pageSize_ != 0) { - output.writeInt32(3, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); - } - if (readMask_ != null) { - output.writeMessage(5, getReadMask()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); - } - if (readMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadMask()); - } - 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.ListQueuesRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.ListQueuesRequest other = - (com.google.cloud.tasks.v2beta2.ListQueuesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (hasReadMask() != other.hasReadMask()) return false; - if (hasReadMask()) { - if (!getReadMask().equals(other.getReadMask())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - if (hasReadMask()) { - hash = (37 * hash) + READ_MASK_FIELD_NUMBER; - hash = (53 * hash) + getReadMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta2.ListQueuesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.ListQueuesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.ListQueuesRequest) - com.google.cloud.tasks.v2beta2.ListQueuesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ListQueuesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ListQueuesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.ListQueuesRequest.class, - com.google.cloud.tasks.v2beta2.ListQueuesRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.ListQueuesRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - filter_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; - readMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ListQueuesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.ListQueuesRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.ListQueuesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.ListQueuesRequest build() { - com.google.cloud.tasks.v2beta2.ListQueuesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.ListQueuesRequest buildPartial() { - com.google.cloud.tasks.v2beta2.ListQueuesRequest result = - new com.google.cloud.tasks.v2beta2.ListQueuesRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.ListQueuesRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta2.ListQueuesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.ListQueuesRequest other) { - if (other == com.google.cloud.tasks.v2beta2.ListQueuesRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - if (other.hasReadMask()) { - mergeReadMask(other.getReadMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - filter_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The location name.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The location name.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The location name.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location name.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location name.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - * - * - *
-     * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta2.Queue]
-     * field can be used as a filter and several operators as supported.
-     * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-     * described in
-     * [Stackdriver's Advanced Logs
-     * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-     * Sample filter "app_engine_http_target: *".
-     * Note that using filters might cause fewer queues than the
-     * requested_page size to be returned.
-     * 
- * - * string filter = 2; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta2.Queue]
-     * field can be used as a filter and several operators as supported.
-     * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-     * described in
-     * [Stackdriver's Advanced Logs
-     * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-     * Sample filter "app_engine_http_target: *".
-     * Note that using filters might cause fewer queues than the
-     * requested_page size to be returned.
-     * 
- * - * string filter = 2; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta2.Queue]
-     * field can be used as a filter and several operators as supported.
-     * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-     * described in
-     * [Stackdriver's Advanced Logs
-     * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-     * Sample filter "app_engine_http_target: *".
-     * Note that using filters might cause fewer queues than the
-     * requested_page size to be returned.
-     * 
- * - * string filter = 2; - * - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta2.Queue]
-     * field can be used as a filter and several operators as supported.
-     * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-     * described in
-     * [Stackdriver's Advanced Logs
-     * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-     * Sample filter "app_engine_http_target: *".
-     * Note that using filters might cause fewer queues than the
-     * requested_page size to be returned.
-     * 
- * - * string filter = 2; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - * - * - *
-     * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta2.Queue]
-     * field can be used as a filter and several operators as supported.
-     * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-     * described in
-     * [Stackdriver's Advanced Logs
-     * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-     * Sample filter "app_engine_http_target: *".
-     * Note that using filters might cause fewer queues than the
-     * requested_page size to be returned.
-     * 
- * - * string filter = 2; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * Requested page size.
-     * The maximum page size is 9800. If unspecified, the page size will
-     * be the maximum. Fewer queues than requested might be returned,
-     * even if more queues exist; use the
-     * [next_page_token][google.cloud.tasks.v2beta2.ListQueuesResponse.next_page_token] in the
-     * response to determine if more queues exist.
-     * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * Requested page size.
-     * The maximum page size is 9800. If unspecified, the page size will
-     * be the maximum. Fewer queues than requested might be returned,
-     * even if more queues exist; use the
-     * [next_page_token][google.cloud.tasks.v2beta2.ListQueuesResponse.next_page_token] in the
-     * response to determine if more queues exist.
-     * 
- * - * int32 page_size = 3; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Requested page size.
-     * The maximum page size is 9800. If unspecified, the page size will
-     * be the maximum. Fewer queues than requested might be returned,
-     * even if more queues exist; use the
-     * [next_page_token][google.cloud.tasks.v2beta2.ListQueuesResponse.next_page_token] in the
-     * response to determine if more queues exist.
-     * 
- * - * int32 page_size = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2beta2.ListQueuesResponse.next_page_token] returned
-     * from the previous call to [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues]
-     * method. It is an error to switch the value of the
-     * [filter][google.cloud.tasks.v2beta2.ListQueuesRequest.filter] while iterating through pages.
-     * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2beta2.ListQueuesResponse.next_page_token] returned
-     * from the previous call to [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues]
-     * method. It is an error to switch the value of the
-     * [filter][google.cloud.tasks.v2beta2.ListQueuesRequest.filter] while iterating through pages.
-     * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2beta2.ListQueuesResponse.next_page_token] returned
-     * from the previous call to [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues]
-     * method. It is an error to switch the value of the
-     * [filter][google.cloud.tasks.v2beta2.ListQueuesRequest.filter] while iterating through pages.
-     * 
- * - * string page_token = 4; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2beta2.ListQueuesResponse.next_page_token] returned
-     * from the previous call to [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues]
-     * method. It is an error to switch the value of the
-     * [filter][google.cloud.tasks.v2beta2.ListQueuesRequest.filter] while iterating through pages.
-     * 
- * - * string page_token = 4; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2beta2.ListQueuesResponse.next_page_token] returned
-     * from the previous call to [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues]
-     * method. It is an error to switch the value of the
-     * [filter][google.cloud.tasks.v2beta2.ListQueuesRequest.filter] while iterating through pages.
-     * 
- * - * string page_token = 4; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.FieldMask readMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - readMaskBuilder_; - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the readMask field is set. - */ - public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The readMask. - */ - public com.google.protobuf.FieldMask getReadMask() { - if (readMaskBuilder_ == null) { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } else { - return readMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setReadMask(com.google.protobuf.FieldMask value) { - if (readMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - readMask_ = value; - onChanged(); - } else { - readMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (readMaskBuilder_ == null) { - readMask_ = builderForValue.build(); - onChanged(); - } else { - readMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeReadMask(com.google.protobuf.FieldMask value) { - if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); - } else { - readMask_ = value; - } - onChanged(); - } else { - readMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; - readMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - - onChanged(); - return getReadMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - if (readMaskBuilder_ != null) { - return readMaskBuilder_.getMessageOrBuilder(); - } else { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getReadMaskFieldBuilder() { - if (readMaskBuilder_ == null) { - readMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), getParentForChildren(), isClean()); - readMask_ = null; - } - return readMaskBuilder_; - } - - @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.ListQueuesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.ListQueuesRequest) - private static final com.google.cloud.tasks.v2beta2.ListQueuesRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.ListQueuesRequest(); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListQueuesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.ListQueuesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequestOrBuilder.java deleted file mode 100644 index 167f4ec8..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequestOrBuilder.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Copyright 2020 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; - -public interface ListQueuesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.ListQueuesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The location name.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The location name.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta2.Queue]
-   * field can be used as a filter and several operators as supported.
-   * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-   * described in
-   * [Stackdriver's Advanced Logs
-   * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-   * Sample filter "app_engine_http_target: *".
-   * Note that using filters might cause fewer queues than the
-   * requested_page size to be returned.
-   * 
- * - * string filter = 2; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta2.Queue]
-   * field can be used as a filter and several operators as supported.
-   * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-   * described in
-   * [Stackdriver's Advanced Logs
-   * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-   * Sample filter "app_engine_http_target: *".
-   * Note that using filters might cause fewer queues than the
-   * requested_page size to be returned.
-   * 
- * - * string filter = 2; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); - - /** - * - * - *
-   * Requested page size.
-   * The maximum page size is 9800. If unspecified, the page size will
-   * be the maximum. Fewer queues than requested might be returned,
-   * even if more queues exist; use the
-   * [next_page_token][google.cloud.tasks.v2beta2.ListQueuesResponse.next_page_token] in the
-   * response to determine if more queues exist.
-   * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2beta2.ListQueuesResponse.next_page_token] returned
-   * from the previous call to [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues]
-   * method. It is an error to switch the value of the
-   * [filter][google.cloud.tasks.v2beta2.ListQueuesRequest.filter] while iterating through pages.
-   * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2beta2.ListQueuesResponse.next_page_token] returned
-   * from the previous call to [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues]
-   * method. It is an error to switch the value of the
-   * [filter][google.cloud.tasks.v2beta2.ListQueuesRequest.filter] while iterating through pages.
-   * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the readMask field is set. - */ - boolean hasReadMask(); - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The readMask. - */ - com.google.protobuf.FieldMask getReadMask(); - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponse.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponse.java deleted file mode 100644 index b4ce4d24..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponse.java +++ /dev/null @@ -1,1138 +0,0 @@ -/* - * Copyright 2020 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 [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.ListQueuesResponse} - */ -public final class ListQueuesResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.ListQueuesResponse) - ListQueuesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListQueuesResponse.newBuilder() to construct. - private ListQueuesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListQueuesResponse() { - queues_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListQueuesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ListQueuesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ListQueuesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.ListQueuesResponse.class, - com.google.cloud.tasks.v2beta2.ListQueuesResponse.Builder.class); - } - - public static final int QUEUES_FIELD_NUMBER = 1; - private java.util.List queues_; - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - @java.lang.Override - public java.util.List getQueuesList() { - return queues_; - } - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - @java.lang.Override - public java.util.List - getQueuesOrBuilderList() { - return queues_; - } - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - @java.lang.Override - public int getQueuesCount() { - return queues_.size(); - } - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Queue getQueues(int index) { - return queues_.get(index); - } - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.QueueOrBuilder getQueuesOrBuilder(int index) { - return queues_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues] with this value as the
-   * [page_token][google.cloud.tasks.v2beta2.ListQueuesRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues] with this value as the
-   * [page_token][google.cloud.tasks.v2beta2.ListQueuesRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < queues_.size(); i++) { - output.writeMessage(1, queues_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < queues_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, queues_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.ListQueuesResponse)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.ListQueuesResponse other = - (com.google.cloud.tasks.v2beta2.ListQueuesResponse) obj; - - if (!getQueuesList().equals(other.getQueuesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getQueuesCount() > 0) { - hash = (37 * hash) + QUEUES_FIELD_NUMBER; - hash = (53 * hash) + getQueuesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta2.ListQueuesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message for [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.ListQueuesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.ListQueuesResponse) - com.google.cloud.tasks.v2beta2.ListQueuesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ListQueuesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ListQueuesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.ListQueuesResponse.class, - com.google.cloud.tasks.v2beta2.ListQueuesResponse.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.ListQueuesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (queuesBuilder_ == null) { - queues_ = java.util.Collections.emptyList(); - } else { - queues_ = null; - queuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ListQueuesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.ListQueuesResponse getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.ListQueuesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.ListQueuesResponse build() { - com.google.cloud.tasks.v2beta2.ListQueuesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.ListQueuesResponse buildPartial() { - com.google.cloud.tasks.v2beta2.ListQueuesResponse result = - new com.google.cloud.tasks.v2beta2.ListQueuesResponse(this); - int from_bitField0_ = bitField0_; - if (queuesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - queues_ = java.util.Collections.unmodifiableList(queues_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.queues_ = queues_; - } else { - result.queues_ = queuesBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.ListQueuesResponse) { - return mergeFrom((com.google.cloud.tasks.v2beta2.ListQueuesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.ListQueuesResponse other) { - if (other == com.google.cloud.tasks.v2beta2.ListQueuesResponse.getDefaultInstance()) - return this; - if (queuesBuilder_ == null) { - if (!other.queues_.isEmpty()) { - if (queues_.isEmpty()) { - queues_ = other.queues_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureQueuesIsMutable(); - queues_.addAll(other.queues_); - } - onChanged(); - } - } else { - if (!other.queues_.isEmpty()) { - if (queuesBuilder_.isEmpty()) { - queuesBuilder_.dispose(); - queuesBuilder_ = null; - queues_ = other.queues_; - bitField0_ = (bitField0_ & ~0x00000001); - queuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getQueuesFieldBuilder() - : null; - } else { - queuesBuilder_.addAllMessages(other.queues_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.tasks.v2beta2.Queue m = - input.readMessage( - com.google.cloud.tasks.v2beta2.Queue.parser(), extensionRegistry); - if (queuesBuilder_ == null) { - ensureQueuesIsMutable(); - queues_.add(m); - } else { - queuesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List queues_ = - java.util.Collections.emptyList(); - - private void ensureQueuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - queues_ = new java.util.ArrayList(queues_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tasks.v2beta2.Queue, - com.google.cloud.tasks.v2beta2.Queue.Builder, - com.google.cloud.tasks.v2beta2.QueueOrBuilder> - queuesBuilder_; - - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - public java.util.List getQueuesList() { - if (queuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(queues_); - } else { - return queuesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - public int getQueuesCount() { - if (queuesBuilder_ == null) { - return queues_.size(); - } else { - return queuesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - public com.google.cloud.tasks.v2beta2.Queue getQueues(int index) { - if (queuesBuilder_ == null) { - return queues_.get(index); - } else { - return queuesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - public Builder setQueues(int index, com.google.cloud.tasks.v2beta2.Queue value) { - if (queuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueuesIsMutable(); - queues_.set(index, value); - onChanged(); - } else { - queuesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - public Builder setQueues( - int index, com.google.cloud.tasks.v2beta2.Queue.Builder builderForValue) { - if (queuesBuilder_ == null) { - ensureQueuesIsMutable(); - queues_.set(index, builderForValue.build()); - onChanged(); - } else { - queuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - public Builder addQueues(com.google.cloud.tasks.v2beta2.Queue value) { - if (queuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueuesIsMutable(); - queues_.add(value); - onChanged(); - } else { - queuesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - public Builder addQueues(int index, com.google.cloud.tasks.v2beta2.Queue value) { - if (queuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueuesIsMutable(); - queues_.add(index, value); - onChanged(); - } else { - queuesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - public Builder addQueues(com.google.cloud.tasks.v2beta2.Queue.Builder builderForValue) { - if (queuesBuilder_ == null) { - ensureQueuesIsMutable(); - queues_.add(builderForValue.build()); - onChanged(); - } else { - queuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - public Builder addQueues( - int index, com.google.cloud.tasks.v2beta2.Queue.Builder builderForValue) { - if (queuesBuilder_ == null) { - ensureQueuesIsMutable(); - queues_.add(index, builderForValue.build()); - onChanged(); - } else { - queuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - public Builder addAllQueues( - java.lang.Iterable values) { - if (queuesBuilder_ == null) { - ensureQueuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queues_); - onChanged(); - } else { - queuesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - public Builder clearQueues() { - if (queuesBuilder_ == null) { - queues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - queuesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - public Builder removeQueues(int index) { - if (queuesBuilder_ == null) { - ensureQueuesIsMutable(); - queues_.remove(index); - onChanged(); - } else { - queuesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - public com.google.cloud.tasks.v2beta2.Queue.Builder getQueuesBuilder(int index) { - return getQueuesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - public com.google.cloud.tasks.v2beta2.QueueOrBuilder getQueuesOrBuilder(int index) { - if (queuesBuilder_ == null) { - return queues_.get(index); - } else { - return queuesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - public java.util.List - getQueuesOrBuilderList() { - if (queuesBuilder_ != null) { - return queuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(queues_); - } - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - public com.google.cloud.tasks.v2beta2.Queue.Builder addQueuesBuilder() { - return getQueuesFieldBuilder() - .addBuilder(com.google.cloud.tasks.v2beta2.Queue.getDefaultInstance()); - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - public com.google.cloud.tasks.v2beta2.Queue.Builder addQueuesBuilder(int index) { - return getQueuesFieldBuilder() - .addBuilder(index, com.google.cloud.tasks.v2beta2.Queue.getDefaultInstance()); - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - public java.util.List getQueuesBuilderList() { - return getQueuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tasks.v2beta2.Queue, - com.google.cloud.tasks.v2beta2.Queue.Builder, - com.google.cloud.tasks.v2beta2.QueueOrBuilder> - getQueuesFieldBuilder() { - if (queuesBuilder_ == null) { - queuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tasks.v2beta2.Queue, - com.google.cloud.tasks.v2beta2.Queue.Builder, - com.google.cloud.tasks.v2beta2.QueueOrBuilder>( - queues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - queues_ = null; - } - return queuesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues] with this value as the
-     * [page_token][google.cloud.tasks.v2beta2.ListQueuesRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues] with this value as the
-     * [page_token][google.cloud.tasks.v2beta2.ListQueuesRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues] with this value as the
-     * [page_token][google.cloud.tasks.v2beta2.ListQueuesRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues] with this value as the
-     * [page_token][google.cloud.tasks.v2beta2.ListQueuesRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues] with this value as the
-     * [page_token][google.cloud.tasks.v2beta2.ListQueuesRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.ListQueuesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.ListQueuesResponse) - private static final com.google.cloud.tasks.v2beta2.ListQueuesResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.ListQueuesResponse(); - } - - public static com.google.cloud.tasks.v2beta2.ListQueuesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListQueuesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.ListQueuesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponseOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponseOrBuilder.java deleted file mode 100644 index 98afbafd..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponseOrBuilder.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2020 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; - -public interface ListQueuesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.ListQueuesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - java.util.List getQueuesList(); - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - com.google.cloud.tasks.v2beta2.Queue getQueues(int index); - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - int getQueuesCount(); - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - java.util.List getQueuesOrBuilderList(); - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Queue queues = 1; - */ - com.google.cloud.tasks.v2beta2.QueueOrBuilder getQueuesOrBuilder(int index); - - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues] with this value as the
-   * [page_token][google.cloud.tasks.v2beta2.ListQueuesRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues] with this value as the
-   * [page_token][google.cloud.tasks.v2beta2.ListQueuesRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequest.java deleted file mode 100644 index d44324b7..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequest.java +++ /dev/null @@ -1,1179 +0,0 @@ -/* - * Copyright 2020 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; - -/** - * - * - *
- * Request message for listing tasks using [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.ListTasksRequest} - */ -public final class ListTasksRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.ListTasksRequest) - ListTasksRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListTasksRequest.newBuilder() to construct. - private ListTasksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListTasksRequest() { - parent_ = ""; - responseView_ = 0; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListTasksRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ListTasksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ListTasksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.ListTasksRequest.class, - com.google.cloud.tasks.v2beta2.ListTasksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESPONSE_VIEW_FIELD_NUMBER = 2; - private int responseView_; - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta2.Task.View result = - com.google.cloud.tasks.v2beta2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta2.Task.View.UNRECOGNIZED : result; - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 4; - private int pageSize_; - /** - * - * - *
-   * Maximum page size.
-   * Fewer tasks than requested might be returned, even if more tasks exist; use
-   * [next_page_token][google.cloud.tasks.v2beta2.ListTasksResponse.next_page_token] in the response to
-   * determine if more tasks exist.
-   * The maximum page size is 1000. If unspecified, the page size will be the
-   * maximum.
-   * 
- * - * int32 page_size = 4; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 5; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2beta2.ListTasksResponse.next_page_token] returned
-   * from the previous call to [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]
-   * method.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string page_token = 5; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2beta2.ListTasksResponse.next_page_token] returned
-   * from the previous call to [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]
-   * method.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string page_token = 5; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - output.writeEnum(2, responseView_); - } - if (pageSize_ != 0) { - output.writeInt32(4, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, responseView_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, pageToken_); - } - 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.ListTasksRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.ListTasksRequest other = - (com.google.cloud.tasks.v2beta2.ListTasksRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (responseView_ != other.responseView_) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; - hash = (53 * hash) + responseView_; - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.ListTasksRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta2.ListTasksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for listing tasks using [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.ListTasksRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.ListTasksRequest) - com.google.cloud.tasks.v2beta2.ListTasksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ListTasksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ListTasksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.ListTasksRequest.class, - com.google.cloud.tasks.v2beta2.ListTasksRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.ListTasksRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - responseView_ = 0; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ListTasksRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.ListTasksRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.ListTasksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.ListTasksRequest build() { - com.google.cloud.tasks.v2beta2.ListTasksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.ListTasksRequest buildPartial() { - com.google.cloud.tasks.v2beta2.ListTasksRequest result = - new com.google.cloud.tasks.v2beta2.ListTasksRequest(this); - result.parent_ = parent_; - result.responseView_ = responseView_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.ListTasksRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta2.ListTasksRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.ListTasksRequest other) { - if (other == com.google.cloud.tasks.v2beta2.ListTasksRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.responseView_ != 0) { - setResponseViewValue(other.getResponseViewValue()); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - responseView_ = input.readEnum(); - - break; - } // case 16 - case 32: - { - pageSize_ = input.readInt32(); - - break; - } // case 32 - case 42: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int responseView_ = 0; - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @param value The enum numeric value on the wire for responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseViewValue(int value) { - - responseView_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta2.Task.View result = - com.google.cloud.tasks.v2beta2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta2.Task.View.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @param value The responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseView(com.google.cloud.tasks.v2beta2.Task.View value) { - if (value == null) { - throw new NullPointerException(); - } - - responseView_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @return This builder for chaining. - */ - public Builder clearResponseView() { - - responseView_ = 0; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * Maximum page size.
-     * Fewer tasks than requested might be returned, even if more tasks exist; use
-     * [next_page_token][google.cloud.tasks.v2beta2.ListTasksResponse.next_page_token] in the response to
-     * determine if more tasks exist.
-     * The maximum page size is 1000. If unspecified, the page size will be the
-     * maximum.
-     * 
- * - * int32 page_size = 4; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * Maximum page size.
-     * Fewer tasks than requested might be returned, even if more tasks exist; use
-     * [next_page_token][google.cloud.tasks.v2beta2.ListTasksResponse.next_page_token] in the response to
-     * determine if more tasks exist.
-     * The maximum page size is 1000. If unspecified, the page size will be the
-     * maximum.
-     * 
- * - * int32 page_size = 4; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Maximum page size.
-     * Fewer tasks than requested might be returned, even if more tasks exist; use
-     * [next_page_token][google.cloud.tasks.v2beta2.ListTasksResponse.next_page_token] in the response to
-     * determine if more tasks exist.
-     * The maximum page size is 1000. If unspecified, the page size will be the
-     * maximum.
-     * 
- * - * int32 page_size = 4; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2beta2.ListTasksResponse.next_page_token] returned
-     * from the previous call to [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]
-     * method.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string page_token = 5; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2beta2.ListTasksResponse.next_page_token] returned
-     * from the previous call to [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]
-     * method.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string page_token = 5; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2beta2.ListTasksResponse.next_page_token] returned
-     * from the previous call to [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]
-     * method.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string page_token = 5; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2beta2.ListTasksResponse.next_page_token] returned
-     * from the previous call to [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]
-     * method.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string page_token = 5; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2beta2.ListTasksResponse.next_page_token] returned
-     * from the previous call to [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]
-     * method.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string page_token = 5; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.ListTasksRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.ListTasksRequest) - private static final com.google.cloud.tasks.v2beta2.ListTasksRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.ListTasksRequest(); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTasksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.ListTasksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequestOrBuilder.java deleted file mode 100644 index 29a8834e..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequestOrBuilder.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Copyright 2020 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; - -public interface ListTasksRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.ListTasksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - int getResponseViewValue(); - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @return The responseView. - */ - com.google.cloud.tasks.v2beta2.Task.View getResponseView(); - - /** - * - * - *
-   * Maximum page size.
-   * Fewer tasks than requested might be returned, even if more tasks exist; use
-   * [next_page_token][google.cloud.tasks.v2beta2.ListTasksResponse.next_page_token] in the response to
-   * determine if more tasks exist.
-   * The maximum page size is 1000. If unspecified, the page size will be the
-   * maximum.
-   * 
- * - * int32 page_size = 4; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2beta2.ListTasksResponse.next_page_token] returned
-   * from the previous call to [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]
-   * method.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string page_token = 5; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2beta2.ListTasksResponse.next_page_token] returned
-   * from the previous call to [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]
-   * method.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string page_token = 5; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponse.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponse.java deleted file mode 100644 index 6cab33c0..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponse.java +++ /dev/null @@ -1,1131 +0,0 @@ -/* - * Copyright 2020 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 listing tasks using [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.ListTasksResponse} - */ -public final class ListTasksResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.ListTasksResponse) - ListTasksResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListTasksResponse.newBuilder() to construct. - private ListTasksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListTasksResponse() { - tasks_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListTasksResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ListTasksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ListTasksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.ListTasksResponse.class, - com.google.cloud.tasks.v2beta2.ListTasksResponse.Builder.class); - } - - public static final int TASKS_FIELD_NUMBER = 1; - private java.util.List tasks_; - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - @java.lang.Override - public java.util.List getTasksList() { - return tasks_; - } - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - @java.lang.Override - public java.util.List - getTasksOrBuilderList() { - return tasks_; - } - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - @java.lang.Override - public int getTasksCount() { - return tasks_.size(); - } - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task getTasks(int index) { - return tasks_.get(index); - } - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.TaskOrBuilder getTasksOrBuilder(int index) { - return tasks_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks] with this value as the
-   * [page_token][google.cloud.tasks.v2beta2.ListTasksRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks] with this value as the
-   * [page_token][google.cloud.tasks.v2beta2.ListTasksRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < tasks_.size(); i++) { - output.writeMessage(1, tasks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < tasks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tasks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.ListTasksResponse)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.ListTasksResponse other = - (com.google.cloud.tasks.v2beta2.ListTasksResponse) obj; - - if (!getTasksList().equals(other.getTasksList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getTasksCount() > 0) { - hash = (37 * hash) + TASKS_FIELD_NUMBER; - hash = (53 * hash) + getTasksList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.ListTasksResponse parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta2.ListTasksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message for listing tasks using [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.ListTasksResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.ListTasksResponse) - com.google.cloud.tasks.v2beta2.ListTasksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ListTasksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ListTasksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.ListTasksResponse.class, - com.google.cloud.tasks.v2beta2.ListTasksResponse.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.ListTasksResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - } else { - tasks_ = null; - tasksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ListTasksResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.ListTasksResponse getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.ListTasksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.ListTasksResponse build() { - com.google.cloud.tasks.v2beta2.ListTasksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.ListTasksResponse buildPartial() { - com.google.cloud.tasks.v2beta2.ListTasksResponse result = - new com.google.cloud.tasks.v2beta2.ListTasksResponse(this); - int from_bitField0_ = bitField0_; - if (tasksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tasks_ = tasks_; - } else { - result.tasks_ = tasksBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.ListTasksResponse) { - return mergeFrom((com.google.cloud.tasks.v2beta2.ListTasksResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.ListTasksResponse other) { - if (other == com.google.cloud.tasks.v2beta2.ListTasksResponse.getDefaultInstance()) - return this; - if (tasksBuilder_ == null) { - if (!other.tasks_.isEmpty()) { - if (tasks_.isEmpty()) { - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTasksIsMutable(); - tasks_.addAll(other.tasks_); - } - onChanged(); - } - } else { - if (!other.tasks_.isEmpty()) { - if (tasksBuilder_.isEmpty()) { - tasksBuilder_.dispose(); - tasksBuilder_ = null; - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000001); - tasksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTasksFieldBuilder() - : null; - } else { - tasksBuilder_.addAllMessages(other.tasks_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.tasks.v2beta2.Task m = - input.readMessage( - com.google.cloud.tasks.v2beta2.Task.parser(), extensionRegistry); - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(m); - } else { - tasksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List tasks_ = - java.util.Collections.emptyList(); - - private void ensureTasksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - tasks_ = new java.util.ArrayList(tasks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tasks.v2beta2.Task, - com.google.cloud.tasks.v2beta2.Task.Builder, - com.google.cloud.tasks.v2beta2.TaskOrBuilder> - tasksBuilder_; - - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public java.util.List getTasksList() { - if (tasksBuilder_ == null) { - return java.util.Collections.unmodifiableList(tasks_); - } else { - return tasksBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public int getTasksCount() { - if (tasksBuilder_ == null) { - return tasks_.size(); - } else { - return tasksBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public com.google.cloud.tasks.v2beta2.Task getTasks(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public Builder setTasks(int index, com.google.cloud.tasks.v2beta2.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.set(index, value); - onChanged(); - } else { - tasksBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public Builder setTasks( - int index, com.google.cloud.tasks.v2beta2.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.set(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public Builder addTasks(com.google.cloud.tasks.v2beta2.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(value); - onChanged(); - } else { - tasksBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public Builder addTasks(int index, com.google.cloud.tasks.v2beta2.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(index, value); - onChanged(); - } else { - tasksBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public Builder addTasks(com.google.cloud.tasks.v2beta2.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public Builder addTasks( - int index, com.google.cloud.tasks.v2beta2.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public Builder addAllTasks( - java.lang.Iterable values) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tasks_); - onChanged(); - } else { - tasksBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public Builder clearTasks() { - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - tasksBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public Builder removeTasks(int index) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.remove(index); - onChanged(); - } else { - tasksBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public com.google.cloud.tasks.v2beta2.Task.Builder getTasksBuilder(int index) { - return getTasksFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public com.google.cloud.tasks.v2beta2.TaskOrBuilder getTasksOrBuilder(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public java.util.List - getTasksOrBuilderList() { - if (tasksBuilder_ != null) { - return tasksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tasks_); - } - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public com.google.cloud.tasks.v2beta2.Task.Builder addTasksBuilder() { - return getTasksFieldBuilder() - .addBuilder(com.google.cloud.tasks.v2beta2.Task.getDefaultInstance()); - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public com.google.cloud.tasks.v2beta2.Task.Builder addTasksBuilder(int index) { - return getTasksFieldBuilder() - .addBuilder(index, com.google.cloud.tasks.v2beta2.Task.getDefaultInstance()); - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - public java.util.List getTasksBuilderList() { - return getTasksFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tasks.v2beta2.Task, - com.google.cloud.tasks.v2beta2.Task.Builder, - com.google.cloud.tasks.v2beta2.TaskOrBuilder> - getTasksFieldBuilder() { - if (tasksBuilder_ == null) { - tasksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tasks.v2beta2.Task, - com.google.cloud.tasks.v2beta2.Task.Builder, - com.google.cloud.tasks.v2beta2.TaskOrBuilder>( - tasks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - tasks_ = null; - } - return tasksBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks] with this value as the
-     * [page_token][google.cloud.tasks.v2beta2.ListTasksRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks] with this value as the
-     * [page_token][google.cloud.tasks.v2beta2.ListTasksRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks] with this value as the
-     * [page_token][google.cloud.tasks.v2beta2.ListTasksRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks] with this value as the
-     * [page_token][google.cloud.tasks.v2beta2.ListTasksRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks] with this value as the
-     * [page_token][google.cloud.tasks.v2beta2.ListTasksRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.ListTasksResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.ListTasksResponse) - private static final com.google.cloud.tasks.v2beta2.ListTasksResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.ListTasksResponse(); - } - - public static com.google.cloud.tasks.v2beta2.ListTasksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTasksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.ListTasksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponseOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponseOrBuilder.java deleted file mode 100644 index 65d2e1d6..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponseOrBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2020 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; - -public interface ListTasksResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.ListTasksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - java.util.List getTasksList(); - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - com.google.cloud.tasks.v2beta2.Task getTasks(int index); - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - int getTasksCount(); - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - java.util.List getTasksOrBuilderList(); - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta2.Task tasks = 1; - */ - com.google.cloud.tasks.v2beta2.TaskOrBuilder getTasksOrBuilder(int index); - - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks] with this value as the
-   * [page_token][google.cloud.tasks.v2beta2.ListTasksRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks] with this value as the
-   * [page_token][google.cloud.tasks.v2beta2.ListTasksRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LocationName.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LocationName.java deleted file mode 100644 index 5e7ccd33..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LocationName.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2022 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; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class LocationName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION = - PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - - @Deprecated - protected LocationName() { - project = null; - location = null; - } - - private LocationName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static LocationName of(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build(); - } - - public static String format(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build().toString(); - } - - public static LocationName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION.validatedMatch( - formattedString, "LocationName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (LocationName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION.instantiate("project", project, "location", location); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - LocationName that = ((LocationName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - return h; - } - - /** Builder for projects/{project}/locations/{location}. */ - public static class Builder { - private String project; - private String location; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - private Builder(LocationName locationName) { - this.project = locationName.project; - this.location = locationName.location; - } - - public LocationName build() { - return new LocationName(this); - } - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequest.java deleted file mode 100644 index 174df8d5..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequest.java +++ /dev/null @@ -1,636 +0,0 @@ -/* - * Copyright 2020 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; - -/** - * - * - *
- * Request message for [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.PauseQueueRequest} - */ -public final class PauseQueueRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.PauseQueueRequest) - PauseQueueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PauseQueueRequest.newBuilder() to construct. - private PauseQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PauseQueueRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PauseQueueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_PauseQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_PauseQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.PauseQueueRequest.class, - com.google.cloud.tasks.v2beta2.PauseQueueRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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.PauseQueueRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.PauseQueueRequest other = - (com.google.cloud.tasks.v2beta2.PauseQueueRequest) obj; - - if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.PauseQueueRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.PauseQueueRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.PauseQueueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.PauseQueueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.PauseQueueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.PauseQueueRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.PauseQueueRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.PauseQueueRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.PauseQueueRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.PauseQueueRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.PauseQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.PauseQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta2.PauseQueueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.PauseQueueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.PauseQueueRequest) - com.google.cloud.tasks.v2beta2.PauseQueueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_PauseQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_PauseQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.PauseQueueRequest.class, - com.google.cloud.tasks.v2beta2.PauseQueueRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.PauseQueueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_PauseQueueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PauseQueueRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.PauseQueueRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PauseQueueRequest build() { - com.google.cloud.tasks.v2beta2.PauseQueueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PauseQueueRequest buildPartial() { - com.google.cloud.tasks.v2beta2.PauseQueueRequest result = - new com.google.cloud.tasks.v2beta2.PauseQueueRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.PauseQueueRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta2.PauseQueueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.PauseQueueRequest other) { - if (other == com.google.cloud.tasks.v2beta2.PauseQueueRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.PauseQueueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.PauseQueueRequest) - private static final com.google.cloud.tasks.v2beta2.PauseQueueRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.PauseQueueRequest(); - } - - public static com.google.cloud.tasks.v2beta2.PauseQueueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PauseQueueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PauseQueueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequestOrBuilder.java deleted file mode 100644 index a65e03f3..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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; - -public interface PauseQueueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.PauseQueueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ProjectName.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ProjectName.java deleted file mode 100644 index be3ab88a..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ProjectName.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright 2019 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; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -@javax.annotation.Generated("by GAPIC protoc plugin") -public class ProjectName implements ResourceName { - - private static final PathTemplate PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding("projects/{project}"); - - private volatile Map fieldValuesMap; - - private final String project; - - public String getProject() { - return project; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - private ProjectName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - } - - public static ProjectName of(String project) { - return newBuilder().setProject(project).build(); - } - - public static String format(String project) { - return newBuilder().setProject(project).build().toString(); - } - - public static ProjectName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PATH_TEMPLATE.validatedMatch( - formattedString, "ProjectName.parse: formattedString not in valid format"); - return of(matchMap.get("project")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList(values.size()); - for (ProjectName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PATH_TEMPLATE.matches(formattedString); - } - - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - fieldMapBuilder.put("project", project); - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PATH_TEMPLATE.instantiate("project", project); - } - - /** Builder for ProjectName. */ - public static class Builder { - - private String project; - - public String getProject() { - return project; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - private Builder() {} - - private Builder(ProjectName projectName) { - project = projectName.project; - } - - public ProjectName build() { - return new ProjectName(this); - } - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o instanceof ProjectName) { - ProjectName that = (ProjectName) o; - return (this.project.equals(that.project)); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= project.hashCode(); - return h; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessage.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessage.java deleted file mode 100644 index 823d76dd..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessage.java +++ /dev/null @@ -1,813 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta2; - -/** - * - * - *
- * The pull message contains data that can be used by the caller of
- * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task.
- * This proto can only be used for tasks in a queue which has
- * [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] set.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.PullMessage} - */ -public final class PullMessage extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.PullMessage) - PullMessageOrBuilder { - private static final long serialVersionUID = 0L; - // Use PullMessage.newBuilder() to construct. - private PullMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PullMessage() { - payload_ = com.google.protobuf.ByteString.EMPTY; - tag_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PullMessage(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_PullMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_PullMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.PullMessage.class, - com.google.cloud.tasks.v2beta2.PullMessage.Builder.class); - } - - public static final int PAYLOAD_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString payload_; - /** - * - * - *
-   * A data payload consumed by the worker to execute the task.
-   * 
- * - * bytes payload = 1; - * - * @return The payload. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPayload() { - return payload_; - } - - public static final int TAG_FIELD_NUMBER = 2; - private volatile java.lang.Object tag_; - /** - * - * - *
-   * The task's tag.
-   * Tags allow similar tasks to be processed in a batch. If you label
-   * tasks with a tag, your worker can
-   * [lease tasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] with the same tag using
-   * [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter]. For example, if you want to
-   * aggregate the events associated with a specific user once a day,
-   * you could tag tasks with the user ID.
-   * The task's tag can only be set when the
-   * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   * The tag must be less than 500 characters.
-   * SDK compatibility: Although the SDK allows tags to be either
-   * string or
-   * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-   * only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
-   * encoded, the tag will be empty when the task is returned by Cloud Tasks.
-   * 
- * - * string tag = 2; - * - * @return The tag. - */ - @java.lang.Override - public java.lang.String getTag() { - java.lang.Object ref = tag_; - 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(); - tag_ = s; - return s; - } - } - /** - * - * - *
-   * The task's tag.
-   * Tags allow similar tasks to be processed in a batch. If you label
-   * tasks with a tag, your worker can
-   * [lease tasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] with the same tag using
-   * [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter]. For example, if you want to
-   * aggregate the events associated with a specific user once a day,
-   * you could tag tasks with the user ID.
-   * The task's tag can only be set when the
-   * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   * The tag must be less than 500 characters.
-   * SDK compatibility: Although the SDK allows tags to be either
-   * string or
-   * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-   * only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
-   * encoded, the tag will be empty when the task is returned by Cloud Tasks.
-   * 
- * - * string tag = 2; - * - * @return The bytes for tag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTagBytes() { - java.lang.Object ref = tag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!payload_.isEmpty()) { - output.writeBytes(1, payload_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!payload_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, payload_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); - } - 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.PullMessage)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.PullMessage other = - (com.google.cloud.tasks.v2beta2.PullMessage) obj; - - if (!getPayload().equals(other.getPayload())) return false; - if (!getTag().equals(other.getTag())) 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) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - hash = (37 * hash) + TAG_FIELD_NUMBER; - hash = (53 * hash) + getTag().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.PullMessage parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.PullMessage 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.PullMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.PullMessage 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.PullMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.PullMessage 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.PullMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.PullMessage 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.PullMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.PullMessage 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.PullMessage 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.PullMessage 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.PullMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The pull message contains data that can be used by the caller of
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task.
-   * This proto can only be used for tasks in a queue which has
-   * [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] set.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.PullMessage} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.PullMessage) - com.google.cloud.tasks.v2beta2.PullMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_PullMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_PullMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.PullMessage.class, - com.google.cloud.tasks.v2beta2.PullMessage.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.PullMessage.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - payload_ = com.google.protobuf.ByteString.EMPTY; - - tag_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_PullMessage_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PullMessage getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.PullMessage.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PullMessage build() { - com.google.cloud.tasks.v2beta2.PullMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PullMessage buildPartial() { - com.google.cloud.tasks.v2beta2.PullMessage result = - new com.google.cloud.tasks.v2beta2.PullMessage(this); - result.payload_ = payload_; - result.tag_ = tag_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.PullMessage) { - return mergeFrom((com.google.cloud.tasks.v2beta2.PullMessage) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.PullMessage other) { - if (other == com.google.cloud.tasks.v2beta2.PullMessage.getDefaultInstance()) return this; - if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { - setPayload(other.getPayload()); - } - if (!other.getTag().isEmpty()) { - tag_ = other.tag_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - payload_ = input.readBytes(); - - break; - } // case 10 - case 18: - { - tag_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; - /** - * - * - *
-     * A data payload consumed by the worker to execute the task.
-     * 
- * - * bytes payload = 1; - * - * @return The payload. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPayload() { - return payload_; - } - /** - * - * - *
-     * A data payload consumed by the worker to execute the task.
-     * 
- * - * bytes payload = 1; - * - * @param value The payload to set. - * @return This builder for chaining. - */ - public Builder setPayload(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - payload_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A data payload consumed by the worker to execute the task.
-     * 
- * - * bytes payload = 1; - * - * @return This builder for chaining. - */ - public Builder clearPayload() { - - payload_ = getDefaultInstance().getPayload(); - onChanged(); - return this; - } - - private java.lang.Object tag_ = ""; - /** - * - * - *
-     * The task's tag.
-     * Tags allow similar tasks to be processed in a batch. If you label
-     * tasks with a tag, your worker can
-     * [lease tasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] with the same tag using
-     * [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter]. For example, if you want to
-     * aggregate the events associated with a specific user once a day,
-     * you could tag tasks with the user ID.
-     * The task's tag can only be set when the
-     * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     * The tag must be less than 500 characters.
-     * SDK compatibility: Although the SDK allows tags to be either
-     * string or
-     * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-     * only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
-     * encoded, the tag will be empty when the task is returned by Cloud Tasks.
-     * 
- * - * string tag = 2; - * - * @return The tag. - */ - public java.lang.String getTag() { - java.lang.Object ref = tag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The task's tag.
-     * Tags allow similar tasks to be processed in a batch. If you label
-     * tasks with a tag, your worker can
-     * [lease tasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] with the same tag using
-     * [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter]. For example, if you want to
-     * aggregate the events associated with a specific user once a day,
-     * you could tag tasks with the user ID.
-     * The task's tag can only be set when the
-     * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     * The tag must be less than 500 characters.
-     * SDK compatibility: Although the SDK allows tags to be either
-     * string or
-     * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-     * only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
-     * encoded, the tag will be empty when the task is returned by Cloud Tasks.
-     * 
- * - * string tag = 2; - * - * @return The bytes for tag. - */ - public com.google.protobuf.ByteString getTagBytes() { - java.lang.Object ref = tag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The task's tag.
-     * Tags allow similar tasks to be processed in a batch. If you label
-     * tasks with a tag, your worker can
-     * [lease tasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] with the same tag using
-     * [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter]. For example, if you want to
-     * aggregate the events associated with a specific user once a day,
-     * you could tag tasks with the user ID.
-     * The task's tag can only be set when the
-     * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     * The tag must be less than 500 characters.
-     * SDK compatibility: Although the SDK allows tags to be either
-     * string or
-     * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-     * only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
-     * encoded, the tag will be empty when the task is returned by Cloud Tasks.
-     * 
- * - * string tag = 2; - * - * @param value The tag to set. - * @return This builder for chaining. - */ - public Builder setTag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tag_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The task's tag.
-     * Tags allow similar tasks to be processed in a batch. If you label
-     * tasks with a tag, your worker can
-     * [lease tasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] with the same tag using
-     * [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter]. For example, if you want to
-     * aggregate the events associated with a specific user once a day,
-     * you could tag tasks with the user ID.
-     * The task's tag can only be set when the
-     * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     * The tag must be less than 500 characters.
-     * SDK compatibility: Although the SDK allows tags to be either
-     * string or
-     * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-     * only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
-     * encoded, the tag will be empty when the task is returned by Cloud Tasks.
-     * 
- * - * string tag = 2; - * - * @return This builder for chaining. - */ - public Builder clearTag() { - - tag_ = getDefaultInstance().getTag(); - onChanged(); - return this; - } - /** - * - * - *
-     * The task's tag.
-     * Tags allow similar tasks to be processed in a batch. If you label
-     * tasks with a tag, your worker can
-     * [lease tasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] with the same tag using
-     * [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter]. For example, if you want to
-     * aggregate the events associated with a specific user once a day,
-     * you could tag tasks with the user ID.
-     * The task's tag can only be set when the
-     * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     * The tag must be less than 500 characters.
-     * SDK compatibility: Although the SDK allows tags to be either
-     * string or
-     * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-     * only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
-     * encoded, the tag will be empty when the task is returned by Cloud Tasks.
-     * 
- * - * string tag = 2; - * - * @param value The bytes for tag to set. - * @return This builder for chaining. - */ - public Builder setTagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tag_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.PullMessage) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.PullMessage) - private static final com.google.cloud.tasks.v2beta2.PullMessage DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.PullMessage(); - } - - public static com.google.cloud.tasks.v2beta2.PullMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PullMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PullMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessageOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessageOrBuilder.java deleted file mode 100644 index 3e9a9796..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessageOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta2; - -public interface PullMessageOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.PullMessage) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A data payload consumed by the worker to execute the task.
-   * 
- * - * bytes payload = 1; - * - * @return The payload. - */ - com.google.protobuf.ByteString getPayload(); - - /** - * - * - *
-   * The task's tag.
-   * Tags allow similar tasks to be processed in a batch. If you label
-   * tasks with a tag, your worker can
-   * [lease tasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] with the same tag using
-   * [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter]. For example, if you want to
-   * aggregate the events associated with a specific user once a day,
-   * you could tag tasks with the user ID.
-   * The task's tag can only be set when the
-   * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   * The tag must be less than 500 characters.
-   * SDK compatibility: Although the SDK allows tags to be either
-   * string or
-   * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-   * only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
-   * encoded, the tag will be empty when the task is returned by Cloud Tasks.
-   * 
- * - * string tag = 2; - * - * @return The tag. - */ - java.lang.String getTag(); - /** - * - * - *
-   * The task's tag.
-   * Tags allow similar tasks to be processed in a batch. If you label
-   * tasks with a tag, your worker can
-   * [lease tasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] with the same tag using
-   * [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter]. For example, if you want to
-   * aggregate the events associated with a specific user once a day,
-   * you could tag tasks with the user ID.
-   * The task's tag can only be set when the
-   * [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   * The tag must be less than 500 characters.
-   * SDK compatibility: Although the SDK allows tags to be either
-   * string or
-   * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-   * only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
-   * encoded, the tag will be empty when the task is returned by Cloud Tasks.
-   * 
- * - * string tag = 2; - * - * @return The bytes for tag. - */ - com.google.protobuf.ByteString getTagBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullTarget.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullTarget.java deleted file mode 100644 index 73aded97..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullTarget.java +++ /dev/null @@ -1,435 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta2; - -/** - * - * - *
- * Pull target.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.PullTarget} - */ -public final class PullTarget extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.PullTarget) - PullTargetOrBuilder { - private static final long serialVersionUID = 0L; - // Use PullTarget.newBuilder() to construct. - private PullTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PullTarget() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PullTarget(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_PullTarget_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_PullTarget_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.PullTarget.class, - com.google.cloud.tasks.v2beta2.PullTarget.Builder.class); - } - - 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 { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.PullTarget)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.PullTarget other = - (com.google.cloud.tasks.v2beta2.PullTarget) obj; - - 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.PullTarget parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.PullTarget 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.PullTarget parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.PullTarget 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.PullTarget parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.PullTarget 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.PullTarget parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.PullTarget 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.PullTarget parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.PullTarget 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.PullTarget 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.PullTarget 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.PullTarget 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; - } - /** - * - * - *
-   * Pull target.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.PullTarget} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.PullTarget) - com.google.cloud.tasks.v2beta2.PullTargetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_PullTarget_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_PullTarget_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.PullTarget.class, - com.google.cloud.tasks.v2beta2.PullTarget.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.PullTarget.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.TargetProto - .internal_static_google_cloud_tasks_v2beta2_PullTarget_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PullTarget getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.PullTarget.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PullTarget build() { - com.google.cloud.tasks.v2beta2.PullTarget result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PullTarget buildPartial() { - com.google.cloud.tasks.v2beta2.PullTarget result = - new com.google.cloud.tasks.v2beta2.PullTarget(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.PullTarget) { - return mergeFrom((com.google.cloud.tasks.v2beta2.PullTarget) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.PullTarget other) { - if (other == com.google.cloud.tasks.v2beta2.PullTarget.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.PullTarget) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.PullTarget) - private static final com.google.cloud.tasks.v2beta2.PullTarget DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.PullTarget(); - } - - public static com.google.cloud.tasks.v2beta2.PullTarget getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PullTarget parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PullTarget getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullTargetOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullTargetOrBuilder.java deleted file mode 100644 index 86bed8df..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullTargetOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta2; - -public interface PullTargetOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.PullTarget) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequest.java deleted file mode 100644 index a0909e87..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequest.java +++ /dev/null @@ -1,636 +0,0 @@ -/* - * Copyright 2020 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; - -/** - * - * - *
- * Request message for [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.PurgeQueueRequest} - */ -public final class PurgeQueueRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.PurgeQueueRequest) - PurgeQueueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PurgeQueueRequest.newBuilder() to construct. - private PurgeQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PurgeQueueRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PurgeQueueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_PurgeQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_PurgeQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.PurgeQueueRequest.class, - com.google.cloud.tasks.v2beta2.PurgeQueueRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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.PurgeQueueRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.PurgeQueueRequest other = - (com.google.cloud.tasks.v2beta2.PurgeQueueRequest) obj; - - if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.PurgeQueueRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.PurgeQueueRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.PurgeQueueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.PurgeQueueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.PurgeQueueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.PurgeQueueRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.PurgeQueueRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.PurgeQueueRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.PurgeQueueRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.PurgeQueueRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.PurgeQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.PurgeQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta2.PurgeQueueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.PurgeQueueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.PurgeQueueRequest) - com.google.cloud.tasks.v2beta2.PurgeQueueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_PurgeQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_PurgeQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.PurgeQueueRequest.class, - com.google.cloud.tasks.v2beta2.PurgeQueueRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.PurgeQueueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_PurgeQueueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PurgeQueueRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.PurgeQueueRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PurgeQueueRequest build() { - com.google.cloud.tasks.v2beta2.PurgeQueueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PurgeQueueRequest buildPartial() { - com.google.cloud.tasks.v2beta2.PurgeQueueRequest result = - new com.google.cloud.tasks.v2beta2.PurgeQueueRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.PurgeQueueRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta2.PurgeQueueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.PurgeQueueRequest other) { - if (other == com.google.cloud.tasks.v2beta2.PurgeQueueRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.PurgeQueueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.PurgeQueueRequest) - private static final com.google.cloud.tasks.v2beta2.PurgeQueueRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.PurgeQueueRequest(); - } - - public static com.google.cloud.tasks.v2beta2.PurgeQueueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PurgeQueueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PurgeQueueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequestOrBuilder.java deleted file mode 100644 index 395d587e..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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; - -public interface PurgeQueueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.PurgeQueueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java deleted file mode 100644 index 9af7d0ee..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java +++ /dev/null @@ -1,3981 +0,0 @@ -/* - * Copyright 2020 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/queue.proto - -package com.google.cloud.tasks.v2beta2; - -/** - * - * - *
- * A queue is a container of related tasks. Queues are configured to manage
- * how those tasks are dispatched. Configurable properties include rate limits,
- * retry options, target types, and others.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.Queue} - */ -public final class Queue extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.Queue) - QueueOrBuilder { - private static final long serialVersionUID = 0L; - // Use Queue.newBuilder() to construct. - private Queue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Queue() { - name_ = ""; - state_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Queue(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.QueueProto - .internal_static_google_cloud_tasks_v2beta2_Queue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.QueueProto - .internal_static_google_cloud_tasks_v2beta2_Queue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.Queue.class, - com.google.cloud.tasks.v2beta2.Queue.Builder.class); - } - - /** - * - * - *
-   * State of the queue.
-   * 
- * - * Protobuf enum {@code google.cloud.tasks.v2beta2.Queue.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unspecified state.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - STATE_UNSPECIFIED(0), - /** - * - * - *
-     * The queue is running. Tasks can be dispatched.
-     * If the queue was created using Cloud Tasks and the queue has
-     * had no activity (method calls or task dispatches) for 30 days,
-     * the queue may take a few minutes to re-activate. Some method
-     * calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and
-     * tasks may not be dispatched for a few minutes until the queue
-     * has been re-activated.
-     * 
- * - * RUNNING = 1; - */ - RUNNING(1), - /** - * - * - *
-     * Tasks are paused by the user. If the queue is paused then Cloud
-     * Tasks will stop delivering tasks from it, but more tasks can
-     * still be added to it by the user. When a pull queue is paused,
-     * all [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] calls will return a
-     * [FAILED_PRECONDITION][google.rpc.Code.FAILED_PRECONDITION].
-     * 
- * - * PAUSED = 2; - */ - PAUSED(2), - /** - * - * - *
-     * The queue is disabled.
-     * A queue becomes `DISABLED` when
-     * [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref)
-     * or
-     * [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref)
-     * is uploaded which does not contain the queue. You cannot directly disable
-     * a queue.
-     * When a queue is disabled, tasks can still be added to a queue
-     * but the tasks are not dispatched and
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] calls return a
-     * `FAILED_PRECONDITION` error.
-     * To permanently delete this queue and all of its tasks, call
-     * [DeleteQueue][google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue].
-     * 
- * - * DISABLED = 3; - */ - DISABLED(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Unspecified state.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - public static final int STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The queue is running. Tasks can be dispatched.
-     * If the queue was created using Cloud Tasks and the queue has
-     * had no activity (method calls or task dispatches) for 30 days,
-     * the queue may take a few minutes to re-activate. Some method
-     * calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and
-     * tasks may not be dispatched for a few minutes until the queue
-     * has been re-activated.
-     * 
- * - * RUNNING = 1; - */ - public static final int RUNNING_VALUE = 1; - /** - * - * - *
-     * Tasks are paused by the user. If the queue is paused then Cloud
-     * Tasks will stop delivering tasks from it, but more tasks can
-     * still be added to it by the user. When a pull queue is paused,
-     * all [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] calls will return a
-     * [FAILED_PRECONDITION][google.rpc.Code.FAILED_PRECONDITION].
-     * 
- * - * PAUSED = 2; - */ - public static final int PAUSED_VALUE = 2; - /** - * - * - *
-     * The queue is disabled.
-     * A queue becomes `DISABLED` when
-     * [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref)
-     * or
-     * [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref)
-     * is uploaded which does not contain the queue. You cannot directly disable
-     * a queue.
-     * When a queue is disabled, tasks can still be added to a queue
-     * but the tasks are not dispatched and
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] calls return a
-     * `FAILED_PRECONDITION` error.
-     * To permanently delete this queue and all of its tasks, call
-     * [DeleteQueue][google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue].
-     * 
- * - * DISABLED = 3; - */ - public static final int DISABLED_VALUE = 3; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static State valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static State forNumber(int value) { - switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return RUNNING; - case 2: - return PAUSED; - case 3: - return DISABLED; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.Queue.getDescriptor().getEnumTypes().get(0); - } - - private static final State[] VALUES = values(); - - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private State(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.tasks.v2beta2.Queue.State) - } - - private int targetTypeCase_ = 0; - private java.lang.Object targetType_; - - public enum TargetTypeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - APP_ENGINE_HTTP_TARGET(3), - PULL_TARGET(4), - TARGETTYPE_NOT_SET(0); - private final int value; - - private TargetTypeCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TargetTypeCase valueOf(int value) { - return forNumber(value); - } - - public static TargetTypeCase forNumber(int value) { - switch (value) { - case 3: - return APP_ENGINE_HTTP_TARGET; - case 4: - return PULL_TARGET; - case 0: - return TARGETTYPE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public TargetTypeCase getTargetTypeCase() { - return TargetTypeCase.forNumber(targetTypeCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue],
-   * after which it becomes output only.
-   * The queue name.
-   * The queue name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the queue's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue],
-   * after which it becomes output only.
-   * The queue name.
-   * The queue name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the queue's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int APP_ENGINE_HTTP_TARGET_FIELD_NUMBER = 3; - /** - * - * - *
-   * App Engine HTTP target.
-   * An App Engine queue is a queue that has an [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget].
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpTarget app_engine_http_target = 3; - * - * @return Whether the appEngineHttpTarget field is set. - */ - @java.lang.Override - public boolean hasAppEngineHttpTarget() { - return targetTypeCase_ == 3; - } - /** - * - * - *
-   * App Engine HTTP target.
-   * An App Engine queue is a queue that has an [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget].
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpTarget app_engine_http_target = 3; - * - * @return The appEngineHttpTarget. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineHttpTarget getAppEngineHttpTarget() { - if (targetTypeCase_ == 3) { - return (com.google.cloud.tasks.v2beta2.AppEngineHttpTarget) targetType_; - } - return com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.getDefaultInstance(); - } - /** - * - * - *
-   * App Engine HTTP target.
-   * An App Engine queue is a queue that has an [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget].
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpTarget app_engine_http_target = 3; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineHttpTargetOrBuilder - getAppEngineHttpTargetOrBuilder() { - if (targetTypeCase_ == 3) { - return (com.google.cloud.tasks.v2beta2.AppEngineHttpTarget) targetType_; - } - return com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.getDefaultInstance(); - } - - public static final int PULL_TARGET_FIELD_NUMBER = 4; - /** - * - * - *
-   * Pull target.
-   * A pull queue is a queue that has a [PullTarget][google.cloud.tasks.v2beta2.PullTarget].
-   * 
- * - * .google.cloud.tasks.v2beta2.PullTarget pull_target = 4; - * - * @return Whether the pullTarget field is set. - */ - @java.lang.Override - public boolean hasPullTarget() { - return targetTypeCase_ == 4; - } - /** - * - * - *
-   * Pull target.
-   * A pull queue is a queue that has a [PullTarget][google.cloud.tasks.v2beta2.PullTarget].
-   * 
- * - * .google.cloud.tasks.v2beta2.PullTarget pull_target = 4; - * - * @return The pullTarget. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PullTarget getPullTarget() { - if (targetTypeCase_ == 4) { - return (com.google.cloud.tasks.v2beta2.PullTarget) targetType_; - } - return com.google.cloud.tasks.v2beta2.PullTarget.getDefaultInstance(); - } - /** - * - * - *
-   * Pull target.
-   * A pull queue is a queue that has a [PullTarget][google.cloud.tasks.v2beta2.PullTarget].
-   * 
- * - * .google.cloud.tasks.v2beta2.PullTarget pull_target = 4; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PullTargetOrBuilder getPullTargetOrBuilder() { - if (targetTypeCase_ == 4) { - return (com.google.cloud.tasks.v2beta2.PullTarget) targetType_; - } - return com.google.cloud.tasks.v2beta2.PullTarget.getDefaultInstance(); - } - - public static final int RATE_LIMITS_FIELD_NUMBER = 5; - private com.google.cloud.tasks.v2beta2.RateLimits rateLimits_; - /** - * - * - *
-   * Rate limits for task dispatches.
-   * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] and
-   * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] are related because they both
-   * control task attempts however they control how tasks are
-   * attempted in different ways:
-   * * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] controls the total rate of
-   *   dispatches from a queue (i.e. all traffic dispatched from the
-   *   queue, regardless of whether the dispatch is from a first
-   *   attempt or a retry).
-   * * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls what happens to
-   *   particular a task after its first attempt fails. That is,
-   *   [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls task retries (the
-   *   second attempt, third attempt, etc).
-   * 
- * - * .google.cloud.tasks.v2beta2.RateLimits rate_limits = 5; - * - * @return Whether the rateLimits field is set. - */ - @java.lang.Override - public boolean hasRateLimits() { - return rateLimits_ != null; - } - /** - * - * - *
-   * Rate limits for task dispatches.
-   * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] and
-   * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] are related because they both
-   * control task attempts however they control how tasks are
-   * attempted in different ways:
-   * * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] controls the total rate of
-   *   dispatches from a queue (i.e. all traffic dispatched from the
-   *   queue, regardless of whether the dispatch is from a first
-   *   attempt or a retry).
-   * * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls what happens to
-   *   particular a task after its first attempt fails. That is,
-   *   [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls task retries (the
-   *   second attempt, third attempt, etc).
-   * 
- * - * .google.cloud.tasks.v2beta2.RateLimits rate_limits = 5; - * - * @return The rateLimits. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.RateLimits getRateLimits() { - return rateLimits_ == null - ? com.google.cloud.tasks.v2beta2.RateLimits.getDefaultInstance() - : rateLimits_; - } - /** - * - * - *
-   * Rate limits for task dispatches.
-   * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] and
-   * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] are related because they both
-   * control task attempts however they control how tasks are
-   * attempted in different ways:
-   * * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] controls the total rate of
-   *   dispatches from a queue (i.e. all traffic dispatched from the
-   *   queue, regardless of whether the dispatch is from a first
-   *   attempt or a retry).
-   * * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls what happens to
-   *   particular a task after its first attempt fails. That is,
-   *   [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls task retries (the
-   *   second attempt, third attempt, etc).
-   * 
- * - * .google.cloud.tasks.v2beta2.RateLimits rate_limits = 5; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.RateLimitsOrBuilder getRateLimitsOrBuilder() { - return getRateLimits(); - } - - public static final int RETRY_CONFIG_FIELD_NUMBER = 6; - private com.google.cloud.tasks.v2beta2.RetryConfig retryConfig_; - /** - * - * - *
-   * Settings that determine the retry behavior.
-   * * For tasks created using Cloud Tasks: the queue-level retry settings
-   *   apply to all tasks in the queue that were created using Cloud Tasks.
-   *   Retry settings cannot be set on individual tasks.
-   * * For tasks created using the App Engine SDK: the queue-level retry
-   *   settings apply to all tasks in the queue which do not have retry settings
-   *   explicitly set on the task and were created by the App Engine SDK. See
-   *   [App Engine
-   *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-   * 
- * - * .google.cloud.tasks.v2beta2.RetryConfig retry_config = 6; - * - * @return Whether the retryConfig field is set. - */ - @java.lang.Override - public boolean hasRetryConfig() { - return retryConfig_ != null; - } - /** - * - * - *
-   * Settings that determine the retry behavior.
-   * * For tasks created using Cloud Tasks: the queue-level retry settings
-   *   apply to all tasks in the queue that were created using Cloud Tasks.
-   *   Retry settings cannot be set on individual tasks.
-   * * For tasks created using the App Engine SDK: the queue-level retry
-   *   settings apply to all tasks in the queue which do not have retry settings
-   *   explicitly set on the task and were created by the App Engine SDK. See
-   *   [App Engine
-   *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-   * 
- * - * .google.cloud.tasks.v2beta2.RetryConfig retry_config = 6; - * - * @return The retryConfig. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.RetryConfig getRetryConfig() { - return retryConfig_ == null - ? com.google.cloud.tasks.v2beta2.RetryConfig.getDefaultInstance() - : retryConfig_; - } - /** - * - * - *
-   * Settings that determine the retry behavior.
-   * * For tasks created using Cloud Tasks: the queue-level retry settings
-   *   apply to all tasks in the queue that were created using Cloud Tasks.
-   *   Retry settings cannot be set on individual tasks.
-   * * For tasks created using the App Engine SDK: the queue-level retry
-   *   settings apply to all tasks in the queue which do not have retry settings
-   *   explicitly set on the task and were created by the App Engine SDK. See
-   *   [App Engine
-   *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-   * 
- * - * .google.cloud.tasks.v2beta2.RetryConfig retry_config = 6; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.RetryConfigOrBuilder getRetryConfigOrBuilder() { - return getRetryConfig(); - } - - public static final int STATE_FIELD_NUMBER = 7; - private int state_; - /** - * - * - *
-   * Output only. The state of the queue.
-   * `state` can only be changed by calling
-   * [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue],
-   * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or uploading
-   * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-   * [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] cannot be used to change `state`.
-   * 
- * - * .google.cloud.tasks.v2beta2.Queue.State state = 7; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. The state of the queue.
-   * `state` can only be changed by calling
-   * [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue],
-   * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or uploading
-   * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-   * [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] cannot be used to change `state`.
-   * 
- * - * .google.cloud.tasks.v2beta2.Queue.State state = 7; - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Queue.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta2.Queue.State result = - com.google.cloud.tasks.v2beta2.Queue.State.valueOf(state_); - return result == null ? com.google.cloud.tasks.v2beta2.Queue.State.UNRECOGNIZED : result; - } - - public static final int PURGE_TIME_FIELD_NUMBER = 8; - private com.google.protobuf.Timestamp purgeTime_; - /** - * - * - *
-   * Output only. The last time this queue was purged.
-   * All tasks that were [created][google.cloud.tasks.v2beta2.Task.create_time] before this time
-   * were purged.
-   * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue], the
-   * [App Engine Task Queue SDK, or the Cloud
-   * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-   * Purge time will be truncated to the nearest microsecond. Purge
-   * time will be unset if the queue has never been purged.
-   * 
- * - * .google.protobuf.Timestamp purge_time = 8; - * - * @return Whether the purgeTime field is set. - */ - @java.lang.Override - public boolean hasPurgeTime() { - return purgeTime_ != null; - } - /** - * - * - *
-   * Output only. The last time this queue was purged.
-   * All tasks that were [created][google.cloud.tasks.v2beta2.Task.create_time] before this time
-   * were purged.
-   * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue], the
-   * [App Engine Task Queue SDK, or the Cloud
-   * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-   * Purge time will be truncated to the nearest microsecond. Purge
-   * time will be unset if the queue has never been purged.
-   * 
- * - * .google.protobuf.Timestamp purge_time = 8; - * - * @return The purgeTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getPurgeTime() { - return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; - } - /** - * - * - *
-   * Output only. The last time this queue was purged.
-   * All tasks that were [created][google.cloud.tasks.v2beta2.Task.create_time] before this time
-   * were purged.
-   * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue], the
-   * [App Engine Task Queue SDK, or the Cloud
-   * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-   * Purge time will be truncated to the nearest microsecond. Purge
-   * time will be unset if the queue has never been purged.
-   * 
- * - * .google.protobuf.Timestamp purge_time = 8; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder() { - return getPurgeTime(); - } - - public static final int TASK_TTL_FIELD_NUMBER = 9; - private com.google.protobuf.Duration taskTtl_; - /** - * - * - *
-   * The maximum amount of time that a task will be retained in
-   * this queue.
-   * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-   * After a task has lived for `task_ttl`, the task will be deleted
-   * regardless of whether it was dispatched or not.
-   * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-   * maximum duration because there is a
-   * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-   * these queues. To view the maximum valid duration, see the documentation for
-   * [Duration][google.protobuf.Duration].
-   * 
- * - * .google.protobuf.Duration task_ttl = 9; - * - * @return Whether the taskTtl field is set. - */ - @java.lang.Override - public boolean hasTaskTtl() { - return taskTtl_ != null; - } - /** - * - * - *
-   * The maximum amount of time that a task will be retained in
-   * this queue.
-   * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-   * After a task has lived for `task_ttl`, the task will be deleted
-   * regardless of whether it was dispatched or not.
-   * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-   * maximum duration because there is a
-   * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-   * these queues. To view the maximum valid duration, see the documentation for
-   * [Duration][google.protobuf.Duration].
-   * 
- * - * .google.protobuf.Duration task_ttl = 9; - * - * @return The taskTtl. - */ - @java.lang.Override - public com.google.protobuf.Duration getTaskTtl() { - return taskTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : taskTtl_; - } - /** - * - * - *
-   * The maximum amount of time that a task will be retained in
-   * this queue.
-   * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-   * After a task has lived for `task_ttl`, the task will be deleted
-   * regardless of whether it was dispatched or not.
-   * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-   * maximum duration because there is a
-   * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-   * these queues. To view the maximum valid duration, see the documentation for
-   * [Duration][google.protobuf.Duration].
-   * 
- * - * .google.protobuf.Duration task_ttl = 9; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getTaskTtlOrBuilder() { - return getTaskTtl(); - } - - public static final int TOMBSTONE_TTL_FIELD_NUMBER = 10; - private com.google.protobuf.Duration tombstoneTtl_; - /** - * - * - *
-   * The task tombstone time to live (TTL).
-   * After a task is deleted or completed, the task's tombstone is
-   * retained for the length of time specified by `tombstone_ttl`.
-   * The tombstone is used by task de-duplication; another task with the same
-   * name can't be created until the tombstone has expired. For more information
-   * about task de-duplication, see the documentation for
-   * [CreateTaskRequest][google.cloud.tasks.v2beta2.CreateTaskRequest.task].
-   * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-   * 
- * - * .google.protobuf.Duration tombstone_ttl = 10; - * - * @return Whether the tombstoneTtl field is set. - */ - @java.lang.Override - public boolean hasTombstoneTtl() { - return tombstoneTtl_ != null; - } - /** - * - * - *
-   * The task tombstone time to live (TTL).
-   * After a task is deleted or completed, the task's tombstone is
-   * retained for the length of time specified by `tombstone_ttl`.
-   * The tombstone is used by task de-duplication; another task with the same
-   * name can't be created until the tombstone has expired. For more information
-   * about task de-duplication, see the documentation for
-   * [CreateTaskRequest][google.cloud.tasks.v2beta2.CreateTaskRequest.task].
-   * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-   * 
- * - * .google.protobuf.Duration tombstone_ttl = 10; - * - * @return The tombstoneTtl. - */ - @java.lang.Override - public com.google.protobuf.Duration getTombstoneTtl() { - return tombstoneTtl_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : tombstoneTtl_; - } - /** - * - * - *
-   * The task tombstone time to live (TTL).
-   * After a task is deleted or completed, the task's tombstone is
-   * retained for the length of time specified by `tombstone_ttl`.
-   * The tombstone is used by task de-duplication; another task with the same
-   * name can't be created until the tombstone has expired. For more information
-   * about task de-duplication, see the documentation for
-   * [CreateTaskRequest][google.cloud.tasks.v2beta2.CreateTaskRequest.task].
-   * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-   * 
- * - * .google.protobuf.Duration tombstone_ttl = 10; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getTombstoneTtlOrBuilder() { - return getTombstoneTtl(); - } - - public static final int STATS_FIELD_NUMBER = 16; - private com.google.cloud.tasks.v2beta2.QueueStats stats_; - /** - * - * - *
-   * Output only. The realtime, informational statistics for a queue. In order
-   * to receive the statistics the caller should include this field in the
-   * FieldMask.
-   * 
- * - * - * .google.cloud.tasks.v2beta2.QueueStats stats = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stats field is set. - */ - @java.lang.Override - public boolean hasStats() { - return stats_ != null; - } - /** - * - * - *
-   * Output only. The realtime, informational statistics for a queue. In order
-   * to receive the statistics the caller should include this field in the
-   * FieldMask.
-   * 
- * - * - * .google.cloud.tasks.v2beta2.QueueStats stats = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stats. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.QueueStats getStats() { - return stats_ == null ? com.google.cloud.tasks.v2beta2.QueueStats.getDefaultInstance() : stats_; - } - /** - * - * - *
-   * Output only. The realtime, informational statistics for a queue. In order
-   * to receive the statistics the caller should include this field in the
-   * FieldMask.
-   * 
- * - * - * .google.cloud.tasks.v2beta2.QueueStats stats = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.QueueStatsOrBuilder getStatsOrBuilder() { - return getStats(); - } - - 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(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (targetTypeCase_ == 3) { - output.writeMessage(3, (com.google.cloud.tasks.v2beta2.AppEngineHttpTarget) targetType_); - } - if (targetTypeCase_ == 4) { - output.writeMessage(4, (com.google.cloud.tasks.v2beta2.PullTarget) targetType_); - } - if (rateLimits_ != null) { - output.writeMessage(5, getRateLimits()); - } - if (retryConfig_ != null) { - output.writeMessage(6, getRetryConfig()); - } - if (state_ != com.google.cloud.tasks.v2beta2.Queue.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(7, state_); - } - if (purgeTime_ != null) { - output.writeMessage(8, getPurgeTime()); - } - if (taskTtl_ != null) { - output.writeMessage(9, getTaskTtl()); - } - if (tombstoneTtl_ != null) { - output.writeMessage(10, getTombstoneTtl()); - } - if (stats_ != null) { - output.writeMessage(16, getStats()); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (targetTypeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.tasks.v2beta2.AppEngineHttpTarget) targetType_); - } - if (targetTypeCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.tasks.v2beta2.PullTarget) targetType_); - } - if (rateLimits_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRateLimits()); - } - if (retryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getRetryConfig()); - } - if (state_ != com.google.cloud.tasks.v2beta2.Queue.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); - } - if (purgeTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getPurgeTime()); - } - if (taskTtl_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getTaskTtl()); - } - if (tombstoneTtl_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getTombstoneTtl()); - } - if (stats_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getStats()); - } - 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.Queue)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.Queue other = (com.google.cloud.tasks.v2beta2.Queue) obj; - - if (!getName().equals(other.getName())) return false; - if (hasRateLimits() != other.hasRateLimits()) return false; - if (hasRateLimits()) { - if (!getRateLimits().equals(other.getRateLimits())) return false; - } - if (hasRetryConfig() != other.hasRetryConfig()) return false; - if (hasRetryConfig()) { - if (!getRetryConfig().equals(other.getRetryConfig())) return false; - } - if (state_ != other.state_) return false; - if (hasPurgeTime() != other.hasPurgeTime()) return false; - if (hasPurgeTime()) { - if (!getPurgeTime().equals(other.getPurgeTime())) return false; - } - if (hasTaskTtl() != other.hasTaskTtl()) return false; - if (hasTaskTtl()) { - if (!getTaskTtl().equals(other.getTaskTtl())) return false; - } - if (hasTombstoneTtl() != other.hasTombstoneTtl()) return false; - if (hasTombstoneTtl()) { - if (!getTombstoneTtl().equals(other.getTombstoneTtl())) return false; - } - if (hasStats() != other.hasStats()) return false; - if (hasStats()) { - if (!getStats().equals(other.getStats())) return false; - } - if (!getTargetTypeCase().equals(other.getTargetTypeCase())) return false; - switch (targetTypeCase_) { - case 3: - if (!getAppEngineHttpTarget().equals(other.getAppEngineHttpTarget())) return false; - break; - case 4: - if (!getPullTarget().equals(other.getPullTarget())) return false; - break; - case 0: - default: - } - 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasRateLimits()) { - hash = (37 * hash) + RATE_LIMITS_FIELD_NUMBER; - hash = (53 * hash) + getRateLimits().hashCode(); - } - if (hasRetryConfig()) { - hash = (37 * hash) + RETRY_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getRetryConfig().hashCode(); - } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (hasPurgeTime()) { - hash = (37 * hash) + PURGE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getPurgeTime().hashCode(); - } - if (hasTaskTtl()) { - hash = (37 * hash) + TASK_TTL_FIELD_NUMBER; - hash = (53 * hash) + getTaskTtl().hashCode(); - } - if (hasTombstoneTtl()) { - hash = (37 * hash) + TOMBSTONE_TTL_FIELD_NUMBER; - hash = (53 * hash) + getTombstoneTtl().hashCode(); - } - if (hasStats()) { - hash = (37 * hash) + STATS_FIELD_NUMBER; - hash = (53 * hash) + getStats().hashCode(); - } - switch (targetTypeCase_) { - case 3: - hash = (37 * hash) + APP_ENGINE_HTTP_TARGET_FIELD_NUMBER; - hash = (53 * hash) + getAppEngineHttpTarget().hashCode(); - break; - case 4: - hash = (37 * hash) + PULL_TARGET_FIELD_NUMBER; - hash = (53 * hash) + getPullTarget().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.Queue parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.Queue parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.Queue parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.Queue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.Queue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.Queue parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.Queue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.Queue parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.Queue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.Queue parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.Queue parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.Queue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta2.Queue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A queue is a container of related tasks. Queues are configured to manage
-   * how those tasks are dispatched. Configurable properties include rate limits,
-   * retry options, target types, and others.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.Queue} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.Queue) - com.google.cloud.tasks.v2beta2.QueueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.QueueProto - .internal_static_google_cloud_tasks_v2beta2_Queue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.QueueProto - .internal_static_google_cloud_tasks_v2beta2_Queue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.Queue.class, - com.google.cloud.tasks.v2beta2.Queue.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.Queue.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (appEngineHttpTargetBuilder_ != null) { - appEngineHttpTargetBuilder_.clear(); - } - if (pullTargetBuilder_ != null) { - pullTargetBuilder_.clear(); - } - if (rateLimitsBuilder_ == null) { - rateLimits_ = null; - } else { - rateLimits_ = null; - rateLimitsBuilder_ = null; - } - if (retryConfigBuilder_ == null) { - retryConfig_ = null; - } else { - retryConfig_ = null; - retryConfigBuilder_ = null; - } - state_ = 0; - - if (purgeTimeBuilder_ == null) { - purgeTime_ = null; - } else { - purgeTime_ = null; - purgeTimeBuilder_ = null; - } - if (taskTtlBuilder_ == null) { - taskTtl_ = null; - } else { - taskTtl_ = null; - taskTtlBuilder_ = null; - } - if (tombstoneTtlBuilder_ == null) { - tombstoneTtl_ = null; - } else { - tombstoneTtl_ = null; - tombstoneTtlBuilder_ = null; - } - if (statsBuilder_ == null) { - stats_ = null; - } else { - stats_ = null; - statsBuilder_ = null; - } - targetTypeCase_ = 0; - targetType_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.QueueProto - .internal_static_google_cloud_tasks_v2beta2_Queue_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Queue getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.Queue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Queue build() { - com.google.cloud.tasks.v2beta2.Queue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Queue buildPartial() { - com.google.cloud.tasks.v2beta2.Queue result = new com.google.cloud.tasks.v2beta2.Queue(this); - result.name_ = name_; - if (targetTypeCase_ == 3) { - if (appEngineHttpTargetBuilder_ == null) { - result.targetType_ = targetType_; - } else { - result.targetType_ = appEngineHttpTargetBuilder_.build(); - } - } - if (targetTypeCase_ == 4) { - if (pullTargetBuilder_ == null) { - result.targetType_ = targetType_; - } else { - result.targetType_ = pullTargetBuilder_.build(); - } - } - if (rateLimitsBuilder_ == null) { - result.rateLimits_ = rateLimits_; - } else { - result.rateLimits_ = rateLimitsBuilder_.build(); - } - if (retryConfigBuilder_ == null) { - result.retryConfig_ = retryConfig_; - } else { - result.retryConfig_ = retryConfigBuilder_.build(); - } - result.state_ = state_; - if (purgeTimeBuilder_ == null) { - result.purgeTime_ = purgeTime_; - } else { - result.purgeTime_ = purgeTimeBuilder_.build(); - } - if (taskTtlBuilder_ == null) { - result.taskTtl_ = taskTtl_; - } else { - result.taskTtl_ = taskTtlBuilder_.build(); - } - if (tombstoneTtlBuilder_ == null) { - result.tombstoneTtl_ = tombstoneTtl_; - } else { - result.tombstoneTtl_ = tombstoneTtlBuilder_.build(); - } - if (statsBuilder_ == null) { - result.stats_ = stats_; - } else { - result.stats_ = statsBuilder_.build(); - } - result.targetTypeCase_ = targetTypeCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.Queue) { - return mergeFrom((com.google.cloud.tasks.v2beta2.Queue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.Queue other) { - if (other == com.google.cloud.tasks.v2beta2.Queue.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasRateLimits()) { - mergeRateLimits(other.getRateLimits()); - } - if (other.hasRetryConfig()) { - mergeRetryConfig(other.getRetryConfig()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.hasPurgeTime()) { - mergePurgeTime(other.getPurgeTime()); - } - if (other.hasTaskTtl()) { - mergeTaskTtl(other.getTaskTtl()); - } - if (other.hasTombstoneTtl()) { - mergeTombstoneTtl(other.getTombstoneTtl()); - } - if (other.hasStats()) { - mergeStats(other.getStats()); - } - switch (other.getTargetTypeCase()) { - case APP_ENGINE_HTTP_TARGET: - { - mergeAppEngineHttpTarget(other.getAppEngineHttpTarget()); - break; - } - case PULL_TARGET: - { - mergePullTarget(other.getPullTarget()); - break; - } - case TARGETTYPE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 26: - { - input.readMessage( - getAppEngineHttpTargetFieldBuilder().getBuilder(), extensionRegistry); - targetTypeCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getPullTargetFieldBuilder().getBuilder(), extensionRegistry); - targetTypeCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getRateLimitsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 50: - { - input.readMessage(getRetryConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 56: - { - state_ = input.readEnum(); - - break; - } // case 56 - case 66: - { - input.readMessage(getPurgeTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 66 - case 74: - { - input.readMessage(getTaskTtlFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 74 - case 82: - { - input.readMessage(getTombstoneTtlFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 82 - case 130: - { - input.readMessage(getStatsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 130 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int targetTypeCase_ = 0; - private java.lang.Object targetType_; - - public TargetTypeCase getTargetTypeCase() { - return TargetTypeCase.forNumber(targetTypeCase_); - } - - public Builder clearTargetType() { - targetTypeCase_ = 0; - targetType_ = null; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue],
-     * after which it becomes output only.
-     * The queue name.
-     * The queue name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the queue's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue],
-     * after which it becomes output only.
-     * The queue name.
-     * The queue name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the queue's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue],
-     * after which it becomes output only.
-     * The queue name.
-     * The queue name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the queue's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue],
-     * after which it becomes output only.
-     * The queue name.
-     * The queue name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the queue's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue],
-     * after which it becomes output only.
-     * The queue name.
-     * The queue name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the queue's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.AppEngineHttpTarget, - com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.Builder, - com.google.cloud.tasks.v2beta2.AppEngineHttpTargetOrBuilder> - appEngineHttpTargetBuilder_; - /** - * - * - *
-     * App Engine HTTP target.
-     * An App Engine queue is a queue that has an [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpTarget app_engine_http_target = 3; - * - * @return Whether the appEngineHttpTarget field is set. - */ - @java.lang.Override - public boolean hasAppEngineHttpTarget() { - return targetTypeCase_ == 3; - } - /** - * - * - *
-     * App Engine HTTP target.
-     * An App Engine queue is a queue that has an [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpTarget app_engine_http_target = 3; - * - * @return The appEngineHttpTarget. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineHttpTarget getAppEngineHttpTarget() { - if (appEngineHttpTargetBuilder_ == null) { - if (targetTypeCase_ == 3) { - return (com.google.cloud.tasks.v2beta2.AppEngineHttpTarget) targetType_; - } - return com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.getDefaultInstance(); - } else { - if (targetTypeCase_ == 3) { - return appEngineHttpTargetBuilder_.getMessage(); - } - return com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.getDefaultInstance(); - } - } - /** - * - * - *
-     * App Engine HTTP target.
-     * An App Engine queue is a queue that has an [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpTarget app_engine_http_target = 3; - */ - public Builder setAppEngineHttpTarget( - com.google.cloud.tasks.v2beta2.AppEngineHttpTarget value) { - if (appEngineHttpTargetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - targetType_ = value; - onChanged(); - } else { - appEngineHttpTargetBuilder_.setMessage(value); - } - targetTypeCase_ = 3; - return this; - } - /** - * - * - *
-     * App Engine HTTP target.
-     * An App Engine queue is a queue that has an [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpTarget app_engine_http_target = 3; - */ - public Builder setAppEngineHttpTarget( - com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.Builder builderForValue) { - if (appEngineHttpTargetBuilder_ == null) { - targetType_ = builderForValue.build(); - onChanged(); - } else { - appEngineHttpTargetBuilder_.setMessage(builderForValue.build()); - } - targetTypeCase_ = 3; - return this; - } - /** - * - * - *
-     * App Engine HTTP target.
-     * An App Engine queue is a queue that has an [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpTarget app_engine_http_target = 3; - */ - public Builder mergeAppEngineHttpTarget( - com.google.cloud.tasks.v2beta2.AppEngineHttpTarget value) { - if (appEngineHttpTargetBuilder_ == null) { - if (targetTypeCase_ == 3 - && targetType_ - != com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.getDefaultInstance()) { - targetType_ = - com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.newBuilder( - (com.google.cloud.tasks.v2beta2.AppEngineHttpTarget) targetType_) - .mergeFrom(value) - .buildPartial(); - } else { - targetType_ = value; - } - onChanged(); - } else { - if (targetTypeCase_ == 3) { - appEngineHttpTargetBuilder_.mergeFrom(value); - } else { - appEngineHttpTargetBuilder_.setMessage(value); - } - } - targetTypeCase_ = 3; - return this; - } - /** - * - * - *
-     * App Engine HTTP target.
-     * An App Engine queue is a queue that has an [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpTarget app_engine_http_target = 3; - */ - public Builder clearAppEngineHttpTarget() { - if (appEngineHttpTargetBuilder_ == null) { - if (targetTypeCase_ == 3) { - targetTypeCase_ = 0; - targetType_ = null; - onChanged(); - } - } else { - if (targetTypeCase_ == 3) { - targetTypeCase_ = 0; - targetType_ = null; - } - appEngineHttpTargetBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * App Engine HTTP target.
-     * An App Engine queue is a queue that has an [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpTarget app_engine_http_target = 3; - */ - public com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.Builder - getAppEngineHttpTargetBuilder() { - return getAppEngineHttpTargetFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * App Engine HTTP target.
-     * An App Engine queue is a queue that has an [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpTarget app_engine_http_target = 3; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineHttpTargetOrBuilder - getAppEngineHttpTargetOrBuilder() { - if ((targetTypeCase_ == 3) && (appEngineHttpTargetBuilder_ != null)) { - return appEngineHttpTargetBuilder_.getMessageOrBuilder(); - } else { - if (targetTypeCase_ == 3) { - return (com.google.cloud.tasks.v2beta2.AppEngineHttpTarget) targetType_; - } - return com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.getDefaultInstance(); - } - } - /** - * - * - *
-     * App Engine HTTP target.
-     * An App Engine queue is a queue that has an [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget].
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpTarget app_engine_http_target = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.AppEngineHttpTarget, - com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.Builder, - com.google.cloud.tasks.v2beta2.AppEngineHttpTargetOrBuilder> - getAppEngineHttpTargetFieldBuilder() { - if (appEngineHttpTargetBuilder_ == null) { - if (!(targetTypeCase_ == 3)) { - targetType_ = com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.getDefaultInstance(); - } - appEngineHttpTargetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.AppEngineHttpTarget, - com.google.cloud.tasks.v2beta2.AppEngineHttpTarget.Builder, - com.google.cloud.tasks.v2beta2.AppEngineHttpTargetOrBuilder>( - (com.google.cloud.tasks.v2beta2.AppEngineHttpTarget) targetType_, - getParentForChildren(), - isClean()); - targetType_ = null; - } - targetTypeCase_ = 3; - onChanged(); - ; - return appEngineHttpTargetBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.PullTarget, - com.google.cloud.tasks.v2beta2.PullTarget.Builder, - com.google.cloud.tasks.v2beta2.PullTargetOrBuilder> - pullTargetBuilder_; - /** - * - * - *
-     * Pull target.
-     * A pull queue is a queue that has a [PullTarget][google.cloud.tasks.v2beta2.PullTarget].
-     * 
- * - * .google.cloud.tasks.v2beta2.PullTarget pull_target = 4; - * - * @return Whether the pullTarget field is set. - */ - @java.lang.Override - public boolean hasPullTarget() { - return targetTypeCase_ == 4; - } - /** - * - * - *
-     * Pull target.
-     * A pull queue is a queue that has a [PullTarget][google.cloud.tasks.v2beta2.PullTarget].
-     * 
- * - * .google.cloud.tasks.v2beta2.PullTarget pull_target = 4; - * - * @return The pullTarget. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PullTarget getPullTarget() { - if (pullTargetBuilder_ == null) { - if (targetTypeCase_ == 4) { - return (com.google.cloud.tasks.v2beta2.PullTarget) targetType_; - } - return com.google.cloud.tasks.v2beta2.PullTarget.getDefaultInstance(); - } else { - if (targetTypeCase_ == 4) { - return pullTargetBuilder_.getMessage(); - } - return com.google.cloud.tasks.v2beta2.PullTarget.getDefaultInstance(); - } - } - /** - * - * - *
-     * Pull target.
-     * A pull queue is a queue that has a [PullTarget][google.cloud.tasks.v2beta2.PullTarget].
-     * 
- * - * .google.cloud.tasks.v2beta2.PullTarget pull_target = 4; - */ - public Builder setPullTarget(com.google.cloud.tasks.v2beta2.PullTarget value) { - if (pullTargetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - targetType_ = value; - onChanged(); - } else { - pullTargetBuilder_.setMessage(value); - } - targetTypeCase_ = 4; - return this; - } - /** - * - * - *
-     * Pull target.
-     * A pull queue is a queue that has a [PullTarget][google.cloud.tasks.v2beta2.PullTarget].
-     * 
- * - * .google.cloud.tasks.v2beta2.PullTarget pull_target = 4; - */ - public Builder setPullTarget( - com.google.cloud.tasks.v2beta2.PullTarget.Builder builderForValue) { - if (pullTargetBuilder_ == null) { - targetType_ = builderForValue.build(); - onChanged(); - } else { - pullTargetBuilder_.setMessage(builderForValue.build()); - } - targetTypeCase_ = 4; - return this; - } - /** - * - * - *
-     * Pull target.
-     * A pull queue is a queue that has a [PullTarget][google.cloud.tasks.v2beta2.PullTarget].
-     * 
- * - * .google.cloud.tasks.v2beta2.PullTarget pull_target = 4; - */ - public Builder mergePullTarget(com.google.cloud.tasks.v2beta2.PullTarget value) { - if (pullTargetBuilder_ == null) { - if (targetTypeCase_ == 4 - && targetType_ != com.google.cloud.tasks.v2beta2.PullTarget.getDefaultInstance()) { - targetType_ = - com.google.cloud.tasks.v2beta2.PullTarget.newBuilder( - (com.google.cloud.tasks.v2beta2.PullTarget) targetType_) - .mergeFrom(value) - .buildPartial(); - } else { - targetType_ = value; - } - onChanged(); - } else { - if (targetTypeCase_ == 4) { - pullTargetBuilder_.mergeFrom(value); - } else { - pullTargetBuilder_.setMessage(value); - } - } - targetTypeCase_ = 4; - return this; - } - /** - * - * - *
-     * Pull target.
-     * A pull queue is a queue that has a [PullTarget][google.cloud.tasks.v2beta2.PullTarget].
-     * 
- * - * .google.cloud.tasks.v2beta2.PullTarget pull_target = 4; - */ - public Builder clearPullTarget() { - if (pullTargetBuilder_ == null) { - if (targetTypeCase_ == 4) { - targetTypeCase_ = 0; - targetType_ = null; - onChanged(); - } - } else { - if (targetTypeCase_ == 4) { - targetTypeCase_ = 0; - targetType_ = null; - } - pullTargetBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Pull target.
-     * A pull queue is a queue that has a [PullTarget][google.cloud.tasks.v2beta2.PullTarget].
-     * 
- * - * .google.cloud.tasks.v2beta2.PullTarget pull_target = 4; - */ - public com.google.cloud.tasks.v2beta2.PullTarget.Builder getPullTargetBuilder() { - return getPullTargetFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Pull target.
-     * A pull queue is a queue that has a [PullTarget][google.cloud.tasks.v2beta2.PullTarget].
-     * 
- * - * .google.cloud.tasks.v2beta2.PullTarget pull_target = 4; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PullTargetOrBuilder getPullTargetOrBuilder() { - if ((targetTypeCase_ == 4) && (pullTargetBuilder_ != null)) { - return pullTargetBuilder_.getMessageOrBuilder(); - } else { - if (targetTypeCase_ == 4) { - return (com.google.cloud.tasks.v2beta2.PullTarget) targetType_; - } - return com.google.cloud.tasks.v2beta2.PullTarget.getDefaultInstance(); - } - } - /** - * - * - *
-     * Pull target.
-     * A pull queue is a queue that has a [PullTarget][google.cloud.tasks.v2beta2.PullTarget].
-     * 
- * - * .google.cloud.tasks.v2beta2.PullTarget pull_target = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.PullTarget, - com.google.cloud.tasks.v2beta2.PullTarget.Builder, - com.google.cloud.tasks.v2beta2.PullTargetOrBuilder> - getPullTargetFieldBuilder() { - if (pullTargetBuilder_ == null) { - if (!(targetTypeCase_ == 4)) { - targetType_ = com.google.cloud.tasks.v2beta2.PullTarget.getDefaultInstance(); - } - pullTargetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.PullTarget, - com.google.cloud.tasks.v2beta2.PullTarget.Builder, - com.google.cloud.tasks.v2beta2.PullTargetOrBuilder>( - (com.google.cloud.tasks.v2beta2.PullTarget) targetType_, - getParentForChildren(), - isClean()); - targetType_ = null; - } - targetTypeCase_ = 4; - onChanged(); - ; - return pullTargetBuilder_; - } - - private com.google.cloud.tasks.v2beta2.RateLimits rateLimits_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.RateLimits, - com.google.cloud.tasks.v2beta2.RateLimits.Builder, - com.google.cloud.tasks.v2beta2.RateLimitsOrBuilder> - rateLimitsBuilder_; - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] and
-     * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] are related because they both
-     * control task attempts however they control how tasks are
-     * attempted in different ways:
-     * * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * 
- * - * .google.cloud.tasks.v2beta2.RateLimits rate_limits = 5; - * - * @return Whether the rateLimits field is set. - */ - public boolean hasRateLimits() { - return rateLimitsBuilder_ != null || rateLimits_ != null; - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] and
-     * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] are related because they both
-     * control task attempts however they control how tasks are
-     * attempted in different ways:
-     * * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * 
- * - * .google.cloud.tasks.v2beta2.RateLimits rate_limits = 5; - * - * @return The rateLimits. - */ - public com.google.cloud.tasks.v2beta2.RateLimits getRateLimits() { - if (rateLimitsBuilder_ == null) { - return rateLimits_ == null - ? com.google.cloud.tasks.v2beta2.RateLimits.getDefaultInstance() - : rateLimits_; - } else { - return rateLimitsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] and
-     * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] are related because they both
-     * control task attempts however they control how tasks are
-     * attempted in different ways:
-     * * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * 
- * - * .google.cloud.tasks.v2beta2.RateLimits rate_limits = 5; - */ - public Builder setRateLimits(com.google.cloud.tasks.v2beta2.RateLimits value) { - if (rateLimitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rateLimits_ = value; - onChanged(); - } else { - rateLimitsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] and
-     * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] are related because they both
-     * control task attempts however they control how tasks are
-     * attempted in different ways:
-     * * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * 
- * - * .google.cloud.tasks.v2beta2.RateLimits rate_limits = 5; - */ - public Builder setRateLimits( - com.google.cloud.tasks.v2beta2.RateLimits.Builder builderForValue) { - if (rateLimitsBuilder_ == null) { - rateLimits_ = builderForValue.build(); - onChanged(); - } else { - rateLimitsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] and
-     * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] are related because they both
-     * control task attempts however they control how tasks are
-     * attempted in different ways:
-     * * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * 
- * - * .google.cloud.tasks.v2beta2.RateLimits rate_limits = 5; - */ - public Builder mergeRateLimits(com.google.cloud.tasks.v2beta2.RateLimits value) { - if (rateLimitsBuilder_ == null) { - if (rateLimits_ != null) { - rateLimits_ = - com.google.cloud.tasks.v2beta2.RateLimits.newBuilder(rateLimits_) - .mergeFrom(value) - .buildPartial(); - } else { - rateLimits_ = value; - } - onChanged(); - } else { - rateLimitsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] and
-     * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] are related because they both
-     * control task attempts however they control how tasks are
-     * attempted in different ways:
-     * * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * 
- * - * .google.cloud.tasks.v2beta2.RateLimits rate_limits = 5; - */ - public Builder clearRateLimits() { - if (rateLimitsBuilder_ == null) { - rateLimits_ = null; - onChanged(); - } else { - rateLimits_ = null; - rateLimitsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] and
-     * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] are related because they both
-     * control task attempts however they control how tasks are
-     * attempted in different ways:
-     * * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * 
- * - * .google.cloud.tasks.v2beta2.RateLimits rate_limits = 5; - */ - public com.google.cloud.tasks.v2beta2.RateLimits.Builder getRateLimitsBuilder() { - - onChanged(); - return getRateLimitsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] and
-     * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] are related because they both
-     * control task attempts however they control how tasks are
-     * attempted in different ways:
-     * * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * 
- * - * .google.cloud.tasks.v2beta2.RateLimits rate_limits = 5; - */ - public com.google.cloud.tasks.v2beta2.RateLimitsOrBuilder getRateLimitsOrBuilder() { - if (rateLimitsBuilder_ != null) { - return rateLimitsBuilder_.getMessageOrBuilder(); - } else { - return rateLimits_ == null - ? com.google.cloud.tasks.v2beta2.RateLimits.getDefaultInstance() - : rateLimits_; - } - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] and
-     * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] are related because they both
-     * control task attempts however they control how tasks are
-     * attempted in different ways:
-     * * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * 
- * - * .google.cloud.tasks.v2beta2.RateLimits rate_limits = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.RateLimits, - com.google.cloud.tasks.v2beta2.RateLimits.Builder, - com.google.cloud.tasks.v2beta2.RateLimitsOrBuilder> - getRateLimitsFieldBuilder() { - if (rateLimitsBuilder_ == null) { - rateLimitsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.RateLimits, - com.google.cloud.tasks.v2beta2.RateLimits.Builder, - com.google.cloud.tasks.v2beta2.RateLimitsOrBuilder>( - getRateLimits(), getParentForChildren(), isClean()); - rateLimits_ = null; - } - return rateLimitsBuilder_; - } - - private com.google.cloud.tasks.v2beta2.RetryConfig retryConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.RetryConfig, - com.google.cloud.tasks.v2beta2.RetryConfig.Builder, - com.google.cloud.tasks.v2beta2.RetryConfigOrBuilder> - retryConfigBuilder_; - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2beta2.RetryConfig retry_config = 6; - * - * @return Whether the retryConfig field is set. - */ - public boolean hasRetryConfig() { - return retryConfigBuilder_ != null || retryConfig_ != null; - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2beta2.RetryConfig retry_config = 6; - * - * @return The retryConfig. - */ - public com.google.cloud.tasks.v2beta2.RetryConfig getRetryConfig() { - if (retryConfigBuilder_ == null) { - return retryConfig_ == null - ? com.google.cloud.tasks.v2beta2.RetryConfig.getDefaultInstance() - : retryConfig_; - } else { - return retryConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2beta2.RetryConfig retry_config = 6; - */ - public Builder setRetryConfig(com.google.cloud.tasks.v2beta2.RetryConfig value) { - if (retryConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - retryConfig_ = value; - onChanged(); - } else { - retryConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2beta2.RetryConfig retry_config = 6; - */ - public Builder setRetryConfig( - com.google.cloud.tasks.v2beta2.RetryConfig.Builder builderForValue) { - if (retryConfigBuilder_ == null) { - retryConfig_ = builderForValue.build(); - onChanged(); - } else { - retryConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2beta2.RetryConfig retry_config = 6; - */ - public Builder mergeRetryConfig(com.google.cloud.tasks.v2beta2.RetryConfig value) { - if (retryConfigBuilder_ == null) { - if (retryConfig_ != null) { - retryConfig_ = - com.google.cloud.tasks.v2beta2.RetryConfig.newBuilder(retryConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - retryConfig_ = value; - } - onChanged(); - } else { - retryConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2beta2.RetryConfig retry_config = 6; - */ - public Builder clearRetryConfig() { - if (retryConfigBuilder_ == null) { - retryConfig_ = null; - onChanged(); - } else { - retryConfig_ = null; - retryConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2beta2.RetryConfig retry_config = 6; - */ - public com.google.cloud.tasks.v2beta2.RetryConfig.Builder getRetryConfigBuilder() { - - onChanged(); - return getRetryConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2beta2.RetryConfig retry_config = 6; - */ - public com.google.cloud.tasks.v2beta2.RetryConfigOrBuilder getRetryConfigOrBuilder() { - if (retryConfigBuilder_ != null) { - return retryConfigBuilder_.getMessageOrBuilder(); - } else { - return retryConfig_ == null - ? com.google.cloud.tasks.v2beta2.RetryConfig.getDefaultInstance() - : retryConfig_; - } - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2beta2.RetryConfig retry_config = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.RetryConfig, - com.google.cloud.tasks.v2beta2.RetryConfig.Builder, - com.google.cloud.tasks.v2beta2.RetryConfigOrBuilder> - getRetryConfigFieldBuilder() { - if (retryConfigBuilder_ == null) { - retryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.RetryConfig, - com.google.cloud.tasks.v2beta2.RetryConfig.Builder, - com.google.cloud.tasks.v2beta2.RetryConfigOrBuilder>( - getRetryConfig(), getParentForChildren(), isClean()); - retryConfig_ = null; - } - return retryConfigBuilder_; - } - - private int state_ = 0; - /** - * - * - *
-     * Output only. The state of the queue.
-     * `state` can only be changed by calling
-     * [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue],
-     * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or uploading
-     * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-     * [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] cannot be used to change `state`.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue.State state = 7; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. The state of the queue.
-     * `state` can only be changed by calling
-     * [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue],
-     * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or uploading
-     * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-     * [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] cannot be used to change `state`.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue.State state = 7; - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The state of the queue.
-     * `state` can only be changed by calling
-     * [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue],
-     * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or uploading
-     * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-     * [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] cannot be used to change `state`.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue.State state = 7; - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Queue.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta2.Queue.State result = - com.google.cloud.tasks.v2beta2.Queue.State.valueOf(state_); - return result == null ? com.google.cloud.tasks.v2beta2.Queue.State.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Output only. The state of the queue.
-     * `state` can only be changed by calling
-     * [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue],
-     * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or uploading
-     * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-     * [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] cannot be used to change `state`.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue.State state = 7; - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.tasks.v2beta2.Queue.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The state of the queue.
-     * `state` can only be changed by calling
-     * [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue],
-     * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or uploading
-     * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-     * [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] cannot be used to change `state`.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue.State state = 7; - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp purgeTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - purgeTimeBuilder_; - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2beta2.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 8; - * - * @return Whether the purgeTime field is set. - */ - public boolean hasPurgeTime() { - return purgeTimeBuilder_ != null || purgeTime_ != null; - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2beta2.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 8; - * - * @return The purgeTime. - */ - public com.google.protobuf.Timestamp getPurgeTime() { - if (purgeTimeBuilder_ == null) { - return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; - } else { - return purgeTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2beta2.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 8; - */ - public Builder setPurgeTime(com.google.protobuf.Timestamp value) { - if (purgeTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - purgeTime_ = value; - onChanged(); - } else { - purgeTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2beta2.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 8; - */ - public Builder setPurgeTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (purgeTimeBuilder_ == null) { - purgeTime_ = builderForValue.build(); - onChanged(); - } else { - purgeTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2beta2.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 8; - */ - public Builder mergePurgeTime(com.google.protobuf.Timestamp value) { - if (purgeTimeBuilder_ == null) { - if (purgeTime_ != null) { - purgeTime_ = - com.google.protobuf.Timestamp.newBuilder(purgeTime_).mergeFrom(value).buildPartial(); - } else { - purgeTime_ = value; - } - onChanged(); - } else { - purgeTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2beta2.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 8; - */ - public Builder clearPurgeTime() { - if (purgeTimeBuilder_ == null) { - purgeTime_ = null; - onChanged(); - } else { - purgeTime_ = null; - purgeTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2beta2.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 8; - */ - public com.google.protobuf.Timestamp.Builder getPurgeTimeBuilder() { - - onChanged(); - return getPurgeTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2beta2.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 8; - */ - public com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder() { - if (purgeTimeBuilder_ != null) { - return purgeTimeBuilder_.getMessageOrBuilder(); - } else { - return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; - } - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2beta2.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getPurgeTimeFieldBuilder() { - if (purgeTimeBuilder_ == null) { - purgeTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getPurgeTime(), getParentForChildren(), isClean()); - purgeTime_ = null; - } - return purgeTimeBuilder_; - } - - private com.google.protobuf.Duration taskTtl_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - taskTtlBuilder_; - /** - * - * - *
-     * The maximum amount of time that a task will be retained in
-     * this queue.
-     * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-     * After a task has lived for `task_ttl`, the task will be deleted
-     * regardless of whether it was dispatched or not.
-     * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-     * maximum duration because there is a
-     * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-     * these queues. To view the maximum valid duration, see the documentation for
-     * [Duration][google.protobuf.Duration].
-     * 
- * - * .google.protobuf.Duration task_ttl = 9; - * - * @return Whether the taskTtl field is set. - */ - public boolean hasTaskTtl() { - return taskTtlBuilder_ != null || taskTtl_ != null; - } - /** - * - * - *
-     * The maximum amount of time that a task will be retained in
-     * this queue.
-     * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-     * After a task has lived for `task_ttl`, the task will be deleted
-     * regardless of whether it was dispatched or not.
-     * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-     * maximum duration because there is a
-     * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-     * these queues. To view the maximum valid duration, see the documentation for
-     * [Duration][google.protobuf.Duration].
-     * 
- * - * .google.protobuf.Duration task_ttl = 9; - * - * @return The taskTtl. - */ - public com.google.protobuf.Duration getTaskTtl() { - if (taskTtlBuilder_ == null) { - return taskTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : taskTtl_; - } else { - return taskTtlBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The maximum amount of time that a task will be retained in
-     * this queue.
-     * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-     * After a task has lived for `task_ttl`, the task will be deleted
-     * regardless of whether it was dispatched or not.
-     * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-     * maximum duration because there is a
-     * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-     * these queues. To view the maximum valid duration, see the documentation for
-     * [Duration][google.protobuf.Duration].
-     * 
- * - * .google.protobuf.Duration task_ttl = 9; - */ - public Builder setTaskTtl(com.google.protobuf.Duration value) { - if (taskTtlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taskTtl_ = value; - onChanged(); - } else { - taskTtlBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The maximum amount of time that a task will be retained in
-     * this queue.
-     * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-     * After a task has lived for `task_ttl`, the task will be deleted
-     * regardless of whether it was dispatched or not.
-     * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-     * maximum duration because there is a
-     * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-     * these queues. To view the maximum valid duration, see the documentation for
-     * [Duration][google.protobuf.Duration].
-     * 
- * - * .google.protobuf.Duration task_ttl = 9; - */ - public Builder setTaskTtl(com.google.protobuf.Duration.Builder builderForValue) { - if (taskTtlBuilder_ == null) { - taskTtl_ = builderForValue.build(); - onChanged(); - } else { - taskTtlBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The maximum amount of time that a task will be retained in
-     * this queue.
-     * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-     * After a task has lived for `task_ttl`, the task will be deleted
-     * regardless of whether it was dispatched or not.
-     * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-     * maximum duration because there is a
-     * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-     * these queues. To view the maximum valid duration, see the documentation for
-     * [Duration][google.protobuf.Duration].
-     * 
- * - * .google.protobuf.Duration task_ttl = 9; - */ - public Builder mergeTaskTtl(com.google.protobuf.Duration value) { - if (taskTtlBuilder_ == null) { - if (taskTtl_ != null) { - taskTtl_ = - com.google.protobuf.Duration.newBuilder(taskTtl_).mergeFrom(value).buildPartial(); - } else { - taskTtl_ = value; - } - onChanged(); - } else { - taskTtlBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The maximum amount of time that a task will be retained in
-     * this queue.
-     * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-     * After a task has lived for `task_ttl`, the task will be deleted
-     * regardless of whether it was dispatched or not.
-     * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-     * maximum duration because there is a
-     * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-     * these queues. To view the maximum valid duration, see the documentation for
-     * [Duration][google.protobuf.Duration].
-     * 
- * - * .google.protobuf.Duration task_ttl = 9; - */ - public Builder clearTaskTtl() { - if (taskTtlBuilder_ == null) { - taskTtl_ = null; - onChanged(); - } else { - taskTtl_ = null; - taskTtlBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The maximum amount of time that a task will be retained in
-     * this queue.
-     * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-     * After a task has lived for `task_ttl`, the task will be deleted
-     * regardless of whether it was dispatched or not.
-     * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-     * maximum duration because there is a
-     * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-     * these queues. To view the maximum valid duration, see the documentation for
-     * [Duration][google.protobuf.Duration].
-     * 
- * - * .google.protobuf.Duration task_ttl = 9; - */ - public com.google.protobuf.Duration.Builder getTaskTtlBuilder() { - - onChanged(); - return getTaskTtlFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The maximum amount of time that a task will be retained in
-     * this queue.
-     * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-     * After a task has lived for `task_ttl`, the task will be deleted
-     * regardless of whether it was dispatched or not.
-     * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-     * maximum duration because there is a
-     * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-     * these queues. To view the maximum valid duration, see the documentation for
-     * [Duration][google.protobuf.Duration].
-     * 
- * - * .google.protobuf.Duration task_ttl = 9; - */ - public com.google.protobuf.DurationOrBuilder getTaskTtlOrBuilder() { - if (taskTtlBuilder_ != null) { - return taskTtlBuilder_.getMessageOrBuilder(); - } else { - return taskTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : taskTtl_; - } - } - /** - * - * - *
-     * The maximum amount of time that a task will be retained in
-     * this queue.
-     * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-     * After a task has lived for `task_ttl`, the task will be deleted
-     * regardless of whether it was dispatched or not.
-     * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-     * maximum duration because there is a
-     * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-     * these queues. To view the maximum valid duration, see the documentation for
-     * [Duration][google.protobuf.Duration].
-     * 
- * - * .google.protobuf.Duration task_ttl = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getTaskTtlFieldBuilder() { - if (taskTtlBuilder_ == null) { - taskTtlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getTaskTtl(), getParentForChildren(), isClean()); - taskTtl_ = null; - } - return taskTtlBuilder_; - } - - private com.google.protobuf.Duration tombstoneTtl_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - tombstoneTtlBuilder_; - /** - * - * - *
-     * The task tombstone time to live (TTL).
-     * After a task is deleted or completed, the task's tombstone is
-     * retained for the length of time specified by `tombstone_ttl`.
-     * The tombstone is used by task de-duplication; another task with the same
-     * name can't be created until the tombstone has expired. For more information
-     * about task de-duplication, see the documentation for
-     * [CreateTaskRequest][google.cloud.tasks.v2beta2.CreateTaskRequest.task].
-     * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-     * 
- * - * .google.protobuf.Duration tombstone_ttl = 10; - * - * @return Whether the tombstoneTtl field is set. - */ - public boolean hasTombstoneTtl() { - return tombstoneTtlBuilder_ != null || tombstoneTtl_ != null; - } - /** - * - * - *
-     * The task tombstone time to live (TTL).
-     * After a task is deleted or completed, the task's tombstone is
-     * retained for the length of time specified by `tombstone_ttl`.
-     * The tombstone is used by task de-duplication; another task with the same
-     * name can't be created until the tombstone has expired. For more information
-     * about task de-duplication, see the documentation for
-     * [CreateTaskRequest][google.cloud.tasks.v2beta2.CreateTaskRequest.task].
-     * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-     * 
- * - * .google.protobuf.Duration tombstone_ttl = 10; - * - * @return The tombstoneTtl. - */ - public com.google.protobuf.Duration getTombstoneTtl() { - if (tombstoneTtlBuilder_ == null) { - return tombstoneTtl_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : tombstoneTtl_; - } else { - return tombstoneTtlBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The task tombstone time to live (TTL).
-     * After a task is deleted or completed, the task's tombstone is
-     * retained for the length of time specified by `tombstone_ttl`.
-     * The tombstone is used by task de-duplication; another task with the same
-     * name can't be created until the tombstone has expired. For more information
-     * about task de-duplication, see the documentation for
-     * [CreateTaskRequest][google.cloud.tasks.v2beta2.CreateTaskRequest.task].
-     * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-     * 
- * - * .google.protobuf.Duration tombstone_ttl = 10; - */ - public Builder setTombstoneTtl(com.google.protobuf.Duration value) { - if (tombstoneTtlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tombstoneTtl_ = value; - onChanged(); - } else { - tombstoneTtlBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The task tombstone time to live (TTL).
-     * After a task is deleted or completed, the task's tombstone is
-     * retained for the length of time specified by `tombstone_ttl`.
-     * The tombstone is used by task de-duplication; another task with the same
-     * name can't be created until the tombstone has expired. For more information
-     * about task de-duplication, see the documentation for
-     * [CreateTaskRequest][google.cloud.tasks.v2beta2.CreateTaskRequest.task].
-     * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-     * 
- * - * .google.protobuf.Duration tombstone_ttl = 10; - */ - public Builder setTombstoneTtl(com.google.protobuf.Duration.Builder builderForValue) { - if (tombstoneTtlBuilder_ == null) { - tombstoneTtl_ = builderForValue.build(); - onChanged(); - } else { - tombstoneTtlBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The task tombstone time to live (TTL).
-     * After a task is deleted or completed, the task's tombstone is
-     * retained for the length of time specified by `tombstone_ttl`.
-     * The tombstone is used by task de-duplication; another task with the same
-     * name can't be created until the tombstone has expired. For more information
-     * about task de-duplication, see the documentation for
-     * [CreateTaskRequest][google.cloud.tasks.v2beta2.CreateTaskRequest.task].
-     * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-     * 
- * - * .google.protobuf.Duration tombstone_ttl = 10; - */ - public Builder mergeTombstoneTtl(com.google.protobuf.Duration value) { - if (tombstoneTtlBuilder_ == null) { - if (tombstoneTtl_ != null) { - tombstoneTtl_ = - com.google.protobuf.Duration.newBuilder(tombstoneTtl_) - .mergeFrom(value) - .buildPartial(); - } else { - tombstoneTtl_ = value; - } - onChanged(); - } else { - tombstoneTtlBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The task tombstone time to live (TTL).
-     * After a task is deleted or completed, the task's tombstone is
-     * retained for the length of time specified by `tombstone_ttl`.
-     * The tombstone is used by task de-duplication; another task with the same
-     * name can't be created until the tombstone has expired. For more information
-     * about task de-duplication, see the documentation for
-     * [CreateTaskRequest][google.cloud.tasks.v2beta2.CreateTaskRequest.task].
-     * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-     * 
- * - * .google.protobuf.Duration tombstone_ttl = 10; - */ - public Builder clearTombstoneTtl() { - if (tombstoneTtlBuilder_ == null) { - tombstoneTtl_ = null; - onChanged(); - } else { - tombstoneTtl_ = null; - tombstoneTtlBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The task tombstone time to live (TTL).
-     * After a task is deleted or completed, the task's tombstone is
-     * retained for the length of time specified by `tombstone_ttl`.
-     * The tombstone is used by task de-duplication; another task with the same
-     * name can't be created until the tombstone has expired. For more information
-     * about task de-duplication, see the documentation for
-     * [CreateTaskRequest][google.cloud.tasks.v2beta2.CreateTaskRequest.task].
-     * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-     * 
- * - * .google.protobuf.Duration tombstone_ttl = 10; - */ - public com.google.protobuf.Duration.Builder getTombstoneTtlBuilder() { - - onChanged(); - return getTombstoneTtlFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The task tombstone time to live (TTL).
-     * After a task is deleted or completed, the task's tombstone is
-     * retained for the length of time specified by `tombstone_ttl`.
-     * The tombstone is used by task de-duplication; another task with the same
-     * name can't be created until the tombstone has expired. For more information
-     * about task de-duplication, see the documentation for
-     * [CreateTaskRequest][google.cloud.tasks.v2beta2.CreateTaskRequest.task].
-     * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-     * 
- * - * .google.protobuf.Duration tombstone_ttl = 10; - */ - public com.google.protobuf.DurationOrBuilder getTombstoneTtlOrBuilder() { - if (tombstoneTtlBuilder_ != null) { - return tombstoneTtlBuilder_.getMessageOrBuilder(); - } else { - return tombstoneTtl_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : tombstoneTtl_; - } - } - /** - * - * - *
-     * The task tombstone time to live (TTL).
-     * After a task is deleted or completed, the task's tombstone is
-     * retained for the length of time specified by `tombstone_ttl`.
-     * The tombstone is used by task de-duplication; another task with the same
-     * name can't be created until the tombstone has expired. For more information
-     * about task de-duplication, see the documentation for
-     * [CreateTaskRequest][google.cloud.tasks.v2beta2.CreateTaskRequest.task].
-     * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-     * 
- * - * .google.protobuf.Duration tombstone_ttl = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getTombstoneTtlFieldBuilder() { - if (tombstoneTtlBuilder_ == null) { - tombstoneTtlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getTombstoneTtl(), getParentForChildren(), isClean()); - tombstoneTtl_ = null; - } - return tombstoneTtlBuilder_; - } - - private com.google.cloud.tasks.v2beta2.QueueStats stats_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.QueueStats, - com.google.cloud.tasks.v2beta2.QueueStats.Builder, - com.google.cloud.tasks.v2beta2.QueueStatsOrBuilder> - statsBuilder_; - /** - * - * - *
-     * Output only. The realtime, informational statistics for a queue. In order
-     * to receive the statistics the caller should include this field in the
-     * FieldMask.
-     * 
- * - * - * .google.cloud.tasks.v2beta2.QueueStats stats = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stats field is set. - */ - public boolean hasStats() { - return statsBuilder_ != null || stats_ != null; - } - /** - * - * - *
-     * Output only. The realtime, informational statistics for a queue. In order
-     * to receive the statistics the caller should include this field in the
-     * FieldMask.
-     * 
- * - * - * .google.cloud.tasks.v2beta2.QueueStats stats = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stats. - */ - public com.google.cloud.tasks.v2beta2.QueueStats getStats() { - if (statsBuilder_ == null) { - return stats_ == null - ? com.google.cloud.tasks.v2beta2.QueueStats.getDefaultInstance() - : stats_; - } else { - return statsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The realtime, informational statistics for a queue. In order
-     * to receive the statistics the caller should include this field in the
-     * FieldMask.
-     * 
- * - * - * .google.cloud.tasks.v2beta2.QueueStats stats = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStats(com.google.cloud.tasks.v2beta2.QueueStats value) { - if (statsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stats_ = value; - onChanged(); - } else { - statsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The realtime, informational statistics for a queue. In order
-     * to receive the statistics the caller should include this field in the
-     * FieldMask.
-     * 
- * - * - * .google.cloud.tasks.v2beta2.QueueStats stats = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStats(com.google.cloud.tasks.v2beta2.QueueStats.Builder builderForValue) { - if (statsBuilder_ == null) { - stats_ = builderForValue.build(); - onChanged(); - } else { - statsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The realtime, informational statistics for a queue. In order
-     * to receive the statistics the caller should include this field in the
-     * FieldMask.
-     * 
- * - * - * .google.cloud.tasks.v2beta2.QueueStats stats = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeStats(com.google.cloud.tasks.v2beta2.QueueStats value) { - if (statsBuilder_ == null) { - if (stats_ != null) { - stats_ = - com.google.cloud.tasks.v2beta2.QueueStats.newBuilder(stats_) - .mergeFrom(value) - .buildPartial(); - } else { - stats_ = value; - } - onChanged(); - } else { - statsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The realtime, informational statistics for a queue. In order
-     * to receive the statistics the caller should include this field in the
-     * FieldMask.
-     * 
- * - * - * .google.cloud.tasks.v2beta2.QueueStats stats = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStats() { - if (statsBuilder_ == null) { - stats_ = null; - onChanged(); - } else { - stats_ = null; - statsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The realtime, informational statistics for a queue. In order
-     * to receive the statistics the caller should include this field in the
-     * FieldMask.
-     * 
- * - * - * .google.cloud.tasks.v2beta2.QueueStats stats = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.tasks.v2beta2.QueueStats.Builder getStatsBuilder() { - - onChanged(); - return getStatsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The realtime, informational statistics for a queue. In order
-     * to receive the statistics the caller should include this field in the
-     * FieldMask.
-     * 
- * - * - * .google.cloud.tasks.v2beta2.QueueStats stats = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.tasks.v2beta2.QueueStatsOrBuilder getStatsOrBuilder() { - if (statsBuilder_ != null) { - return statsBuilder_.getMessageOrBuilder(); - } else { - return stats_ == null - ? com.google.cloud.tasks.v2beta2.QueueStats.getDefaultInstance() - : stats_; - } - } - /** - * - * - *
-     * Output only. The realtime, informational statistics for a queue. In order
-     * to receive the statistics the caller should include this field in the
-     * FieldMask.
-     * 
- * - * - * .google.cloud.tasks.v2beta2.QueueStats stats = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.QueueStats, - com.google.cloud.tasks.v2beta2.QueueStats.Builder, - com.google.cloud.tasks.v2beta2.QueueStatsOrBuilder> - getStatsFieldBuilder() { - if (statsBuilder_ == null) { - statsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.QueueStats, - com.google.cloud.tasks.v2beta2.QueueStats.Builder, - com.google.cloud.tasks.v2beta2.QueueStatsOrBuilder>( - getStats(), getParentForChildren(), isClean()); - stats_ = null; - } - return statsBuilder_; - } - - @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.Queue) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.Queue) - private static final com.google.cloud.tasks.v2beta2.Queue DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.Queue(); - } - - public static com.google.cloud.tasks.v2beta2.Queue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Queue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Queue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueName.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueName.java deleted file mode 100644 index a7417d36..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueName.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Copyright 2022 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; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class QueueName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_QUEUE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/queues/{queue}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String queue; - - @Deprecated - protected QueueName() { - project = null; - location = null; - queue = null; - } - - private QueueName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - queue = Preconditions.checkNotNull(builder.getQueue()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getQueue() { - return queue; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static QueueName of(String project, String location, String queue) { - return newBuilder().setProject(project).setLocation(location).setQueue(queue).build(); - } - - public static String format(String project, String location, String queue) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setQueue(queue) - .build() - .toString(); - } - - public static QueueName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_QUEUE.validatedMatch( - formattedString, "QueueName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("queue")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (QueueName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_QUEUE.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - if (queue != null) { - fieldMapBuilder.put("queue", queue); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_QUEUE.instantiate( - "project", project, "location", location, "queue", queue); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - QueueName that = ((QueueName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.queue, that.queue); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - h *= 1000003; - h ^= Objects.hashCode(queue); - return h; - } - - /** Builder for projects/{project}/locations/{location}/queues/{queue}. */ - public static class Builder { - private String project; - private String location; - private String queue; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getQueue() { - return queue; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setQueue(String queue) { - this.queue = queue; - return this; - } - - private Builder(QueueName queueName) { - this.project = queueName.project; - this.location = queueName.location; - this.queue = queueName.queue; - } - - public QueueName build() { - return new QueueName(this); - } - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueOrBuilder.java deleted file mode 100644 index 15bb0343..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueOrBuilder.java +++ /dev/null @@ -1,544 +0,0 @@ -/* - * Copyright 2020 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/queue.proto - -package com.google.cloud.tasks.v2beta2; - -public interface QueueOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.Queue) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue],
-   * after which it becomes output only.
-   * The queue name.
-   * The queue name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the queue's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue],
-   * after which it becomes output only.
-   * The queue name.
-   * The queue name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the queue's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * App Engine HTTP target.
-   * An App Engine queue is a queue that has an [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget].
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpTarget app_engine_http_target = 3; - * - * @return Whether the appEngineHttpTarget field is set. - */ - boolean hasAppEngineHttpTarget(); - /** - * - * - *
-   * App Engine HTTP target.
-   * An App Engine queue is a queue that has an [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget].
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpTarget app_engine_http_target = 3; - * - * @return The appEngineHttpTarget. - */ - com.google.cloud.tasks.v2beta2.AppEngineHttpTarget getAppEngineHttpTarget(); - /** - * - * - *
-   * App Engine HTTP target.
-   * An App Engine queue is a queue that has an [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget].
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpTarget app_engine_http_target = 3; - */ - com.google.cloud.tasks.v2beta2.AppEngineHttpTargetOrBuilder getAppEngineHttpTargetOrBuilder(); - - /** - * - * - *
-   * Pull target.
-   * A pull queue is a queue that has a [PullTarget][google.cloud.tasks.v2beta2.PullTarget].
-   * 
- * - * .google.cloud.tasks.v2beta2.PullTarget pull_target = 4; - * - * @return Whether the pullTarget field is set. - */ - boolean hasPullTarget(); - /** - * - * - *
-   * Pull target.
-   * A pull queue is a queue that has a [PullTarget][google.cloud.tasks.v2beta2.PullTarget].
-   * 
- * - * .google.cloud.tasks.v2beta2.PullTarget pull_target = 4; - * - * @return The pullTarget. - */ - com.google.cloud.tasks.v2beta2.PullTarget getPullTarget(); - /** - * - * - *
-   * Pull target.
-   * A pull queue is a queue that has a [PullTarget][google.cloud.tasks.v2beta2.PullTarget].
-   * 
- * - * .google.cloud.tasks.v2beta2.PullTarget pull_target = 4; - */ - com.google.cloud.tasks.v2beta2.PullTargetOrBuilder getPullTargetOrBuilder(); - - /** - * - * - *
-   * Rate limits for task dispatches.
-   * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] and
-   * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] are related because they both
-   * control task attempts however they control how tasks are
-   * attempted in different ways:
-   * * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] controls the total rate of
-   *   dispatches from a queue (i.e. all traffic dispatched from the
-   *   queue, regardless of whether the dispatch is from a first
-   *   attempt or a retry).
-   * * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls what happens to
-   *   particular a task after its first attempt fails. That is,
-   *   [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls task retries (the
-   *   second attempt, third attempt, etc).
-   * 
- * - * .google.cloud.tasks.v2beta2.RateLimits rate_limits = 5; - * - * @return Whether the rateLimits field is set. - */ - boolean hasRateLimits(); - /** - * - * - *
-   * Rate limits for task dispatches.
-   * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] and
-   * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] are related because they both
-   * control task attempts however they control how tasks are
-   * attempted in different ways:
-   * * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] controls the total rate of
-   *   dispatches from a queue (i.e. all traffic dispatched from the
-   *   queue, regardless of whether the dispatch is from a first
-   *   attempt or a retry).
-   * * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls what happens to
-   *   particular a task after its first attempt fails. That is,
-   *   [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls task retries (the
-   *   second attempt, third attempt, etc).
-   * 
- * - * .google.cloud.tasks.v2beta2.RateLimits rate_limits = 5; - * - * @return The rateLimits. - */ - com.google.cloud.tasks.v2beta2.RateLimits getRateLimits(); - /** - * - * - *
-   * Rate limits for task dispatches.
-   * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] and
-   * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] are related because they both
-   * control task attempts however they control how tasks are
-   * attempted in different ways:
-   * * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] controls the total rate of
-   *   dispatches from a queue (i.e. all traffic dispatched from the
-   *   queue, regardless of whether the dispatch is from a first
-   *   attempt or a retry).
-   * * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls what happens to
-   *   particular a task after its first attempt fails. That is,
-   *   [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls task retries (the
-   *   second attempt, third attempt, etc).
-   * 
- * - * .google.cloud.tasks.v2beta2.RateLimits rate_limits = 5; - */ - com.google.cloud.tasks.v2beta2.RateLimitsOrBuilder getRateLimitsOrBuilder(); - - /** - * - * - *
-   * Settings that determine the retry behavior.
-   * * For tasks created using Cloud Tasks: the queue-level retry settings
-   *   apply to all tasks in the queue that were created using Cloud Tasks.
-   *   Retry settings cannot be set on individual tasks.
-   * * For tasks created using the App Engine SDK: the queue-level retry
-   *   settings apply to all tasks in the queue which do not have retry settings
-   *   explicitly set on the task and were created by the App Engine SDK. See
-   *   [App Engine
-   *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-   * 
- * - * .google.cloud.tasks.v2beta2.RetryConfig retry_config = 6; - * - * @return Whether the retryConfig field is set. - */ - boolean hasRetryConfig(); - /** - * - * - *
-   * Settings that determine the retry behavior.
-   * * For tasks created using Cloud Tasks: the queue-level retry settings
-   *   apply to all tasks in the queue that were created using Cloud Tasks.
-   *   Retry settings cannot be set on individual tasks.
-   * * For tasks created using the App Engine SDK: the queue-level retry
-   *   settings apply to all tasks in the queue which do not have retry settings
-   *   explicitly set on the task and were created by the App Engine SDK. See
-   *   [App Engine
-   *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-   * 
- * - * .google.cloud.tasks.v2beta2.RetryConfig retry_config = 6; - * - * @return The retryConfig. - */ - com.google.cloud.tasks.v2beta2.RetryConfig getRetryConfig(); - /** - * - * - *
-   * Settings that determine the retry behavior.
-   * * For tasks created using Cloud Tasks: the queue-level retry settings
-   *   apply to all tasks in the queue that were created using Cloud Tasks.
-   *   Retry settings cannot be set on individual tasks.
-   * * For tasks created using the App Engine SDK: the queue-level retry
-   *   settings apply to all tasks in the queue which do not have retry settings
-   *   explicitly set on the task and were created by the App Engine SDK. See
-   *   [App Engine
-   *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-   * 
- * - * .google.cloud.tasks.v2beta2.RetryConfig retry_config = 6; - */ - com.google.cloud.tasks.v2beta2.RetryConfigOrBuilder getRetryConfigOrBuilder(); - - /** - * - * - *
-   * Output only. The state of the queue.
-   * `state` can only be changed by calling
-   * [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue],
-   * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or uploading
-   * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-   * [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] cannot be used to change `state`.
-   * 
- * - * .google.cloud.tasks.v2beta2.Queue.State state = 7; - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Output only. The state of the queue.
-   * `state` can only be changed by calling
-   * [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue],
-   * [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or uploading
-   * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-   * [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] cannot be used to change `state`.
-   * 
- * - * .google.cloud.tasks.v2beta2.Queue.State state = 7; - * - * @return The state. - */ - com.google.cloud.tasks.v2beta2.Queue.State getState(); - - /** - * - * - *
-   * Output only. The last time this queue was purged.
-   * All tasks that were [created][google.cloud.tasks.v2beta2.Task.create_time] before this time
-   * were purged.
-   * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue], the
-   * [App Engine Task Queue SDK, or the Cloud
-   * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-   * Purge time will be truncated to the nearest microsecond. Purge
-   * time will be unset if the queue has never been purged.
-   * 
- * - * .google.protobuf.Timestamp purge_time = 8; - * - * @return Whether the purgeTime field is set. - */ - boolean hasPurgeTime(); - /** - * - * - *
-   * Output only. The last time this queue was purged.
-   * All tasks that were [created][google.cloud.tasks.v2beta2.Task.create_time] before this time
-   * were purged.
-   * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue], the
-   * [App Engine Task Queue SDK, or the Cloud
-   * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-   * Purge time will be truncated to the nearest microsecond. Purge
-   * time will be unset if the queue has never been purged.
-   * 
- * - * .google.protobuf.Timestamp purge_time = 8; - * - * @return The purgeTime. - */ - com.google.protobuf.Timestamp getPurgeTime(); - /** - * - * - *
-   * Output only. The last time this queue was purged.
-   * All tasks that were [created][google.cloud.tasks.v2beta2.Task.create_time] before this time
-   * were purged.
-   * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue], the
-   * [App Engine Task Queue SDK, or the Cloud
-   * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-   * Purge time will be truncated to the nearest microsecond. Purge
-   * time will be unset if the queue has never been purged.
-   * 
- * - * .google.protobuf.Timestamp purge_time = 8; - */ - com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder(); - - /** - * - * - *
-   * The maximum amount of time that a task will be retained in
-   * this queue.
-   * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-   * After a task has lived for `task_ttl`, the task will be deleted
-   * regardless of whether it was dispatched or not.
-   * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-   * maximum duration because there is a
-   * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-   * these queues. To view the maximum valid duration, see the documentation for
-   * [Duration][google.protobuf.Duration].
-   * 
- * - * .google.protobuf.Duration task_ttl = 9; - * - * @return Whether the taskTtl field is set. - */ - boolean hasTaskTtl(); - /** - * - * - *
-   * The maximum amount of time that a task will be retained in
-   * this queue.
-   * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-   * After a task has lived for `task_ttl`, the task will be deleted
-   * regardless of whether it was dispatched or not.
-   * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-   * maximum duration because there is a
-   * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-   * these queues. To view the maximum valid duration, see the documentation for
-   * [Duration][google.protobuf.Duration].
-   * 
- * - * .google.protobuf.Duration task_ttl = 9; - * - * @return The taskTtl. - */ - com.google.protobuf.Duration getTaskTtl(); - /** - * - * - *
-   * The maximum amount of time that a task will be retained in
-   * this queue.
-   * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-   * After a task has lived for `task_ttl`, the task will be deleted
-   * regardless of whether it was dispatched or not.
-   * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-   * maximum duration because there is a
-   * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-   * these queues. To view the maximum valid duration, see the documentation for
-   * [Duration][google.protobuf.Duration].
-   * 
- * - * .google.protobuf.Duration task_ttl = 9; - */ - com.google.protobuf.DurationOrBuilder getTaskTtlOrBuilder(); - - /** - * - * - *
-   * The task tombstone time to live (TTL).
-   * After a task is deleted or completed, the task's tombstone is
-   * retained for the length of time specified by `tombstone_ttl`.
-   * The tombstone is used by task de-duplication; another task with the same
-   * name can't be created until the tombstone has expired. For more information
-   * about task de-duplication, see the documentation for
-   * [CreateTaskRequest][google.cloud.tasks.v2beta2.CreateTaskRequest.task].
-   * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-   * 
- * - * .google.protobuf.Duration tombstone_ttl = 10; - * - * @return Whether the tombstoneTtl field is set. - */ - boolean hasTombstoneTtl(); - /** - * - * - *
-   * The task tombstone time to live (TTL).
-   * After a task is deleted or completed, the task's tombstone is
-   * retained for the length of time specified by `tombstone_ttl`.
-   * The tombstone is used by task de-duplication; another task with the same
-   * name can't be created until the tombstone has expired. For more information
-   * about task de-duplication, see the documentation for
-   * [CreateTaskRequest][google.cloud.tasks.v2beta2.CreateTaskRequest.task].
-   * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-   * 
- * - * .google.protobuf.Duration tombstone_ttl = 10; - * - * @return The tombstoneTtl. - */ - com.google.protobuf.Duration getTombstoneTtl(); - /** - * - * - *
-   * The task tombstone time to live (TTL).
-   * After a task is deleted or completed, the task's tombstone is
-   * retained for the length of time specified by `tombstone_ttl`.
-   * The tombstone is used by task de-duplication; another task with the same
-   * name can't be created until the tombstone has expired. For more information
-   * about task de-duplication, see the documentation for
-   * [CreateTaskRequest][google.cloud.tasks.v2beta2.CreateTaskRequest.task].
-   * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-   * 
- * - * .google.protobuf.Duration tombstone_ttl = 10; - */ - com.google.protobuf.DurationOrBuilder getTombstoneTtlOrBuilder(); - - /** - * - * - *
-   * Output only. The realtime, informational statistics for a queue. In order
-   * to receive the statistics the caller should include this field in the
-   * FieldMask.
-   * 
- * - * - * .google.cloud.tasks.v2beta2.QueueStats stats = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stats field is set. - */ - boolean hasStats(); - /** - * - * - *
-   * Output only. The realtime, informational statistics for a queue. In order
-   * to receive the statistics the caller should include this field in the
-   * FieldMask.
-   * 
- * - * - * .google.cloud.tasks.v2beta2.QueueStats stats = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stats. - */ - com.google.cloud.tasks.v2beta2.QueueStats getStats(); - /** - * - * - *
-   * Output only. The realtime, informational statistics for a queue. In order
-   * to receive the statistics the caller should include this field in the
-   * FieldMask.
-   * 
- * - * - * .google.cloud.tasks.v2beta2.QueueStats stats = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.tasks.v2beta2.QueueStatsOrBuilder getStatsOrBuilder(); - - public com.google.cloud.tasks.v2beta2.Queue.TargetTypeCase getTargetTypeCase(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueProto.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueProto.java deleted file mode 100644 index 8d5cd837..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueProto.java +++ /dev/null @@ -1,175 +0,0 @@ -/* - * Copyright 2020 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/queue.proto - -package com.google.cloud.tasks.v2beta2; - -public final class QueueProto { - private QueueProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_Queue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_Queue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_RateLimits_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_RateLimits_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_RetryConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_RetryConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_QueueStats_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_QueueStats_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n&google/cloud/tasks/v2beta2/queue.proto" - + "\022\032google.cloud.tasks.v2beta2\032\037google/api" - + "/field_behavior.proto\032\031google/api/resour" - + "ce.proto\032\'google/cloud/tasks/v2beta2/tar" - + "get.proto\032\036google/protobuf/duration.prot" - + "o\032\037google/protobuf/timestamp.proto\"\332\005\n\005Q" - + "ueue\022\014\n\004name\030\001 \001(\t\022Q\n\026app_engine_http_ta" - + "rget\030\003 \001(\0132/.google.cloud.tasks.v2beta2." - + "AppEngineHttpTargetH\000\022=\n\013pull_target\030\004 \001" - + "(\0132&.google.cloud.tasks.v2beta2.PullTarg" - + "etH\000\022;\n\013rate_limits\030\005 \001(\0132&.google.cloud" - + ".tasks.v2beta2.RateLimits\022=\n\014retry_confi" - + "g\030\006 \001(\0132\'.google.cloud.tasks.v2beta2.Ret" - + "ryConfig\0226\n\005state\030\007 \001(\0162\'.google.cloud.t" - + "asks.v2beta2.Queue.State\022.\n\npurge_time\030\010" - + " \001(\0132\032.google.protobuf.Timestamp\022+\n\010task" - + "_ttl\030\t \001(\0132\031.google.protobuf.Duration\0220\n" - + "\rtombstone_ttl\030\n \001(\0132\031.google.protobuf.D" - + "uration\022:\n\005stats\030\020 \001(\0132&.google.cloud.ta" - + "sks.v2beta2.QueueStatsB\003\340A\003\"E\n\005State\022\025\n\021" - + "STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\n\n\006PAUS" - + "ED\020\002\022\014\n\010DISABLED\020\003:\\\352AY\n\037cloudtasks.goog" - + "leapis.com/Queue\0226projects/{project}/loc" - + "ations/{location}/queues/{queue}B\r\n\013targ" - + "et_type\"k\n\nRateLimits\022\'\n\037max_tasks_dispa" - + "tched_per_second\030\001 \001(\001\022\026\n\016max_burst_size" - + "\030\002 \001(\005\022\034\n\024max_concurrent_tasks\030\003 \001(\005\"\201\002\n" - + "\013RetryConfig\022\026\n\014max_attempts\030\001 \001(\005H\000\022\034\n\022" - + "unlimited_attempts\030\002 \001(\010H\000\0225\n\022max_retry_" - + "duration\030\003 \001(\0132\031.google.protobuf.Duratio" - + "n\022.\n\013min_backoff\030\004 \001(\0132\031.google.protobuf" - + ".Duration\022.\n\013max_backoff\030\005 \001(\0132\031.google." - + "protobuf.Duration\022\025\n\rmax_doublings\030\006 \001(\005" - + "B\016\n\014num_attempts\"\350\001\n\nQueueStats\022\030\n\013tasks" - + "_count\030\001 \001(\003B\003\340A\003\022F\n\035oldest_estimated_ar" - + "rival_time\030\002 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\022\'\n\032executed_last_minute_count\030" - + "\003 \001(\003B\003\340A\003\022(\n\033concurrent_dispatches_coun" - + "t\030\004 \001(\003B\003\340A\003\022%\n\030effective_execution_rate" - + "\030\005 \001(\001B\003\340A\003Bo\n\036com.google.cloud.tasks.v2" - + "beta2B\nQueueProtoP\001Z?google.golang.org/g" - + "enproto/googleapis/cloud/tasks/v2beta2;t" - + "asksb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.tasks.v2beta2.TargetProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_tasks_v2beta2_Queue_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_tasks_v2beta2_Queue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_Queue_descriptor, - new java.lang.String[] { - "Name", - "AppEngineHttpTarget", - "PullTarget", - "RateLimits", - "RetryConfig", - "State", - "PurgeTime", - "TaskTtl", - "TombstoneTtl", - "Stats", - "TargetType", - }); - internal_static_google_cloud_tasks_v2beta2_RateLimits_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_tasks_v2beta2_RateLimits_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_RateLimits_descriptor, - new java.lang.String[] { - "MaxTasksDispatchedPerSecond", "MaxBurstSize", "MaxConcurrentTasks", - }); - internal_static_google_cloud_tasks_v2beta2_RetryConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_tasks_v2beta2_RetryConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_RetryConfig_descriptor, - new java.lang.String[] { - "MaxAttempts", - "UnlimitedAttempts", - "MaxRetryDuration", - "MinBackoff", - "MaxBackoff", - "MaxDoublings", - "NumAttempts", - }); - internal_static_google_cloud_tasks_v2beta2_QueueStats_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_tasks_v2beta2_QueueStats_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_QueueStats_descriptor, - new java.lang.String[] { - "TasksCount", - "OldestEstimatedArrivalTime", - "ExecutedLastMinuteCount", - "ConcurrentDispatchesCount", - "EffectiveExecutionRate", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.tasks.v2beta2.TargetProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueStats.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueStats.java deleted file mode 100644 index dfae58f8..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueStats.java +++ /dev/null @@ -1,1157 +0,0 @@ -/* - * Copyright 2020 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/queue.proto - -package com.google.cloud.tasks.v2beta2; - -/** - * - * - *
- * Statistics for a queue.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.QueueStats} - */ -public final class QueueStats extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.QueueStats) - QueueStatsOrBuilder { - private static final long serialVersionUID = 0L; - // Use QueueStats.newBuilder() to construct. - private QueueStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private QueueStats() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new QueueStats(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.QueueProto - .internal_static_google_cloud_tasks_v2beta2_QueueStats_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.QueueProto - .internal_static_google_cloud_tasks_v2beta2_QueueStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.QueueStats.class, - com.google.cloud.tasks.v2beta2.QueueStats.Builder.class); - } - - public static final int TASKS_COUNT_FIELD_NUMBER = 1; - private long tasksCount_; - /** - * - * - *
-   * Output only. An estimation of the number of tasks in the queue, that is, the tasks in
-   * the queue that haven't been executed, the tasks in the queue which the
-   * queue has dispatched but has not yet received a reply for, and the failed
-   * tasks that the queue is retrying.
-   * 
- * - * int64 tasks_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The tasksCount. - */ - @java.lang.Override - public long getTasksCount() { - return tasksCount_; - } - - public static final int OLDEST_ESTIMATED_ARRIVAL_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp oldestEstimatedArrivalTime_; - /** - * - * - *
-   * Output only. An estimation of the nearest time in the future where a task in the queue
-   * is scheduled to be executed.
-   * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the oldestEstimatedArrivalTime field is set. - */ - @java.lang.Override - public boolean hasOldestEstimatedArrivalTime() { - return oldestEstimatedArrivalTime_ != null; - } - /** - * - * - *
-   * Output only. An estimation of the nearest time in the future where a task in the queue
-   * is scheduled to be executed.
-   * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The oldestEstimatedArrivalTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getOldestEstimatedArrivalTime() { - return oldestEstimatedArrivalTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : oldestEstimatedArrivalTime_; - } - /** - * - * - *
-   * Output only. An estimation of the nearest time in the future where a task in the queue
-   * is scheduled to be executed.
-   * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getOldestEstimatedArrivalTimeOrBuilder() { - return getOldestEstimatedArrivalTime(); - } - - public static final int EXECUTED_LAST_MINUTE_COUNT_FIELD_NUMBER = 3; - private long executedLastMinuteCount_; - /** - * - * - *
-   * Output only. The number of tasks that the queue has dispatched and received a reply for
-   * during the last minute. This variable counts both successful and
-   * non-successful executions.
-   * 
- * - * int64 executed_last_minute_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The executedLastMinuteCount. - */ - @java.lang.Override - public long getExecutedLastMinuteCount() { - return executedLastMinuteCount_; - } - - public static final int CONCURRENT_DISPATCHES_COUNT_FIELD_NUMBER = 4; - private long concurrentDispatchesCount_; - /** - * - * - *
-   * Output only. The number of requests that the queue has dispatched but has not received
-   * a reply for yet.
-   * 
- * - * int64 concurrent_dispatches_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The concurrentDispatchesCount. - */ - @java.lang.Override - public long getConcurrentDispatchesCount() { - return concurrentDispatchesCount_; - } - - public static final int EFFECTIVE_EXECUTION_RATE_FIELD_NUMBER = 5; - private double effectiveExecutionRate_; - /** - * - * - *
-   * Output only. The current maximum number of tasks per second executed by the queue.
-   * The maximum value of this variable is controlled by the RateLimits of the
-   * Queue. However, this value could be less to avoid overloading the endpoints
-   * tasks in the queue are targeting.
-   * 
- * - * double effective_execution_rate = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The effectiveExecutionRate. - */ - @java.lang.Override - public double getEffectiveExecutionRate() { - return effectiveExecutionRate_; - } - - 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 (tasksCount_ != 0L) { - output.writeInt64(1, tasksCount_); - } - if (oldestEstimatedArrivalTime_ != null) { - output.writeMessage(2, getOldestEstimatedArrivalTime()); - } - if (executedLastMinuteCount_ != 0L) { - output.writeInt64(3, executedLastMinuteCount_); - } - if (concurrentDispatchesCount_ != 0L) { - output.writeInt64(4, concurrentDispatchesCount_); - } - if (java.lang.Double.doubleToRawLongBits(effectiveExecutionRate_) != 0) { - output.writeDouble(5, effectiveExecutionRate_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tasksCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, tasksCount_); - } - if (oldestEstimatedArrivalTime_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getOldestEstimatedArrivalTime()); - } - if (executedLastMinuteCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, executedLastMinuteCount_); - } - if (concurrentDispatchesCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, concurrentDispatchesCount_); - } - if (java.lang.Double.doubleToRawLongBits(effectiveExecutionRate_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, effectiveExecutionRate_); - } - 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.QueueStats)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.QueueStats other = - (com.google.cloud.tasks.v2beta2.QueueStats) obj; - - if (getTasksCount() != other.getTasksCount()) return false; - if (hasOldestEstimatedArrivalTime() != other.hasOldestEstimatedArrivalTime()) return false; - if (hasOldestEstimatedArrivalTime()) { - if (!getOldestEstimatedArrivalTime().equals(other.getOldestEstimatedArrivalTime())) - return false; - } - if (getExecutedLastMinuteCount() != other.getExecutedLastMinuteCount()) return false; - if (getConcurrentDispatchesCount() != other.getConcurrentDispatchesCount()) return false; - if (java.lang.Double.doubleToLongBits(getEffectiveExecutionRate()) - != java.lang.Double.doubleToLongBits(other.getEffectiveExecutionRate())) 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) + TASKS_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTasksCount()); - if (hasOldestEstimatedArrivalTime()) { - hash = (37 * hash) + OLDEST_ESTIMATED_ARRIVAL_TIME_FIELD_NUMBER; - hash = (53 * hash) + getOldestEstimatedArrivalTime().hashCode(); - } - hash = (37 * hash) + EXECUTED_LAST_MINUTE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getExecutedLastMinuteCount()); - hash = (37 * hash) + CONCURRENT_DISPATCHES_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getConcurrentDispatchesCount()); - hash = (37 * hash) + EFFECTIVE_EXECUTION_RATE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getEffectiveExecutionRate())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.QueueStats parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.QueueStats 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.QueueStats parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.QueueStats 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.QueueStats parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.QueueStats 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.QueueStats parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.QueueStats 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.QueueStats parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.QueueStats 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.QueueStats 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.QueueStats 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.QueueStats 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; - } - /** - * - * - *
-   * Statistics for a queue.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.QueueStats} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.QueueStats) - com.google.cloud.tasks.v2beta2.QueueStatsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.QueueProto - .internal_static_google_cloud_tasks_v2beta2_QueueStats_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.QueueProto - .internal_static_google_cloud_tasks_v2beta2_QueueStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.QueueStats.class, - com.google.cloud.tasks.v2beta2.QueueStats.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.QueueStats.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - tasksCount_ = 0L; - - if (oldestEstimatedArrivalTimeBuilder_ == null) { - oldestEstimatedArrivalTime_ = null; - } else { - oldestEstimatedArrivalTime_ = null; - oldestEstimatedArrivalTimeBuilder_ = null; - } - executedLastMinuteCount_ = 0L; - - concurrentDispatchesCount_ = 0L; - - effectiveExecutionRate_ = 0D; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.QueueProto - .internal_static_google_cloud_tasks_v2beta2_QueueStats_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.QueueStats getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.QueueStats.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.QueueStats build() { - com.google.cloud.tasks.v2beta2.QueueStats result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.QueueStats buildPartial() { - com.google.cloud.tasks.v2beta2.QueueStats result = - new com.google.cloud.tasks.v2beta2.QueueStats(this); - result.tasksCount_ = tasksCount_; - if (oldestEstimatedArrivalTimeBuilder_ == null) { - result.oldestEstimatedArrivalTime_ = oldestEstimatedArrivalTime_; - } else { - result.oldestEstimatedArrivalTime_ = oldestEstimatedArrivalTimeBuilder_.build(); - } - result.executedLastMinuteCount_ = executedLastMinuteCount_; - result.concurrentDispatchesCount_ = concurrentDispatchesCount_; - result.effectiveExecutionRate_ = effectiveExecutionRate_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.QueueStats) { - return mergeFrom((com.google.cloud.tasks.v2beta2.QueueStats) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.QueueStats other) { - if (other == com.google.cloud.tasks.v2beta2.QueueStats.getDefaultInstance()) return this; - if (other.getTasksCount() != 0L) { - setTasksCount(other.getTasksCount()); - } - if (other.hasOldestEstimatedArrivalTime()) { - mergeOldestEstimatedArrivalTime(other.getOldestEstimatedArrivalTime()); - } - if (other.getExecutedLastMinuteCount() != 0L) { - setExecutedLastMinuteCount(other.getExecutedLastMinuteCount()); - } - if (other.getConcurrentDispatchesCount() != 0L) { - setConcurrentDispatchesCount(other.getConcurrentDispatchesCount()); - } - if (other.getEffectiveExecutionRate() != 0D) { - setEffectiveExecutionRate(other.getEffectiveExecutionRate()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - tasksCount_ = input.readInt64(); - - break; - } // case 8 - case 18: - { - input.readMessage( - getOldestEstimatedArrivalTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 24: - { - executedLastMinuteCount_ = input.readInt64(); - - break; - } // case 24 - case 32: - { - concurrentDispatchesCount_ = input.readInt64(); - - break; - } // case 32 - case 41: - { - effectiveExecutionRate_ = input.readDouble(); - - break; - } // case 41 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private long tasksCount_; - /** - * - * - *
-     * Output only. An estimation of the number of tasks in the queue, that is, the tasks in
-     * the queue that haven't been executed, the tasks in the queue which the
-     * queue has dispatched but has not yet received a reply for, and the failed
-     * tasks that the queue is retrying.
-     * 
- * - * int64 tasks_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The tasksCount. - */ - @java.lang.Override - public long getTasksCount() { - return tasksCount_; - } - /** - * - * - *
-     * Output only. An estimation of the number of tasks in the queue, that is, the tasks in
-     * the queue that haven't been executed, the tasks in the queue which the
-     * queue has dispatched but has not yet received a reply for, and the failed
-     * tasks that the queue is retrying.
-     * 
- * - * int64 tasks_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The tasksCount to set. - * @return This builder for chaining. - */ - public Builder setTasksCount(long value) { - - tasksCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. An estimation of the number of tasks in the queue, that is, the tasks in
-     * the queue that haven't been executed, the tasks in the queue which the
-     * queue has dispatched but has not yet received a reply for, and the failed
-     * tasks that the queue is retrying.
-     * 
- * - * int64 tasks_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearTasksCount() { - - tasksCount_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp oldestEstimatedArrivalTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - oldestEstimatedArrivalTimeBuilder_; - /** - * - * - *
-     * Output only. An estimation of the nearest time in the future where a task in the queue
-     * is scheduled to be executed.
-     * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the oldestEstimatedArrivalTime field is set. - */ - public boolean hasOldestEstimatedArrivalTime() { - return oldestEstimatedArrivalTimeBuilder_ != null || oldestEstimatedArrivalTime_ != null; - } - /** - * - * - *
-     * Output only. An estimation of the nearest time in the future where a task in the queue
-     * is scheduled to be executed.
-     * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The oldestEstimatedArrivalTime. - */ - public com.google.protobuf.Timestamp getOldestEstimatedArrivalTime() { - if (oldestEstimatedArrivalTimeBuilder_ == null) { - return oldestEstimatedArrivalTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : oldestEstimatedArrivalTime_; - } else { - return oldestEstimatedArrivalTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. An estimation of the nearest time in the future where a task in the queue
-     * is scheduled to be executed.
-     * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setOldestEstimatedArrivalTime(com.google.protobuf.Timestamp value) { - if (oldestEstimatedArrivalTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oldestEstimatedArrivalTime_ = value; - onChanged(); - } else { - oldestEstimatedArrivalTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. An estimation of the nearest time in the future where a task in the queue
-     * is scheduled to be executed.
-     * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setOldestEstimatedArrivalTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (oldestEstimatedArrivalTimeBuilder_ == null) { - oldestEstimatedArrivalTime_ = builderForValue.build(); - onChanged(); - } else { - oldestEstimatedArrivalTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. An estimation of the nearest time in the future where a task in the queue
-     * is scheduled to be executed.
-     * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeOldestEstimatedArrivalTime(com.google.protobuf.Timestamp value) { - if (oldestEstimatedArrivalTimeBuilder_ == null) { - if (oldestEstimatedArrivalTime_ != null) { - oldestEstimatedArrivalTime_ = - com.google.protobuf.Timestamp.newBuilder(oldestEstimatedArrivalTime_) - .mergeFrom(value) - .buildPartial(); - } else { - oldestEstimatedArrivalTime_ = value; - } - onChanged(); - } else { - oldestEstimatedArrivalTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. An estimation of the nearest time in the future where a task in the queue
-     * is scheduled to be executed.
-     * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearOldestEstimatedArrivalTime() { - if (oldestEstimatedArrivalTimeBuilder_ == null) { - oldestEstimatedArrivalTime_ = null; - onChanged(); - } else { - oldestEstimatedArrivalTime_ = null; - oldestEstimatedArrivalTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. An estimation of the nearest time in the future where a task in the queue
-     * is scheduled to be executed.
-     * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getOldestEstimatedArrivalTimeBuilder() { - - onChanged(); - return getOldestEstimatedArrivalTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. An estimation of the nearest time in the future where a task in the queue
-     * is scheduled to be executed.
-     * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getOldestEstimatedArrivalTimeOrBuilder() { - if (oldestEstimatedArrivalTimeBuilder_ != null) { - return oldestEstimatedArrivalTimeBuilder_.getMessageOrBuilder(); - } else { - return oldestEstimatedArrivalTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : oldestEstimatedArrivalTime_; - } - } - /** - * - * - *
-     * Output only. An estimation of the nearest time in the future where a task in the queue
-     * is scheduled to be executed.
-     * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getOldestEstimatedArrivalTimeFieldBuilder() { - if (oldestEstimatedArrivalTimeBuilder_ == null) { - oldestEstimatedArrivalTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getOldestEstimatedArrivalTime(), getParentForChildren(), isClean()); - oldestEstimatedArrivalTime_ = null; - } - return oldestEstimatedArrivalTimeBuilder_; - } - - private long executedLastMinuteCount_; - /** - * - * - *
-     * Output only. The number of tasks that the queue has dispatched and received a reply for
-     * during the last minute. This variable counts both successful and
-     * non-successful executions.
-     * 
- * - * int64 executed_last_minute_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The executedLastMinuteCount. - */ - @java.lang.Override - public long getExecutedLastMinuteCount() { - return executedLastMinuteCount_; - } - /** - * - * - *
-     * Output only. The number of tasks that the queue has dispatched and received a reply for
-     * during the last minute. This variable counts both successful and
-     * non-successful executions.
-     * 
- * - * int64 executed_last_minute_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The executedLastMinuteCount to set. - * @return This builder for chaining. - */ - public Builder setExecutedLastMinuteCount(long value) { - - executedLastMinuteCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The number of tasks that the queue has dispatched and received a reply for
-     * during the last minute. This variable counts both successful and
-     * non-successful executions.
-     * 
- * - * int64 executed_last_minute_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearExecutedLastMinuteCount() { - - executedLastMinuteCount_ = 0L; - onChanged(); - return this; - } - - private long concurrentDispatchesCount_; - /** - * - * - *
-     * Output only. The number of requests that the queue has dispatched but has not received
-     * a reply for yet.
-     * 
- * - * int64 concurrent_dispatches_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The concurrentDispatchesCount. - */ - @java.lang.Override - public long getConcurrentDispatchesCount() { - return concurrentDispatchesCount_; - } - /** - * - * - *
-     * Output only. The number of requests that the queue has dispatched but has not received
-     * a reply for yet.
-     * 
- * - * int64 concurrent_dispatches_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The concurrentDispatchesCount to set. - * @return This builder for chaining. - */ - public Builder setConcurrentDispatchesCount(long value) { - - concurrentDispatchesCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The number of requests that the queue has dispatched but has not received
-     * a reply for yet.
-     * 
- * - * int64 concurrent_dispatches_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearConcurrentDispatchesCount() { - - concurrentDispatchesCount_ = 0L; - onChanged(); - return this; - } - - private double effectiveExecutionRate_; - /** - * - * - *
-     * Output only. The current maximum number of tasks per second executed by the queue.
-     * The maximum value of this variable is controlled by the RateLimits of the
-     * Queue. However, this value could be less to avoid overloading the endpoints
-     * tasks in the queue are targeting.
-     * 
- * - * double effective_execution_rate = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The effectiveExecutionRate. - */ - @java.lang.Override - public double getEffectiveExecutionRate() { - return effectiveExecutionRate_; - } - /** - * - * - *
-     * Output only. The current maximum number of tasks per second executed by the queue.
-     * The maximum value of this variable is controlled by the RateLimits of the
-     * Queue. However, this value could be less to avoid overloading the endpoints
-     * tasks in the queue are targeting.
-     * 
- * - * double effective_execution_rate = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The effectiveExecutionRate to set. - * @return This builder for chaining. - */ - public Builder setEffectiveExecutionRate(double value) { - - effectiveExecutionRate_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The current maximum number of tasks per second executed by the queue.
-     * The maximum value of this variable is controlled by the RateLimits of the
-     * Queue. However, this value could be less to avoid overloading the endpoints
-     * tasks in the queue are targeting.
-     * 
- * - * double effective_execution_rate = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearEffectiveExecutionRate() { - - effectiveExecutionRate_ = 0D; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.QueueStats) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.QueueStats) - private static final com.google.cloud.tasks.v2beta2.QueueStats DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.QueueStats(); - } - - public static com.google.cloud.tasks.v2beta2.QueueStats getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueueStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.QueueStats getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueStatsOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueStatsOrBuilder.java deleted file mode 100644 index d65aa3fd..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueStatsOrBuilder.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright 2020 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/queue.proto - -package com.google.cloud.tasks.v2beta2; - -public interface QueueStatsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.QueueStats) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. An estimation of the number of tasks in the queue, that is, the tasks in
-   * the queue that haven't been executed, the tasks in the queue which the
-   * queue has dispatched but has not yet received a reply for, and the failed
-   * tasks that the queue is retrying.
-   * 
- * - * int64 tasks_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The tasksCount. - */ - long getTasksCount(); - - /** - * - * - *
-   * Output only. An estimation of the nearest time in the future where a task in the queue
-   * is scheduled to be executed.
-   * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the oldestEstimatedArrivalTime field is set. - */ - boolean hasOldestEstimatedArrivalTime(); - /** - * - * - *
-   * Output only. An estimation of the nearest time in the future where a task in the queue
-   * is scheduled to be executed.
-   * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The oldestEstimatedArrivalTime. - */ - com.google.protobuf.Timestamp getOldestEstimatedArrivalTime(); - /** - * - * - *
-   * Output only. An estimation of the nearest time in the future where a task in the queue
-   * is scheduled to be executed.
-   * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getOldestEstimatedArrivalTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The number of tasks that the queue has dispatched and received a reply for
-   * during the last minute. This variable counts both successful and
-   * non-successful executions.
-   * 
- * - * int64 executed_last_minute_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The executedLastMinuteCount. - */ - long getExecutedLastMinuteCount(); - - /** - * - * - *
-   * Output only. The number of requests that the queue has dispatched but has not received
-   * a reply for yet.
-   * 
- * - * int64 concurrent_dispatches_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The concurrentDispatchesCount. - */ - long getConcurrentDispatchesCount(); - - /** - * - * - *
-   * Output only. The current maximum number of tasks per second executed by the queue.
-   * The maximum value of this variable is controlled by the RateLimits of the
-   * Queue. However, this value could be less to avoid overloading the endpoints
-   * tasks in the queue are targeting.
-   * 
- * - * double effective_execution_rate = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The effectiveExecutionRate. - */ - double getEffectiveExecutionRate(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RateLimits.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RateLimits.java deleted file mode 100644 index 864023dd..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RateLimits.java +++ /dev/null @@ -1,913 +0,0 @@ -/* - * Copyright 2020 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/queue.proto - -package com.google.cloud.tasks.v2beta2; - -/** - * - * - *
- * Rate limits.
- * This message determines the maximum rate that tasks can be dispatched by a
- * queue, regardless of whether the dispatch is a first task attempt or a retry.
- * Note: The debugging command, [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask], will run a task
- * even if the queue has reached its [RateLimits][google.cloud.tasks.v2beta2.RateLimits].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.RateLimits} - */ -public final class RateLimits extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.RateLimits) - RateLimitsOrBuilder { - private static final long serialVersionUID = 0L; - // Use RateLimits.newBuilder() to construct. - private RateLimits(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RateLimits() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RateLimits(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.QueueProto - .internal_static_google_cloud_tasks_v2beta2_RateLimits_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.QueueProto - .internal_static_google_cloud_tasks_v2beta2_RateLimits_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.RateLimits.class, - com.google.cloud.tasks.v2beta2.RateLimits.Builder.class); - } - - public static final int MAX_TASKS_DISPATCHED_PER_SECOND_FIELD_NUMBER = 1; - private double maxTasksDispatchedPerSecond_; - /** - * - * - *
-   * The maximum rate at which tasks are dispatched from this queue.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum allowed value
-   *   is 500.
-   * * This field is output only   for [pull queues][google.cloud.tasks.v2beta2.PullTarget]. In addition to the
-   *   `max_tasks_dispatched_per_second` limit, a maximum of 10 QPS of
-   *   [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] requests are allowed per pull queue.
-   * This field has the same meaning as
-   * [rate in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate).
-   * 
- * - * double max_tasks_dispatched_per_second = 1; - * - * @return The maxTasksDispatchedPerSecond. - */ - @java.lang.Override - public double getMaxTasksDispatchedPerSecond() { - return maxTasksDispatchedPerSecond_; - } - - public static final int MAX_BURST_SIZE_FIELD_NUMBER = 2; - private int maxBurstSize_; - /** - * - * - *
-   * The max burst size.
-   * Max burst size limits how fast tasks in queue are processed when
-   * many tasks are in the queue and the rate is high. This field
-   * allows the queue to have a high rate so processing starts shortly
-   * after a task is enqueued, but still limits resource usage when
-   * many tasks are enqueued in a short period of time.
-   * The [token bucket](https://wikipedia.org/wiki/Token_Bucket)
-   * algorithm is used to control the rate of task dispatches. Each
-   * queue has a token bucket that holds tokens, up to the maximum
-   * specified by `max_burst_size`. Each time a task is dispatched, a
-   * token is removed from the bucket. Tasks will be dispatched until
-   * the queue's bucket runs out of tokens. The bucket will be
-   * continuously refilled with new tokens based on
-   * [max_dispatches_per_second][RateLimits.max_dispatches_per_second].
-   * The default value of `max_burst_size` is picked by Cloud Tasks
-   * based on the value of
-   * [max_dispatches_per_second][RateLimits.max_dispatches_per_second].
-   * The maximum value of `max_burst_size` is 500.
-   * For App Engine queues that were created or updated using
-   * `queue.yaml/xml`, `max_burst_size` is equal to
-   * [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
-   * If
-   * [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] is called on a queue without
-   * explicitly setting a value for `max_burst_size`,
-   * `max_burst_size` value will get updated if
-   * [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] is updating
-   * [max_dispatches_per_second][RateLimits.max_dispatches_per_second].
-   * 
- * - * int32 max_burst_size = 2; - * - * @return The maxBurstSize. - */ - @java.lang.Override - public int getMaxBurstSize() { - return maxBurstSize_; - } - - public static final int MAX_CONCURRENT_TASKS_FIELD_NUMBER = 3; - private int maxConcurrentTasks_; - /** - * - * - *
-   * The maximum number of concurrent tasks that Cloud Tasks allows
-   * to be dispatched for this queue. After this threshold has been
-   * reached, Cloud Tasks stops dispatching tasks until the number of
-   * concurrent requests decreases.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * The maximum allowed value is 5,000.
-   * This field is output only for
-   * [pull queues][google.cloud.tasks.v2beta2.PullTarget] and always -1, which indicates no limit. No other
-   * queue types can have `max_concurrent_tasks` set to -1.
-   * This field has the same meaning as
-   * [max_concurrent_requests in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests).
-   * 
- * - * int32 max_concurrent_tasks = 3; - * - * @return The maxConcurrentTasks. - */ - @java.lang.Override - public int getMaxConcurrentTasks() { - return maxConcurrentTasks_; - } - - 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 (java.lang.Double.doubleToRawLongBits(maxTasksDispatchedPerSecond_) != 0) { - output.writeDouble(1, maxTasksDispatchedPerSecond_); - } - if (maxBurstSize_ != 0) { - output.writeInt32(2, maxBurstSize_); - } - if (maxConcurrentTasks_ != 0) { - output.writeInt32(3, maxConcurrentTasks_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(maxTasksDispatchedPerSecond_) != 0) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize(1, maxTasksDispatchedPerSecond_); - } - if (maxBurstSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxBurstSize_); - } - if (maxConcurrentTasks_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxConcurrentTasks_); - } - 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.RateLimits)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.RateLimits other = - (com.google.cloud.tasks.v2beta2.RateLimits) obj; - - if (java.lang.Double.doubleToLongBits(getMaxTasksDispatchedPerSecond()) - != java.lang.Double.doubleToLongBits(other.getMaxTasksDispatchedPerSecond())) return false; - if (getMaxBurstSize() != other.getMaxBurstSize()) return false; - if (getMaxConcurrentTasks() != other.getMaxConcurrentTasks()) 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) + MAX_TASKS_DISPATCHED_PER_SECOND_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMaxTasksDispatchedPerSecond())); - hash = (37 * hash) + MAX_BURST_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getMaxBurstSize(); - hash = (37 * hash) + MAX_CONCURRENT_TASKS_FIELD_NUMBER; - hash = (53 * hash) + getMaxConcurrentTasks(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.RateLimits parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.RateLimits parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.RateLimits parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.RateLimits parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.RateLimits parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.RateLimits parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.RateLimits parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.RateLimits parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.RateLimits parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.RateLimits parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.RateLimits parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.RateLimits parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta2.RateLimits prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Rate limits.
-   * This message determines the maximum rate that tasks can be dispatched by a
-   * queue, regardless of whether the dispatch is a first task attempt or a retry.
-   * Note: The debugging command, [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask], will run a task
-   * even if the queue has reached its [RateLimits][google.cloud.tasks.v2beta2.RateLimits].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.RateLimits} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.RateLimits) - com.google.cloud.tasks.v2beta2.RateLimitsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.QueueProto - .internal_static_google_cloud_tasks_v2beta2_RateLimits_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.QueueProto - .internal_static_google_cloud_tasks_v2beta2_RateLimits_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.RateLimits.class, - com.google.cloud.tasks.v2beta2.RateLimits.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.RateLimits.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - maxTasksDispatchedPerSecond_ = 0D; - - maxBurstSize_ = 0; - - maxConcurrentTasks_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.QueueProto - .internal_static_google_cloud_tasks_v2beta2_RateLimits_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.RateLimits getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.RateLimits.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.RateLimits build() { - com.google.cloud.tasks.v2beta2.RateLimits result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.RateLimits buildPartial() { - com.google.cloud.tasks.v2beta2.RateLimits result = - new com.google.cloud.tasks.v2beta2.RateLimits(this); - result.maxTasksDispatchedPerSecond_ = maxTasksDispatchedPerSecond_; - result.maxBurstSize_ = maxBurstSize_; - result.maxConcurrentTasks_ = maxConcurrentTasks_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.RateLimits) { - return mergeFrom((com.google.cloud.tasks.v2beta2.RateLimits) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.RateLimits other) { - if (other == com.google.cloud.tasks.v2beta2.RateLimits.getDefaultInstance()) return this; - if (other.getMaxTasksDispatchedPerSecond() != 0D) { - setMaxTasksDispatchedPerSecond(other.getMaxTasksDispatchedPerSecond()); - } - if (other.getMaxBurstSize() != 0) { - setMaxBurstSize(other.getMaxBurstSize()); - } - if (other.getMaxConcurrentTasks() != 0) { - setMaxConcurrentTasks(other.getMaxConcurrentTasks()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 9: - { - maxTasksDispatchedPerSecond_ = input.readDouble(); - - break; - } // case 9 - case 16: - { - maxBurstSize_ = input.readInt32(); - - break; - } // case 16 - case 24: - { - maxConcurrentTasks_ = input.readInt32(); - - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private double maxTasksDispatchedPerSecond_; - /** - * - * - *
-     * The maximum rate at which tasks are dispatched from this queue.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum allowed value
-     *   is 500.
-     * * This field is output only   for [pull queues][google.cloud.tasks.v2beta2.PullTarget]. In addition to the
-     *   `max_tasks_dispatched_per_second` limit, a maximum of 10 QPS of
-     *   [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] requests are allowed per pull queue.
-     * This field has the same meaning as
-     * [rate in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate).
-     * 
- * - * double max_tasks_dispatched_per_second = 1; - * - * @return The maxTasksDispatchedPerSecond. - */ - @java.lang.Override - public double getMaxTasksDispatchedPerSecond() { - return maxTasksDispatchedPerSecond_; - } - /** - * - * - *
-     * The maximum rate at which tasks are dispatched from this queue.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum allowed value
-     *   is 500.
-     * * This field is output only   for [pull queues][google.cloud.tasks.v2beta2.PullTarget]. In addition to the
-     *   `max_tasks_dispatched_per_second` limit, a maximum of 10 QPS of
-     *   [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] requests are allowed per pull queue.
-     * This field has the same meaning as
-     * [rate in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate).
-     * 
- * - * double max_tasks_dispatched_per_second = 1; - * - * @param value The maxTasksDispatchedPerSecond to set. - * @return This builder for chaining. - */ - public Builder setMaxTasksDispatchedPerSecond(double value) { - - maxTasksDispatchedPerSecond_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum rate at which tasks are dispatched from this queue.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum allowed value
-     *   is 500.
-     * * This field is output only   for [pull queues][google.cloud.tasks.v2beta2.PullTarget]. In addition to the
-     *   `max_tasks_dispatched_per_second` limit, a maximum of 10 QPS of
-     *   [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] requests are allowed per pull queue.
-     * This field has the same meaning as
-     * [rate in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate).
-     * 
- * - * double max_tasks_dispatched_per_second = 1; - * - * @return This builder for chaining. - */ - public Builder clearMaxTasksDispatchedPerSecond() { - - maxTasksDispatchedPerSecond_ = 0D; - onChanged(); - return this; - } - - private int maxBurstSize_; - /** - * - * - *
-     * The max burst size.
-     * Max burst size limits how fast tasks in queue are processed when
-     * many tasks are in the queue and the rate is high. This field
-     * allows the queue to have a high rate so processing starts shortly
-     * after a task is enqueued, but still limits resource usage when
-     * many tasks are enqueued in a short period of time.
-     * The [token bucket](https://wikipedia.org/wiki/Token_Bucket)
-     * algorithm is used to control the rate of task dispatches. Each
-     * queue has a token bucket that holds tokens, up to the maximum
-     * specified by `max_burst_size`. Each time a task is dispatched, a
-     * token is removed from the bucket. Tasks will be dispatched until
-     * the queue's bucket runs out of tokens. The bucket will be
-     * continuously refilled with new tokens based on
-     * [max_dispatches_per_second][RateLimits.max_dispatches_per_second].
-     * The default value of `max_burst_size` is picked by Cloud Tasks
-     * based on the value of
-     * [max_dispatches_per_second][RateLimits.max_dispatches_per_second].
-     * The maximum value of `max_burst_size` is 500.
-     * For App Engine queues that were created or updated using
-     * `queue.yaml/xml`, `max_burst_size` is equal to
-     * [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
-     * If
-     * [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] is called on a queue without
-     * explicitly setting a value for `max_burst_size`,
-     * `max_burst_size` value will get updated if
-     * [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] is updating
-     * [max_dispatches_per_second][RateLimits.max_dispatches_per_second].
-     * 
- * - * int32 max_burst_size = 2; - * - * @return The maxBurstSize. - */ - @java.lang.Override - public int getMaxBurstSize() { - return maxBurstSize_; - } - /** - * - * - *
-     * The max burst size.
-     * Max burst size limits how fast tasks in queue are processed when
-     * many tasks are in the queue and the rate is high. This field
-     * allows the queue to have a high rate so processing starts shortly
-     * after a task is enqueued, but still limits resource usage when
-     * many tasks are enqueued in a short period of time.
-     * The [token bucket](https://wikipedia.org/wiki/Token_Bucket)
-     * algorithm is used to control the rate of task dispatches. Each
-     * queue has a token bucket that holds tokens, up to the maximum
-     * specified by `max_burst_size`. Each time a task is dispatched, a
-     * token is removed from the bucket. Tasks will be dispatched until
-     * the queue's bucket runs out of tokens. The bucket will be
-     * continuously refilled with new tokens based on
-     * [max_dispatches_per_second][RateLimits.max_dispatches_per_second].
-     * The default value of `max_burst_size` is picked by Cloud Tasks
-     * based on the value of
-     * [max_dispatches_per_second][RateLimits.max_dispatches_per_second].
-     * The maximum value of `max_burst_size` is 500.
-     * For App Engine queues that were created or updated using
-     * `queue.yaml/xml`, `max_burst_size` is equal to
-     * [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
-     * If
-     * [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] is called on a queue without
-     * explicitly setting a value for `max_burst_size`,
-     * `max_burst_size` value will get updated if
-     * [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] is updating
-     * [max_dispatches_per_second][RateLimits.max_dispatches_per_second].
-     * 
- * - * int32 max_burst_size = 2; - * - * @param value The maxBurstSize to set. - * @return This builder for chaining. - */ - public Builder setMaxBurstSize(int value) { - - maxBurstSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The max burst size.
-     * Max burst size limits how fast tasks in queue are processed when
-     * many tasks are in the queue and the rate is high. This field
-     * allows the queue to have a high rate so processing starts shortly
-     * after a task is enqueued, but still limits resource usage when
-     * many tasks are enqueued in a short period of time.
-     * The [token bucket](https://wikipedia.org/wiki/Token_Bucket)
-     * algorithm is used to control the rate of task dispatches. Each
-     * queue has a token bucket that holds tokens, up to the maximum
-     * specified by `max_burst_size`. Each time a task is dispatched, a
-     * token is removed from the bucket. Tasks will be dispatched until
-     * the queue's bucket runs out of tokens. The bucket will be
-     * continuously refilled with new tokens based on
-     * [max_dispatches_per_second][RateLimits.max_dispatches_per_second].
-     * The default value of `max_burst_size` is picked by Cloud Tasks
-     * based on the value of
-     * [max_dispatches_per_second][RateLimits.max_dispatches_per_second].
-     * The maximum value of `max_burst_size` is 500.
-     * For App Engine queues that were created or updated using
-     * `queue.yaml/xml`, `max_burst_size` is equal to
-     * [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
-     * If
-     * [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] is called on a queue without
-     * explicitly setting a value for `max_burst_size`,
-     * `max_burst_size` value will get updated if
-     * [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] is updating
-     * [max_dispatches_per_second][RateLimits.max_dispatches_per_second].
-     * 
- * - * int32 max_burst_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearMaxBurstSize() { - - maxBurstSize_ = 0; - onChanged(); - return this; - } - - private int maxConcurrentTasks_; - /** - * - * - *
-     * The maximum number of concurrent tasks that Cloud Tasks allows
-     * to be dispatched for this queue. After this threshold has been
-     * reached, Cloud Tasks stops dispatching tasks until the number of
-     * concurrent requests decreases.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * The maximum allowed value is 5,000.
-     * This field is output only for
-     * [pull queues][google.cloud.tasks.v2beta2.PullTarget] and always -1, which indicates no limit. No other
-     * queue types can have `max_concurrent_tasks` set to -1.
-     * This field has the same meaning as
-     * [max_concurrent_requests in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests).
-     * 
- * - * int32 max_concurrent_tasks = 3; - * - * @return The maxConcurrentTasks. - */ - @java.lang.Override - public int getMaxConcurrentTasks() { - return maxConcurrentTasks_; - } - /** - * - * - *
-     * The maximum number of concurrent tasks that Cloud Tasks allows
-     * to be dispatched for this queue. After this threshold has been
-     * reached, Cloud Tasks stops dispatching tasks until the number of
-     * concurrent requests decreases.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * The maximum allowed value is 5,000.
-     * This field is output only for
-     * [pull queues][google.cloud.tasks.v2beta2.PullTarget] and always -1, which indicates no limit. No other
-     * queue types can have `max_concurrent_tasks` set to -1.
-     * This field has the same meaning as
-     * [max_concurrent_requests in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests).
-     * 
- * - * int32 max_concurrent_tasks = 3; - * - * @param value The maxConcurrentTasks to set. - * @return This builder for chaining. - */ - public Builder setMaxConcurrentTasks(int value) { - - maxConcurrentTasks_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of concurrent tasks that Cloud Tasks allows
-     * to be dispatched for this queue. After this threshold has been
-     * reached, Cloud Tasks stops dispatching tasks until the number of
-     * concurrent requests decreases.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * The maximum allowed value is 5,000.
-     * This field is output only for
-     * [pull queues][google.cloud.tasks.v2beta2.PullTarget] and always -1, which indicates no limit. No other
-     * queue types can have `max_concurrent_tasks` set to -1.
-     * This field has the same meaning as
-     * [max_concurrent_requests in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests).
-     * 
- * - * int32 max_concurrent_tasks = 3; - * - * @return This builder for chaining. - */ - public Builder clearMaxConcurrentTasks() { - - maxConcurrentTasks_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.RateLimits) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.RateLimits) - private static final com.google.cloud.tasks.v2beta2.RateLimits DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.RateLimits(); - } - - public static com.google.cloud.tasks.v2beta2.RateLimits getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RateLimits parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.RateLimits getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RateLimitsOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RateLimitsOrBuilder.java deleted file mode 100644 index 373ee8d6..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RateLimitsOrBuilder.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2020 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/queue.proto - -package com.google.cloud.tasks.v2beta2; - -public interface RateLimitsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.RateLimits) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The maximum rate at which tasks are dispatched from this queue.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum allowed value
-   *   is 500.
-   * * This field is output only   for [pull queues][google.cloud.tasks.v2beta2.PullTarget]. In addition to the
-   *   `max_tasks_dispatched_per_second` limit, a maximum of 10 QPS of
-   *   [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] requests are allowed per pull queue.
-   * This field has the same meaning as
-   * [rate in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate).
-   * 
- * - * double max_tasks_dispatched_per_second = 1; - * - * @return The maxTasksDispatchedPerSecond. - */ - double getMaxTasksDispatchedPerSecond(); - - /** - * - * - *
-   * The max burst size.
-   * Max burst size limits how fast tasks in queue are processed when
-   * many tasks are in the queue and the rate is high. This field
-   * allows the queue to have a high rate so processing starts shortly
-   * after a task is enqueued, but still limits resource usage when
-   * many tasks are enqueued in a short period of time.
-   * The [token bucket](https://wikipedia.org/wiki/Token_Bucket)
-   * algorithm is used to control the rate of task dispatches. Each
-   * queue has a token bucket that holds tokens, up to the maximum
-   * specified by `max_burst_size`. Each time a task is dispatched, a
-   * token is removed from the bucket. Tasks will be dispatched until
-   * the queue's bucket runs out of tokens. The bucket will be
-   * continuously refilled with new tokens based on
-   * [max_dispatches_per_second][RateLimits.max_dispatches_per_second].
-   * The default value of `max_burst_size` is picked by Cloud Tasks
-   * based on the value of
-   * [max_dispatches_per_second][RateLimits.max_dispatches_per_second].
-   * The maximum value of `max_burst_size` is 500.
-   * For App Engine queues that were created or updated using
-   * `queue.yaml/xml`, `max_burst_size` is equal to
-   * [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
-   * If
-   * [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] is called on a queue without
-   * explicitly setting a value for `max_burst_size`,
-   * `max_burst_size` value will get updated if
-   * [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] is updating
-   * [max_dispatches_per_second][RateLimits.max_dispatches_per_second].
-   * 
- * - * int32 max_burst_size = 2; - * - * @return The maxBurstSize. - */ - int getMaxBurstSize(); - - /** - * - * - *
-   * The maximum number of concurrent tasks that Cloud Tasks allows
-   * to be dispatched for this queue. After this threshold has been
-   * reached, Cloud Tasks stops dispatching tasks until the number of
-   * concurrent requests decreases.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * The maximum allowed value is 5,000.
-   * This field is output only for
-   * [pull queues][google.cloud.tasks.v2beta2.PullTarget] and always -1, which indicates no limit. No other
-   * queue types can have `max_concurrent_tasks` set to -1.
-   * This field has the same meaning as
-   * [max_concurrent_requests in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests).
-   * 
- * - * int32 max_concurrent_tasks = 3; - * - * @return The maxConcurrentTasks. - */ - int getMaxConcurrentTasks(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequest.java deleted file mode 100644 index f0794d11..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequest.java +++ /dev/null @@ -1,1480 +0,0 @@ -/* - * Copyright 2020 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; - -/** - * - * - *
- * Request message for renewing a lease using
- * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.RenewLeaseRequest} - */ -public final class RenewLeaseRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.RenewLeaseRequest) - RenewLeaseRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RenewLeaseRequest.newBuilder() to construct. - private RenewLeaseRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RenewLeaseRequest() { - name_ = ""; - responseView_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RenewLeaseRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_RenewLeaseRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_RenewLeaseRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.RenewLeaseRequest.class, - com.google.cloud.tasks.v2beta2.RenewLeaseRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCHEDULE_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp scheduleTime_; - /** - * - * - *
-   * Required. The task's current schedule time, available in the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-   * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-   * to ensure that your worker currently holds the lease.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the scheduleTime field is set. - */ - @java.lang.Override - public boolean hasScheduleTime() { - return scheduleTime_ != null; - } - /** - * - * - *
-   * Required. The task's current schedule time, available in the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-   * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-   * to ensure that your worker currently holds the lease.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The scheduleTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } - /** - * - * - *
-   * Required. The task's current schedule time, available in the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-   * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-   * to ensure that your worker currently holds the lease.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { - return getScheduleTime(); - } - - public static final int LEASE_DURATION_FIELD_NUMBER = 3; - private com.google.protobuf.Duration leaseDuration_; - /** - * - * - *
-   * Required. The desired new lease duration, starting from now.
-   * The maximum lease duration is 1 week.
-   * `lease_duration` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the leaseDuration field is set. - */ - @java.lang.Override - public boolean hasLeaseDuration() { - return leaseDuration_ != null; - } - /** - * - * - *
-   * Required. The desired new lease duration, starting from now.
-   * The maximum lease duration is 1 week.
-   * `lease_duration` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The leaseDuration. - */ - @java.lang.Override - public com.google.protobuf.Duration getLeaseDuration() { - return leaseDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : leaseDuration_; - } - /** - * - * - *
-   * Required. The desired new lease duration, starting from now.
-   * The maximum lease duration is 1 week.
-   * `lease_duration` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getLeaseDurationOrBuilder() { - return getLeaseDuration(); - } - - public static final int RESPONSE_VIEW_FIELD_NUMBER = 4; - private int responseView_; - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 4; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 4; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta2.Task.View result = - com.google.cloud.tasks.v2beta2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta2.Task.View.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (scheduleTime_ != null) { - output.writeMessage(2, getScheduleTime()); - } - if (leaseDuration_ != null) { - output.writeMessage(3, getLeaseDuration()); - } - if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - output.writeEnum(4, responseView_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScheduleTime()); - } - if (leaseDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLeaseDuration()); - } - if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, responseView_); - } - 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.RenewLeaseRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.RenewLeaseRequest other = - (com.google.cloud.tasks.v2beta2.RenewLeaseRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (hasScheduleTime() != other.hasScheduleTime()) return false; - if (hasScheduleTime()) { - if (!getScheduleTime().equals(other.getScheduleTime())) return false; - } - if (hasLeaseDuration() != other.hasLeaseDuration()) return false; - if (hasLeaseDuration()) { - if (!getLeaseDuration().equals(other.getLeaseDuration())) return false; - } - if (responseView_ != other.responseView_) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasScheduleTime()) { - hash = (37 * hash) + SCHEDULE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getScheduleTime().hashCode(); - } - if (hasLeaseDuration()) { - hash = (37 * hash) + LEASE_DURATION_FIELD_NUMBER; - hash = (53 * hash) + getLeaseDuration().hashCode(); - } - hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; - hash = (53 * hash) + responseView_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.RenewLeaseRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.RenewLeaseRequest 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.RenewLeaseRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.RenewLeaseRequest 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.RenewLeaseRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.RenewLeaseRequest 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.RenewLeaseRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.RenewLeaseRequest 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.RenewLeaseRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.RenewLeaseRequest 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.RenewLeaseRequest 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.RenewLeaseRequest 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.RenewLeaseRequest 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 renewing a lease using
-   * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.RenewLeaseRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.RenewLeaseRequest) - com.google.cloud.tasks.v2beta2.RenewLeaseRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_RenewLeaseRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_RenewLeaseRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.RenewLeaseRequest.class, - com.google.cloud.tasks.v2beta2.RenewLeaseRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.RenewLeaseRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = null; - } else { - scheduleTime_ = null; - scheduleTimeBuilder_ = null; - } - if (leaseDurationBuilder_ == null) { - leaseDuration_ = null; - } else { - leaseDuration_ = null; - leaseDurationBuilder_ = null; - } - responseView_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_RenewLeaseRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.RenewLeaseRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.RenewLeaseRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.RenewLeaseRequest build() { - com.google.cloud.tasks.v2beta2.RenewLeaseRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.RenewLeaseRequest buildPartial() { - com.google.cloud.tasks.v2beta2.RenewLeaseRequest result = - new com.google.cloud.tasks.v2beta2.RenewLeaseRequest(this); - result.name_ = name_; - if (scheduleTimeBuilder_ == null) { - result.scheduleTime_ = scheduleTime_; - } else { - result.scheduleTime_ = scheduleTimeBuilder_.build(); - } - if (leaseDurationBuilder_ == null) { - result.leaseDuration_ = leaseDuration_; - } else { - result.leaseDuration_ = leaseDurationBuilder_.build(); - } - result.responseView_ = responseView_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.RenewLeaseRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta2.RenewLeaseRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.RenewLeaseRequest other) { - if (other == com.google.cloud.tasks.v2beta2.RenewLeaseRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasScheduleTime()) { - mergeScheduleTime(other.getScheduleTime()); - } - if (other.hasLeaseDuration()) { - mergeLeaseDuration(other.getLeaseDuration()); - } - if (other.responseView_ != 0) { - setResponseViewValue(other.getResponseViewValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getLeaseDurationFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 32: - { - responseView_ = input.readEnum(); - - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp scheduleTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - scheduleTimeBuilder_; - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the scheduleTime field is set. - */ - public boolean hasScheduleTime() { - return scheduleTimeBuilder_ != null || scheduleTime_ != null; - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The scheduleTime. - */ - public com.google.protobuf.Timestamp getScheduleTime() { - if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } else { - return scheduleTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setScheduleTime(com.google.protobuf.Timestamp value) { - if (scheduleTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduleTime_ = value; - onChanged(); - } else { - scheduleTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = builderForValue.build(); - onChanged(); - } else { - scheduleTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { - if (scheduleTimeBuilder_ == null) { - if (scheduleTime_ != null) { - scheduleTime_ = - com.google.protobuf.Timestamp.newBuilder(scheduleTime_) - .mergeFrom(value) - .buildPartial(); - } else { - scheduleTime_ = value; - } - onChanged(); - } else { - scheduleTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearScheduleTime() { - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = null; - onChanged(); - } else { - scheduleTime_ = null; - scheduleTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { - - onChanged(); - return getScheduleTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { - if (scheduleTimeBuilder_ != null) { - return scheduleTimeBuilder_.getMessageOrBuilder(); - } else { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } - } - /** - * - * - *
-     * Required. The task's current schedule time, available in the
-     * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-     * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-     * to ensure that your worker currently holds the lease.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getScheduleTimeFieldBuilder() { - if (scheduleTimeBuilder_ == null) { - scheduleTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getScheduleTime(), getParentForChildren(), isClean()); - scheduleTime_ = null; - } - return scheduleTimeBuilder_; - } - - private com.google.protobuf.Duration leaseDuration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - leaseDurationBuilder_; - /** - * - * - *
-     * Required. The desired new lease duration, starting from now.
-     * The maximum lease duration is 1 week.
-     * `lease_duration` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the leaseDuration field is set. - */ - public boolean hasLeaseDuration() { - return leaseDurationBuilder_ != null || leaseDuration_ != null; - } - /** - * - * - *
-     * Required. The desired new lease duration, starting from now.
-     * The maximum lease duration is 1 week.
-     * `lease_duration` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The leaseDuration. - */ - public com.google.protobuf.Duration getLeaseDuration() { - if (leaseDurationBuilder_ == null) { - return leaseDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : leaseDuration_; - } else { - return leaseDurationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The desired new lease duration, starting from now.
-     * The maximum lease duration is 1 week.
-     * `lease_duration` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setLeaseDuration(com.google.protobuf.Duration value) { - if (leaseDurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - leaseDuration_ = value; - onChanged(); - } else { - leaseDurationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The desired new lease duration, starting from now.
-     * The maximum lease duration is 1 week.
-     * `lease_duration` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setLeaseDuration(com.google.protobuf.Duration.Builder builderForValue) { - if (leaseDurationBuilder_ == null) { - leaseDuration_ = builderForValue.build(); - onChanged(); - } else { - leaseDurationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The desired new lease duration, starting from now.
-     * The maximum lease duration is 1 week.
-     * `lease_duration` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeLeaseDuration(com.google.protobuf.Duration value) { - if (leaseDurationBuilder_ == null) { - if (leaseDuration_ != null) { - leaseDuration_ = - com.google.protobuf.Duration.newBuilder(leaseDuration_) - .mergeFrom(value) - .buildPartial(); - } else { - leaseDuration_ = value; - } - onChanged(); - } else { - leaseDurationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The desired new lease duration, starting from now.
-     * The maximum lease duration is 1 week.
-     * `lease_duration` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearLeaseDuration() { - if (leaseDurationBuilder_ == null) { - leaseDuration_ = null; - onChanged(); - } else { - leaseDuration_ = null; - leaseDurationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The desired new lease duration, starting from now.
-     * The maximum lease duration is 1 week.
-     * `lease_duration` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.Duration.Builder getLeaseDurationBuilder() { - - onChanged(); - return getLeaseDurationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The desired new lease duration, starting from now.
-     * The maximum lease duration is 1 week.
-     * `lease_duration` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.protobuf.DurationOrBuilder getLeaseDurationOrBuilder() { - if (leaseDurationBuilder_ != null) { - return leaseDurationBuilder_.getMessageOrBuilder(); - } else { - return leaseDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : leaseDuration_; - } - } - /** - * - * - *
-     * Required. The desired new lease duration, starting from now.
-     * The maximum lease duration is 1 week.
-     * `lease_duration` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getLeaseDurationFieldBuilder() { - if (leaseDurationBuilder_ == null) { - leaseDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getLeaseDuration(), getParentForChildren(), isClean()); - leaseDuration_ = null; - } - return leaseDurationBuilder_; - } - - private int responseView_ = 0; - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 4; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 4; - * - * @param value The enum numeric value on the wire for responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseViewValue(int value) { - - responseView_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 4; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta2.Task.View result = - com.google.cloud.tasks.v2beta2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta2.Task.View.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 4; - * - * @param value The responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseView(com.google.cloud.tasks.v2beta2.Task.View value) { - if (value == null) { - throw new NullPointerException(); - } - - responseView_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 4; - * - * @return This builder for chaining. - */ - public Builder clearResponseView() { - - responseView_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.RenewLeaseRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.RenewLeaseRequest) - private static final com.google.cloud.tasks.v2beta2.RenewLeaseRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.RenewLeaseRequest(); - } - - public static com.google.cloud.tasks.v2beta2.RenewLeaseRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RenewLeaseRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.RenewLeaseRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequestOrBuilder.java deleted file mode 100644 index 800dfd88..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequestOrBuilder.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright 2020 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; - -public interface RenewLeaseRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.RenewLeaseRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The task's current schedule time, available in the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-   * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-   * to ensure that your worker currently holds the lease.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the scheduleTime field is set. - */ - boolean hasScheduleTime(); - /** - * - * - *
-   * Required. The task's current schedule time, available in the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-   * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-   * to ensure that your worker currently holds the lease.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The scheduleTime. - */ - com.google.protobuf.Timestamp getScheduleTime(); - /** - * - * - *
-   * Required. The task's current schedule time, available in the
-   * [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or
-   * [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is
-   * to ensure that your worker currently holds the lease.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder(); - - /** - * - * - *
-   * Required. The desired new lease duration, starting from now.
-   * The maximum lease duration is 1 week.
-   * `lease_duration` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the leaseDuration field is set. - */ - boolean hasLeaseDuration(); - /** - * - * - *
-   * Required. The desired new lease duration, starting from now.
-   * The maximum lease duration is 1 week.
-   * `lease_duration` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The leaseDuration. - */ - com.google.protobuf.Duration getLeaseDuration(); - /** - * - * - *
-   * Required. The desired new lease duration, starting from now.
-   * The maximum lease duration is 1 week.
-   * `lease_duration` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Duration lease_duration = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.protobuf.DurationOrBuilder getLeaseDurationOrBuilder(); - - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 4; - * - * @return The enum numeric value on the wire for responseView. - */ - int getResponseViewValue(); - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 4; - * - * @return The responseView. - */ - com.google.cloud.tasks.v2beta2.Task.View getResponseView(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequest.java deleted file mode 100644 index 649b8156..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequest.java +++ /dev/null @@ -1,636 +0,0 @@ -/* - * Copyright 2020 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; - -/** - * - * - *
- * Request message for [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.ResumeQueueRequest} - */ -public final class ResumeQueueRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.ResumeQueueRequest) - ResumeQueueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResumeQueueRequest.newBuilder() to construct. - private ResumeQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ResumeQueueRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ResumeQueueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ResumeQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ResumeQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.ResumeQueueRequest.class, - com.google.cloud.tasks.v2beta2.ResumeQueueRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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.ResumeQueueRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.ResumeQueueRequest other = - (com.google.cloud.tasks.v2beta2.ResumeQueueRequest) obj; - - if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.ResumeQueueRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.ResumeQueueRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ResumeQueueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.ResumeQueueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ResumeQueueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.ResumeQueueRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ResumeQueueRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.ResumeQueueRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ResumeQueueRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.ResumeQueueRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta2.ResumeQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.ResumeQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta2.ResumeQueueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.ResumeQueueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.ResumeQueueRequest) - com.google.cloud.tasks.v2beta2.ResumeQueueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ResumeQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ResumeQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.ResumeQueueRequest.class, - com.google.cloud.tasks.v2beta2.ResumeQueueRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.ResumeQueueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_ResumeQueueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.ResumeQueueRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.ResumeQueueRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.ResumeQueueRequest build() { - com.google.cloud.tasks.v2beta2.ResumeQueueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.ResumeQueueRequest buildPartial() { - com.google.cloud.tasks.v2beta2.ResumeQueueRequest result = - new com.google.cloud.tasks.v2beta2.ResumeQueueRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.ResumeQueueRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta2.ResumeQueueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.ResumeQueueRequest other) { - if (other == com.google.cloud.tasks.v2beta2.ResumeQueueRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.ResumeQueueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.ResumeQueueRequest) - private static final com.google.cloud.tasks.v2beta2.ResumeQueueRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.ResumeQueueRequest(); - } - - public static com.google.cloud.tasks.v2beta2.ResumeQueueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResumeQueueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.ResumeQueueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequestOrBuilder.java deleted file mode 100644 index 7e18051a..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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; - -public interface ResumeQueueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.ResumeQueueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java deleted file mode 100644 index f1c1e2bf..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java +++ /dev/null @@ -1,2189 +0,0 @@ -/* - * Copyright 2020 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/queue.proto - -package com.google.cloud.tasks.v2beta2; - -/** - * - * - *
- * Retry config.
- * These settings determine how a failed task attempt is retried.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.RetryConfig} - */ -public final class RetryConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.RetryConfig) - RetryConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use RetryConfig.newBuilder() to construct. - private RetryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RetryConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RetryConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.QueueProto - .internal_static_google_cloud_tasks_v2beta2_RetryConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.QueueProto - .internal_static_google_cloud_tasks_v2beta2_RetryConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.RetryConfig.class, - com.google.cloud.tasks.v2beta2.RetryConfig.Builder.class); - } - - private int numAttemptsCase_ = 0; - private java.lang.Object numAttempts_; - - public enum NumAttemptsCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - MAX_ATTEMPTS(1), - UNLIMITED_ATTEMPTS(2), - NUMATTEMPTS_NOT_SET(0); - private final int value; - - private NumAttemptsCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static NumAttemptsCase valueOf(int value) { - return forNumber(value); - } - - public static NumAttemptsCase forNumber(int value) { - switch (value) { - case 1: - return MAX_ATTEMPTS; - case 2: - return UNLIMITED_ATTEMPTS; - case 0: - return NUMATTEMPTS_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public NumAttemptsCase getNumAttemptsCase() { - return NumAttemptsCase.forNumber(numAttemptsCase_); - } - - public static final int MAX_ATTEMPTS_FIELD_NUMBER = 1; - /** - * - * - *
-   * The maximum number of attempts for a task.
-   * Cloud Tasks will attempt the task `max_attempts` times (that
-   * is, if the first attempt fails, then there will be
-   * `max_attempts - 1` retries).  Must be > 0.
-   * 
- * - * int32 max_attempts = 1; - * - * @return Whether the maxAttempts field is set. - */ - @java.lang.Override - public boolean hasMaxAttempts() { - return numAttemptsCase_ == 1; - } - /** - * - * - *
-   * The maximum number of attempts for a task.
-   * Cloud Tasks will attempt the task `max_attempts` times (that
-   * is, if the first attempt fails, then there will be
-   * `max_attempts - 1` retries).  Must be > 0.
-   * 
- * - * int32 max_attempts = 1; - * - * @return The maxAttempts. - */ - @java.lang.Override - public int getMaxAttempts() { - if (numAttemptsCase_ == 1) { - return (java.lang.Integer) numAttempts_; - } - return 0; - } - - public static final int UNLIMITED_ATTEMPTS_FIELD_NUMBER = 2; - /** - * - * - *
-   * If true, then the number of attempts is unlimited.
-   * 
- * - * bool unlimited_attempts = 2; - * - * @return Whether the unlimitedAttempts field is set. - */ - @java.lang.Override - public boolean hasUnlimitedAttempts() { - return numAttemptsCase_ == 2; - } - /** - * - * - *
-   * If true, then the number of attempts is unlimited.
-   * 
- * - * bool unlimited_attempts = 2; - * - * @return The unlimitedAttempts. - */ - @java.lang.Override - public boolean getUnlimitedAttempts() { - if (numAttemptsCase_ == 2) { - return (java.lang.Boolean) numAttempts_; - } - return false; - } - - public static final int MAX_RETRY_DURATION_FIELD_NUMBER = 3; - private com.google.protobuf.Duration maxRetryDuration_; - /** - * - * - *
-   * If positive, `max_retry_duration` specifies the time limit for
-   * retrying a failed task, measured from when the task was first
-   * attempted. Once `max_retry_duration` time has passed *and* the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
-   * times, no further attempts will be made and the task will be
-   * deleted.
-   * If zero, then the task age is unlimited.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-   * `max_retry_duration` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [task_age_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_retry_duration = 3; - * - * @return Whether the maxRetryDuration field is set. - */ - @java.lang.Override - public boolean hasMaxRetryDuration() { - return maxRetryDuration_ != null; - } - /** - * - * - *
-   * If positive, `max_retry_duration` specifies the time limit for
-   * retrying a failed task, measured from when the task was first
-   * attempted. Once `max_retry_duration` time has passed *and* the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
-   * times, no further attempts will be made and the task will be
-   * deleted.
-   * If zero, then the task age is unlimited.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-   * `max_retry_duration` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [task_age_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_retry_duration = 3; - * - * @return The maxRetryDuration. - */ - @java.lang.Override - public com.google.protobuf.Duration getMaxRetryDuration() { - return maxRetryDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxRetryDuration_; - } - /** - * - * - *
-   * If positive, `max_retry_duration` specifies the time limit for
-   * retrying a failed task, measured from when the task was first
-   * attempted. Once `max_retry_duration` time has passed *and* the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
-   * times, no further attempts will be made and the task will be
-   * deleted.
-   * If zero, then the task age is unlimited.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-   * `max_retry_duration` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [task_age_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_retry_duration = 3; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getMaxRetryDurationOrBuilder() { - return getMaxRetryDuration(); - } - - public static final int MIN_BACKOFF_FIELD_NUMBER = 4; - private com.google.protobuf.Duration minBackoff_; - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-   * `min_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [min_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration min_backoff = 4; - * - * @return Whether the minBackoff field is set. - */ - @java.lang.Override - public boolean hasMinBackoff() { - return minBackoff_ != null; - } - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-   * `min_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [min_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration min_backoff = 4; - * - * @return The minBackoff. - */ - @java.lang.Override - public com.google.protobuf.Duration getMinBackoff() { - return minBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minBackoff_; - } - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-   * `min_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [min_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration min_backoff = 4; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getMinBackoffOrBuilder() { - return getMinBackoff(); - } - - public static final int MAX_BACKOFF_FIELD_NUMBER = 5; - private com.google.protobuf.Duration maxBackoff_; - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-   * `max_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [max_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_backoff = 5; - * - * @return Whether the maxBackoff field is set. - */ - @java.lang.Override - public boolean hasMaxBackoff() { - return maxBackoff_ != null; - } - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-   * `max_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [max_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_backoff = 5; - * - * @return The maxBackoff. - */ - @java.lang.Override - public com.google.protobuf.Duration getMaxBackoff() { - return maxBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxBackoff_; - } - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-   * `max_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [max_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_backoff = 5; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getMaxBackoffOrBuilder() { - return getMaxBackoff(); - } - - public static final int MAX_DOUBLINGS_FIELD_NUMBER = 6; - private int maxDoublings_; - /** - * - * - *
-   * The time between retries will double `max_doublings` times.
-   * A task's retry interval starts at
-   * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff], then doubles
-   * `max_doublings` times, then increases linearly, and finally
-   * retries at intervals of
-   * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] up to
-   * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
-   * For example, if [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] is 10s,
-   * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] is 300s, and
-   * `max_doublings` is 3, then the a task will first be retried in
-   * 10s. The retry interval will double three times, and then
-   * increase linearly by 2^3 * 10s.  Finally, the task will retry at
-   * intervals of [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] until the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
-   * times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
-   * 240s, 300s, 300s, ....
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-   * This field has the same meaning as
-   * [max_doublings in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * int32 max_doublings = 6; - * - * @return The maxDoublings. - */ - @java.lang.Override - public int getMaxDoublings() { - return maxDoublings_; - } - - 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 (numAttemptsCase_ == 1) { - output.writeInt32(1, (int) ((java.lang.Integer) numAttempts_)); - } - if (numAttemptsCase_ == 2) { - output.writeBool(2, (boolean) ((java.lang.Boolean) numAttempts_)); - } - if (maxRetryDuration_ != null) { - output.writeMessage(3, getMaxRetryDuration()); - } - if (minBackoff_ != null) { - output.writeMessage(4, getMinBackoff()); - } - if (maxBackoff_ != null) { - output.writeMessage(5, getMaxBackoff()); - } - if (maxDoublings_ != 0) { - output.writeInt32(6, maxDoublings_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (numAttemptsCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 1, (int) ((java.lang.Integer) numAttempts_)); - } - if (numAttemptsCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 2, (boolean) ((java.lang.Boolean) numAttempts_)); - } - if (maxRetryDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMaxRetryDuration()); - } - if (minBackoff_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMinBackoff()); - } - if (maxBackoff_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMaxBackoff()); - } - if (maxDoublings_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, maxDoublings_); - } - 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.RetryConfig)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.RetryConfig other = - (com.google.cloud.tasks.v2beta2.RetryConfig) obj; - - if (hasMaxRetryDuration() != other.hasMaxRetryDuration()) return false; - if (hasMaxRetryDuration()) { - if (!getMaxRetryDuration().equals(other.getMaxRetryDuration())) return false; - } - if (hasMinBackoff() != other.hasMinBackoff()) return false; - if (hasMinBackoff()) { - if (!getMinBackoff().equals(other.getMinBackoff())) return false; - } - if (hasMaxBackoff() != other.hasMaxBackoff()) return false; - if (hasMaxBackoff()) { - if (!getMaxBackoff().equals(other.getMaxBackoff())) return false; - } - if (getMaxDoublings() != other.getMaxDoublings()) return false; - if (!getNumAttemptsCase().equals(other.getNumAttemptsCase())) return false; - switch (numAttemptsCase_) { - case 1: - if (getMaxAttempts() != other.getMaxAttempts()) return false; - break; - case 2: - if (getUnlimitedAttempts() != other.getUnlimitedAttempts()) return false; - break; - case 0: - default: - } - 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 (hasMaxRetryDuration()) { - hash = (37 * hash) + MAX_RETRY_DURATION_FIELD_NUMBER; - hash = (53 * hash) + getMaxRetryDuration().hashCode(); - } - if (hasMinBackoff()) { - hash = (37 * hash) + MIN_BACKOFF_FIELD_NUMBER; - hash = (53 * hash) + getMinBackoff().hashCode(); - } - if (hasMaxBackoff()) { - hash = (37 * hash) + MAX_BACKOFF_FIELD_NUMBER; - hash = (53 * hash) + getMaxBackoff().hashCode(); - } - hash = (37 * hash) + MAX_DOUBLINGS_FIELD_NUMBER; - hash = (53 * hash) + getMaxDoublings(); - switch (numAttemptsCase_) { - case 1: - hash = (37 * hash) + MAX_ATTEMPTS_FIELD_NUMBER; - hash = (53 * hash) + getMaxAttempts(); - break; - case 2: - hash = (37 * hash) + UNLIMITED_ATTEMPTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUnlimitedAttempts()); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.RetryConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.RetryConfig 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.RetryConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.RetryConfig 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.RetryConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.RetryConfig 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.RetryConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.RetryConfig 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.RetryConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.RetryConfig 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.RetryConfig 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.RetryConfig 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.RetryConfig 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; - } - /** - * - * - *
-   * Retry config.
-   * These settings determine how a failed task attempt is retried.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.RetryConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.RetryConfig) - com.google.cloud.tasks.v2beta2.RetryConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.QueueProto - .internal_static_google_cloud_tasks_v2beta2_RetryConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.QueueProto - .internal_static_google_cloud_tasks_v2beta2_RetryConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.RetryConfig.class, - com.google.cloud.tasks.v2beta2.RetryConfig.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.RetryConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (maxRetryDurationBuilder_ == null) { - maxRetryDuration_ = null; - } else { - maxRetryDuration_ = null; - maxRetryDurationBuilder_ = null; - } - if (minBackoffBuilder_ == null) { - minBackoff_ = null; - } else { - minBackoff_ = null; - minBackoffBuilder_ = null; - } - if (maxBackoffBuilder_ == null) { - maxBackoff_ = null; - } else { - maxBackoff_ = null; - maxBackoffBuilder_ = null; - } - maxDoublings_ = 0; - - numAttemptsCase_ = 0; - numAttempts_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.QueueProto - .internal_static_google_cloud_tasks_v2beta2_RetryConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.RetryConfig getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.RetryConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.RetryConfig build() { - com.google.cloud.tasks.v2beta2.RetryConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.RetryConfig buildPartial() { - com.google.cloud.tasks.v2beta2.RetryConfig result = - new com.google.cloud.tasks.v2beta2.RetryConfig(this); - if (numAttemptsCase_ == 1) { - result.numAttempts_ = numAttempts_; - } - if (numAttemptsCase_ == 2) { - result.numAttempts_ = numAttempts_; - } - if (maxRetryDurationBuilder_ == null) { - result.maxRetryDuration_ = maxRetryDuration_; - } else { - result.maxRetryDuration_ = maxRetryDurationBuilder_.build(); - } - if (minBackoffBuilder_ == null) { - result.minBackoff_ = minBackoff_; - } else { - result.minBackoff_ = minBackoffBuilder_.build(); - } - if (maxBackoffBuilder_ == null) { - result.maxBackoff_ = maxBackoff_; - } else { - result.maxBackoff_ = maxBackoffBuilder_.build(); - } - result.maxDoublings_ = maxDoublings_; - result.numAttemptsCase_ = numAttemptsCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.RetryConfig) { - return mergeFrom((com.google.cloud.tasks.v2beta2.RetryConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.RetryConfig other) { - if (other == com.google.cloud.tasks.v2beta2.RetryConfig.getDefaultInstance()) return this; - if (other.hasMaxRetryDuration()) { - mergeMaxRetryDuration(other.getMaxRetryDuration()); - } - if (other.hasMinBackoff()) { - mergeMinBackoff(other.getMinBackoff()); - } - if (other.hasMaxBackoff()) { - mergeMaxBackoff(other.getMaxBackoff()); - } - if (other.getMaxDoublings() != 0) { - setMaxDoublings(other.getMaxDoublings()); - } - switch (other.getNumAttemptsCase()) { - case MAX_ATTEMPTS: - { - setMaxAttempts(other.getMaxAttempts()); - break; - } - case UNLIMITED_ATTEMPTS: - { - setUnlimitedAttempts(other.getUnlimitedAttempts()); - break; - } - case NUMATTEMPTS_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - numAttempts_ = input.readInt32(); - numAttemptsCase_ = 1; - break; - } // case 8 - case 16: - { - numAttempts_ = input.readBool(); - numAttemptsCase_ = 2; - break; - } // case 16 - case 26: - { - input.readMessage( - getMaxRetryDurationFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getMinBackoffFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage(getMaxBackoffFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 48: - { - maxDoublings_ = input.readInt32(); - - break; - } // case 48 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int numAttemptsCase_ = 0; - private java.lang.Object numAttempts_; - - public NumAttemptsCase getNumAttemptsCase() { - return NumAttemptsCase.forNumber(numAttemptsCase_); - } - - public Builder clearNumAttempts() { - numAttemptsCase_ = 0; - numAttempts_ = null; - onChanged(); - return this; - } - - /** - * - * - *
-     * The maximum number of attempts for a task.
-     * Cloud Tasks will attempt the task `max_attempts` times (that
-     * is, if the first attempt fails, then there will be
-     * `max_attempts - 1` retries).  Must be > 0.
-     * 
- * - * int32 max_attempts = 1; - * - * @return Whether the maxAttempts field is set. - */ - public boolean hasMaxAttempts() { - return numAttemptsCase_ == 1; - } - /** - * - * - *
-     * The maximum number of attempts for a task.
-     * Cloud Tasks will attempt the task `max_attempts` times (that
-     * is, if the first attempt fails, then there will be
-     * `max_attempts - 1` retries).  Must be > 0.
-     * 
- * - * int32 max_attempts = 1; - * - * @return The maxAttempts. - */ - public int getMaxAttempts() { - if (numAttemptsCase_ == 1) { - return (java.lang.Integer) numAttempts_; - } - return 0; - } - /** - * - * - *
-     * The maximum number of attempts for a task.
-     * Cloud Tasks will attempt the task `max_attempts` times (that
-     * is, if the first attempt fails, then there will be
-     * `max_attempts - 1` retries).  Must be > 0.
-     * 
- * - * int32 max_attempts = 1; - * - * @param value The maxAttempts to set. - * @return This builder for chaining. - */ - public Builder setMaxAttempts(int value) { - numAttemptsCase_ = 1; - numAttempts_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of attempts for a task.
-     * Cloud Tasks will attempt the task `max_attempts` times (that
-     * is, if the first attempt fails, then there will be
-     * `max_attempts - 1` retries).  Must be > 0.
-     * 
- * - * int32 max_attempts = 1; - * - * @return This builder for chaining. - */ - public Builder clearMaxAttempts() { - if (numAttemptsCase_ == 1) { - numAttemptsCase_ = 0; - numAttempts_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * If true, then the number of attempts is unlimited.
-     * 
- * - * bool unlimited_attempts = 2; - * - * @return Whether the unlimitedAttempts field is set. - */ - public boolean hasUnlimitedAttempts() { - return numAttemptsCase_ == 2; - } - /** - * - * - *
-     * If true, then the number of attempts is unlimited.
-     * 
- * - * bool unlimited_attempts = 2; - * - * @return The unlimitedAttempts. - */ - public boolean getUnlimitedAttempts() { - if (numAttemptsCase_ == 2) { - return (java.lang.Boolean) numAttempts_; - } - return false; - } - /** - * - * - *
-     * If true, then the number of attempts is unlimited.
-     * 
- * - * bool unlimited_attempts = 2; - * - * @param value The unlimitedAttempts to set. - * @return This builder for chaining. - */ - public Builder setUnlimitedAttempts(boolean value) { - numAttemptsCase_ = 2; - numAttempts_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * If true, then the number of attempts is unlimited.
-     * 
- * - * bool unlimited_attempts = 2; - * - * @return This builder for chaining. - */ - public Builder clearUnlimitedAttempts() { - if (numAttemptsCase_ == 2) { - numAttemptsCase_ = 0; - numAttempts_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.Duration maxRetryDuration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - maxRetryDurationBuilder_; - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 3; - * - * @return Whether the maxRetryDuration field is set. - */ - public boolean hasMaxRetryDuration() { - return maxRetryDurationBuilder_ != null || maxRetryDuration_ != null; - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 3; - * - * @return The maxRetryDuration. - */ - public com.google.protobuf.Duration getMaxRetryDuration() { - if (maxRetryDurationBuilder_ == null) { - return maxRetryDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxRetryDuration_; - } else { - return maxRetryDurationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 3; - */ - public Builder setMaxRetryDuration(com.google.protobuf.Duration value) { - if (maxRetryDurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maxRetryDuration_ = value; - onChanged(); - } else { - maxRetryDurationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 3; - */ - public Builder setMaxRetryDuration(com.google.protobuf.Duration.Builder builderForValue) { - if (maxRetryDurationBuilder_ == null) { - maxRetryDuration_ = builderForValue.build(); - onChanged(); - } else { - maxRetryDurationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 3; - */ - public Builder mergeMaxRetryDuration(com.google.protobuf.Duration value) { - if (maxRetryDurationBuilder_ == null) { - if (maxRetryDuration_ != null) { - maxRetryDuration_ = - com.google.protobuf.Duration.newBuilder(maxRetryDuration_) - .mergeFrom(value) - .buildPartial(); - } else { - maxRetryDuration_ = value; - } - onChanged(); - } else { - maxRetryDurationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 3; - */ - public Builder clearMaxRetryDuration() { - if (maxRetryDurationBuilder_ == null) { - maxRetryDuration_ = null; - onChanged(); - } else { - maxRetryDuration_ = null; - maxRetryDurationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 3; - */ - public com.google.protobuf.Duration.Builder getMaxRetryDurationBuilder() { - - onChanged(); - return getMaxRetryDurationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 3; - */ - public com.google.protobuf.DurationOrBuilder getMaxRetryDurationOrBuilder() { - if (maxRetryDurationBuilder_ != null) { - return maxRetryDurationBuilder_.getMessageOrBuilder(); - } else { - return maxRetryDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxRetryDuration_; - } - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getMaxRetryDurationFieldBuilder() { - if (maxRetryDurationBuilder_ == null) { - maxRetryDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMaxRetryDuration(), getParentForChildren(), isClean()); - maxRetryDuration_ = null; - } - return maxRetryDurationBuilder_; - } - - private com.google.protobuf.Duration minBackoff_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - minBackoffBuilder_; - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 4; - * - * @return Whether the minBackoff field is set. - */ - public boolean hasMinBackoff() { - return minBackoffBuilder_ != null || minBackoff_ != null; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 4; - * - * @return The minBackoff. - */ - public com.google.protobuf.Duration getMinBackoff() { - if (minBackoffBuilder_ == null) { - return minBackoff_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minBackoff_; - } else { - return minBackoffBuilder_.getMessage(); - } - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 4; - */ - public Builder setMinBackoff(com.google.protobuf.Duration value) { - if (minBackoffBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - minBackoff_ = value; - onChanged(); - } else { - minBackoffBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 4; - */ - public Builder setMinBackoff(com.google.protobuf.Duration.Builder builderForValue) { - if (minBackoffBuilder_ == null) { - minBackoff_ = builderForValue.build(); - onChanged(); - } else { - minBackoffBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 4; - */ - public Builder mergeMinBackoff(com.google.protobuf.Duration value) { - if (minBackoffBuilder_ == null) { - if (minBackoff_ != null) { - minBackoff_ = - com.google.protobuf.Duration.newBuilder(minBackoff_).mergeFrom(value).buildPartial(); - } else { - minBackoff_ = value; - } - onChanged(); - } else { - minBackoffBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 4; - */ - public Builder clearMinBackoff() { - if (minBackoffBuilder_ == null) { - minBackoff_ = null; - onChanged(); - } else { - minBackoff_ = null; - minBackoffBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 4; - */ - public com.google.protobuf.Duration.Builder getMinBackoffBuilder() { - - onChanged(); - return getMinBackoffFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 4; - */ - public com.google.protobuf.DurationOrBuilder getMinBackoffOrBuilder() { - if (minBackoffBuilder_ != null) { - return minBackoffBuilder_.getMessageOrBuilder(); - } else { - return minBackoff_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minBackoff_; - } - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getMinBackoffFieldBuilder() { - if (minBackoffBuilder_ == null) { - minBackoffBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMinBackoff(), getParentForChildren(), isClean()); - minBackoff_ = null; - } - return minBackoffBuilder_; - } - - private com.google.protobuf.Duration maxBackoff_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - maxBackoffBuilder_; - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 5; - * - * @return Whether the maxBackoff field is set. - */ - public boolean hasMaxBackoff() { - return maxBackoffBuilder_ != null || maxBackoff_ != null; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 5; - * - * @return The maxBackoff. - */ - public com.google.protobuf.Duration getMaxBackoff() { - if (maxBackoffBuilder_ == null) { - return maxBackoff_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxBackoff_; - } else { - return maxBackoffBuilder_.getMessage(); - } - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 5; - */ - public Builder setMaxBackoff(com.google.protobuf.Duration value) { - if (maxBackoffBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maxBackoff_ = value; - onChanged(); - } else { - maxBackoffBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 5; - */ - public Builder setMaxBackoff(com.google.protobuf.Duration.Builder builderForValue) { - if (maxBackoffBuilder_ == null) { - maxBackoff_ = builderForValue.build(); - onChanged(); - } else { - maxBackoffBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 5; - */ - public Builder mergeMaxBackoff(com.google.protobuf.Duration value) { - if (maxBackoffBuilder_ == null) { - if (maxBackoff_ != null) { - maxBackoff_ = - com.google.protobuf.Duration.newBuilder(maxBackoff_).mergeFrom(value).buildPartial(); - } else { - maxBackoff_ = value; - } - onChanged(); - } else { - maxBackoffBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 5; - */ - public Builder clearMaxBackoff() { - if (maxBackoffBuilder_ == null) { - maxBackoff_ = null; - onChanged(); - } else { - maxBackoff_ = null; - maxBackoffBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 5; - */ - public com.google.protobuf.Duration.Builder getMaxBackoffBuilder() { - - onChanged(); - return getMaxBackoffFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 5; - */ - public com.google.protobuf.DurationOrBuilder getMaxBackoffOrBuilder() { - if (maxBackoffBuilder_ != null) { - return maxBackoffBuilder_.getMessageOrBuilder(); - } else { - return maxBackoff_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxBackoff_; - } - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getMaxBackoffFieldBuilder() { - if (maxBackoffBuilder_ == null) { - maxBackoffBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMaxBackoff(), getParentForChildren(), isClean()); - maxBackoff_ = null; - } - return maxBackoffBuilder_; - } - - private int maxDoublings_; - /** - * - * - *
-     * The time between retries will double `max_doublings` times.
-     * A task's retry interval starts at
-     * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff], then doubles
-     * `max_doublings` times, then increases linearly, and finally
-     * retries at intervals of
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] up to
-     * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
-     * For example, if [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] is 10s,
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] is 300s, and
-     * `max_doublings` is 3, then the a task will first be retried in
-     * 10s. The retry interval will double three times, and then
-     * increase linearly by 2^3 * 10s.  Finally, the task will retry at
-     * intervals of [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] until the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
-     * times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
-     * 240s, 300s, 300s, ....
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * This field has the same meaning as
-     * [max_doublings in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * int32 max_doublings = 6; - * - * @return The maxDoublings. - */ - @java.lang.Override - public int getMaxDoublings() { - return maxDoublings_; - } - /** - * - * - *
-     * The time between retries will double `max_doublings` times.
-     * A task's retry interval starts at
-     * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff], then doubles
-     * `max_doublings` times, then increases linearly, and finally
-     * retries at intervals of
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] up to
-     * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
-     * For example, if [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] is 10s,
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] is 300s, and
-     * `max_doublings` is 3, then the a task will first be retried in
-     * 10s. The retry interval will double three times, and then
-     * increase linearly by 2^3 * 10s.  Finally, the task will retry at
-     * intervals of [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] until the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
-     * times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
-     * 240s, 300s, 300s, ....
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * This field has the same meaning as
-     * [max_doublings in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * int32 max_doublings = 6; - * - * @param value The maxDoublings to set. - * @return This builder for chaining. - */ - public Builder setMaxDoublings(int value) { - - maxDoublings_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The time between retries will double `max_doublings` times.
-     * A task's retry interval starts at
-     * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff], then doubles
-     * `max_doublings` times, then increases linearly, and finally
-     * retries at intervals of
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] up to
-     * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
-     * For example, if [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] is 10s,
-     * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] is 300s, and
-     * `max_doublings` is 3, then the a task will first be retried in
-     * 10s. The retry interval will double three times, and then
-     * increase linearly by 2^3 * 10s.  Finally, the task will retry at
-     * intervals of [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] until the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
-     * times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
-     * 240s, 300s, 300s, ....
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-     * This field has the same meaning as
-     * [max_doublings in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * int32 max_doublings = 6; - * - * @return This builder for chaining. - */ - public Builder clearMaxDoublings() { - - maxDoublings_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.RetryConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.RetryConfig) - private static final com.google.cloud.tasks.v2beta2.RetryConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.RetryConfig(); - } - - public static com.google.cloud.tasks.v2beta2.RetryConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.RetryConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfigOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfigOrBuilder.java deleted file mode 100644 index f78d7ff0..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfigOrBuilder.java +++ /dev/null @@ -1,327 +0,0 @@ -/* - * Copyright 2020 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/queue.proto - -package com.google.cloud.tasks.v2beta2; - -public interface RetryConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.RetryConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The maximum number of attempts for a task.
-   * Cloud Tasks will attempt the task `max_attempts` times (that
-   * is, if the first attempt fails, then there will be
-   * `max_attempts - 1` retries).  Must be > 0.
-   * 
- * - * int32 max_attempts = 1; - * - * @return Whether the maxAttempts field is set. - */ - boolean hasMaxAttempts(); - /** - * - * - *
-   * The maximum number of attempts for a task.
-   * Cloud Tasks will attempt the task `max_attempts` times (that
-   * is, if the first attempt fails, then there will be
-   * `max_attempts - 1` retries).  Must be > 0.
-   * 
- * - * int32 max_attempts = 1; - * - * @return The maxAttempts. - */ - int getMaxAttempts(); - - /** - * - * - *
-   * If true, then the number of attempts is unlimited.
-   * 
- * - * bool unlimited_attempts = 2; - * - * @return Whether the unlimitedAttempts field is set. - */ - boolean hasUnlimitedAttempts(); - /** - * - * - *
-   * If true, then the number of attempts is unlimited.
-   * 
- * - * bool unlimited_attempts = 2; - * - * @return The unlimitedAttempts. - */ - boolean getUnlimitedAttempts(); - - /** - * - * - *
-   * If positive, `max_retry_duration` specifies the time limit for
-   * retrying a failed task, measured from when the task was first
-   * attempted. Once `max_retry_duration` time has passed *and* the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
-   * times, no further attempts will be made and the task will be
-   * deleted.
-   * If zero, then the task age is unlimited.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-   * `max_retry_duration` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [task_age_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_retry_duration = 3; - * - * @return Whether the maxRetryDuration field is set. - */ - boolean hasMaxRetryDuration(); - /** - * - * - *
-   * If positive, `max_retry_duration` specifies the time limit for
-   * retrying a failed task, measured from when the task was first
-   * attempted. Once `max_retry_duration` time has passed *and* the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
-   * times, no further attempts will be made and the task will be
-   * deleted.
-   * If zero, then the task age is unlimited.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-   * `max_retry_duration` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [task_age_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_retry_duration = 3; - * - * @return The maxRetryDuration. - */ - com.google.protobuf.Duration getMaxRetryDuration(); - /** - * - * - *
-   * If positive, `max_retry_duration` specifies the time limit for
-   * retrying a failed task, measured from when the task was first
-   * attempted. Once `max_retry_duration` time has passed *and* the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
-   * times, no further attempts will be made and the task will be
-   * deleted.
-   * If zero, then the task age is unlimited.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-   * `max_retry_duration` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [task_age_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_retry_duration = 3; - */ - com.google.protobuf.DurationOrBuilder getMaxRetryDurationOrBuilder(); - - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-   * `min_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [min_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration min_backoff = 4; - * - * @return Whether the minBackoff field is set. - */ - boolean hasMinBackoff(); - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-   * `min_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [min_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration min_backoff = 4; - * - * @return The minBackoff. - */ - com.google.protobuf.Duration getMinBackoff(); - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-   * `min_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [min_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration min_backoff = 4; - */ - com.google.protobuf.DurationOrBuilder getMinBackoffOrBuilder(); - - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-   * `max_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [max_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_backoff = 5; - * - * @return Whether the maxBackoff field is set. - */ - boolean hasMaxBackoff(); - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-   * `max_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [max_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_backoff = 5; - * - * @return The maxBackoff. - */ - com.google.protobuf.Duration getMaxBackoff(); - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-   * `max_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [max_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_backoff = 5; - */ - com.google.protobuf.DurationOrBuilder getMaxBackoffOrBuilder(); - - /** - * - * - *
-   * The time between retries will double `max_doublings` times.
-   * A task's retry interval starts at
-   * [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff], then doubles
-   * `max_doublings` times, then increases linearly, and finally
-   * retries at intervals of
-   * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] up to
-   * [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
-   * For example, if [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] is 10s,
-   * [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] is 300s, and
-   * `max_doublings` is 3, then the a task will first be retried in
-   * 10s. The retry interval will double three times, and then
-   * increase linearly by 2^3 * 10s.  Finally, the task will retry at
-   * intervals of [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] until the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts]
-   * times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
-   * 240s, 300s, 300s, ....
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget].
-   * This field has the same meaning as
-   * [max_doublings in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * int32 max_doublings = 6; - * - * @return The maxDoublings. - */ - int getMaxDoublings(); - - public com.google.cloud.tasks.v2beta2.RetryConfig.NumAttemptsCase getNumAttemptsCase(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequest.java deleted file mode 100644 index 829cd9e0..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequest.java +++ /dev/null @@ -1,849 +0,0 @@ -/* - * Copyright 2020 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; - -/** - * - * - *
- * Request message for forcing a task to run now using
- * [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.RunTaskRequest} - */ -public final class RunTaskRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.RunTaskRequest) - RunTaskRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RunTaskRequest.newBuilder() to construct. - private RunTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RunTaskRequest() { - name_ = ""; - responseView_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RunTaskRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_RunTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_RunTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.RunTaskRequest.class, - com.google.cloud.tasks.v2beta2.RunTaskRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESPONSE_VIEW_FIELD_NUMBER = 2; - private int responseView_; - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta2.Task.View result = - com.google.cloud.tasks.v2beta2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta2.Task.View.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - output.writeEnum(2, responseView_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (responseView_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, responseView_); - } - 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.RunTaskRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.RunTaskRequest other = - (com.google.cloud.tasks.v2beta2.RunTaskRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (responseView_ != other.responseView_) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; - hash = (53 * hash) + responseView_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.RunTaskRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.RunTaskRequest 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.RunTaskRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.RunTaskRequest 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.RunTaskRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.RunTaskRequest 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.RunTaskRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.RunTaskRequest 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.RunTaskRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.RunTaskRequest 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.RunTaskRequest 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.RunTaskRequest 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.RunTaskRequest 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 forcing a task to run now using
-   * [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.RunTaskRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.RunTaskRequest) - com.google.cloud.tasks.v2beta2.RunTaskRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_RunTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_RunTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.RunTaskRequest.class, - com.google.cloud.tasks.v2beta2.RunTaskRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.RunTaskRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - responseView_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_RunTaskRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.RunTaskRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.RunTaskRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.RunTaskRequest build() { - com.google.cloud.tasks.v2beta2.RunTaskRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.RunTaskRequest buildPartial() { - com.google.cloud.tasks.v2beta2.RunTaskRequest result = - new com.google.cloud.tasks.v2beta2.RunTaskRequest(this); - result.name_ = name_; - result.responseView_ = responseView_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.RunTaskRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta2.RunTaskRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.RunTaskRequest other) { - if (other == com.google.cloud.tasks.v2beta2.RunTaskRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.responseView_ != 0) { - setResponseViewValue(other.getResponseViewValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - responseView_ = input.readEnum(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int responseView_ = 0; - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @param value The enum numeric value on the wire for responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseViewValue(int value) { - - responseView_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta2.Task.View result = - com.google.cloud.tasks.v2beta2.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta2.Task.View.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @param value The responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseView(com.google.cloud.tasks.v2beta2.Task.View value) { - if (value == null) { - throw new NullPointerException(); - } - - responseView_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @return This builder for chaining. - */ - public Builder clearResponseView() { - - responseView_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.RunTaskRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.RunTaskRequest) - private static final com.google.cloud.tasks.v2beta2.RunTaskRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.RunTaskRequest(); - } - - public static com.google.cloud.tasks.v2beta2.RunTaskRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunTaskRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.RunTaskRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequestOrBuilder.java deleted file mode 100644 index 8ce08688..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequestOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2020 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; - -public interface RunTaskRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.RunTaskRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - int getResponseViewValue(); - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View response_view = 2; - * - * @return The responseView. - */ - com.google.cloud.tasks.v2beta2.Task.View getResponseView(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TargetProto.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TargetProto.java deleted file mode 100644 index 7f55c35d..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TargetProto.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta2; - -public final class TargetProto { - private TargetProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_PullTarget_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_PullTarget_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_PullMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_PullMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_AppEngineHttpTarget_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_AppEngineHttpTarget_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_AppEngineHttpRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_AppEngineHttpRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_AppEngineHttpRequest_HeadersEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_AppEngineHttpRequest_HeadersEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_AppEngineRouting_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_AppEngineRouting_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\'google/cloud/tasks/v2beta2/target.prot" - + "o\022\032google.cloud.tasks.v2beta2\"\014\n\nPullTar" - + "get\"+\n\013PullMessage\022\017\n\007payload\030\001 \001(\014\022\013\n\003t" - + "ag\030\002 \001(\t\"h\n\023AppEngineHttpTarget\022Q\n\033app_e" - + "ngine_routing_override\030\001 \001(\0132,.google.cl" - + "oud.tasks.v2beta2.AppEngineRouting\"\304\002\n\024A" - + "ppEngineHttpRequest\022;\n\013http_method\030\001 \001(\016" - + "2&.google.cloud.tasks.v2beta2.HttpMethod" - + "\022H\n\022app_engine_routing\030\002 \001(\0132,.google.cl" - + "oud.tasks.v2beta2.AppEngineRouting\022\024\n\014re" - + "lative_url\030\003 \001(\t\022N\n\007headers\030\004 \003(\0132=.goog" - + "le.cloud.tasks.v2beta2.AppEngineHttpRequ" - + "est.HeadersEntry\022\017\n\007payload\030\005 \001(\014\032.\n\014Hea" - + "dersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\"T\n\020AppEngineRouting\022\017\n\007service\030\001 \001(\t\022\017" - + "\n\007version\030\002 \001(\t\022\020\n\010instance\030\003 \001(\t\022\014\n\004hos" - + "t\030\004 \001(\t*[\n\nHttpMethod\022\033\n\027HTTP_METHOD_UNS" - + "PECIFIED\020\000\022\010\n\004POST\020\001\022\007\n\003GET\020\002\022\010\n\004HEAD\020\003\022" - + "\007\n\003PUT\020\004\022\n\n\006DELETE\020\005Bp\n\036com.google.cloud" - + ".tasks.v2beta2B\013TargetProtoP\001Z?google.go" - + "lang.org/genproto/googleapis/cloud/tasks" - + "/v2beta2;tasksb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_tasks_v2beta2_PullTarget_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_tasks_v2beta2_PullTarget_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_PullTarget_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_tasks_v2beta2_PullMessage_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_tasks_v2beta2_PullMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_PullMessage_descriptor, - new java.lang.String[] { - "Payload", "Tag", - }); - internal_static_google_cloud_tasks_v2beta2_AppEngineHttpTarget_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_tasks_v2beta2_AppEngineHttpTarget_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_AppEngineHttpTarget_descriptor, - new java.lang.String[] { - "AppEngineRoutingOverride", - }); - internal_static_google_cloud_tasks_v2beta2_AppEngineHttpRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_tasks_v2beta2_AppEngineHttpRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_AppEngineHttpRequest_descriptor, - new java.lang.String[] { - "HttpMethod", "AppEngineRouting", "RelativeUrl", "Headers", "Payload", - }); - internal_static_google_cloud_tasks_v2beta2_AppEngineHttpRequest_HeadersEntry_descriptor = - internal_static_google_cloud_tasks_v2beta2_AppEngineHttpRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_tasks_v2beta2_AppEngineHttpRequest_HeadersEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_AppEngineHttpRequest_HeadersEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_tasks_v2beta2_AppEngineRouting_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_tasks_v2beta2_AppEngineRouting_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_AppEngineRouting_descriptor, - new java.lang.String[] { - "Service", "Version", "Instance", "Host", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Task.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Task.java deleted file mode 100644 index c824c8ab..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Task.java +++ /dev/null @@ -1,2694 +0,0 @@ -/* - * Copyright 2020 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/task.proto - -package com.google.cloud.tasks.v2beta2; - -/** - * - * - *
- * A unit of scheduled work.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.Task} - */ -public final class Task extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.Task) - TaskOrBuilder { - private static final long serialVersionUID = 0L; - // Use Task.newBuilder() to construct. - private Task(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Task() { - name_ = ""; - view_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Task(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.TaskProto - .internal_static_google_cloud_tasks_v2beta2_Task_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.TaskProto - .internal_static_google_cloud_tasks_v2beta2_Task_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.Task.class, - com.google.cloud.tasks.v2beta2.Task.Builder.class); - } - - /** - * - * - *
-   * The view specifies a subset of [Task][google.cloud.tasks.v2beta2.Task] data.
-   * When a task is returned in a response, not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * 
- * - * Protobuf enum {@code google.cloud.tasks.v2beta2.Task.View} - */ - public enum View implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unspecified. Defaults to BASIC.
-     * 
- * - * VIEW_UNSPECIFIED = 0; - */ - VIEW_UNSPECIFIED(0), - /** - * - * - *
-     * The basic view omits fields which can be large or can contain
-     * sensitive data.
-     * This view does not include the
-     * ([payload in AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] and
-     * [payload in PullMessage][google.cloud.tasks.v2beta2.PullMessage.payload]). These payloads are
-     * desirable to return only when needed, because they can be large
-     * and because of the sensitivity of the data that you choose to
-     * store in it.
-     * 
- * - * BASIC = 1; - */ - BASIC(1), - /** - * - * - *
-     * All information is returned.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Queue][google.cloud.tasks.v2beta2.Queue] resource.
-     * 
- * - * FULL = 2; - */ - FULL(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Unspecified. Defaults to BASIC.
-     * 
- * - * VIEW_UNSPECIFIED = 0; - */ - public static final int VIEW_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The basic view omits fields which can be large or can contain
-     * sensitive data.
-     * This view does not include the
-     * ([payload in AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] and
-     * [payload in PullMessage][google.cloud.tasks.v2beta2.PullMessage.payload]). These payloads are
-     * desirable to return only when needed, because they can be large
-     * and because of the sensitivity of the data that you choose to
-     * store in it.
-     * 
- * - * BASIC = 1; - */ - public static final int BASIC_VALUE = 1; - /** - * - * - *
-     * All information is returned.
-     * Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Queue][google.cloud.tasks.v2beta2.Queue] resource.
-     * 
- * - * FULL = 2; - */ - public static final int FULL_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static View valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static View forNumber(int value) { - switch (value) { - case 0: - return VIEW_UNSPECIFIED; - case 1: - return BASIC; - case 2: - return FULL; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public View findValueByNumber(int number) { - return View.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.Task.getDescriptor().getEnumTypes().get(0); - } - - private static final View[] VALUES = values(); - - public static View valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private View(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.tasks.v2beta2.Task.View) - } - - private int payloadTypeCase_ = 0; - private java.lang.Object payloadType_; - - public enum PayloadTypeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - APP_ENGINE_HTTP_REQUEST(3), - PULL_MESSAGE(4), - PAYLOADTYPE_NOT_SET(0); - private final int value; - - private PayloadTypeCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PayloadTypeCase valueOf(int value) { - return forNumber(value); - } - - public static PayloadTypeCase forNumber(int value) { - switch (value) { - case 3: - return APP_ENGINE_HTTP_REQUEST; - case 4: - return PULL_MESSAGE; - case 0: - return PAYLOADTYPE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public PayloadTypeCase getPayloadTypeCase() { - return PayloadTypeCase.forNumber(payloadTypeCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   * The task name.
-   * The task name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the task's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-   *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   * The task name.
-   * The task name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the task's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-   *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int APP_ENGINE_HTTP_REQUEST_FIELD_NUMBER = 3; - /** - * - * - *
-   * App Engine HTTP request that is sent to the task's target. Can
-   * be set only if
-   * [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] is set
-   * on the queue.
-   * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpRequest app_engine_http_request = 3; - * - * @return Whether the appEngineHttpRequest field is set. - */ - @java.lang.Override - public boolean hasAppEngineHttpRequest() { - return payloadTypeCase_ == 3; - } - /** - * - * - *
-   * App Engine HTTP request that is sent to the task's target. Can
-   * be set only if
-   * [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] is set
-   * on the queue.
-   * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpRequest app_engine_http_request = 3; - * - * @return The appEngineHttpRequest. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineHttpRequest getAppEngineHttpRequest() { - if (payloadTypeCase_ == 3) { - return (com.google.cloud.tasks.v2beta2.AppEngineHttpRequest) payloadType_; - } - return com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.getDefaultInstance(); - } - /** - * - * - *
-   * App Engine HTTP request that is sent to the task's target. Can
-   * be set only if
-   * [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] is set
-   * on the queue.
-   * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpRequest app_engine_http_request = 3; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineHttpRequestOrBuilder - getAppEngineHttpRequestOrBuilder() { - if (payloadTypeCase_ == 3) { - return (com.google.cloud.tasks.v2beta2.AppEngineHttpRequest) payloadType_; - } - return com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.getDefaultInstance(); - } - - public static final int PULL_MESSAGE_FIELD_NUMBER = 4; - /** - * - * - *
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task. Can be
-   * set only if [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] is set on the queue.
-   * A pull task is a task that has [PullMessage][google.cloud.tasks.v2beta2.PullMessage] set.
-   * 
- * - * .google.cloud.tasks.v2beta2.PullMessage pull_message = 4; - * - * @return Whether the pullMessage field is set. - */ - @java.lang.Override - public boolean hasPullMessage() { - return payloadTypeCase_ == 4; - } - /** - * - * - *
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task. Can be
-   * set only if [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] is set on the queue.
-   * A pull task is a task that has [PullMessage][google.cloud.tasks.v2beta2.PullMessage] set.
-   * 
- * - * .google.cloud.tasks.v2beta2.PullMessage pull_message = 4; - * - * @return The pullMessage. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PullMessage getPullMessage() { - if (payloadTypeCase_ == 4) { - return (com.google.cloud.tasks.v2beta2.PullMessage) payloadType_; - } - return com.google.cloud.tasks.v2beta2.PullMessage.getDefaultInstance(); - } - /** - * - * - *
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task. Can be
-   * set only if [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] is set on the queue.
-   * A pull task is a task that has [PullMessage][google.cloud.tasks.v2beta2.PullMessage] set.
-   * 
- * - * .google.cloud.tasks.v2beta2.PullMessage pull_message = 4; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PullMessageOrBuilder getPullMessageOrBuilder() { - if (payloadTypeCase_ == 4) { - return (com.google.cloud.tasks.v2beta2.PullMessage) payloadType_; - } - return com.google.cloud.tasks.v2beta2.PullMessage.getDefaultInstance(); - } - - public static final int SCHEDULE_TIME_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp scheduleTime_; - /** - * - * - *
-   * The time when the task is scheduled to be attempted.
-   * For App Engine queues, this is when the task will be attempted or retried.
-   * For pull queues, this is the time when the task is available to
-   * be leased; if a task is currently leased, this is the time when
-   * the current lease expires, that is, the time that the task was
-   * leased plus the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 5; - * - * @return Whether the scheduleTime field is set. - */ - @java.lang.Override - public boolean hasScheduleTime() { - return scheduleTime_ != null; - } - /** - * - * - *
-   * The time when the task is scheduled to be attempted.
-   * For App Engine queues, this is when the task will be attempted or retried.
-   * For pull queues, this is the time when the task is available to
-   * be leased; if a task is currently leased, this is the time when
-   * the current lease expires, that is, the time that the task was
-   * leased plus the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 5; - * - * @return The scheduleTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } - /** - * - * - *
-   * The time when the task is scheduled to be attempted.
-   * For App Engine queues, this is when the task will be attempted or retried.
-   * For pull queues, this is the time when the task is available to
-   * be leased; if a task is currently leased, this is the time when
-   * the current lease expires, that is, the time that the task was
-   * leased plus the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 5; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { - return getScheduleTime(); - } - - public static final int CREATE_TIME_FIELD_NUMBER = 6; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. The time that the task was created.
-   * `create_time` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6; - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. The time that the task was created.
-   * `create_time` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6; - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. The time that the task was created.
-   * `create_time` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int STATUS_FIELD_NUMBER = 7; - private com.google.cloud.tasks.v2beta2.TaskStatus status_; - /** - * - * - *
-   * Output only. The task status.
-   * 
- * - * .google.cloud.tasks.v2beta2.TaskStatus status = 7; - * - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return status_ != null; - } - /** - * - * - *
-   * Output only. The task status.
-   * 
- * - * .google.cloud.tasks.v2beta2.TaskStatus status = 7; - * - * @return The status. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.TaskStatus getStatus() { - return status_ == null - ? com.google.cloud.tasks.v2beta2.TaskStatus.getDefaultInstance() - : status_; - } - /** - * - * - *
-   * Output only. The task status.
-   * 
- * - * .google.cloud.tasks.v2beta2.TaskStatus status = 7; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.TaskStatusOrBuilder getStatusOrBuilder() { - return getStatus(); - } - - public static final int VIEW_FIELD_NUMBER = 8; - private int view_; - /** - * - * - *
-   * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] has
-   * been returned.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View view = 8; - * - * @return The enum numeric value on the wire for view. - */ - @java.lang.Override - public int getViewValue() { - return view_; - } - /** - * - * - *
-   * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] has
-   * been returned.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View view = 8; - * - * @return The view. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task.View getView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta2.Task.View result = - com.google.cloud.tasks.v2beta2.Task.View.valueOf(view_); - return result == null ? com.google.cloud.tasks.v2beta2.Task.View.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (payloadTypeCase_ == 3) { - output.writeMessage(3, (com.google.cloud.tasks.v2beta2.AppEngineHttpRequest) payloadType_); - } - if (payloadTypeCase_ == 4) { - output.writeMessage(4, (com.google.cloud.tasks.v2beta2.PullMessage) payloadType_); - } - if (scheduleTime_ != null) { - output.writeMessage(5, getScheduleTime()); - } - if (createTime_ != null) { - output.writeMessage(6, getCreateTime()); - } - if (status_ != null) { - output.writeMessage(7, getStatus()); - } - if (view_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - output.writeEnum(8, view_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (payloadTypeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.tasks.v2beta2.AppEngineHttpRequest) payloadType_); - } - if (payloadTypeCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.tasks.v2beta2.PullMessage) payloadType_); - } - if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getScheduleTime()); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); - } - if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getStatus()); - } - if (view_ != com.google.cloud.tasks.v2beta2.Task.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, view_); - } - 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.Task)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.Task other = (com.google.cloud.tasks.v2beta2.Task) obj; - - if (!getName().equals(other.getName())) return false; - if (hasScheduleTime() != other.hasScheduleTime()) return false; - if (hasScheduleTime()) { - if (!getScheduleTime().equals(other.getScheduleTime())) return false; - } - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasStatus() != other.hasStatus()) return false; - if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; - } - if (view_ != other.view_) return false; - if (!getPayloadTypeCase().equals(other.getPayloadTypeCase())) return false; - switch (payloadTypeCase_) { - case 3: - if (!getAppEngineHttpRequest().equals(other.getAppEngineHttpRequest())) return false; - break; - case 4: - if (!getPullMessage().equals(other.getPullMessage())) return false; - break; - case 0: - default: - } - 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasScheduleTime()) { - hash = (37 * hash) + SCHEDULE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getScheduleTime().hashCode(); - } - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasStatus()) { - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - } - hash = (37 * hash) + VIEW_FIELD_NUMBER; - hash = (53 * hash) + view_; - switch (payloadTypeCase_) { - case 3: - hash = (37 * hash) + APP_ENGINE_HTTP_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getAppEngineHttpRequest().hashCode(); - break; - case 4: - hash = (37 * hash) + PULL_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getPullMessage().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.Task parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.Task 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.Task parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.Task 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.Task parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.Task 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.Task parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.Task 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.Task parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.Task 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.Task 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.Task 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.Task prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A unit of scheduled work.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.Task} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.Task) - com.google.cloud.tasks.v2beta2.TaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.TaskProto - .internal_static_google_cloud_tasks_v2beta2_Task_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.TaskProto - .internal_static_google_cloud_tasks_v2beta2_Task_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.Task.class, - com.google.cloud.tasks.v2beta2.Task.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.Task.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (appEngineHttpRequestBuilder_ != null) { - appEngineHttpRequestBuilder_.clear(); - } - if (pullMessageBuilder_ != null) { - pullMessageBuilder_.clear(); - } - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = null; - } else { - scheduleTime_ = null; - scheduleTimeBuilder_ = null; - } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (statusBuilder_ == null) { - status_ = null; - } else { - status_ = null; - statusBuilder_ = null; - } - view_ = 0; - - payloadTypeCase_ = 0; - payloadType_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.TaskProto - .internal_static_google_cloud_tasks_v2beta2_Task_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.Task.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task build() { - com.google.cloud.tasks.v2beta2.Task result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task buildPartial() { - com.google.cloud.tasks.v2beta2.Task result = new com.google.cloud.tasks.v2beta2.Task(this); - result.name_ = name_; - if (payloadTypeCase_ == 3) { - if (appEngineHttpRequestBuilder_ == null) { - result.payloadType_ = payloadType_; - } else { - result.payloadType_ = appEngineHttpRequestBuilder_.build(); - } - } - if (payloadTypeCase_ == 4) { - if (pullMessageBuilder_ == null) { - result.payloadType_ = payloadType_; - } else { - result.payloadType_ = pullMessageBuilder_.build(); - } - } - if (scheduleTimeBuilder_ == null) { - result.scheduleTime_ = scheduleTime_; - } else { - result.scheduleTime_ = scheduleTimeBuilder_.build(); - } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); - } - result.view_ = view_; - result.payloadTypeCase_ = payloadTypeCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.Task) { - return mergeFrom((com.google.cloud.tasks.v2beta2.Task) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.Task other) { - if (other == com.google.cloud.tasks.v2beta2.Task.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasScheduleTime()) { - mergeScheduleTime(other.getScheduleTime()); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasStatus()) { - mergeStatus(other.getStatus()); - } - if (other.view_ != 0) { - setViewValue(other.getViewValue()); - } - switch (other.getPayloadTypeCase()) { - case APP_ENGINE_HTTP_REQUEST: - { - mergeAppEngineHttpRequest(other.getAppEngineHttpRequest()); - break; - } - case PULL_MESSAGE: - { - mergePullMessage(other.getPullMessage()); - break; - } - case PAYLOADTYPE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 26: - { - input.readMessage( - getAppEngineHttpRequestFieldBuilder().getBuilder(), extensionRegistry); - payloadTypeCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getPullMessageFieldBuilder().getBuilder(), extensionRegistry); - payloadTypeCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 50: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 58: - { - input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - case 64: - { - view_ = input.readEnum(); - - break; - } // case 64 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int payloadTypeCase_ = 0; - private java.lang.Object payloadType_; - - public PayloadTypeCase getPayloadTypeCase() { - return PayloadTypeCase.forNumber(payloadTypeCase_); - } - - public Builder clearPayloadType() { - payloadTypeCase_ = 0; - payloadType_ = null; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     * The task name.
-     * The task name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the task's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-     *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     * The task name.
-     * The task name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the task's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-     *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     * The task name.
-     * The task name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the task's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-     *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     * The task name.
-     * The task name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the task's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-     *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-     * The task name.
-     * The task name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the task's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-     *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.AppEngineHttpRequest, - com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.Builder, - com.google.cloud.tasks.v2beta2.AppEngineHttpRequestOrBuilder> - appEngineHttpRequestBuilder_; - /** - * - * - *
-     * App Engine HTTP request that is sent to the task's target. Can
-     * be set only if
-     * [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] is set
-     * on the queue.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpRequest app_engine_http_request = 3; - * - * @return Whether the appEngineHttpRequest field is set. - */ - @java.lang.Override - public boolean hasAppEngineHttpRequest() { - return payloadTypeCase_ == 3; - } - /** - * - * - *
-     * App Engine HTTP request that is sent to the task's target. Can
-     * be set only if
-     * [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] is set
-     * on the queue.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpRequest app_engine_http_request = 3; - * - * @return The appEngineHttpRequest. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineHttpRequest getAppEngineHttpRequest() { - if (appEngineHttpRequestBuilder_ == null) { - if (payloadTypeCase_ == 3) { - return (com.google.cloud.tasks.v2beta2.AppEngineHttpRequest) payloadType_; - } - return com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.getDefaultInstance(); - } else { - if (payloadTypeCase_ == 3) { - return appEngineHttpRequestBuilder_.getMessage(); - } - return com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.getDefaultInstance(); - } - } - /** - * - * - *
-     * App Engine HTTP request that is sent to the task's target. Can
-     * be set only if
-     * [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] is set
-     * on the queue.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpRequest app_engine_http_request = 3; - */ - public Builder setAppEngineHttpRequest( - com.google.cloud.tasks.v2beta2.AppEngineHttpRequest value) { - if (appEngineHttpRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payloadType_ = value; - onChanged(); - } else { - appEngineHttpRequestBuilder_.setMessage(value); - } - payloadTypeCase_ = 3; - return this; - } - /** - * - * - *
-     * App Engine HTTP request that is sent to the task's target. Can
-     * be set only if
-     * [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] is set
-     * on the queue.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpRequest app_engine_http_request = 3; - */ - public Builder setAppEngineHttpRequest( - com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.Builder builderForValue) { - if (appEngineHttpRequestBuilder_ == null) { - payloadType_ = builderForValue.build(); - onChanged(); - } else { - appEngineHttpRequestBuilder_.setMessage(builderForValue.build()); - } - payloadTypeCase_ = 3; - return this; - } - /** - * - * - *
-     * App Engine HTTP request that is sent to the task's target. Can
-     * be set only if
-     * [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] is set
-     * on the queue.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpRequest app_engine_http_request = 3; - */ - public Builder mergeAppEngineHttpRequest( - com.google.cloud.tasks.v2beta2.AppEngineHttpRequest value) { - if (appEngineHttpRequestBuilder_ == null) { - if (payloadTypeCase_ == 3 - && payloadType_ - != com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.getDefaultInstance()) { - payloadType_ = - com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.newBuilder( - (com.google.cloud.tasks.v2beta2.AppEngineHttpRequest) payloadType_) - .mergeFrom(value) - .buildPartial(); - } else { - payloadType_ = value; - } - onChanged(); - } else { - if (payloadTypeCase_ == 3) { - appEngineHttpRequestBuilder_.mergeFrom(value); - } else { - appEngineHttpRequestBuilder_.setMessage(value); - } - } - payloadTypeCase_ = 3; - return this; - } - /** - * - * - *
-     * App Engine HTTP request that is sent to the task's target. Can
-     * be set only if
-     * [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] is set
-     * on the queue.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpRequest app_engine_http_request = 3; - */ - public Builder clearAppEngineHttpRequest() { - if (appEngineHttpRequestBuilder_ == null) { - if (payloadTypeCase_ == 3) { - payloadTypeCase_ = 0; - payloadType_ = null; - onChanged(); - } - } else { - if (payloadTypeCase_ == 3) { - payloadTypeCase_ = 0; - payloadType_ = null; - } - appEngineHttpRequestBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * App Engine HTTP request that is sent to the task's target. Can
-     * be set only if
-     * [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] is set
-     * on the queue.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpRequest app_engine_http_request = 3; - */ - public com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.Builder - getAppEngineHttpRequestBuilder() { - return getAppEngineHttpRequestFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * App Engine HTTP request that is sent to the task's target. Can
-     * be set only if
-     * [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] is set
-     * on the queue.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpRequest app_engine_http_request = 3; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AppEngineHttpRequestOrBuilder - getAppEngineHttpRequestOrBuilder() { - if ((payloadTypeCase_ == 3) && (appEngineHttpRequestBuilder_ != null)) { - return appEngineHttpRequestBuilder_.getMessageOrBuilder(); - } else { - if (payloadTypeCase_ == 3) { - return (com.google.cloud.tasks.v2beta2.AppEngineHttpRequest) payloadType_; - } - return com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.getDefaultInstance(); - } - } - /** - * - * - *
-     * App Engine HTTP request that is sent to the task's target. Can
-     * be set only if
-     * [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] is set
-     * on the queue.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpRequest app_engine_http_request = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.AppEngineHttpRequest, - com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.Builder, - com.google.cloud.tasks.v2beta2.AppEngineHttpRequestOrBuilder> - getAppEngineHttpRequestFieldBuilder() { - if (appEngineHttpRequestBuilder_ == null) { - if (!(payloadTypeCase_ == 3)) { - payloadType_ = com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.getDefaultInstance(); - } - appEngineHttpRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.AppEngineHttpRequest, - com.google.cloud.tasks.v2beta2.AppEngineHttpRequest.Builder, - com.google.cloud.tasks.v2beta2.AppEngineHttpRequestOrBuilder>( - (com.google.cloud.tasks.v2beta2.AppEngineHttpRequest) payloadType_, - getParentForChildren(), - isClean()); - payloadType_ = null; - } - payloadTypeCase_ = 3; - onChanged(); - ; - return appEngineHttpRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.PullMessage, - com.google.cloud.tasks.v2beta2.PullMessage.Builder, - com.google.cloud.tasks.v2beta2.PullMessageOrBuilder> - pullMessageBuilder_; - /** - * - * - *
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task. Can be
-     * set only if [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] is set on the queue.
-     * A pull task is a task that has [PullMessage][google.cloud.tasks.v2beta2.PullMessage] set.
-     * 
- * - * .google.cloud.tasks.v2beta2.PullMessage pull_message = 4; - * - * @return Whether the pullMessage field is set. - */ - @java.lang.Override - public boolean hasPullMessage() { - return payloadTypeCase_ == 4; - } - /** - * - * - *
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task. Can be
-     * set only if [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] is set on the queue.
-     * A pull task is a task that has [PullMessage][google.cloud.tasks.v2beta2.PullMessage] set.
-     * 
- * - * .google.cloud.tasks.v2beta2.PullMessage pull_message = 4; - * - * @return The pullMessage. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PullMessage getPullMessage() { - if (pullMessageBuilder_ == null) { - if (payloadTypeCase_ == 4) { - return (com.google.cloud.tasks.v2beta2.PullMessage) payloadType_; - } - return com.google.cloud.tasks.v2beta2.PullMessage.getDefaultInstance(); - } else { - if (payloadTypeCase_ == 4) { - return pullMessageBuilder_.getMessage(); - } - return com.google.cloud.tasks.v2beta2.PullMessage.getDefaultInstance(); - } - } - /** - * - * - *
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task. Can be
-     * set only if [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] is set on the queue.
-     * A pull task is a task that has [PullMessage][google.cloud.tasks.v2beta2.PullMessage] set.
-     * 
- * - * .google.cloud.tasks.v2beta2.PullMessage pull_message = 4; - */ - public Builder setPullMessage(com.google.cloud.tasks.v2beta2.PullMessage value) { - if (pullMessageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payloadType_ = value; - onChanged(); - } else { - pullMessageBuilder_.setMessage(value); - } - payloadTypeCase_ = 4; - return this; - } - /** - * - * - *
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task. Can be
-     * set only if [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] is set on the queue.
-     * A pull task is a task that has [PullMessage][google.cloud.tasks.v2beta2.PullMessage] set.
-     * 
- * - * .google.cloud.tasks.v2beta2.PullMessage pull_message = 4; - */ - public Builder setPullMessage( - com.google.cloud.tasks.v2beta2.PullMessage.Builder builderForValue) { - if (pullMessageBuilder_ == null) { - payloadType_ = builderForValue.build(); - onChanged(); - } else { - pullMessageBuilder_.setMessage(builderForValue.build()); - } - payloadTypeCase_ = 4; - return this; - } - /** - * - * - *
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task. Can be
-     * set only if [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] is set on the queue.
-     * A pull task is a task that has [PullMessage][google.cloud.tasks.v2beta2.PullMessage] set.
-     * 
- * - * .google.cloud.tasks.v2beta2.PullMessage pull_message = 4; - */ - public Builder mergePullMessage(com.google.cloud.tasks.v2beta2.PullMessage value) { - if (pullMessageBuilder_ == null) { - if (payloadTypeCase_ == 4 - && payloadType_ != com.google.cloud.tasks.v2beta2.PullMessage.getDefaultInstance()) { - payloadType_ = - com.google.cloud.tasks.v2beta2.PullMessage.newBuilder( - (com.google.cloud.tasks.v2beta2.PullMessage) payloadType_) - .mergeFrom(value) - .buildPartial(); - } else { - payloadType_ = value; - } - onChanged(); - } else { - if (payloadTypeCase_ == 4) { - pullMessageBuilder_.mergeFrom(value); - } else { - pullMessageBuilder_.setMessage(value); - } - } - payloadTypeCase_ = 4; - return this; - } - /** - * - * - *
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task. Can be
-     * set only if [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] is set on the queue.
-     * A pull task is a task that has [PullMessage][google.cloud.tasks.v2beta2.PullMessage] set.
-     * 
- * - * .google.cloud.tasks.v2beta2.PullMessage pull_message = 4; - */ - public Builder clearPullMessage() { - if (pullMessageBuilder_ == null) { - if (payloadTypeCase_ == 4) { - payloadTypeCase_ = 0; - payloadType_ = null; - onChanged(); - } - } else { - if (payloadTypeCase_ == 4) { - payloadTypeCase_ = 0; - payloadType_ = null; - } - pullMessageBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task. Can be
-     * set only if [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] is set on the queue.
-     * A pull task is a task that has [PullMessage][google.cloud.tasks.v2beta2.PullMessage] set.
-     * 
- * - * .google.cloud.tasks.v2beta2.PullMessage pull_message = 4; - */ - public com.google.cloud.tasks.v2beta2.PullMessage.Builder getPullMessageBuilder() { - return getPullMessageFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task. Can be
-     * set only if [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] is set on the queue.
-     * A pull task is a task that has [PullMessage][google.cloud.tasks.v2beta2.PullMessage] set.
-     * 
- * - * .google.cloud.tasks.v2beta2.PullMessage pull_message = 4; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.PullMessageOrBuilder getPullMessageOrBuilder() { - if ((payloadTypeCase_ == 4) && (pullMessageBuilder_ != null)) { - return pullMessageBuilder_.getMessageOrBuilder(); - } else { - if (payloadTypeCase_ == 4) { - return (com.google.cloud.tasks.v2beta2.PullMessage) payloadType_; - } - return com.google.cloud.tasks.v2beta2.PullMessage.getDefaultInstance(); - } - } - /** - * - * - *
-     * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task. Can be
-     * set only if [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] is set on the queue.
-     * A pull task is a task that has [PullMessage][google.cloud.tasks.v2beta2.PullMessage] set.
-     * 
- * - * .google.cloud.tasks.v2beta2.PullMessage pull_message = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.PullMessage, - com.google.cloud.tasks.v2beta2.PullMessage.Builder, - com.google.cloud.tasks.v2beta2.PullMessageOrBuilder> - getPullMessageFieldBuilder() { - if (pullMessageBuilder_ == null) { - if (!(payloadTypeCase_ == 4)) { - payloadType_ = com.google.cloud.tasks.v2beta2.PullMessage.getDefaultInstance(); - } - pullMessageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.PullMessage, - com.google.cloud.tasks.v2beta2.PullMessage.Builder, - com.google.cloud.tasks.v2beta2.PullMessageOrBuilder>( - (com.google.cloud.tasks.v2beta2.PullMessage) payloadType_, - getParentForChildren(), - isClean()); - payloadType_ = null; - } - payloadTypeCase_ = 4; - onChanged(); - ; - return pullMessageBuilder_; - } - - private com.google.protobuf.Timestamp scheduleTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - scheduleTimeBuilder_; - /** - * - * - *
-     * The time when the task is scheduled to be attempted.
-     * For App Engine queues, this is when the task will be attempted or retried.
-     * For pull queues, this is the time when the task is available to
-     * be leased; if a task is currently leased, this is the time when
-     * the current lease expires, that is, the time that the task was
-     * leased plus the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 5; - * - * @return Whether the scheduleTime field is set. - */ - public boolean hasScheduleTime() { - return scheduleTimeBuilder_ != null || scheduleTime_ != null; - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted.
-     * For App Engine queues, this is when the task will be attempted or retried.
-     * For pull queues, this is the time when the task is available to
-     * be leased; if a task is currently leased, this is the time when
-     * the current lease expires, that is, the time that the task was
-     * leased plus the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 5; - * - * @return The scheduleTime. - */ - public com.google.protobuf.Timestamp getScheduleTime() { - if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } else { - return scheduleTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted.
-     * For App Engine queues, this is when the task will be attempted or retried.
-     * For pull queues, this is the time when the task is available to
-     * be leased; if a task is currently leased, this is the time when
-     * the current lease expires, that is, the time that the task was
-     * leased plus the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 5; - */ - public Builder setScheduleTime(com.google.protobuf.Timestamp value) { - if (scheduleTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduleTime_ = value; - onChanged(); - } else { - scheduleTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted.
-     * For App Engine queues, this is when the task will be attempted or retried.
-     * For pull queues, this is the time when the task is available to
-     * be leased; if a task is currently leased, this is the time when
-     * the current lease expires, that is, the time that the task was
-     * leased plus the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 5; - */ - public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = builderForValue.build(); - onChanged(); - } else { - scheduleTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted.
-     * For App Engine queues, this is when the task will be attempted or retried.
-     * For pull queues, this is the time when the task is available to
-     * be leased; if a task is currently leased, this is the time when
-     * the current lease expires, that is, the time that the task was
-     * leased plus the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 5; - */ - public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { - if (scheduleTimeBuilder_ == null) { - if (scheduleTime_ != null) { - scheduleTime_ = - com.google.protobuf.Timestamp.newBuilder(scheduleTime_) - .mergeFrom(value) - .buildPartial(); - } else { - scheduleTime_ = value; - } - onChanged(); - } else { - scheduleTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted.
-     * For App Engine queues, this is when the task will be attempted or retried.
-     * For pull queues, this is the time when the task is available to
-     * be leased; if a task is currently leased, this is the time when
-     * the current lease expires, that is, the time that the task was
-     * leased plus the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 5; - */ - public Builder clearScheduleTime() { - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = null; - onChanged(); - } else { - scheduleTime_ = null; - scheduleTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted.
-     * For App Engine queues, this is when the task will be attempted or retried.
-     * For pull queues, this is the time when the task is available to
-     * be leased; if a task is currently leased, this is the time when
-     * the current lease expires, that is, the time that the task was
-     * leased plus the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 5; - */ - public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { - - onChanged(); - return getScheduleTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted.
-     * For App Engine queues, this is when the task will be attempted or retried.
-     * For pull queues, this is the time when the task is available to
-     * be leased; if a task is currently leased, this is the time when
-     * the current lease expires, that is, the time that the task was
-     * leased plus the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 5; - */ - public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { - if (scheduleTimeBuilder_ != null) { - return scheduleTimeBuilder_.getMessageOrBuilder(); - } else { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted.
-     * For App Engine queues, this is when the task will be attempted or retried.
-     * For pull queues, this is the time when the task is available to
-     * be leased; if a task is currently leased, this is the time when
-     * the current lease expires, that is, the time that the task was
-     * leased plus the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getScheduleTimeFieldBuilder() { - if (scheduleTimeBuilder_ == null) { - scheduleTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getScheduleTime(), getParentForChildren(), isClean()); - scheduleTime_ = null; - } - return scheduleTimeBuilder_; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6; - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6; - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6; - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.cloud.tasks.v2beta2.TaskStatus status_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.TaskStatus, - com.google.cloud.tasks.v2beta2.TaskStatus.Builder, - com.google.cloud.tasks.v2beta2.TaskStatusOrBuilder> - statusBuilder_; - /** - * - * - *
-     * Output only. The task status.
-     * 
- * - * .google.cloud.tasks.v2beta2.TaskStatus status = 7; - * - * @return Whether the status field is set. - */ - public boolean hasStatus() { - return statusBuilder_ != null || status_ != null; - } - /** - * - * - *
-     * Output only. The task status.
-     * 
- * - * .google.cloud.tasks.v2beta2.TaskStatus status = 7; - * - * @return The status. - */ - public com.google.cloud.tasks.v2beta2.TaskStatus getStatus() { - if (statusBuilder_ == null) { - return status_ == null - ? com.google.cloud.tasks.v2beta2.TaskStatus.getDefaultInstance() - : status_; - } else { - return statusBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The task status.
-     * 
- * - * .google.cloud.tasks.v2beta2.TaskStatus status = 7; - */ - public Builder setStatus(com.google.cloud.tasks.v2beta2.TaskStatus value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - status_ = value; - onChanged(); - } else { - statusBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The task status.
-     * 
- * - * .google.cloud.tasks.v2beta2.TaskStatus status = 7; - */ - public Builder setStatus(com.google.cloud.tasks.v2beta2.TaskStatus.Builder builderForValue) { - if (statusBuilder_ == null) { - status_ = builderForValue.build(); - onChanged(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The task status.
-     * 
- * - * .google.cloud.tasks.v2beta2.TaskStatus status = 7; - */ - public Builder mergeStatus(com.google.cloud.tasks.v2beta2.TaskStatus value) { - if (statusBuilder_ == null) { - if (status_ != null) { - status_ = - com.google.cloud.tasks.v2beta2.TaskStatus.newBuilder(status_) - .mergeFrom(value) - .buildPartial(); - } else { - status_ = value; - } - onChanged(); - } else { - statusBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The task status.
-     * 
- * - * .google.cloud.tasks.v2beta2.TaskStatus status = 7; - */ - public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; - onChanged(); - } else { - status_ = null; - statusBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The task status.
-     * 
- * - * .google.cloud.tasks.v2beta2.TaskStatus status = 7; - */ - public com.google.cloud.tasks.v2beta2.TaskStatus.Builder getStatusBuilder() { - - onChanged(); - return getStatusFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The task status.
-     * 
- * - * .google.cloud.tasks.v2beta2.TaskStatus status = 7; - */ - public com.google.cloud.tasks.v2beta2.TaskStatusOrBuilder getStatusOrBuilder() { - if (statusBuilder_ != null) { - return statusBuilder_.getMessageOrBuilder(); - } else { - return status_ == null - ? com.google.cloud.tasks.v2beta2.TaskStatus.getDefaultInstance() - : status_; - } - } - /** - * - * - *
-     * Output only. The task status.
-     * 
- * - * .google.cloud.tasks.v2beta2.TaskStatus status = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.TaskStatus, - com.google.cloud.tasks.v2beta2.TaskStatus.Builder, - com.google.cloud.tasks.v2beta2.TaskStatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.TaskStatus, - com.google.cloud.tasks.v2beta2.TaskStatus.Builder, - com.google.cloud.tasks.v2beta2.TaskStatusOrBuilder>( - getStatus(), getParentForChildren(), isClean()); - status_ = null; - } - return statusBuilder_; - } - - private int view_ = 0; - /** - * - * - *
-     * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] has
-     * been returned.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View view = 8; - * - * @return The enum numeric value on the wire for view. - */ - @java.lang.Override - public int getViewValue() { - return view_; - } - /** - * - * - *
-     * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] has
-     * been returned.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View view = 8; - * - * @param value The enum numeric value on the wire for view to set. - * @return This builder for chaining. - */ - public Builder setViewValue(int value) { - - view_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] has
-     * been returned.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View view = 8; - * - * @return The view. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task.View getView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta2.Task.View result = - com.google.cloud.tasks.v2beta2.Task.View.valueOf(view_); - return result == null ? com.google.cloud.tasks.v2beta2.Task.View.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] has
-     * been returned.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View view = 8; - * - * @param value The view to set. - * @return This builder for chaining. - */ - public Builder setView(com.google.cloud.tasks.v2beta2.Task.View value) { - if (value == null) { - throw new NullPointerException(); - } - - view_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] has
-     * been returned.
-     * 
- * - * .google.cloud.tasks.v2beta2.Task.View view = 8; - * - * @return This builder for chaining. - */ - public Builder clearView() { - - view_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta2.Task) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.Task) - private static final com.google.cloud.tasks.v2beta2.Task DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.Task(); - } - - public static com.google.cloud.tasks.v2beta2.Task getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Task parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Task getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskName.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskName.java deleted file mode 100644 index 481ab626..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskName.java +++ /dev/null @@ -1,257 +0,0 @@ -/* - * Copyright 2022 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; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class TaskName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_QUEUE_TASK = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/queues/{queue}/tasks/{task}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String queue; - private final String task; - - @Deprecated - protected TaskName() { - project = null; - location = null; - queue = null; - task = null; - } - - private TaskName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - queue = Preconditions.checkNotNull(builder.getQueue()); - task = Preconditions.checkNotNull(builder.getTask()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getQueue() { - return queue; - } - - public String getTask() { - return task; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static TaskName of(String project, String location, String queue, String task) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setQueue(queue) - .setTask(task) - .build(); - } - - public static String format(String project, String location, String queue, String task) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setQueue(queue) - .setTask(task) - .build() - .toString(); - } - - public static TaskName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_QUEUE_TASK.validatedMatch( - formattedString, "TaskName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("queue"), - matchMap.get("task")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (TaskName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_QUEUE_TASK.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - if (queue != null) { - fieldMapBuilder.put("queue", queue); - } - if (task != null) { - fieldMapBuilder.put("task", task); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_QUEUE_TASK.instantiate( - "project", project, "location", location, "queue", queue, "task", task); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - TaskName that = ((TaskName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.queue, that.queue) - && Objects.equals(this.task, that.task); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - h *= 1000003; - h ^= Objects.hashCode(queue); - h *= 1000003; - h ^= Objects.hashCode(task); - return h; - } - - /** Builder for projects/{project}/locations/{location}/queues/{queue}/tasks/{task}. */ - public static class Builder { - private String project; - private String location; - private String queue; - private String task; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getQueue() { - return queue; - } - - public String getTask() { - return task; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setQueue(String queue) { - this.queue = queue; - return this; - } - - public Builder setTask(String task) { - this.task = task; - return this; - } - - private Builder(TaskName taskName) { - this.project = taskName.project; - this.location = taskName.location; - this.queue = taskName.queue; - this.task = taskName.task; - } - - public TaskName build() { - return new TaskName(this); - } - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskOrBuilder.java deleted file mode 100644 index 9b356802..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskOrBuilder.java +++ /dev/null @@ -1,325 +0,0 @@ -/* - * Copyright 2020 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/task.proto - -package com.google.cloud.tasks.v2beta2; - -public interface TaskOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.Task) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   * The task name.
-   * The task name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the task's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-   *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
-   * The task name.
-   * The task name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the task's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-   *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * App Engine HTTP request that is sent to the task's target. Can
-   * be set only if
-   * [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] is set
-   * on the queue.
-   * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpRequest app_engine_http_request = 3; - * - * @return Whether the appEngineHttpRequest field is set. - */ - boolean hasAppEngineHttpRequest(); - /** - * - * - *
-   * App Engine HTTP request that is sent to the task's target. Can
-   * be set only if
-   * [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] is set
-   * on the queue.
-   * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpRequest app_engine_http_request = 3; - * - * @return The appEngineHttpRequest. - */ - com.google.cloud.tasks.v2beta2.AppEngineHttpRequest getAppEngineHttpRequest(); - /** - * - * - *
-   * App Engine HTTP request that is sent to the task's target. Can
-   * be set only if
-   * [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] is set
-   * on the queue.
-   * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2beta2.AppEngineHttpRequest app_engine_http_request = 3; - */ - com.google.cloud.tasks.v2beta2.AppEngineHttpRequestOrBuilder getAppEngineHttpRequestOrBuilder(); - - /** - * - * - *
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task. Can be
-   * set only if [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] is set on the queue.
-   * A pull task is a task that has [PullMessage][google.cloud.tasks.v2beta2.PullMessage] set.
-   * 
- * - * .google.cloud.tasks.v2beta2.PullMessage pull_message = 4; - * - * @return Whether the pullMessage field is set. - */ - boolean hasPullMessage(); - /** - * - * - *
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task. Can be
-   * set only if [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] is set on the queue.
-   * A pull task is a task that has [PullMessage][google.cloud.tasks.v2beta2.PullMessage] set.
-   * 
- * - * .google.cloud.tasks.v2beta2.PullMessage pull_message = 4; - * - * @return The pullMessage. - */ - com.google.cloud.tasks.v2beta2.PullMessage getPullMessage(); - /** - * - * - *
-   * [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task. Can be
-   * set only if [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] is set on the queue.
-   * A pull task is a task that has [PullMessage][google.cloud.tasks.v2beta2.PullMessage] set.
-   * 
- * - * .google.cloud.tasks.v2beta2.PullMessage pull_message = 4; - */ - com.google.cloud.tasks.v2beta2.PullMessageOrBuilder getPullMessageOrBuilder(); - - /** - * - * - *
-   * The time when the task is scheduled to be attempted.
-   * For App Engine queues, this is when the task will be attempted or retried.
-   * For pull queues, this is the time when the task is available to
-   * be leased; if a task is currently leased, this is the time when
-   * the current lease expires, that is, the time that the task was
-   * leased plus the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 5; - * - * @return Whether the scheduleTime field is set. - */ - boolean hasScheduleTime(); - /** - * - * - *
-   * The time when the task is scheduled to be attempted.
-   * For App Engine queues, this is when the task will be attempted or retried.
-   * For pull queues, this is the time when the task is available to
-   * be leased; if a task is currently leased, this is the time when
-   * the current lease expires, that is, the time that the task was
-   * leased plus the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 5; - * - * @return The scheduleTime. - */ - com.google.protobuf.Timestamp getScheduleTime(); - /** - * - * - *
-   * The time when the task is scheduled to be attempted.
-   * For App Engine queues, this is when the task will be attempted or retried.
-   * For pull queues, this is the time when the task is available to
-   * be leased; if a task is currently leased, this is the time when
-   * the current lease expires, that is, the time that the task was
-   * leased plus the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 5; - */ - com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The time that the task was created.
-   * `create_time` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6; - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Output only. The time that the task was created.
-   * `create_time` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6; - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Output only. The time that the task was created.
-   * `create_time` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The task status.
-   * 
- * - * .google.cloud.tasks.v2beta2.TaskStatus status = 7; - * - * @return Whether the status field is set. - */ - boolean hasStatus(); - /** - * - * - *
-   * Output only. The task status.
-   * 
- * - * .google.cloud.tasks.v2beta2.TaskStatus status = 7; - * - * @return The status. - */ - com.google.cloud.tasks.v2beta2.TaskStatus getStatus(); - /** - * - * - *
-   * Output only. The task status.
-   * 
- * - * .google.cloud.tasks.v2beta2.TaskStatus status = 7; - */ - com.google.cloud.tasks.v2beta2.TaskStatusOrBuilder getStatusOrBuilder(); - - /** - * - * - *
-   * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] has
-   * been returned.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View view = 8; - * - * @return The enum numeric value on the wire for view. - */ - int getViewValue(); - /** - * - * - *
-   * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] has
-   * been returned.
-   * 
- * - * .google.cloud.tasks.v2beta2.Task.View view = 8; - * - * @return The view. - */ - com.google.cloud.tasks.v2beta2.Task.View getView(); - - public com.google.cloud.tasks.v2beta2.Task.PayloadTypeCase getPayloadTypeCase(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskProto.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskProto.java deleted file mode 100644 index 64bafdcd..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskProto.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright 2020 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/task.proto - -package com.google.cloud.tasks.v2beta2; - -public final class TaskProto { - private TaskProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_Task_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_Task_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_TaskStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_TaskStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta2_AttemptStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta2_AttemptStatus_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n%google/cloud/tasks/v2beta2/task.proto\022" - + "\032google.cloud.tasks.v2beta2\032\031google/api/" - + "resource.proto\032\'google/cloud/tasks/v2bet" - + "a2/target.proto\032\037google/protobuf/timesta" - + "mp.proto\032\027google/rpc/status.proto\"\250\004\n\004Ta" - + "sk\022\014\n\004name\030\001 \001(\t\022S\n\027app_engine_http_requ" - + "est\030\003 \001(\01320.google.cloud.tasks.v2beta2.A" - + "ppEngineHttpRequestH\000\022?\n\014pull_message\030\004 " - + "\001(\0132\'.google.cloud.tasks.v2beta2.PullMes" - + "sageH\000\0221\n\rschedule_time\030\005 \001(\0132\032.google.p" - + "rotobuf.Timestamp\022/\n\013create_time\030\006 \001(\0132\032" - + ".google.protobuf.Timestamp\0226\n\006status\030\007 \001" - + "(\0132&.google.cloud.tasks.v2beta2.TaskStat" - + "us\0223\n\004view\030\010 \001(\0162%.google.cloud.tasks.v2" - + "beta2.Task.View\"1\n\004View\022\024\n\020VIEW_UNSPECIF" - + "IED\020\000\022\t\n\005BASIC\020\001\022\010\n\004FULL\020\002:h\352Ae\n\036cloudta" - + "sks.googleapis.com/Task\022Cprojects/{proje" - + "ct}/locations/{location}/queues/{queue}/" - + "tasks/{task}B\016\n\014payload_type\"\335\001\n\nTaskSta" - + "tus\022\036\n\026attempt_dispatch_count\030\001 \001(\005\022\036\n\026a" - + "ttempt_response_count\030\002 \001(\005\022G\n\024first_att" - + "empt_status\030\003 \001(\0132).google.cloud.tasks.v" - + "2beta2.AttemptStatus\022F\n\023last_attempt_sta" - + "tus\030\004 \001(\0132).google.cloud.tasks.v2beta2.A" - + "ttemptStatus\"\325\001\n\rAttemptStatus\0221\n\rschedu" - + "le_time\030\001 \001(\0132\032.google.protobuf.Timestam" - + "p\0221\n\rdispatch_time\030\002 \001(\0132\032.google.protob" - + "uf.Timestamp\0221\n\rresponse_time\030\003 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022+\n\017response_stat" - + "us\030\004 \001(\0132\022.google.rpc.StatusBn\n\036com.goog" - + "le.cloud.tasks.v2beta2B\tTaskProtoP\001Z?goo" - + "gle.golang.org/genproto/googleapis/cloud" - + "/tasks/v2beta2;tasksb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.tasks.v2beta2.TargetProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_tasks_v2beta2_Task_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_tasks_v2beta2_Task_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_Task_descriptor, - new java.lang.String[] { - "Name", - "AppEngineHttpRequest", - "PullMessage", - "ScheduleTime", - "CreateTime", - "Status", - "View", - "PayloadType", - }); - internal_static_google_cloud_tasks_v2beta2_TaskStatus_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_tasks_v2beta2_TaskStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_TaskStatus_descriptor, - new java.lang.String[] { - "AttemptDispatchCount", - "AttemptResponseCount", - "FirstAttemptStatus", - "LastAttemptStatus", - }); - internal_static_google_cloud_tasks_v2beta2_AttemptStatus_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_tasks_v2beta2_AttemptStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta2_AttemptStatus_descriptor, - new java.lang.String[] { - "ScheduleTime", "DispatchTime", "ResponseTime", "ResponseStatus", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.tasks.v2beta2.TargetProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskStatus.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskStatus.java deleted file mode 100644 index 63ba0883..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskStatus.java +++ /dev/null @@ -1,1215 +0,0 @@ -/* - * Copyright 2020 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/task.proto - -package com.google.cloud.tasks.v2beta2; - -/** - * - * - *
- * Status of the task.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.TaskStatus} - */ -public final class TaskStatus extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.TaskStatus) - TaskStatusOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskStatus.newBuilder() to construct. - private TaskStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private TaskStatus() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new TaskStatus(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.TaskProto - .internal_static_google_cloud_tasks_v2beta2_TaskStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.TaskProto - .internal_static_google_cloud_tasks_v2beta2_TaskStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.TaskStatus.class, - com.google.cloud.tasks.v2beta2.TaskStatus.Builder.class); - } - - public static final int ATTEMPT_DISPATCH_COUNT_FIELD_NUMBER = 1; - private int attemptDispatchCount_; - /** - * - * - *
-   * Output only. The number of attempts dispatched.
-   * This count includes attempts which have been dispatched but haven't
-   * received a response.
-   * 
- * - * int32 attempt_dispatch_count = 1; - * - * @return The attemptDispatchCount. - */ - @java.lang.Override - public int getAttemptDispatchCount() { - return attemptDispatchCount_; - } - - public static final int ATTEMPT_RESPONSE_COUNT_FIELD_NUMBER = 2; - private int attemptResponseCount_; - /** - * - * - *
-   * Output only. The number of attempts which have received a response.
-   * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-   * 
- * - * int32 attempt_response_count = 2; - * - * @return The attemptResponseCount. - */ - @java.lang.Override - public int getAttemptResponseCount() { - return attemptResponseCount_; - } - - public static final int FIRST_ATTEMPT_STATUS_FIELD_NUMBER = 3; - private com.google.cloud.tasks.v2beta2.AttemptStatus firstAttemptStatus_; - /** - * - * - *
-   * Output only. The status of the task's first attempt.
-   * Only [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] will be set.
-   * The other [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is not retained by Cloud Tasks.
-   * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-   * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3; - * - * @return Whether the firstAttemptStatus field is set. - */ - @java.lang.Override - public boolean hasFirstAttemptStatus() { - return firstAttemptStatus_ != null; - } - /** - * - * - *
-   * Output only. The status of the task's first attempt.
-   * Only [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] will be set.
-   * The other [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is not retained by Cloud Tasks.
-   * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-   * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3; - * - * @return The firstAttemptStatus. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AttemptStatus getFirstAttemptStatus() { - return firstAttemptStatus_ == null - ? com.google.cloud.tasks.v2beta2.AttemptStatus.getDefaultInstance() - : firstAttemptStatus_; - } - /** - * - * - *
-   * Output only. The status of the task's first attempt.
-   * Only [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] will be set.
-   * The other [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is not retained by Cloud Tasks.
-   * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-   * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder getFirstAttemptStatusOrBuilder() { - return getFirstAttemptStatus(); - } - - public static final int LAST_ATTEMPT_STATUS_FIELD_NUMBER = 4; - private com.google.cloud.tasks.v2beta2.AttemptStatus lastAttemptStatus_; - /** - * - * - *
-   * Output only. The status of the task's last attempt.
-   * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-   * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4; - * - * @return Whether the lastAttemptStatus field is set. - */ - @java.lang.Override - public boolean hasLastAttemptStatus() { - return lastAttemptStatus_ != null; - } - /** - * - * - *
-   * Output only. The status of the task's last attempt.
-   * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-   * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4; - * - * @return The lastAttemptStatus. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AttemptStatus getLastAttemptStatus() { - return lastAttemptStatus_ == null - ? com.google.cloud.tasks.v2beta2.AttemptStatus.getDefaultInstance() - : lastAttemptStatus_; - } - /** - * - * - *
-   * Output only. The status of the task's last attempt.
-   * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-   * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder getLastAttemptStatusOrBuilder() { - return getLastAttemptStatus(); - } - - 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 (attemptDispatchCount_ != 0) { - output.writeInt32(1, attemptDispatchCount_); - } - if (attemptResponseCount_ != 0) { - output.writeInt32(2, attemptResponseCount_); - } - if (firstAttemptStatus_ != null) { - output.writeMessage(3, getFirstAttemptStatus()); - } - if (lastAttemptStatus_ != null) { - output.writeMessage(4, getLastAttemptStatus()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (attemptDispatchCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, attemptDispatchCount_); - } - if (attemptResponseCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, attemptResponseCount_); - } - if (firstAttemptStatus_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFirstAttemptStatus()); - } - if (lastAttemptStatus_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastAttemptStatus()); - } - 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.TaskStatus)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.TaskStatus other = - (com.google.cloud.tasks.v2beta2.TaskStatus) obj; - - if (getAttemptDispatchCount() != other.getAttemptDispatchCount()) return false; - if (getAttemptResponseCount() != other.getAttemptResponseCount()) return false; - if (hasFirstAttemptStatus() != other.hasFirstAttemptStatus()) return false; - if (hasFirstAttemptStatus()) { - if (!getFirstAttemptStatus().equals(other.getFirstAttemptStatus())) return false; - } - if (hasLastAttemptStatus() != other.hasLastAttemptStatus()) return false; - if (hasLastAttemptStatus()) { - if (!getLastAttemptStatus().equals(other.getLastAttemptStatus())) 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) + ATTEMPT_DISPATCH_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getAttemptDispatchCount(); - hash = (37 * hash) + ATTEMPT_RESPONSE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getAttemptResponseCount(); - if (hasFirstAttemptStatus()) { - hash = (37 * hash) + FIRST_ATTEMPT_STATUS_FIELD_NUMBER; - hash = (53 * hash) + getFirstAttemptStatus().hashCode(); - } - if (hasLastAttemptStatus()) { - hash = (37 * hash) + LAST_ATTEMPT_STATUS_FIELD_NUMBER; - hash = (53 * hash) + getLastAttemptStatus().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.TaskStatus parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.TaskStatus 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.TaskStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.TaskStatus 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.TaskStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.TaskStatus 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.TaskStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.TaskStatus 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.TaskStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.TaskStatus 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.TaskStatus 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.TaskStatus 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.TaskStatus 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; - } - /** - * - * - *
-   * Status of the task.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.TaskStatus} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.TaskStatus) - com.google.cloud.tasks.v2beta2.TaskStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.TaskProto - .internal_static_google_cloud_tasks_v2beta2_TaskStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.TaskProto - .internal_static_google_cloud_tasks_v2beta2_TaskStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.TaskStatus.class, - com.google.cloud.tasks.v2beta2.TaskStatus.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.TaskStatus.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - attemptDispatchCount_ = 0; - - attemptResponseCount_ = 0; - - if (firstAttemptStatusBuilder_ == null) { - firstAttemptStatus_ = null; - } else { - firstAttemptStatus_ = null; - firstAttemptStatusBuilder_ = null; - } - if (lastAttemptStatusBuilder_ == null) { - lastAttemptStatus_ = null; - } else { - lastAttemptStatus_ = null; - lastAttemptStatusBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.TaskProto - .internal_static_google_cloud_tasks_v2beta2_TaskStatus_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.TaskStatus getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.TaskStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.TaskStatus build() { - com.google.cloud.tasks.v2beta2.TaskStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.TaskStatus buildPartial() { - com.google.cloud.tasks.v2beta2.TaskStatus result = - new com.google.cloud.tasks.v2beta2.TaskStatus(this); - result.attemptDispatchCount_ = attemptDispatchCount_; - result.attemptResponseCount_ = attemptResponseCount_; - if (firstAttemptStatusBuilder_ == null) { - result.firstAttemptStatus_ = firstAttemptStatus_; - } else { - result.firstAttemptStatus_ = firstAttemptStatusBuilder_.build(); - } - if (lastAttemptStatusBuilder_ == null) { - result.lastAttemptStatus_ = lastAttemptStatus_; - } else { - result.lastAttemptStatus_ = lastAttemptStatusBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.TaskStatus) { - return mergeFrom((com.google.cloud.tasks.v2beta2.TaskStatus) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.TaskStatus other) { - if (other == com.google.cloud.tasks.v2beta2.TaskStatus.getDefaultInstance()) return this; - if (other.getAttemptDispatchCount() != 0) { - setAttemptDispatchCount(other.getAttemptDispatchCount()); - } - if (other.getAttemptResponseCount() != 0) { - setAttemptResponseCount(other.getAttemptResponseCount()); - } - if (other.hasFirstAttemptStatus()) { - mergeFirstAttemptStatus(other.getFirstAttemptStatus()); - } - if (other.hasLastAttemptStatus()) { - mergeLastAttemptStatus(other.getLastAttemptStatus()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - attemptDispatchCount_ = input.readInt32(); - - break; - } // case 8 - case 16: - { - attemptResponseCount_ = input.readInt32(); - - break; - } // case 16 - case 26: - { - input.readMessage( - getFirstAttemptStatusFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage( - getLastAttemptStatusFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int attemptDispatchCount_; - /** - * - * - *
-     * Output only. The number of attempts dispatched.
-     * This count includes attempts which have been dispatched but haven't
-     * received a response.
-     * 
- * - * int32 attempt_dispatch_count = 1; - * - * @return The attemptDispatchCount. - */ - @java.lang.Override - public int getAttemptDispatchCount() { - return attemptDispatchCount_; - } - /** - * - * - *
-     * Output only. The number of attempts dispatched.
-     * This count includes attempts which have been dispatched but haven't
-     * received a response.
-     * 
- * - * int32 attempt_dispatch_count = 1; - * - * @param value The attemptDispatchCount to set. - * @return This builder for chaining. - */ - public Builder setAttemptDispatchCount(int value) { - - attemptDispatchCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The number of attempts dispatched.
-     * This count includes attempts which have been dispatched but haven't
-     * received a response.
-     * 
- * - * int32 attempt_dispatch_count = 1; - * - * @return This builder for chaining. - */ - public Builder clearAttemptDispatchCount() { - - attemptDispatchCount_ = 0; - onChanged(); - return this; - } - - private int attemptResponseCount_; - /** - * - * - *
-     * Output only. The number of attempts which have received a response.
-     * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- * - * int32 attempt_response_count = 2; - * - * @return The attemptResponseCount. - */ - @java.lang.Override - public int getAttemptResponseCount() { - return attemptResponseCount_; - } - /** - * - * - *
-     * Output only. The number of attempts which have received a response.
-     * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- * - * int32 attempt_response_count = 2; - * - * @param value The attemptResponseCount to set. - * @return This builder for chaining. - */ - public Builder setAttemptResponseCount(int value) { - - attemptResponseCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The number of attempts which have received a response.
-     * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- * - * int32 attempt_response_count = 2; - * - * @return This builder for chaining. - */ - public Builder clearAttemptResponseCount() { - - attemptResponseCount_ = 0; - onChanged(); - return this; - } - - private com.google.cloud.tasks.v2beta2.AttemptStatus firstAttemptStatus_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.AttemptStatus, - com.google.cloud.tasks.v2beta2.AttemptStatus.Builder, - com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder> - firstAttemptStatusBuilder_; - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] will be set.
-     * The other [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is not retained by Cloud Tasks.
-     * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3; - * - * @return Whether the firstAttemptStatus field is set. - */ - public boolean hasFirstAttemptStatus() { - return firstAttemptStatusBuilder_ != null || firstAttemptStatus_ != null; - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] will be set.
-     * The other [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is not retained by Cloud Tasks.
-     * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3; - * - * @return The firstAttemptStatus. - */ - public com.google.cloud.tasks.v2beta2.AttemptStatus getFirstAttemptStatus() { - if (firstAttemptStatusBuilder_ == null) { - return firstAttemptStatus_ == null - ? com.google.cloud.tasks.v2beta2.AttemptStatus.getDefaultInstance() - : firstAttemptStatus_; - } else { - return firstAttemptStatusBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] will be set.
-     * The other [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is not retained by Cloud Tasks.
-     * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3; - */ - public Builder setFirstAttemptStatus(com.google.cloud.tasks.v2beta2.AttemptStatus value) { - if (firstAttemptStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - firstAttemptStatus_ = value; - onChanged(); - } else { - firstAttemptStatusBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] will be set.
-     * The other [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is not retained by Cloud Tasks.
-     * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3; - */ - public Builder setFirstAttemptStatus( - com.google.cloud.tasks.v2beta2.AttemptStatus.Builder builderForValue) { - if (firstAttemptStatusBuilder_ == null) { - firstAttemptStatus_ = builderForValue.build(); - onChanged(); - } else { - firstAttemptStatusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] will be set.
-     * The other [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is not retained by Cloud Tasks.
-     * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3; - */ - public Builder mergeFirstAttemptStatus(com.google.cloud.tasks.v2beta2.AttemptStatus value) { - if (firstAttemptStatusBuilder_ == null) { - if (firstAttemptStatus_ != null) { - firstAttemptStatus_ = - com.google.cloud.tasks.v2beta2.AttemptStatus.newBuilder(firstAttemptStatus_) - .mergeFrom(value) - .buildPartial(); - } else { - firstAttemptStatus_ = value; - } - onChanged(); - } else { - firstAttemptStatusBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] will be set.
-     * The other [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is not retained by Cloud Tasks.
-     * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3; - */ - public Builder clearFirstAttemptStatus() { - if (firstAttemptStatusBuilder_ == null) { - firstAttemptStatus_ = null; - onChanged(); - } else { - firstAttemptStatus_ = null; - firstAttemptStatusBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] will be set.
-     * The other [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is not retained by Cloud Tasks.
-     * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3; - */ - public com.google.cloud.tasks.v2beta2.AttemptStatus.Builder getFirstAttemptStatusBuilder() { - - onChanged(); - return getFirstAttemptStatusFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] will be set.
-     * The other [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is not retained by Cloud Tasks.
-     * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3; - */ - public com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder getFirstAttemptStatusOrBuilder() { - if (firstAttemptStatusBuilder_ != null) { - return firstAttemptStatusBuilder_.getMessageOrBuilder(); - } else { - return firstAttemptStatus_ == null - ? com.google.cloud.tasks.v2beta2.AttemptStatus.getDefaultInstance() - : firstAttemptStatus_; - } - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] will be set.
-     * The other [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is not retained by Cloud Tasks.
-     * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.AttemptStatus, - com.google.cloud.tasks.v2beta2.AttemptStatus.Builder, - com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder> - getFirstAttemptStatusFieldBuilder() { - if (firstAttemptStatusBuilder_ == null) { - firstAttemptStatusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.AttemptStatus, - com.google.cloud.tasks.v2beta2.AttemptStatus.Builder, - com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder>( - getFirstAttemptStatus(), getParentForChildren(), isClean()); - firstAttemptStatus_ = null; - } - return firstAttemptStatusBuilder_; - } - - private com.google.cloud.tasks.v2beta2.AttemptStatus lastAttemptStatus_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.AttemptStatus, - com.google.cloud.tasks.v2beta2.AttemptStatus.Builder, - com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder> - lastAttemptStatusBuilder_; - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4; - * - * @return Whether the lastAttemptStatus field is set. - */ - public boolean hasLastAttemptStatus() { - return lastAttemptStatusBuilder_ != null || lastAttemptStatus_ != null; - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4; - * - * @return The lastAttemptStatus. - */ - public com.google.cloud.tasks.v2beta2.AttemptStatus getLastAttemptStatus() { - if (lastAttemptStatusBuilder_ == null) { - return lastAttemptStatus_ == null - ? com.google.cloud.tasks.v2beta2.AttemptStatus.getDefaultInstance() - : lastAttemptStatus_; - } else { - return lastAttemptStatusBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4; - */ - public Builder setLastAttemptStatus(com.google.cloud.tasks.v2beta2.AttemptStatus value) { - if (lastAttemptStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lastAttemptStatus_ = value; - onChanged(); - } else { - lastAttemptStatusBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4; - */ - public Builder setLastAttemptStatus( - com.google.cloud.tasks.v2beta2.AttemptStatus.Builder builderForValue) { - if (lastAttemptStatusBuilder_ == null) { - lastAttemptStatus_ = builderForValue.build(); - onChanged(); - } else { - lastAttemptStatusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4; - */ - public Builder mergeLastAttemptStatus(com.google.cloud.tasks.v2beta2.AttemptStatus value) { - if (lastAttemptStatusBuilder_ == null) { - if (lastAttemptStatus_ != null) { - lastAttemptStatus_ = - com.google.cloud.tasks.v2beta2.AttemptStatus.newBuilder(lastAttemptStatus_) - .mergeFrom(value) - .buildPartial(); - } else { - lastAttemptStatus_ = value; - } - onChanged(); - } else { - lastAttemptStatusBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4; - */ - public Builder clearLastAttemptStatus() { - if (lastAttemptStatusBuilder_ == null) { - lastAttemptStatus_ = null; - onChanged(); - } else { - lastAttemptStatus_ = null; - lastAttemptStatusBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4; - */ - public com.google.cloud.tasks.v2beta2.AttemptStatus.Builder getLastAttemptStatusBuilder() { - - onChanged(); - return getLastAttemptStatusFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4; - */ - public com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder getLastAttemptStatusOrBuilder() { - if (lastAttemptStatusBuilder_ != null) { - return lastAttemptStatusBuilder_.getMessageOrBuilder(); - } else { - return lastAttemptStatus_ == null - ? com.google.cloud.tasks.v2beta2.AttemptStatus.getDefaultInstance() - : lastAttemptStatus_; - } - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-     * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.AttemptStatus, - com.google.cloud.tasks.v2beta2.AttemptStatus.Builder, - com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder> - getLastAttemptStatusFieldBuilder() { - if (lastAttemptStatusBuilder_ == null) { - lastAttemptStatusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.AttemptStatus, - com.google.cloud.tasks.v2beta2.AttemptStatus.Builder, - com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder>( - getLastAttemptStatus(), getParentForChildren(), isClean()); - lastAttemptStatus_ = null; - } - return lastAttemptStatusBuilder_; - } - - @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.TaskStatus) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.TaskStatus) - private static final com.google.cloud.tasks.v2beta2.TaskStatus DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.TaskStatus(); - } - - public static com.google.cloud.tasks.v2beta2.TaskStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.TaskStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskStatusOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskStatusOrBuilder.java deleted file mode 100644 index b0d40449..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskStatusOrBuilder.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Copyright 2020 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/task.proto - -package com.google.cloud.tasks.v2beta2; - -public interface TaskStatusOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.TaskStatus) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The number of attempts dispatched.
-   * This count includes attempts which have been dispatched but haven't
-   * received a response.
-   * 
- * - * int32 attempt_dispatch_count = 1; - * - * @return The attemptDispatchCount. - */ - int getAttemptDispatchCount(); - - /** - * - * - *
-   * Output only. The number of attempts which have received a response.
-   * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-   * 
- * - * int32 attempt_response_count = 2; - * - * @return The attemptResponseCount. - */ - int getAttemptResponseCount(); - - /** - * - * - *
-   * Output only. The status of the task's first attempt.
-   * Only [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] will be set.
-   * The other [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is not retained by Cloud Tasks.
-   * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-   * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3; - * - * @return Whether the firstAttemptStatus field is set. - */ - boolean hasFirstAttemptStatus(); - /** - * - * - *
-   * Output only. The status of the task's first attempt.
-   * Only [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] will be set.
-   * The other [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is not retained by Cloud Tasks.
-   * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-   * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3; - * - * @return The firstAttemptStatus. - */ - com.google.cloud.tasks.v2beta2.AttemptStatus getFirstAttemptStatus(); - /** - * - * - *
-   * Output only. The status of the task's first attempt.
-   * Only [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] will be set.
-   * The other [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is not retained by Cloud Tasks.
-   * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-   * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus first_attempt_status = 3; - */ - com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder getFirstAttemptStatusOrBuilder(); - - /** - * - * - *
-   * Output only. The status of the task's last attempt.
-   * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-   * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4; - * - * @return Whether the lastAttemptStatus field is set. - */ - boolean hasLastAttemptStatus(); - /** - * - * - *
-   * Output only. The status of the task's last attempt.
-   * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-   * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4; - * - * @return The lastAttemptStatus. - */ - com.google.cloud.tasks.v2beta2.AttemptStatus getLastAttemptStatus(); - /** - * - * - *
-   * Output only. The status of the task's last attempt.
-   * This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
-   * 
- * - * .google.cloud.tasks.v2beta2.AttemptStatus last_attempt_status = 4; - */ - com.google.cloud.tasks.v2beta2.AttemptStatusOrBuilder getLastAttemptStatusOrBuilder(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/UpdateQueueRequest.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/UpdateQueueRequest.java deleted file mode 100644 index c269c0b0..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/UpdateQueueRequest.java +++ /dev/null @@ -1,1032 +0,0 @@ -/* - * Copyright 2020 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; - -/** - * - * - *
- * Request message for [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.UpdateQueueRequest} - */ -public final class UpdateQueueRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta2.UpdateQueueRequest) - UpdateQueueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateQueueRequest.newBuilder() to construct. - private UpdateQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateQueueRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateQueueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_UpdateQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_UpdateQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.UpdateQueueRequest.class, - com.google.cloud.tasks.v2beta2.UpdateQueueRequest.Builder.class); - } - - public static final int QUEUE_FIELD_NUMBER = 1; - private com.google.cloud.tasks.v2beta2.Queue queue_; - /** - * - * - *
-   * Required. The queue to create or update.
-   * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] must be specified.
-   * Output only fields cannot be modified using UpdateQueue.
-   * Any value specified for an output only field will be ignored.
-   * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] cannot be changed.
-   * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the queue field is set. - */ - @java.lang.Override - public boolean hasQueue() { - return queue_ != null; - } - /** - * - * - *
-   * Required. The queue to create or update.
-   * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] must be specified.
-   * Output only fields cannot be modified using UpdateQueue.
-   * Any value specified for an output only field will be ignored.
-   * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] cannot be changed.
-   * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The queue. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.Queue getQueue() { - return queue_ == null ? com.google.cloud.tasks.v2beta2.Queue.getDefaultInstance() : queue_; - } - /** - * - * - *
-   * Required. The queue to create or update.
-   * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] must be specified.
-   * Output only fields cannot be modified using UpdateQueue.
-   * Any value specified for an output only field will be ignored.
-   * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] cannot be changed.
-   * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta2.QueueOrBuilder getQueueOrBuilder() { - return getQueue(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * A mask used to specify which fields of the queue are being updated.
-   * If empty, then all fields will be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * A mask used to specify which fields of the queue are being updated.
-   * If empty, then all fields will be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * A mask used to specify which fields of the queue are being updated.
-   * If empty, then all fields will be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - 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 (queue_ != null) { - output.writeMessage(1, getQueue()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (queue_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getQueue()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - 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.UpdateQueueRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta2.UpdateQueueRequest other = - (com.google.cloud.tasks.v2beta2.UpdateQueueRequest) obj; - - if (hasQueue() != other.hasQueue()) return false; - if (hasQueue()) { - if (!getQueue().equals(other.getQueue())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasQueue()) { - hash = (37 * hash) + QUEUE_FIELD_NUMBER; - hash = (53 * hash) + getQueue().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta2.UpdateQueueRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.UpdateQueueRequest 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.UpdateQueueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.UpdateQueueRequest 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.UpdateQueueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta2.UpdateQueueRequest 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.UpdateQueueRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.UpdateQueueRequest 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.UpdateQueueRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta2.UpdateQueueRequest 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.UpdateQueueRequest 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.UpdateQueueRequest 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.UpdateQueueRequest 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 [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta2.UpdateQueueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta2.UpdateQueueRequest) - com.google.cloud.tasks.v2beta2.UpdateQueueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_UpdateQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_UpdateQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta2.UpdateQueueRequest.class, - com.google.cloud.tasks.v2beta2.UpdateQueueRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta2.UpdateQueueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (queueBuilder_ == null) { - queue_ = null; - } else { - queue_ = null; - queueBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta2.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta2_UpdateQueueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.UpdateQueueRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta2.UpdateQueueRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.UpdateQueueRequest build() { - com.google.cloud.tasks.v2beta2.UpdateQueueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.UpdateQueueRequest buildPartial() { - com.google.cloud.tasks.v2beta2.UpdateQueueRequest result = - new com.google.cloud.tasks.v2beta2.UpdateQueueRequest(this); - if (queueBuilder_ == null) { - result.queue_ = queue_; - } else { - result.queue_ = queueBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta2.UpdateQueueRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta2.UpdateQueueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta2.UpdateQueueRequest other) { - if (other == com.google.cloud.tasks.v2beta2.UpdateQueueRequest.getDefaultInstance()) - return this; - if (other.hasQueue()) { - mergeQueue(other.getQueue()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getQueueFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.cloud.tasks.v2beta2.Queue queue_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.Queue, - com.google.cloud.tasks.v2beta2.Queue.Builder, - com.google.cloud.tasks.v2beta2.QueueOrBuilder> - queueBuilder_; - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the queue field is set. - */ - public boolean hasQueue() { - return queueBuilder_ != null || queue_ != null; - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The queue. - */ - public com.google.cloud.tasks.v2beta2.Queue getQueue() { - if (queueBuilder_ == null) { - return queue_ == null ? com.google.cloud.tasks.v2beta2.Queue.getDefaultInstance() : queue_; - } else { - return queueBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setQueue(com.google.cloud.tasks.v2beta2.Queue value) { - if (queueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queue_ = value; - onChanged(); - } else { - queueBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setQueue(com.google.cloud.tasks.v2beta2.Queue.Builder builderForValue) { - if (queueBuilder_ == null) { - queue_ = builderForValue.build(); - onChanged(); - } else { - queueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeQueue(com.google.cloud.tasks.v2beta2.Queue value) { - if (queueBuilder_ == null) { - if (queue_ != null) { - queue_ = - com.google.cloud.tasks.v2beta2.Queue.newBuilder(queue_) - .mergeFrom(value) - .buildPartial(); - } else { - queue_ = value; - } - onChanged(); - } else { - queueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearQueue() { - if (queueBuilder_ == null) { - queue_ = null; - onChanged(); - } else { - queue_ = null; - queueBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.tasks.v2beta2.Queue.Builder getQueueBuilder() { - - onChanged(); - return getQueueFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.tasks.v2beta2.QueueOrBuilder getQueueOrBuilder() { - if (queueBuilder_ != null) { - return queueBuilder_.getMessageOrBuilder(); - } else { - return queue_ == null ? com.google.cloud.tasks.v2beta2.Queue.getDefaultInstance() : queue_; - } - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.Queue, - com.google.cloud.tasks.v2beta2.Queue.Builder, - com.google.cloud.tasks.v2beta2.QueueOrBuilder> - getQueueFieldBuilder() { - if (queueBuilder_ == null) { - queueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta2.Queue, - com.google.cloud.tasks.v2beta2.Queue.Builder, - com.google.cloud.tasks.v2beta2.QueueOrBuilder>( - getQueue(), getParentForChildren(), isClean()); - queue_ = null; - } - return queueBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @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.UpdateQueueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta2.UpdateQueueRequest) - private static final com.google.cloud.tasks.v2beta2.UpdateQueueRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta2.UpdateQueueRequest(); - } - - public static com.google.cloud.tasks.v2beta2.UpdateQueueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateQueueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta2.UpdateQueueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/UpdateQueueRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/UpdateQueueRequestOrBuilder.java deleted file mode 100644 index 61d01622..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/UpdateQueueRequestOrBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2020 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; - -public interface UpdateQueueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta2.UpdateQueueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue to create or update.
-   * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] must be specified.
-   * Output only fields cannot be modified using UpdateQueue.
-   * Any value specified for an output only field will be ignored.
-   * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] cannot be changed.
-   * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the queue field is set. - */ - boolean hasQueue(); - /** - * - * - *
-   * Required. The queue to create or update.
-   * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] must be specified.
-   * Output only fields cannot be modified using UpdateQueue.
-   * Any value specified for an output only field will be ignored.
-   * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] cannot be changed.
-   * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The queue. - */ - com.google.cloud.tasks.v2beta2.Queue getQueue(); - /** - * - * - *
-   * Required. The queue to create or update.
-   * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] must be specified.
-   * Output only fields cannot be modified using UpdateQueue.
-   * Any value specified for an output only field will be ignored.
-   * The queue's [name][google.cloud.tasks.v2beta2.Queue.name] cannot be changed.
-   * 
- * - * .google.cloud.tasks.v2beta2.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.tasks.v2beta2.QueueOrBuilder getQueueOrBuilder(); - - /** - * - * - *
-   * A mask used to specify which fields of the queue are being updated.
-   * If empty, then all fields will be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * A mask used to specify which fields of the queue are being updated.
-   * If empty, then all fields will be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * A mask used to specify which fields of the queue are being updated.
-   * If empty, then all fields will be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/cloudtasks.proto b/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/cloudtasks.proto deleted file mode 100644 index 8b2fa57e..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/cloudtasks.proto +++ /dev/null @@ -1,942 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.tasks.v2beta2; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/tasks/v2beta2/queue.proto"; -import "google/cloud/tasks/v2beta2/task.proto"; -import "google/iam/v1/iam_policy.proto"; -import "google/iam/v1/policy.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks"; -option java_multiple_files = true; -option java_outer_classname = "CloudTasksProto"; -option java_package = "com.google.cloud.tasks.v2beta2"; -option objc_class_prefix = "TASKS"; - -// Cloud Tasks allows developers to manage the execution of background -// work in their applications. -service CloudTasks { - option (google.api.default_host) = "cloudtasks.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Lists queues. - // - // Queues are returned in lexicographical order. - rpc ListQueues(ListQueuesRequest) returns (ListQueuesResponse) { - option (google.api.http) = { - get: "/v2beta2/{parent=projects/*/locations/*}/queues" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets a queue. - rpc GetQueue(GetQueueRequest) returns (Queue) { - option (google.api.http) = { - get: "/v2beta2/{name=projects/*/locations/*/queues/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a queue. - // - // Queues created with this method allow tasks to live for a maximum of 31 - // days. After a task is 31 days old, the task will be deleted regardless of whether - // it was dispatched or not. - // - // WARNING: Using this method may have unintended side effects if you are - // using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. - // Read - // [Overview of Queue Management and - // queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using - // this method. - rpc CreateQueue(CreateQueueRequest) returns (Queue) { - option (google.api.http) = { - post: "/v2beta2/{parent=projects/*/locations/*}/queues" - body: "queue" - }; - option (google.api.method_signature) = "parent,queue"; - } - - // Updates a queue. - // - // This method creates the queue if it does not exist and updates - // the queue if it does exist. - // - // Queues created with this method allow tasks to live for a maximum of 31 - // days. After a task is 31 days old, the task will be deleted regardless of whether - // it was dispatched or not. - // - // WARNING: Using this method may have unintended side effects if you are - // using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. - // Read - // [Overview of Queue Management and - // queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using - // this method. - rpc UpdateQueue(UpdateQueueRequest) returns (Queue) { - option (google.api.http) = { - patch: "/v2beta2/{queue.name=projects/*/locations/*/queues/*}" - body: "queue" - }; - option (google.api.method_signature) = "queue,update_mask"; - } - - // Deletes a queue. - // - // This command will delete the queue even if it has tasks in it. - // - // Note: If you delete a queue, a queue with the same name can't be created - // for 7 days. - // - // WARNING: Using this method may have unintended side effects if you are - // using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. - // Read - // [Overview of Queue Management and - // queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using - // this method. - rpc DeleteQueue(DeleteQueueRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v2beta2/{name=projects/*/locations/*/queues/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Purges a queue by deleting all of its tasks. - // - // All tasks created before this method is called are permanently deleted. - // - // Purge operations can take up to one minute to take effect. Tasks - // might be dispatched before the purge takes effect. A purge is irreversible. - rpc PurgeQueue(PurgeQueueRequest) returns (Queue) { - option (google.api.http) = { - post: "/v2beta2/{name=projects/*/locations/*/queues/*}:purge" - body: "*" - }; - option (google.api.method_signature) = "name"; - } - - // Pauses the queue. - // - // If a queue is paused then the system will stop dispatching tasks - // until the queue is resumed via - // [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue]. Tasks can still be added - // when the queue is paused. A queue is paused if its - // [state][google.cloud.tasks.v2beta2.Queue.state] is [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED]. - rpc PauseQueue(PauseQueueRequest) returns (Queue) { - option (google.api.http) = { - post: "/v2beta2/{name=projects/*/locations/*/queues/*}:pause" - body: "*" - }; - option (google.api.method_signature) = "name"; - } - - // Resume a queue. - // - // This method resumes a queue after it has been - // [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED] or - // [DISABLED][google.cloud.tasks.v2beta2.Queue.State.DISABLED]. The state of a queue is stored - // in the queue's [state][google.cloud.tasks.v2beta2.Queue.state]; after calling this method it - // will be set to [RUNNING][google.cloud.tasks.v2beta2.Queue.State.RUNNING]. - // - // WARNING: Resuming many high-QPS queues at the same time can - // lead to target overloading. If you are resuming high-QPS - // queues, follow the 500/50/5 pattern described in - // [Managing Cloud Tasks Scaling - // Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). - rpc ResumeQueue(ResumeQueueRequest) returns (Queue) { - option (google.api.http) = { - post: "/v2beta2/{name=projects/*/locations/*/queues/*}:resume" - body: "*" - }; - option (google.api.method_signature) = "name"; - } - - // Gets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. - // Returns an empty policy if the resource exists and does not have a policy - // set. - // - // Authorization requires the following - // [Google IAM](https://cloud.google.com/iam) permission on the specified - // resource parent: - // - // * `cloudtasks.queues.getIamPolicy` - rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { - option (google.api.http) = { - post: "/v2beta2/{resource=projects/*/locations/*/queues/*}:getIamPolicy" - body: "*" - }; - option (google.api.method_signature) = "resource"; - } - - // Sets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Replaces any existing - // policy. - // - // Note: The Cloud Console does not check queue-level IAM permissions yet. - // Project-level permissions are required to use the Cloud Console. - // - // Authorization requires the following - // [Google IAM](https://cloud.google.com/iam) permission on the specified - // resource parent: - // - // * `cloudtasks.queues.setIamPolicy` - rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { - option (google.api.http) = { - post: "/v2beta2/{resource=projects/*/locations/*/queues/*}:setIamPolicy" - body: "*" - }; - option (google.api.method_signature) = "resource,policy"; - } - - // Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta2.Queue]. - // If the resource does not exist, this will return an empty set of - // permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. - // - // Note: This operation is designed to be used for building permission-aware - // UIs and command-line tools, not for authorization checking. This operation - // may "fail open" without warning. - rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { - option (google.api.http) = { - post: "/v2beta2/{resource=projects/*/locations/*/queues/*}:testIamPermissions" - body: "*" - }; - option (google.api.method_signature) = "resource,permissions"; - } - - // Lists the tasks in a queue. - // - // By default, only the [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC] view is retrieved - // due to performance considerations; - // [response_view][google.cloud.tasks.v2beta2.ListTasksRequest.response_view] controls the - // subset of information which is returned. - // - // The tasks may be returned in any order. The ordering may change at any - // time. - rpc ListTasks(ListTasksRequest) returns (ListTasksResponse) { - option (google.api.http) = { - get: "/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets a task. - rpc GetTask(GetTaskRequest) returns (Task) { - option (google.api.http) = { - get: "/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a task and adds it to a queue. - // - // Tasks cannot be updated after creation; there is no UpdateTask command. - // - // * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum task size is - // 100KB. - // * For [pull queues][google.cloud.tasks.v2beta2.PullTarget], the maximum task size is 1MB. - rpc CreateTask(CreateTaskRequest) returns (Task) { - option (google.api.http) = { - post: "/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks" - body: "*" - }; - option (google.api.method_signature) = "parent,task"; - } - - // Deletes a task. - // - // A task can be deleted if it is scheduled or dispatched. A task - // cannot be deleted if it has completed successfully or permanently - // failed. - rpc DeleteTask(DeleteTaskRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Leases tasks from a pull queue for - // [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration]. - // - // This method is invoked by the worker to obtain a lease. The - // worker must acknowledge the task via - // [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] after they have - // performed the work associated with the task. - // - // The [payload][google.cloud.tasks.v2beta2.PullMessage.payload] is intended to store data that - // the worker needs to perform the work associated with the task. To - // return the payloads in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse], set - // [response_view][google.cloud.tasks.v2beta2.LeaseTasksRequest.response_view] to - // [FULL][google.cloud.tasks.v2beta2.Task.View.FULL]. - // - // A maximum of 10 qps of [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] - // requests are allowed per - // queue. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED] - // is returned when this limit is - // exceeded. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED] - // is also returned when - // [max_tasks_dispatched_per_second][google.cloud.tasks.v2beta2.RateLimits.max_tasks_dispatched_per_second] - // is exceeded. - rpc LeaseTasks(LeaseTasksRequest) returns (LeaseTasksResponse) { - option (google.api.http) = { - post: "/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks:lease" - body: "*" - }; - option (google.api.method_signature) = "parent,lease_duration"; - } - - // Acknowledges a pull task. - // - // The worker, that is, the entity that - // [leased][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] this task must call this method - // to indicate that the work associated with the task has finished. - // - // The worker must acknowledge a task within the - // [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration] or the lease - // will expire and the task will become available to be leased - // again. After the task is acknowledged, it will not be returned - // by a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks], - // [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask], or - // [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]. - rpc AcknowledgeTask(AcknowledgeTaskRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:acknowledge" - body: "*" - }; - option (google.api.method_signature) = "name,schedule_time"; - } - - // Renew the current lease of a pull task. - // - // The worker can use this method to extend the lease by a new - // duration, starting from now. The new task lease will be - // returned in the task's [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. - rpc RenewLease(RenewLeaseRequest) returns (Task) { - option (google.api.http) = { - post: "/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:renewLease" - body: "*" - }; - option (google.api.method_signature) = "name,schedule_time,lease_duration"; - } - - // Cancel a pull task's lease. - // - // The worker can use this method to cancel a task's lease by - // setting its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] to now. This will - // make the task available to be leased to the next caller of - // [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks]. - rpc CancelLease(CancelLeaseRequest) returns (Task) { - option (google.api.http) = { - post: "/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:cancelLease" - body: "*" - }; - option (google.api.method_signature) = "name,schedule_time"; - } - - // Forces a task to run now. - // - // When this method is called, Cloud Tasks will dispatch the task, even if - // the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta2.RateLimits] or - // is [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED]. - // - // This command is meant to be used for manual debugging. For - // example, [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] can be used to retry a failed - // task after a fix has been made or to manually force a task to be - // dispatched now. - // - // The dispatched task is returned. That is, the task that is returned - // contains the [status][google.cloud.tasks.v2beta2.Task.status] after the task is dispatched but - // before the task is received by its target. - // - // If Cloud Tasks receives a successful response from the task's - // target, then the task will be deleted; otherwise the task's - // [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be reset to the time that - // [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] was called plus the retry delay specified - // in the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig]. - // - // [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] returns - // [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a - // task that has already succeeded or permanently failed. - // - // [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] cannot be called on a - // [pull task][google.cloud.tasks.v2beta2.PullMessage]. - rpc RunTask(RunTaskRequest) returns (Task) { - option (google.api.http) = { - post: "/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:run" - body: "*" - }; - option (google.api.method_signature) = "name"; - } -} - -// Request message for [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues]. -message ListQueuesRequest { - // Required. The location name. - // For example: `projects/PROJECT_ID/locations/LOCATION_ID` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "cloudtasks.googleapis.com/Queue" - } - ]; - - // `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta2.Queue] - // field can be used as a filter and several operators as supported. - // For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as - // described in - // [Stackdriver's Advanced Logs - // Filters](https://cloud.google.com/logging/docs/view/advanced_filters). - // - // Sample filter "app_engine_http_target: *". - // - // Note that using filters might cause fewer queues than the - // requested_page size to be returned. - string filter = 2; - - // Requested page size. - // - // The maximum page size is 9800. If unspecified, the page size will - // be the maximum. Fewer queues than requested might be returned, - // even if more queues exist; use the - // [next_page_token][google.cloud.tasks.v2beta2.ListQueuesResponse.next_page_token] in the - // response to determine if more queues exist. - int32 page_size = 3; - - // A token identifying the page of results to return. - // - // To request the first page results, page_token must be empty. To - // request the next page of results, page_token must be the value of - // [next_page_token][google.cloud.tasks.v2beta2.ListQueuesResponse.next_page_token] returned - // from the previous call to [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues] - // method. It is an error to switch the value of the - // [filter][google.cloud.tasks.v2beta2.ListQueuesRequest.filter] while iterating through pages. - string page_token = 4; - - // Optional. Read mask is used for a more granular control over what the API returns. - // If the mask is not present all fields will be returned except - // [Queue.stats]. [Queue.stats] will be returned only if it was explicitly - // specified in the mask. - google.protobuf.FieldMask read_mask = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// Response message for [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues]. -message ListQueuesResponse { - // The list of queues. - repeated Queue queues = 1; - - // A token to retrieve next page of results. - // - // To return the next page of results, call - // [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues] with this value as the - // [page_token][google.cloud.tasks.v2beta2.ListQueuesRequest.page_token]. - // - // If the next_page_token is empty, there are no more results. - // - // The page token is valid for only 2 hours. - string next_page_token = 2; -} - -// Request message for [GetQueue][google.cloud.tasks.v2beta2.CloudTasks.GetQueue]. -message GetQueueRequest { - // Required. The resource name of the queue. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Queue" - } - ]; - - // Optional. Read mask is used for a more granular control over what the API returns. - // If the mask is not present all fields will be returned except - // [Queue.stats]. [Queue.stats] will be returned only if it was explicitly - // specified in the mask. - google.protobuf.FieldMask read_mask = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// Request message for [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue]. -message CreateQueueRequest { - // Required. The location name in which the queue will be created. - // For example: `projects/PROJECT_ID/locations/LOCATION_ID` - // - // The list of allowed locations can be obtained by calling Cloud - // Tasks' implementation of - // [ListLocations][google.cloud.location.Locations.ListLocations]. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "cloudtasks.googleapis.com/Queue" - } - ]; - - // Required. The queue to create. - // - // [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as an existing queue. - Queue queue = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue]. -message UpdateQueueRequest { - // Required. The queue to create or update. - // - // The queue's [name][google.cloud.tasks.v2beta2.Queue.name] must be specified. - // - // Output only fields cannot be modified using UpdateQueue. - // Any value specified for an output only field will be ignored. - // The queue's [name][google.cloud.tasks.v2beta2.Queue.name] cannot be changed. - Queue queue = 1 [(google.api.field_behavior) = REQUIRED]; - - // A mask used to specify which fields of the queue are being updated. - // - // If empty, then all fields will be updated. - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for [DeleteQueue][google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue]. -message DeleteQueueRequest { - // Required. The queue name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Queue" - } - ]; -} - -// Request message for [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue]. -message PurgeQueueRequest { - // Required. The queue name. For example: - // `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Queue" - } - ]; -} - -// Request message for [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue]. -message PauseQueueRequest { - // Required. The queue name. For example: - // `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Queue" - } - ]; -} - -// Request message for [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue]. -message ResumeQueueRequest { - // Required. The queue name. For example: - // `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Queue" - } - ]; -} - -// Request message for listing tasks using [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]. -message ListTasksRequest { - // Required. The queue name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "cloudtasks.googleapis.com/Task" - } - ]; - - // The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be - // returned. - // - // By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all - // information is retrieved by default because some data, such as - // payloads, might be desirable to return only when needed because - // of its large size or because of the sensitivity of data that it - // contains. - // - // Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires - // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) - // permission on the [Task][google.cloud.tasks.v2beta2.Task] resource. - Task.View response_view = 2; - - // Maximum page size. - // - // Fewer tasks than requested might be returned, even if more tasks exist; use - // [next_page_token][google.cloud.tasks.v2beta2.ListTasksResponse.next_page_token] in the response to - // determine if more tasks exist. - // - // The maximum page size is 1000. If unspecified, the page size will be the - // maximum. - int32 page_size = 4; - - // A token identifying the page of results to return. - // - // To request the first page results, page_token must be empty. To - // request the next page of results, page_token must be the value of - // [next_page_token][google.cloud.tasks.v2beta2.ListTasksResponse.next_page_token] returned - // from the previous call to [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks] - // method. - // - // The page token is valid for only 2 hours. - string page_token = 5; -} - -// Response message for listing tasks using [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks]. -message ListTasksResponse { - // The list of tasks. - repeated Task tasks = 1; - - // A token to retrieve next page of results. - // - // To return the next page of results, call - // [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks] with this value as the - // [page_token][google.cloud.tasks.v2beta2.ListTasksRequest.page_token]. - // - // If the next_page_token is empty, there are no more results. - string next_page_token = 2; -} - -// Request message for getting a task using [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask]. -message GetTaskRequest { - // Required. The task name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Task" - } - ]; - - // The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be - // returned. - // - // By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all - // information is retrieved by default because some data, such as - // payloads, might be desirable to return only when needed because - // of its large size or because of the sensitivity of data that it - // contains. - // - // Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires - // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) - // permission on the [Task][google.cloud.tasks.v2beta2.Task] resource. - Task.View response_view = 2; -} - -// Request message for [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask]. -message CreateTaskRequest { - // Required. The queue name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - // - // The queue must already exist. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "cloudtasks.googleapis.com/Task" - } - ]; - - // Required. The task to add. - // - // Task names have the following format: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. - // The user can optionally specify a task [name][google.cloud.tasks.v2beta2.Task.name]. If a - // name is not specified then the system will generate a random - // unique task id, which will be set in the task returned in the - // [response][google.cloud.tasks.v2beta2.Task.name]. - // - // If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not set or is in the - // past then Cloud Tasks will set it to the current time. - // - // Task De-duplication: - // - // Explicitly specifying a task ID enables task de-duplication. If - // a task's ID is identical to that of an existing task or a task - // that was deleted or completed recently then the call will fail - // with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. - // If the task's queue was created using Cloud Tasks, then another task with - // the same name can't be created for ~1hour after the original task was - // deleted or completed. If the task's queue was created using queue.yaml or - // queue.xml, then another task with the same name can't be created - // for ~9days after the original task was deleted or completed. - // - // Because there is an extra lookup cost to identify duplicate task - // names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] calls have significantly - // increased latency. Using hashed strings for the task id or for - // the prefix of the task id is recommended. Choosing task ids that - // are sequential or have sequential prefixes, for example using a - // timestamp, causes an increase in latency and error rates in all - // task commands. The infrastructure relies on an approximately - // uniform distribution of task ids to store and serve tasks - // efficiently. - Task task = 2 [(google.api.field_behavior) = REQUIRED]; - - // The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be - // returned. - // - // By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all - // information is retrieved by default because some data, such as - // payloads, might be desirable to return only when needed because - // of its large size or because of the sensitivity of data that it - // contains. - // - // Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires - // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) - // permission on the [Task][google.cloud.tasks.v2beta2.Task] resource. - Task.View response_view = 3; -} - -// Request message for deleting a task using -// [DeleteTask][google.cloud.tasks.v2beta2.CloudTasks.DeleteTask]. -message DeleteTaskRequest { - // Required. The task name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Task" - } - ]; -} - -// Request message for leasing tasks using [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks]. -message LeaseTasksRequest { - // Required. The queue name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "cloudtasks.googleapis.com/Task" - } - ]; - - // The maximum number of tasks to lease. - // - // The system will make a best effort to return as close to as - // `max_tasks` as possible. - // - // The largest that `max_tasks` can be is 1000. - // - // The maximum total size of a [lease tasks response][google.cloud.tasks.v2beta2.LeaseTasksResponse] is - // 32 MB. If the sum of all task sizes requested reaches this limit, - // fewer tasks than requested are returned. - int32 max_tasks = 2; - - // Required. The duration of the lease. - // - // Each task returned in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will - // have its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] set to the current - // time plus the `lease_duration`. The task is leased until its - // [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]; thus, the task will not be - // returned to another [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call - // before its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. - // - // - // After the worker has successfully finished the work associated - // with the task, the worker must call via - // [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] before the - // [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. Otherwise the task will be - // returned to a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call so - // that another worker can retry it. - // - // The maximum lease duration is 1 week. - // `lease_duration` will be truncated to the nearest second. - google.protobuf.Duration lease_duration = 3 [(google.api.field_behavior) = REQUIRED]; - - // The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be - // returned. - // - // By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all - // information is retrieved by default because some data, such as - // payloads, might be desirable to return only when needed because - // of its large size or because of the sensitivity of data that it - // contains. - // - // Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires - // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) - // permission on the [Task][google.cloud.tasks.v2beta2.Task] resource. - Task.View response_view = 4; - - // `filter` can be used to specify a subset of tasks to lease. - // - // When `filter` is set to `tag=` then the - // [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will contain only tasks whose - // [tag][google.cloud.tasks.v2beta2.PullMessage.tag] is equal to ``. `` must be - // less than 500 characters. - // - // When `filter` is set to `tag_function=oldest_tag()`, only tasks which have - // the same tag as the task with the oldest - // [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be returned. - // - // Grammar Syntax: - // - // * `filter = "tag=" tag | "tag_function=" function` - // - // * `tag = string` - // - // * `function = "oldest_tag()"` - // - // The `oldest_tag()` function returns tasks which have the same tag as the - // oldest task (ordered by schedule time). - // - // SDK compatibility: Although the SDK allows tags to be either - // string or - // [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-), - // only UTF-8 encoded tags can be used in Cloud Tasks. Tag which - // aren't UTF-8 encoded can't be used in the - // [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter] and the task's - // [tag][google.cloud.tasks.v2beta2.PullMessage.tag] will be displayed as empty in Cloud Tasks. - string filter = 5; -} - -// Response message for leasing tasks using [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks]. -message LeaseTasksResponse { - // The leased tasks. - repeated Task tasks = 1; -} - -// Request message for acknowledging a task using -// [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask]. -message AcknowledgeTaskRequest { - // Required. The task name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Task" - } - ]; - - // Required. The task's current schedule time, available in the - // [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by - // [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or - // [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is - // to ensure that your worker currently holds the lease. - google.protobuf.Timestamp schedule_time = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for renewing a lease using -// [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease]. -message RenewLeaseRequest { - // Required. The task name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Task" - } - ]; - - // Required. The task's current schedule time, available in the - // [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by - // [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or - // [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is - // to ensure that your worker currently holds the lease. - google.protobuf.Timestamp schedule_time = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The desired new lease duration, starting from now. - // - // - // The maximum lease duration is 1 week. - // `lease_duration` will be truncated to the nearest second. - google.protobuf.Duration lease_duration = 3 [(google.api.field_behavior) = REQUIRED]; - - // The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be - // returned. - // - // By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all - // information is retrieved by default because some data, such as - // payloads, might be desirable to return only when needed because - // of its large size or because of the sensitivity of data that it - // contains. - // - // Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires - // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) - // permission on the [Task][google.cloud.tasks.v2beta2.Task] resource. - Task.View response_view = 4; -} - -// Request message for canceling a lease using -// [CancelLease][google.cloud.tasks.v2beta2.CloudTasks.CancelLease]. -message CancelLeaseRequest { - // Required. The task name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Task" - } - ]; - - // Required. The task's current schedule time, available in the - // [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by - // [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or - // [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is - // to ensure that your worker currently holds the lease. - google.protobuf.Timestamp schedule_time = 2 [(google.api.field_behavior) = REQUIRED]; - - // The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be - // returned. - // - // By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all - // information is retrieved by default because some data, such as - // payloads, might be desirable to return only when needed because - // of its large size or because of the sensitivity of data that it - // contains. - // - // Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires - // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) - // permission on the [Task][google.cloud.tasks.v2beta2.Task] resource. - Task.View response_view = 3; -} - -// Request message for forcing a task to run now using -// [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask]. -message RunTaskRequest { - // Required. The task name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Task" - } - ]; - - // The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be - // returned. - // - // By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all - // information is retrieved by default because some data, such as - // payloads, might be desirable to return only when needed because - // of its large size or because of the sensitivity of data that it - // contains. - // - // Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires - // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) - // permission on the [Task][google.cloud.tasks.v2beta2.Task] resource. - Task.View response_view = 2; -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/queue.proto b/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/queue.proto deleted file mode 100644 index 2d6ba2e1..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/queue.proto +++ /dev/null @@ -1,428 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.tasks.v2beta2; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/tasks/v2beta2/target.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks"; -option java_multiple_files = true; -option java_outer_classname = "QueueProto"; -option java_package = "com.google.cloud.tasks.v2beta2"; - -// A queue is a container of related tasks. Queues are configured to manage -// how those tasks are dispatched. Configurable properties include rate limits, -// retry options, target types, and others. -message Queue { - option (google.api.resource) = { - type: "cloudtasks.googleapis.com/Queue" - pattern: "projects/{project}/locations/{location}/queues/{queue}" - }; - - // State of the queue. - enum State { - // Unspecified state. - STATE_UNSPECIFIED = 0; - - // The queue is running. Tasks can be dispatched. - // - // If the queue was created using Cloud Tasks and the queue has - // had no activity (method calls or task dispatches) for 30 days, - // the queue may take a few minutes to re-activate. Some method - // calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and - // tasks may not be dispatched for a few minutes until the queue - // has been re-activated. - RUNNING = 1; - - // Tasks are paused by the user. If the queue is paused then Cloud - // Tasks will stop delivering tasks from it, but more tasks can - // still be added to it by the user. When a pull queue is paused, - // all [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] calls will return a - // [FAILED_PRECONDITION][google.rpc.Code.FAILED_PRECONDITION]. - PAUSED = 2; - - // The queue is disabled. - // - // A queue becomes `DISABLED` when - // [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref) - // or - // [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref) - // is uploaded which does not contain the queue. You cannot directly disable - // a queue. - // - // When a queue is disabled, tasks can still be added to a queue - // but the tasks are not dispatched and - // [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] calls return a - // `FAILED_PRECONDITION` error. - // - // To permanently delete this queue and all of its tasks, call - // [DeleteQueue][google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue]. - DISABLED = 3; - } - - // Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue], - // after which it becomes output only. - // - // The queue name. - // - // The queue name must have the following format: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - // - // * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), - // hyphens (-), colons (:), or periods (.). - // For more information, see - // [Identifying - // projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) - // * `LOCATION_ID` is the canonical ID for the queue's location. - // The list of available locations can be obtained by calling - // [ListLocations][google.cloud.location.Locations.ListLocations]. - // For more information, see https://cloud.google.com/about/locations/. - // * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or - // hyphens (-). The maximum length is 100 characters. - string name = 1; - - // Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue][], - // after which the queue config type becomes output only, though fields within - // the config are mutable. - // - // The queue's target. - // - // The target applies to all tasks in the queue. - oneof target_type { - // App Engine HTTP target. - // - // An App Engine queue is a queue that has an [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget]. - AppEngineHttpTarget app_engine_http_target = 3; - - // Pull target. - // - // A pull queue is a queue that has a [PullTarget][google.cloud.tasks.v2beta2.PullTarget]. - PullTarget pull_target = 4; - } - - // Rate limits for task dispatches. - // - // [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] and - // [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] are related because they both - // control task attempts however they control how tasks are - // attempted in different ways: - // - // * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] controls the total rate of - // dispatches from a queue (i.e. all traffic dispatched from the - // queue, regardless of whether the dispatch is from a first - // attempt or a retry). - // * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls what happens to - // particular a task after its first attempt fails. That is, - // [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls task retries (the - // second attempt, third attempt, etc). - RateLimits rate_limits = 5; - - // Settings that determine the retry behavior. - // - // * For tasks created using Cloud Tasks: the queue-level retry settings - // apply to all tasks in the queue that were created using Cloud Tasks. - // Retry settings cannot be set on individual tasks. - // * For tasks created using the App Engine SDK: the queue-level retry - // settings apply to all tasks in the queue which do not have retry settings - // explicitly set on the task and were created by the App Engine SDK. See - // [App Engine - // documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks). - RetryConfig retry_config = 6; - - // Output only. The state of the queue. - // - // `state` can only be changed by calling - // [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue], - // [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or uploading - // [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref). - // [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] cannot be used to change `state`. - State state = 7; - - // Output only. The last time this queue was purged. - // - // All tasks that were [created][google.cloud.tasks.v2beta2.Task.create_time] before this time - // were purged. - // - // A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue], the - // [App Engine Task Queue SDK, or the Cloud - // Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). - // - // Purge time will be truncated to the nearest microsecond. Purge - // time will be unset if the queue has never been purged. - google.protobuf.Timestamp purge_time = 8; - - // The maximum amount of time that a task will be retained in - // this queue. - // - // Queues created by Cloud Tasks have a default `task_ttl` of 31 days. - // After a task has lived for `task_ttl`, the task will be deleted - // regardless of whether it was dispatched or not. - // - // The `task_ttl` for queues created via queue.yaml/xml is equal to the - // maximum duration because there is a - // [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for - // these queues. To view the maximum valid duration, see the documentation for - // [Duration][google.protobuf.Duration]. - google.protobuf.Duration task_ttl = 9; - - // The task tombstone time to live (TTL). - // - // After a task is deleted or completed, the task's tombstone is - // retained for the length of time specified by `tombstone_ttl`. - // The tombstone is used by task de-duplication; another task with the same - // name can't be created until the tombstone has expired. For more information - // about task de-duplication, see the documentation for - // [CreateTaskRequest][google.cloud.tasks.v2beta2.CreateTaskRequest.task]. - // - // Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour. - google.protobuf.Duration tombstone_ttl = 10; - - // Output only. The realtime, informational statistics for a queue. In order - // to receive the statistics the caller should include this field in the - // FieldMask. - QueueStats stats = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Rate limits. -// -// This message determines the maximum rate that tasks can be dispatched by a -// queue, regardless of whether the dispatch is a first task attempt or a retry. -// -// Note: The debugging command, [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask], will run a task -// even if the queue has reached its [RateLimits][google.cloud.tasks.v2beta2.RateLimits]. -message RateLimits { - // The maximum rate at which tasks are dispatched from this queue. - // - // If unspecified when the queue is created, Cloud Tasks will pick the - // default. - // - // * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum allowed value - // is 500. - // * This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget]. In addition to the - // `max_tasks_dispatched_per_second` limit, a maximum of 10 QPS of - // [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] requests are allowed per pull queue. - // - // - // This field has the same meaning as - // [rate in - // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate). - double max_tasks_dispatched_per_second = 1; - - // The max burst size. - // - // Max burst size limits how fast tasks in queue are processed when - // many tasks are in the queue and the rate is high. This field - // allows the queue to have a high rate so processing starts shortly - // after a task is enqueued, but still limits resource usage when - // many tasks are enqueued in a short period of time. - // - // The [token bucket](https://wikipedia.org/wiki/Token_Bucket) - // algorithm is used to control the rate of task dispatches. Each - // queue has a token bucket that holds tokens, up to the maximum - // specified by `max_burst_size`. Each time a task is dispatched, a - // token is removed from the bucket. Tasks will be dispatched until - // the queue's bucket runs out of tokens. The bucket will be - // continuously refilled with new tokens based on - // [max_dispatches_per_second][RateLimits.max_dispatches_per_second]. - // - // The default value of `max_burst_size` is picked by Cloud Tasks - // based on the value of - // [max_dispatches_per_second][RateLimits.max_dispatches_per_second]. - // - // The maximum value of `max_burst_size` is 500. - // - // For App Engine queues that were created or updated using - // `queue.yaml/xml`, `max_burst_size` is equal to - // [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size). - // If - // [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] is called on a queue without - // explicitly setting a value for `max_burst_size`, - // `max_burst_size` value will get updated if - // [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] is updating - // [max_dispatches_per_second][RateLimits.max_dispatches_per_second]. - // - int32 max_burst_size = 2; - - // The maximum number of concurrent tasks that Cloud Tasks allows - // to be dispatched for this queue. After this threshold has been - // reached, Cloud Tasks stops dispatching tasks until the number of - // concurrent requests decreases. - // - // If unspecified when the queue is created, Cloud Tasks will pick the - // default. - // - // - // The maximum allowed value is 5,000. - // - // This field is output only for - // [pull queues][google.cloud.tasks.v2beta2.PullTarget] and always -1, which indicates no limit. No other - // queue types can have `max_concurrent_tasks` set to -1. - // - // - // This field has the same meaning as - // [max_concurrent_requests in - // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests). - int32 max_concurrent_tasks = 3; -} - -// Retry config. -// -// These settings determine how a failed task attempt is retried. -message RetryConfig { - // Number of attempts per task. - // - // If unspecified when the queue is created, Cloud Tasks will pick the - // default. - // - // - // - // This field has the same meaning as - // [task_retry_limit in - // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). - oneof num_attempts { - // The maximum number of attempts for a task. - // - // Cloud Tasks will attempt the task `max_attempts` times (that - // is, if the first attempt fails, then there will be - // `max_attempts - 1` retries). Must be > 0. - int32 max_attempts = 1; - - // If true, then the number of attempts is unlimited. - bool unlimited_attempts = 2; - } - - // If positive, `max_retry_duration` specifies the time limit for - // retrying a failed task, measured from when the task was first - // attempted. Once `max_retry_duration` time has passed *and* the - // task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] - // times, no further attempts will be made and the task will be - // deleted. - // - // If zero, then the task age is unlimited. - // - // If unspecified when the queue is created, Cloud Tasks will pick the - // default. - // - // This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget]. - // - // - // `max_retry_duration` will be truncated to the nearest second. - // - // This field has the same meaning as - // [task_age_limit in - // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). - google.protobuf.Duration max_retry_duration = 3; - - // A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between - // [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and - // [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails, - // if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be - // retried. - // - // If unspecified when the queue is created, Cloud Tasks will pick the - // default. - // - // This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget]. - // - // - // `min_backoff` will be truncated to the nearest second. - // - // This field has the same meaning as - // [min_backoff_seconds in - // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). - google.protobuf.Duration min_backoff = 4; - - // A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time] for retry between - // [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and - // [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration after it fails, - // if the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the task should be - // retried. - // - // If unspecified when the queue is created, Cloud Tasks will pick the - // default. - // - // This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget]. - // - // - // `max_backoff` will be truncated to the nearest second. - // - // This field has the same meaning as - // [max_backoff_seconds in - // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). - google.protobuf.Duration max_backoff = 5; - - // The time between retries will double `max_doublings` times. - // - // A task's retry interval starts at - // [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff], then doubles - // `max_doublings` times, then increases linearly, and finally - // retries at intervals of - // [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] up to - // [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times. - // - // For example, if [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] is 10s, - // [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] is 300s, and - // `max_doublings` is 3, then the a task will first be retried in - // 10s. The retry interval will double three times, and then - // increase linearly by 2^3 * 10s. Finally, the task will retry at - // intervals of [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] until the - // task has been attempted [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] - // times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s, - // 240s, 300s, 300s, .... - // - // If unspecified when the queue is created, Cloud Tasks will pick the - // default. - // - // This field is output only for [pull queues][google.cloud.tasks.v2beta2.PullTarget]. - // - // - // This field has the same meaning as - // [max_doublings in - // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). - int32 max_doublings = 6; -} - -// Statistics for a queue. -message QueueStats { - // Output only. An estimation of the number of tasks in the queue, that is, the tasks in - // the queue that haven't been executed, the tasks in the queue which the - // queue has dispatched but has not yet received a reply for, and the failed - // tasks that the queue is retrying. - int64 tasks_count = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. An estimation of the nearest time in the future where a task in the queue - // is scheduled to be executed. - google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The number of tasks that the queue has dispatched and received a reply for - // during the last minute. This variable counts both successful and - // non-successful executions. - int64 executed_last_minute_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The number of requests that the queue has dispatched but has not received - // a reply for yet. - int64 concurrent_dispatches_count = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The current maximum number of tasks per second executed by the queue. - // The maximum value of this variable is controlled by the RateLimits of the - // Queue. However, this value could be less to avoid overloading the endpoints - // tasks in the queue are targeting. - double effective_execution_rate = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/target.proto b/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/target.proto deleted file mode 100644 index 7ee837db..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/target.proto +++ /dev/null @@ -1,377 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.tasks.v2beta2; - - -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks"; -option java_multiple_files = true; -option java_outer_classname = "TargetProto"; -option java_package = "com.google.cloud.tasks.v2beta2"; - -// Pull target. -message PullTarget { - -} - -// The pull message contains data that can be used by the caller of -// [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task. -// -// This proto can only be used for tasks in a queue which has -// [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] set. -message PullMessage { - // A data payload consumed by the worker to execute the task. - bytes payload = 1; - - // The task's tag. - // - // Tags allow similar tasks to be processed in a batch. If you label - // tasks with a tag, your worker can - // [lease tasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] with the same tag using - // [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter]. For example, if you want to - // aggregate the events associated with a specific user once a day, - // you could tag tasks with the user ID. - // - // The task's tag can only be set when the - // [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask]. - // - // The tag must be less than 500 characters. - // - // SDK compatibility: Although the SDK allows tags to be either - // string or - // [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-), - // only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8 - // encoded, the tag will be empty when the task is returned by Cloud Tasks. - string tag = 2; -} - -// App Engine HTTP target. -// -// The task will be delivered to the App Engine application hostname -// specified by its [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget] and [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest]. -// The documentation for [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] explains how the -// task's host URL is constructed. -// -// Using [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget] requires -// [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control) -// Google IAM permission for the project -// and the following scope: -// -// `https://www.googleapis.com/auth/cloud-platform` -message AppEngineHttpTarget { - // Overrides for the - // [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing]. - // - // If set, `app_engine_routing_override` is used for all tasks in - // the queue, no matter what the setting is for the - // [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing]. - AppEngineRouting app_engine_routing_override = 1; -} - -// App Engine HTTP request. -// -// The message defines the HTTP request that is sent to an App Engine app when -// the task is dispatched. -// -// This proto can only be used for tasks in a queue which has -// [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] set. -// -// Using [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] requires -// [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control) -// Google IAM permission for the project -// and the following scope: -// -// `https://www.googleapis.com/auth/cloud-platform` -// -// The task will be delivered to the App Engine app which belongs to the same -// project as the queue. For more information, see -// [How Requests are -// Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) -// and how routing is affected by -// [dispatch -// files](https://cloud.google.com/appengine/docs/python/config/dispatchref). -// Traffic is encrypted during transport and never leaves Google datacenters. -// Because this traffic is carried over a communication mechanism internal to -// Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS). -// The request to the handler, however, will appear to have used the HTTP -// protocol. -// -// The [AppEngineRouting][google.cloud.tasks.v2beta2.AppEngineRouting] used to construct the URL that the task is -// delivered to can be set at the queue-level or task-level: -// -// * If set, -// [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override] -// is used for all tasks in the queue, no matter what the setting -// is for the -// [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing]. -// -// -// The `url` that the task will be sent to is: -// -// * `url =` [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] `+` -// [relative_url][google.cloud.tasks.v2beta2.AppEngineHttpRequest.relative_url] -// -// Tasks can be dispatched to secure app handlers, unsecure app handlers, and -// URIs restricted with -// [`login: -// admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref). -// Because tasks are not run as any user, they cannot be dispatched to URIs -// restricted with -// [`login: -// required`](https://cloud.google.com/appengine/docs/standard/python/config/appref) -// Task dispatches also do not follow redirects. -// -// The task attempt has succeeded if the app's request handler returns an HTTP -// response code in the range [`200` - `299`]. The task attempt has failed if -// the app's handler returns a non-2xx response code or Cloud Tasks does -// not receive response before the [deadline][Task.dispatch_deadline]. Failed -// tasks will be retried according to the -// [retry configuration][google.cloud.tasks.v2beta2.Queue.retry_config]. `503` (Service Unavailable) is -// considered an App Engine system error instead of an application error and -// will cause Cloud Tasks' traffic congestion control to temporarily throttle -// the queue's dispatches. Unlike other types of task targets, a `429` (Too Many -// Requests) response from an app handler does not cause traffic congestion -// control to throttle the queue. -message AppEngineHttpRequest { - // The HTTP method to use for the request. The default is POST. - // - // The app's request handler for the task's target URL must be able to handle - // HTTP requests with this http_method, otherwise the task attempt fails with - // error code 405 (Method Not Allowed). See [Writing a push task request - // handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) - // and the App Engine documentation for your runtime on [How Requests are - // Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled). - HttpMethod http_method = 1; - - // Task-level setting for App Engine routing. - // - // If set, - // [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override] - // is used for all tasks in the queue, no matter what the setting is for the - // [task-level app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing]. - AppEngineRouting app_engine_routing = 2; - - // The relative URL. - // - // The relative URL must begin with "/" and must be a valid HTTP relative URL. - // It can contain a path and query string arguments. - // If the relative URL is empty, then the root path "/" will be used. - // No spaces are allowed, and the maximum length allowed is 2083 characters. - string relative_url = 3; - - // HTTP request headers. - // - // This map contains the header field names and values. - // Headers can be set when the - // [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask]. - // Repeated headers are not supported but a header value can contain commas. - // - // Cloud Tasks sets some headers to default values: - // - // * `User-Agent`: By default, this header is - // `"AppEngine-Google; (+http://code.google.com/appengine)"`. - // This header can be modified, but Cloud Tasks will append - // `"AppEngine-Google; (+http://code.google.com/appengine)"` to the - // modified `User-Agent`. - // - // If the task has a [payload][google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload], Cloud - // Tasks sets the following headers: - // - // * `Content-Type`: By default, the `Content-Type` header is set to - // `"application/octet-stream"`. The default can be overridden by explicitly - // setting `Content-Type` to a particular media type when the - // [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask]. - // For example, `Content-Type` can be set to `"application/json"`. - // * `Content-Length`: This is computed by Cloud Tasks. This value is - // output only. It cannot be changed. - // - // The headers below cannot be set or overridden: - // - // * `Host` - // * `X-Google-*` - // * `X-AppEngine-*` - // - // In addition, Cloud Tasks sets some headers when the task is dispatched, - // such as headers containing information about the task; see - // [request - // headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers). - // These headers are set only when the task is dispatched, so they are not - // visible when the task is returned in a Cloud Tasks response. - // - // Although there is no specific limit for the maximum number of headers or - // the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta2.Task]. For more - // information, see the [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] documentation. - map headers = 4; - - // Payload. - // - // The payload will be sent as the HTTP message body. A message - // body, and thus a payload, is allowed only if the HTTP method is - // POST or PUT. It is an error to set a data payload on a task with - // an incompatible [HttpMethod][google.cloud.tasks.v2beta2.HttpMethod]. - bytes payload = 5; -} - -// App Engine Routing. -// -// Defines routing characteristics specific to App Engine - service, version, -// and instance. -// -// For more information about services, versions, and instances see -// [An Overview of App -// Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine), -// [Microservices Architecture on Google App -// Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine), -// [App Engine Standard request -// routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed), -// and [App Engine Flex request -// routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). -message AppEngineRouting { - // App service. - // - // By default, the task is sent to the service which is the default - // service when the task is attempted. - // - // For some queues or tasks which were created using the App Engine - // Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable - // into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service], - // [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and - // [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks - // which were created using the App Engine SDK use a custom domain - // name; custom domains are not parsed by Cloud Tasks. If - // [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then - // [service][google.cloud.tasks.v2beta2.AppEngineRouting.service], - // [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and - // [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string. - string service = 1; - - // App version. - // - // By default, the task is sent to the version which is the default - // version when the task is attempted. - // - // For some queues or tasks which were created using the App Engine - // Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable - // into [service][google.cloud.tasks.v2beta2.AppEngineRouting.service], - // [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and - // [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For example, some tasks - // which were created using the App Engine SDK use a custom domain - // name; custom domains are not parsed by Cloud Tasks. If - // [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable, then - // [service][google.cloud.tasks.v2beta2.AppEngineRouting.service], - // [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and - // [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the empty string. - string version = 2; - - // App instance. - // - // By default, the task is sent to an instance which is available when - // the task is attempted. - // - // Requests can only be sent to a specific instance if - // [manual scaling is used in App Engine - // Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). - // App Engine Flex does not support instances. For more information, see - // [App Engine Standard request - // routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) - // and [App Engine Flex request - // routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). - string instance = 3; - - // Output only. The host that the task is sent to. - // - // For more information, see - // [How Requests are - // Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). - // - // The host is constructed as: - // - // - // * `host = [application_domain_name]`
- // `| [service] + '.' + [application_domain_name]`
- // `| [version] + '.' + [application_domain_name]`
- // `| [version_dot_service]+ '.' + [application_domain_name]`
- // `| [instance] + '.' + [application_domain_name]`
- // `| [instance_dot_service] + '.' + [application_domain_name]`
- // `| [instance_dot_version] + '.' + [application_domain_name]`
- // `| [instance_dot_version_dot_service] + '.' + [application_domain_name]` - // - // * `application_domain_name` = The domain name of the app, for - // example .appspot.com, which is associated with the - // queue's project ID. Some tasks which were created using the App Engine - // SDK use a custom domain name. - // - // * `service =` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] - // - // * `version =` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] - // - // * `version_dot_service =` - // [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +` - // [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] - // - // * `instance =` [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] - // - // * `instance_dot_service =` - // [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +` - // [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] - // - // * `instance_dot_version =` - // [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +` - // [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] - // - // * `instance_dot_version_dot_service =` - // [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.' +` - // [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +` - // [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] - // - // If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty, then the task will be sent - // to the service which is the default service when the task is attempted. - // - // If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty, then the task will be sent - // to the version which is the default version when the task is attempted. - // - // If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is empty, then the task - // will be sent to an instance which is available when the task is - // attempted. - // - // If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service], - // [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or - // [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is invalid, then the task - // will be sent to the default version of the default service when - // the task is attempted. - string host = 4; -} - -// The HTTP method used to execute the task. -enum HttpMethod { - // HTTP method unspecified - HTTP_METHOD_UNSPECIFIED = 0; - - // HTTP POST - POST = 1; - - // HTTP GET - GET = 2; - - // HTTP HEAD - HEAD = 3; - - // HTTP PUT - PUT = 4; - - // HTTP DELETE - DELETE = 5; -} diff --git a/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/task.proto b/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/task.proto deleted file mode 100644 index 5e5c3575..00000000 --- a/proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/task.proto +++ /dev/null @@ -1,182 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.tasks.v2beta2; - -import "google/api/resource.proto"; -import "google/cloud/tasks/v2beta2/target.proto"; -import "google/protobuf/timestamp.proto"; -import "google/rpc/status.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta2;tasks"; -option java_multiple_files = true; -option java_outer_classname = "TaskProto"; -option java_package = "com.google.cloud.tasks.v2beta2"; - -// A unit of scheduled work. -message Task { - option (google.api.resource) = { - type: "cloudtasks.googleapis.com/Task" - pattern: "projects/{project}/locations/{location}/queues/{queue}/tasks/{task}" - }; - - // The view specifies a subset of [Task][google.cloud.tasks.v2beta2.Task] data. - // - // When a task is returned in a response, not all - // information is retrieved by default because some data, such as - // payloads, might be desirable to return only when needed because - // of its large size or because of the sensitivity of data that it - // contains. - enum View { - // Unspecified. Defaults to BASIC. - VIEW_UNSPECIFIED = 0; - - // The basic view omits fields which can be large or can contain - // sensitive data. - // - // This view does not include the - // ([payload in AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] and - // [payload in PullMessage][google.cloud.tasks.v2beta2.PullMessage.payload]). These payloads are - // desirable to return only when needed, because they can be large - // and because of the sensitivity of the data that you choose to - // store in it. - BASIC = 1; - - // All information is returned. - // - // Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires - // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) - // permission on the [Queue][google.cloud.tasks.v2beta2.Queue] resource. - FULL = 2; - } - - // Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask]. - // - // The task name. - // - // The task name must have the following format: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - // - // * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), - // hyphens (-), colons (:), or periods (.). - // For more information, see - // [Identifying - // projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) - // * `LOCATION_ID` is the canonical ID for the task's location. - // The list of available locations can be obtained by calling - // [ListLocations][google.cloud.location.Locations.ListLocations]. - // For more information, see https://cloud.google.com/about/locations/. - // * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or - // hyphens (-). The maximum length is 100 characters. - // * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), - // hyphens (-), or underscores (_). The maximum length is 500 characters. - string name = 1; - - // Required. - // - // The task's payload is used by the task's target to process the task. - // A payload is valid only if it is compatible with the queue's target. - oneof payload_type { - // App Engine HTTP request that is sent to the task's target. Can - // be set only if - // [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] is set - // on the queue. - // - // An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] set. - AppEngineHttpRequest app_engine_http_request = 3; - - // [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task. Can be - // set only if [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] is set on the queue. - // - // A pull task is a task that has [PullMessage][google.cloud.tasks.v2beta2.PullMessage] set. - PullMessage pull_message = 4; - } - - // The time when the task is scheduled to be attempted. - // - // For App Engine queues, this is when the task will be attempted or retried. - // - // For pull queues, this is the time when the task is available to - // be leased; if a task is currently leased, this is the time when - // the current lease expires, that is, the time that the task was - // leased plus the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration]. - // - // `schedule_time` will be truncated to the nearest microsecond. - google.protobuf.Timestamp schedule_time = 5; - - // Output only. The time that the task was created. - // - // `create_time` will be truncated to the nearest second. - google.protobuf.Timestamp create_time = 6; - - // Output only. The task status. - TaskStatus status = 7; - - // Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] has - // been returned. - View view = 8; -} - -// Status of the task. -message TaskStatus { - // Output only. The number of attempts dispatched. - // - // This count includes attempts which have been dispatched but haven't - // received a response. - int32 attempt_dispatch_count = 1; - - // Output only. The number of attempts which have received a response. - // - // This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage]. - int32 attempt_response_count = 2; - - // Output only. The status of the task's first attempt. - // - // Only [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] will be set. - // The other [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is not retained by Cloud Tasks. - // - // This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage]. - AttemptStatus first_attempt_status = 3; - - // Output only. The status of the task's last attempt. - // - // This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage]. - AttemptStatus last_attempt_status = 4; -} - -// The status of a task attempt. -message AttemptStatus { - // Output only. The time that this attempt was scheduled. - // - // `schedule_time` will be truncated to the nearest microsecond. - google.protobuf.Timestamp schedule_time = 1; - - // Output only. The time that this attempt was dispatched. - // - // `dispatch_time` will be truncated to the nearest microsecond. - google.protobuf.Timestamp dispatch_time = 2; - - // Output only. The time that this attempt response was received. - // - // `response_time` will be truncated to the nearest microsecond. - google.protobuf.Timestamp response_time = 3; - - // Output only. The response from the target for this attempt. - // - // If the task has not been attempted or the task is currently running - // then the response status is unset. - google.rpc.Status response_status = 4; -} diff --git a/proto-google-cloud-tasks-v2beta3/clirr-ignored-differences.xml b/proto-google-cloud-tasks-v2beta3/clirr-ignored-differences.xml deleted file mode 100644 index 37ff3a74..00000000 --- a/proto-google-cloud-tasks-v2beta3/clirr-ignored-differences.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - 7012 - com/google/cloud/tasks/v2beta3/*OrBuilder - * get*(*) - - - 7012 - com/google/cloud/tasks/v2beta3/*OrBuilder - boolean contains*(*) - - - 7012 - com/google/cloud/tasks/v2beta3/*OrBuilder - boolean has*(*) - - diff --git a/proto-google-cloud-tasks-v2beta3/pom.xml b/proto-google-cloud-tasks-v2beta3/pom.xml deleted file mode 100644 index 2a93c6d2..00000000 --- a/proto-google-cloud-tasks-v2beta3/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - 4.0.0 - com.google.api.grpc - proto-google-cloud-tasks-v2beta3 - 0.93.12 - proto-google-cloud-tasks-v2beta3 - PROTO library for proto-google-cloud-tasks-v2beta3 - - com.google.cloud - google-cloud-tasks-parent - 2.3.12 - - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-common-protos - - - com.google.api - api-common - - - com.google.guava - guava - - - com.google.api.grpc - proto-google-iam-v1 - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - \ No newline at end of file diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpQueue.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpQueue.java deleted file mode 100644 index 72a07080..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpQueue.java +++ /dev/null @@ -1,778 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta3; - -/** - * - * - *
- * App Engine HTTP queue.
- * The task will be delivered to the App Engine application hostname
- * specified by its [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] and [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest].
- * The documentation for [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] explains how the
- * task's host URL is constructed.
- * Using [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] requires
- * [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
- * Google IAM permission for the project
- * and the following scope:
- * `https://www.googleapis.com/auth/cloud-platform`
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.AppEngineHttpQueue} - */ -public final class AppEngineHttpQueue extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.AppEngineHttpQueue) - AppEngineHttpQueueOrBuilder { - private static final long serialVersionUID = 0L; - // Use AppEngineHttpQueue.newBuilder() to construct. - private AppEngineHttpQueue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AppEngineHttpQueue() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AppEngineHttpQueue(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_AppEngineHttpQueue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_AppEngineHttpQueue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.class, - com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.Builder.class); - } - - public static final int APP_ENGINE_ROUTING_OVERRIDE_FIELD_NUMBER = 1; - private com.google.cloud.tasks.v2beta3.AppEngineRouting appEngineRoutingOverride_; - /** - * - * - *
-   * Overrides for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-   * If set, `app_engine_routing_override` is used for all tasks in
-   * the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing_override = 1; - * - * @return Whether the appEngineRoutingOverride field is set. - */ - @java.lang.Override - public boolean hasAppEngineRoutingOverride() { - return appEngineRoutingOverride_ != null; - } - /** - * - * - *
-   * Overrides for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-   * If set, `app_engine_routing_override` is used for all tasks in
-   * the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing_override = 1; - * - * @return The appEngineRoutingOverride. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineRouting getAppEngineRoutingOverride() { - return appEngineRoutingOverride_ == null - ? com.google.cloud.tasks.v2beta3.AppEngineRouting.getDefaultInstance() - : appEngineRoutingOverride_; - } - /** - * - * - *
-   * Overrides for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-   * If set, `app_engine_routing_override` is used for all tasks in
-   * the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing_override = 1; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineRoutingOrBuilder - getAppEngineRoutingOverrideOrBuilder() { - return getAppEngineRoutingOverride(); - } - - 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 (appEngineRoutingOverride_ != null) { - output.writeMessage(1, getAppEngineRoutingOverride()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (appEngineRoutingOverride_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, getAppEngineRoutingOverride()); - } - 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.AppEngineHttpQueue)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.AppEngineHttpQueue other = - (com.google.cloud.tasks.v2beta3.AppEngineHttpQueue) obj; - - if (hasAppEngineRoutingOverride() != other.hasAppEngineRoutingOverride()) return false; - if (hasAppEngineRoutingOverride()) { - if (!getAppEngineRoutingOverride().equals(other.getAppEngineRoutingOverride())) 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 (hasAppEngineRoutingOverride()) { - hash = (37 * hash) + APP_ENGINE_ROUTING_OVERRIDE_FIELD_NUMBER; - hash = (53 * hash) + getAppEngineRoutingOverride().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.AppEngineHttpQueue parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineHttpQueue 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.AppEngineHttpQueue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineHttpQueue 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.AppEngineHttpQueue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineHttpQueue 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.AppEngineHttpQueue parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineHttpQueue 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.AppEngineHttpQueue parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineHttpQueue 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.AppEngineHttpQueue 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.AppEngineHttpQueue 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.AppEngineHttpQueue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * App Engine HTTP queue.
-   * The task will be delivered to the App Engine application hostname
-   * specified by its [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] and [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest].
-   * The documentation for [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] explains how the
-   * task's host URL is constructed.
-   * Using [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] requires
-   * [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
-   * Google IAM permission for the project
-   * and the following scope:
-   * `https://www.googleapis.com/auth/cloud-platform`
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.AppEngineHttpQueue} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.AppEngineHttpQueue) - com.google.cloud.tasks.v2beta3.AppEngineHttpQueueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_AppEngineHttpQueue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_AppEngineHttpQueue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.class, - com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (appEngineRoutingOverrideBuilder_ == null) { - appEngineRoutingOverride_ = null; - } else { - appEngineRoutingOverride_ = null; - appEngineRoutingOverrideBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_AppEngineHttpQueue_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineHttpQueue getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineHttpQueue build() { - com.google.cloud.tasks.v2beta3.AppEngineHttpQueue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineHttpQueue buildPartial() { - com.google.cloud.tasks.v2beta3.AppEngineHttpQueue result = - new com.google.cloud.tasks.v2beta3.AppEngineHttpQueue(this); - if (appEngineRoutingOverrideBuilder_ == null) { - result.appEngineRoutingOverride_ = appEngineRoutingOverride_; - } else { - result.appEngineRoutingOverride_ = appEngineRoutingOverrideBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.AppEngineHttpQueue) { - return mergeFrom((com.google.cloud.tasks.v2beta3.AppEngineHttpQueue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.AppEngineHttpQueue other) { - if (other == com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.getDefaultInstance()) - return this; - if (other.hasAppEngineRoutingOverride()) { - mergeAppEngineRoutingOverride(other.getAppEngineRoutingOverride()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getAppEngineRoutingOverrideFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.cloud.tasks.v2beta3.AppEngineRouting appEngineRoutingOverride_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.AppEngineRouting, - com.google.cloud.tasks.v2beta3.AppEngineRouting.Builder, - com.google.cloud.tasks.v2beta3.AppEngineRoutingOrBuilder> - appEngineRoutingOverrideBuilder_; - /** - * - * - *
-     * Overrides for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * If set, `app_engine_routing_override` is used for all tasks in
-     * the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing_override = 1; - * - * @return Whether the appEngineRoutingOverride field is set. - */ - public boolean hasAppEngineRoutingOverride() { - return appEngineRoutingOverrideBuilder_ != null || appEngineRoutingOverride_ != null; - } - /** - * - * - *
-     * Overrides for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * If set, `app_engine_routing_override` is used for all tasks in
-     * the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing_override = 1; - * - * @return The appEngineRoutingOverride. - */ - public com.google.cloud.tasks.v2beta3.AppEngineRouting getAppEngineRoutingOverride() { - if (appEngineRoutingOverrideBuilder_ == null) { - return appEngineRoutingOverride_ == null - ? com.google.cloud.tasks.v2beta3.AppEngineRouting.getDefaultInstance() - : appEngineRoutingOverride_; - } else { - return appEngineRoutingOverrideBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Overrides for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * If set, `app_engine_routing_override` is used for all tasks in
-     * the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing_override = 1; - */ - public Builder setAppEngineRoutingOverride( - com.google.cloud.tasks.v2beta3.AppEngineRouting value) { - if (appEngineRoutingOverrideBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - appEngineRoutingOverride_ = value; - onChanged(); - } else { - appEngineRoutingOverrideBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Overrides for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * If set, `app_engine_routing_override` is used for all tasks in
-     * the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing_override = 1; - */ - public Builder setAppEngineRoutingOverride( - com.google.cloud.tasks.v2beta3.AppEngineRouting.Builder builderForValue) { - if (appEngineRoutingOverrideBuilder_ == null) { - appEngineRoutingOverride_ = builderForValue.build(); - onChanged(); - } else { - appEngineRoutingOverrideBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Overrides for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * If set, `app_engine_routing_override` is used for all tasks in
-     * the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing_override = 1; - */ - public Builder mergeAppEngineRoutingOverride( - com.google.cloud.tasks.v2beta3.AppEngineRouting value) { - if (appEngineRoutingOverrideBuilder_ == null) { - if (appEngineRoutingOverride_ != null) { - appEngineRoutingOverride_ = - com.google.cloud.tasks.v2beta3.AppEngineRouting.newBuilder(appEngineRoutingOverride_) - .mergeFrom(value) - .buildPartial(); - } else { - appEngineRoutingOverride_ = value; - } - onChanged(); - } else { - appEngineRoutingOverrideBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Overrides for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * If set, `app_engine_routing_override` is used for all tasks in
-     * the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing_override = 1; - */ - public Builder clearAppEngineRoutingOverride() { - if (appEngineRoutingOverrideBuilder_ == null) { - appEngineRoutingOverride_ = null; - onChanged(); - } else { - appEngineRoutingOverride_ = null; - appEngineRoutingOverrideBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Overrides for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * If set, `app_engine_routing_override` is used for all tasks in
-     * the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing_override = 1; - */ - public com.google.cloud.tasks.v2beta3.AppEngineRouting.Builder - getAppEngineRoutingOverrideBuilder() { - - onChanged(); - return getAppEngineRoutingOverrideFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Overrides for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * If set, `app_engine_routing_override` is used for all tasks in
-     * the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing_override = 1; - */ - public com.google.cloud.tasks.v2beta3.AppEngineRoutingOrBuilder - getAppEngineRoutingOverrideOrBuilder() { - if (appEngineRoutingOverrideBuilder_ != null) { - return appEngineRoutingOverrideBuilder_.getMessageOrBuilder(); - } else { - return appEngineRoutingOverride_ == null - ? com.google.cloud.tasks.v2beta3.AppEngineRouting.getDefaultInstance() - : appEngineRoutingOverride_; - } - } - /** - * - * - *
-     * Overrides for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * If set, `app_engine_routing_override` is used for all tasks in
-     * the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing_override = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.AppEngineRouting, - com.google.cloud.tasks.v2beta3.AppEngineRouting.Builder, - com.google.cloud.tasks.v2beta3.AppEngineRoutingOrBuilder> - getAppEngineRoutingOverrideFieldBuilder() { - if (appEngineRoutingOverrideBuilder_ == null) { - appEngineRoutingOverrideBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.AppEngineRouting, - com.google.cloud.tasks.v2beta3.AppEngineRouting.Builder, - com.google.cloud.tasks.v2beta3.AppEngineRoutingOrBuilder>( - getAppEngineRoutingOverride(), getParentForChildren(), isClean()); - appEngineRoutingOverride_ = null; - } - return appEngineRoutingOverrideBuilder_; - } - - @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.AppEngineHttpQueue) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.AppEngineHttpQueue) - private static final com.google.cloud.tasks.v2beta3.AppEngineHttpQueue DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.AppEngineHttpQueue(); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineHttpQueue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AppEngineHttpQueue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineHttpQueue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpQueueOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpQueueOrBuilder.java deleted file mode 100644 index 1f9d6f5b..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpQueueOrBuilder.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta3; - -public interface AppEngineHttpQueueOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.AppEngineHttpQueue) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Overrides for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-   * If set, `app_engine_routing_override` is used for all tasks in
-   * the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing_override = 1; - * - * @return Whether the appEngineRoutingOverride field is set. - */ - boolean hasAppEngineRoutingOverride(); - /** - * - * - *
-   * Overrides for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-   * If set, `app_engine_routing_override` is used for all tasks in
-   * the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing_override = 1; - * - * @return The appEngineRoutingOverride. - */ - com.google.cloud.tasks.v2beta3.AppEngineRouting getAppEngineRoutingOverride(); - /** - * - * - *
-   * Overrides for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-   * If set, `app_engine_routing_override` is used for all tasks in
-   * the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing_override = 1; - */ - com.google.cloud.tasks.v2beta3.AppEngineRoutingOrBuilder getAppEngineRoutingOverrideOrBuilder(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequest.java deleted file mode 100644 index 5abb6ed7..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequest.java +++ /dev/null @@ -1,2028 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta3; - -/** - * - * - *
- * App Engine HTTP request.
- * The message defines the HTTP request that is sent to an App Engine app when
- * the task is dispatched.
- * Using [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] requires
- * [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
- * Google IAM permission for the project
- * and the following scope:
- * `https://www.googleapis.com/auth/cloud-platform`
- * The task will be delivered to the App Engine app which belongs to the same
- * project as the queue. For more information, see
- * [How Requests are
- * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
- * and how routing is affected by
- * [dispatch
- * files](https://cloud.google.com/appengine/docs/python/config/dispatchref).
- * Traffic is encrypted during transport and never leaves Google datacenters.
- * Because this traffic is carried over a communication mechanism internal to
- * Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS).
- * The request to the handler, however, will appear to have used the HTTP
- * protocol.
- * The [AppEngineRouting][google.cloud.tasks.v2beta3.AppEngineRouting] used to construct the URL that the task is
- * delivered to can be set at the queue-level or task-level:
- * * If set,
- *   [app_engine_routing_override][google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override]
- *   is used for all tasks in the queue, no matter what the setting
- *   is for the
- *   [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
- * The `url` that the task will be sent to is:
- * * `url =` [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] `+`
- *   [relative_uri][google.cloud.tasks.v2beta3.AppEngineHttpRequest.relative_uri]
- * Tasks can be dispatched to secure app handlers, unsecure app handlers, and
- * URIs restricted with
- * [`login:
- * admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref).
- * Because tasks are not run as any user, they cannot be dispatched to URIs
- * restricted with
- * [`login:
- * required`](https://cloud.google.com/appengine/docs/standard/python/config/appref)
- * Task dispatches also do not follow redirects.
- * The task attempt has succeeded if the app's request handler returns an HTTP
- * response code in the range [`200` - `299`]. The task attempt has failed if
- * the app's handler returns a non-2xx response code or Cloud Tasks does
- * not receive response before the [deadline][google.cloud.tasks.v2beta3.Task.dispatch_deadline]. Failed
- * tasks will be retried according to the
- * [retry configuration][google.cloud.tasks.v2beta3.Queue.retry_config]. `503` (Service Unavailable) is
- * considered an App Engine system error instead of an application error and
- * will cause Cloud Tasks' traffic congestion control to temporarily throttle
- * the queue's dispatches. Unlike other types of task targets, a `429` (Too Many
- * Requests) response from an app handler does not cause traffic congestion
- * control to throttle the queue.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.AppEngineHttpRequest} - */ -public final class AppEngineHttpRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.AppEngineHttpRequest) - AppEngineHttpRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use AppEngineHttpRequest.newBuilder() to construct. - private AppEngineHttpRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AppEngineHttpRequest() { - httpMethod_ = 0; - relativeUri_ = ""; - body_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AppEngineHttpRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_AppEngineHttpRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetHeaders(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_AppEngineHttpRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.class, - com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.Builder.class); - } - - public static final int HTTP_METHOD_FIELD_NUMBER = 1; - private int httpMethod_; - /** - * - * - *
-   * The HTTP method to use for the request. The default is POST.
-   * The app's request handler for the task's target URL must be able to handle
-   * HTTP requests with this http_method, otherwise the task attempt fails with
-   * error code 405 (Method Not Allowed). See [Writing a push task request
-   * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-   * and the App Engine documentation for your runtime on [How Requests are
-   * Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
-   * 
- * - * .google.cloud.tasks.v2beta3.HttpMethod http_method = 1; - * - * @return The enum numeric value on the wire for httpMethod. - */ - @java.lang.Override - public int getHttpMethodValue() { - return httpMethod_; - } - /** - * - * - *
-   * The HTTP method to use for the request. The default is POST.
-   * The app's request handler for the task's target URL must be able to handle
-   * HTTP requests with this http_method, otherwise the task attempt fails with
-   * error code 405 (Method Not Allowed). See [Writing a push task request
-   * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-   * and the App Engine documentation for your runtime on [How Requests are
-   * Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
-   * 
- * - * .google.cloud.tasks.v2beta3.HttpMethod http_method = 1; - * - * @return The httpMethod. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.HttpMethod getHttpMethod() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta3.HttpMethod result = - com.google.cloud.tasks.v2beta3.HttpMethod.valueOf(httpMethod_); - return result == null ? com.google.cloud.tasks.v2beta3.HttpMethod.UNRECOGNIZED : result; - } - - public static final int APP_ENGINE_ROUTING_FIELD_NUMBER = 2; - private com.google.cloud.tasks.v2beta3.AppEngineRouting appEngineRouting_; - /** - * - * - *
-   * Task-level setting for App Engine routing.
-   * If set,
-   * [app_engine_routing_override][google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override]
-   * is used for all tasks in the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing = 2; - * - * @return Whether the appEngineRouting field is set. - */ - @java.lang.Override - public boolean hasAppEngineRouting() { - return appEngineRouting_ != null; - } - /** - * - * - *
-   * Task-level setting for App Engine routing.
-   * If set,
-   * [app_engine_routing_override][google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override]
-   * is used for all tasks in the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing = 2; - * - * @return The appEngineRouting. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineRouting getAppEngineRouting() { - return appEngineRouting_ == null - ? com.google.cloud.tasks.v2beta3.AppEngineRouting.getDefaultInstance() - : appEngineRouting_; - } - /** - * - * - *
-   * Task-level setting for App Engine routing.
-   * If set,
-   * [app_engine_routing_override][google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override]
-   * is used for all tasks in the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing = 2; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineRoutingOrBuilder getAppEngineRoutingOrBuilder() { - return getAppEngineRouting(); - } - - public static final int RELATIVE_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object relativeUri_; - /** - * - * - *
-   * The relative URI.
-   * The relative URI must begin with "/" and must be a valid HTTP relative URI.
-   * It can contain a path and query string arguments.
-   * If the relative URI is empty, then the root path "/" will be used.
-   * No spaces are allowed, and the maximum length allowed is 2083 characters.
-   * 
- * - * string relative_uri = 3; - * - * @return The relativeUri. - */ - @java.lang.Override - public java.lang.String getRelativeUri() { - java.lang.Object ref = relativeUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - relativeUri_ = s; - return s; - } - } - /** - * - * - *
-   * The relative URI.
-   * The relative URI must begin with "/" and must be a valid HTTP relative URI.
-   * It can contain a path and query string arguments.
-   * If the relative URI is empty, then the root path "/" will be used.
-   * No spaces are allowed, and the maximum length allowed is 2083 characters.
-   * 
- * - * string relative_uri = 3; - * - * @return The bytes for relativeUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRelativeUriBytes() { - java.lang.Object ref = relativeUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - relativeUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HEADERS_FIELD_NUMBER = 4; - - private static final class HeadersDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_AppEngineHttpRequest_HeadersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField headers_; - - private com.google.protobuf.MapField internalGetHeaders() { - if (headers_ == null) { - return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); - } - return headers_; - } - - public int getHeadersCount() { - return internalGetHeaders().getMap().size(); - } - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [body][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta3.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public boolean containsHeaders(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetHeaders().getMap().containsKey(key); - } - /** Use {@link #getHeadersMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHeaders() { - return getHeadersMap(); - } - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [body][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta3.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public java.util.Map getHeadersMap() { - return internalGetHeaders().getMap(); - } - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [body][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta3.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHeaders().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [body][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta3.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public java.lang.String getHeadersOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHeaders().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int BODY_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString body_; - /** - * - * - *
-   * HTTP request body.
-   * A request body is allowed only if the HTTP method is POST or PUT. It is
-   * an error to set a body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2beta3.HttpMethod].
-   * 
- * - * bytes body = 5; - * - * @return The body. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBody() { - return body_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (httpMethod_ - != com.google.cloud.tasks.v2beta3.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) { - output.writeEnum(1, httpMethod_); - } - if (appEngineRouting_ != null) { - output.writeMessage(2, getAppEngineRouting()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativeUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, relativeUri_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetHeaders(), HeadersDefaultEntryHolder.defaultEntry, 4); - if (!body_.isEmpty()) { - output.writeBytes(5, body_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (httpMethod_ - != com.google.cloud.tasks.v2beta3.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, httpMethod_); - } - if (appEngineRouting_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAppEngineRouting()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(relativeUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, relativeUri_); - } - for (java.util.Map.Entry entry : - internalGetHeaders().getMap().entrySet()) { - com.google.protobuf.MapEntry headers__ = - HeadersDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, headers__); - } - if (!body_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, body_); - } - 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.AppEngineHttpRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.AppEngineHttpRequest other = - (com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) obj; - - if (httpMethod_ != other.httpMethod_) return false; - if (hasAppEngineRouting() != other.hasAppEngineRouting()) return false; - if (hasAppEngineRouting()) { - if (!getAppEngineRouting().equals(other.getAppEngineRouting())) return false; - } - if (!getRelativeUri().equals(other.getRelativeUri())) return false; - if (!internalGetHeaders().equals(other.internalGetHeaders())) return false; - 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) + HTTP_METHOD_FIELD_NUMBER; - hash = (53 * hash) + httpMethod_; - if (hasAppEngineRouting()) { - hash = (37 * hash) + APP_ENGINE_ROUTING_FIELD_NUMBER; - hash = (53 * hash) + getAppEngineRouting().hashCode(); - } - hash = (37 * hash) + RELATIVE_URI_FIELD_NUMBER; - hash = (53 * hash) + getRelativeUri().hashCode(); - if (!internalGetHeaders().getMap().isEmpty()) { - hash = (37 * hash) + HEADERS_FIELD_NUMBER; - hash = (53 * hash) + internalGetHeaders().hashCode(); - } - 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.AppEngineHttpRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineHttpRequest 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.AppEngineHttpRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineHttpRequest 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.AppEngineHttpRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineHttpRequest 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.AppEngineHttpRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineHttpRequest 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.AppEngineHttpRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineHttpRequest 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.AppEngineHttpRequest 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.AppEngineHttpRequest 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.AppEngineHttpRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * App Engine HTTP request.
-   * The message defines the HTTP request that is sent to an App Engine app when
-   * the task is dispatched.
-   * Using [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] requires
-   * [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
-   * Google IAM permission for the project
-   * and the following scope:
-   * `https://www.googleapis.com/auth/cloud-platform`
-   * The task will be delivered to the App Engine app which belongs to the same
-   * project as the queue. For more information, see
-   * [How Requests are
-   * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-   * and how routing is affected by
-   * [dispatch
-   * files](https://cloud.google.com/appengine/docs/python/config/dispatchref).
-   * Traffic is encrypted during transport and never leaves Google datacenters.
-   * Because this traffic is carried over a communication mechanism internal to
-   * Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS).
-   * The request to the handler, however, will appear to have used the HTTP
-   * protocol.
-   * The [AppEngineRouting][google.cloud.tasks.v2beta3.AppEngineRouting] used to construct the URL that the task is
-   * delivered to can be set at the queue-level or task-level:
-   * * If set,
-   *   [app_engine_routing_override][google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override]
-   *   is used for all tasks in the queue, no matter what the setting
-   *   is for the
-   *   [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-   * The `url` that the task will be sent to is:
-   * * `url =` [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] `+`
-   *   [relative_uri][google.cloud.tasks.v2beta3.AppEngineHttpRequest.relative_uri]
-   * Tasks can be dispatched to secure app handlers, unsecure app handlers, and
-   * URIs restricted with
-   * [`login:
-   * admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref).
-   * Because tasks are not run as any user, they cannot be dispatched to URIs
-   * restricted with
-   * [`login:
-   * required`](https://cloud.google.com/appengine/docs/standard/python/config/appref)
-   * Task dispatches also do not follow redirects.
-   * The task attempt has succeeded if the app's request handler returns an HTTP
-   * response code in the range [`200` - `299`]. The task attempt has failed if
-   * the app's handler returns a non-2xx response code or Cloud Tasks does
-   * not receive response before the [deadline][google.cloud.tasks.v2beta3.Task.dispatch_deadline]. Failed
-   * tasks will be retried according to the
-   * [retry configuration][google.cloud.tasks.v2beta3.Queue.retry_config]. `503` (Service Unavailable) is
-   * considered an App Engine system error instead of an application error and
-   * will cause Cloud Tasks' traffic congestion control to temporarily throttle
-   * the queue's dispatches. Unlike other types of task targets, a `429` (Too Many
-   * Requests) response from an app handler does not cause traffic congestion
-   * control to throttle the queue.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.AppEngineHttpRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.AppEngineHttpRequest) - com.google.cloud.tasks.v2beta3.AppEngineHttpRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_AppEngineHttpRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 4: - return internalGetHeaders(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 4: - return internalGetMutableHeaders(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_AppEngineHttpRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.class, - com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - httpMethod_ = 0; - - if (appEngineRoutingBuilder_ == null) { - appEngineRouting_ = null; - } else { - appEngineRouting_ = null; - appEngineRoutingBuilder_ = null; - } - relativeUri_ = ""; - - internalGetMutableHeaders().clear(); - body_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_AppEngineHttpRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineHttpRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineHttpRequest build() { - com.google.cloud.tasks.v2beta3.AppEngineHttpRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineHttpRequest buildPartial() { - com.google.cloud.tasks.v2beta3.AppEngineHttpRequest result = - new com.google.cloud.tasks.v2beta3.AppEngineHttpRequest(this); - int from_bitField0_ = bitField0_; - result.httpMethod_ = httpMethod_; - if (appEngineRoutingBuilder_ == null) { - result.appEngineRouting_ = appEngineRouting_; - } else { - result.appEngineRouting_ = appEngineRoutingBuilder_.build(); - } - result.relativeUri_ = relativeUri_; - result.headers_ = internalGetHeaders(); - result.headers_.makeImmutable(); - result.body_ = body_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.AppEngineHttpRequest other) { - if (other == com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.getDefaultInstance()) - return this; - if (other.httpMethod_ != 0) { - setHttpMethodValue(other.getHttpMethodValue()); - } - if (other.hasAppEngineRouting()) { - mergeAppEngineRouting(other.getAppEngineRouting()); - } - if (!other.getRelativeUri().isEmpty()) { - relativeUri_ = other.relativeUri_; - onChanged(); - } - internalGetMutableHeaders().mergeFrom(other.internalGetHeaders()); - if (other.getBody() != com.google.protobuf.ByteString.EMPTY) { - setBody(other.getBody()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - httpMethod_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - input.readMessage( - getAppEngineRoutingFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - relativeUri_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry headers__ = - input.readMessage( - HeadersDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableHeaders() - .getMutableMap() - .put(headers__.getKey(), headers__.getValue()); - break; - } // case 34 - case 42: - { - body_ = input.readBytes(); - - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int httpMethod_ = 0; - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * The app's request handler for the task's target URL must be able to handle
-     * HTTP requests with this http_method, otherwise the task attempt fails with
-     * error code 405 (Method Not Allowed). See [Writing a push task request
-     * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-     * and the App Engine documentation for your runtime on [How Requests are
-     * Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
-     * 
- * - * .google.cloud.tasks.v2beta3.HttpMethod http_method = 1; - * - * @return The enum numeric value on the wire for httpMethod. - */ - @java.lang.Override - public int getHttpMethodValue() { - return httpMethod_; - } - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * The app's request handler for the task's target URL must be able to handle
-     * HTTP requests with this http_method, otherwise the task attempt fails with
-     * error code 405 (Method Not Allowed). See [Writing a push task request
-     * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-     * and the App Engine documentation for your runtime on [How Requests are
-     * Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
-     * 
- * - * .google.cloud.tasks.v2beta3.HttpMethod http_method = 1; - * - * @param value The enum numeric value on the wire for httpMethod to set. - * @return This builder for chaining. - */ - public Builder setHttpMethodValue(int value) { - - httpMethod_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * The app's request handler for the task's target URL must be able to handle
-     * HTTP requests with this http_method, otherwise the task attempt fails with
-     * error code 405 (Method Not Allowed). See [Writing a push task request
-     * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-     * and the App Engine documentation for your runtime on [How Requests are
-     * Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
-     * 
- * - * .google.cloud.tasks.v2beta3.HttpMethod http_method = 1; - * - * @return The httpMethod. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.HttpMethod getHttpMethod() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta3.HttpMethod result = - com.google.cloud.tasks.v2beta3.HttpMethod.valueOf(httpMethod_); - return result == null ? com.google.cloud.tasks.v2beta3.HttpMethod.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * The app's request handler for the task's target URL must be able to handle
-     * HTTP requests with this http_method, otherwise the task attempt fails with
-     * error code 405 (Method Not Allowed). See [Writing a push task request
-     * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-     * and the App Engine documentation for your runtime on [How Requests are
-     * Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
-     * 
- * - * .google.cloud.tasks.v2beta3.HttpMethod http_method = 1; - * - * @param value The httpMethod to set. - * @return This builder for chaining. - */ - public Builder setHttpMethod(com.google.cloud.tasks.v2beta3.HttpMethod value) { - if (value == null) { - throw new NullPointerException(); - } - - httpMethod_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * The app's request handler for the task's target URL must be able to handle
-     * HTTP requests with this http_method, otherwise the task attempt fails with
-     * error code 405 (Method Not Allowed). See [Writing a push task request
-     * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-     * and the App Engine documentation for your runtime on [How Requests are
-     * Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
-     * 
- * - * .google.cloud.tasks.v2beta3.HttpMethod http_method = 1; - * - * @return This builder for chaining. - */ - public Builder clearHttpMethod() { - - httpMethod_ = 0; - onChanged(); - return this; - } - - private com.google.cloud.tasks.v2beta3.AppEngineRouting appEngineRouting_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.AppEngineRouting, - com.google.cloud.tasks.v2beta3.AppEngineRouting.Builder, - com.google.cloud.tasks.v2beta3.AppEngineRoutingOrBuilder> - appEngineRoutingBuilder_; - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * If set,
-     * [app_engine_routing_override][google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override]
-     * is used for all tasks in the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing = 2; - * - * @return Whether the appEngineRouting field is set. - */ - public boolean hasAppEngineRouting() { - return appEngineRoutingBuilder_ != null || appEngineRouting_ != null; - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * If set,
-     * [app_engine_routing_override][google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override]
-     * is used for all tasks in the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing = 2; - * - * @return The appEngineRouting. - */ - public com.google.cloud.tasks.v2beta3.AppEngineRouting getAppEngineRouting() { - if (appEngineRoutingBuilder_ == null) { - return appEngineRouting_ == null - ? com.google.cloud.tasks.v2beta3.AppEngineRouting.getDefaultInstance() - : appEngineRouting_; - } else { - return appEngineRoutingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * If set,
-     * [app_engine_routing_override][google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override]
-     * is used for all tasks in the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing = 2; - */ - public Builder setAppEngineRouting(com.google.cloud.tasks.v2beta3.AppEngineRouting value) { - if (appEngineRoutingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - appEngineRouting_ = value; - onChanged(); - } else { - appEngineRoutingBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * If set,
-     * [app_engine_routing_override][google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override]
-     * is used for all tasks in the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing = 2; - */ - public Builder setAppEngineRouting( - com.google.cloud.tasks.v2beta3.AppEngineRouting.Builder builderForValue) { - if (appEngineRoutingBuilder_ == null) { - appEngineRouting_ = builderForValue.build(); - onChanged(); - } else { - appEngineRoutingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * If set,
-     * [app_engine_routing_override][google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override]
-     * is used for all tasks in the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing = 2; - */ - public Builder mergeAppEngineRouting(com.google.cloud.tasks.v2beta3.AppEngineRouting value) { - if (appEngineRoutingBuilder_ == null) { - if (appEngineRouting_ != null) { - appEngineRouting_ = - com.google.cloud.tasks.v2beta3.AppEngineRouting.newBuilder(appEngineRouting_) - .mergeFrom(value) - .buildPartial(); - } else { - appEngineRouting_ = value; - } - onChanged(); - } else { - appEngineRoutingBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * If set,
-     * [app_engine_routing_override][google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override]
-     * is used for all tasks in the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing = 2; - */ - public Builder clearAppEngineRouting() { - if (appEngineRoutingBuilder_ == null) { - appEngineRouting_ = null; - onChanged(); - } else { - appEngineRouting_ = null; - appEngineRoutingBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * If set,
-     * [app_engine_routing_override][google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override]
-     * is used for all tasks in the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing = 2; - */ - public com.google.cloud.tasks.v2beta3.AppEngineRouting.Builder getAppEngineRoutingBuilder() { - - onChanged(); - return getAppEngineRoutingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * If set,
-     * [app_engine_routing_override][google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override]
-     * is used for all tasks in the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing = 2; - */ - public com.google.cloud.tasks.v2beta3.AppEngineRoutingOrBuilder getAppEngineRoutingOrBuilder() { - if (appEngineRoutingBuilder_ != null) { - return appEngineRoutingBuilder_.getMessageOrBuilder(); - } else { - return appEngineRouting_ == null - ? com.google.cloud.tasks.v2beta3.AppEngineRouting.getDefaultInstance() - : appEngineRouting_; - } - } - /** - * - * - *
-     * Task-level setting for App Engine routing.
-     * If set,
-     * [app_engine_routing_override][google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override]
-     * is used for all tasks in the queue, no matter what the setting is for the
-     * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.AppEngineRouting, - com.google.cloud.tasks.v2beta3.AppEngineRouting.Builder, - com.google.cloud.tasks.v2beta3.AppEngineRoutingOrBuilder> - getAppEngineRoutingFieldBuilder() { - if (appEngineRoutingBuilder_ == null) { - appEngineRoutingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.AppEngineRouting, - com.google.cloud.tasks.v2beta3.AppEngineRouting.Builder, - com.google.cloud.tasks.v2beta3.AppEngineRoutingOrBuilder>( - getAppEngineRouting(), getParentForChildren(), isClean()); - appEngineRouting_ = null; - } - return appEngineRoutingBuilder_; - } - - private java.lang.Object relativeUri_ = ""; - /** - * - * - *
-     * The relative URI.
-     * The relative URI must begin with "/" and must be a valid HTTP relative URI.
-     * It can contain a path and query string arguments.
-     * If the relative URI is empty, then the root path "/" will be used.
-     * No spaces are allowed, and the maximum length allowed is 2083 characters.
-     * 
- * - * string relative_uri = 3; - * - * @return The relativeUri. - */ - public java.lang.String getRelativeUri() { - java.lang.Object ref = relativeUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - relativeUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The relative URI.
-     * The relative URI must begin with "/" and must be a valid HTTP relative URI.
-     * It can contain a path and query string arguments.
-     * If the relative URI is empty, then the root path "/" will be used.
-     * No spaces are allowed, and the maximum length allowed is 2083 characters.
-     * 
- * - * string relative_uri = 3; - * - * @return The bytes for relativeUri. - */ - public com.google.protobuf.ByteString getRelativeUriBytes() { - java.lang.Object ref = relativeUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - relativeUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The relative URI.
-     * The relative URI must begin with "/" and must be a valid HTTP relative URI.
-     * It can contain a path and query string arguments.
-     * If the relative URI is empty, then the root path "/" will be used.
-     * No spaces are allowed, and the maximum length allowed is 2083 characters.
-     * 
- * - * string relative_uri = 3; - * - * @param value The relativeUri to set. - * @return This builder for chaining. - */ - public Builder setRelativeUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - relativeUri_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The relative URI.
-     * The relative URI must begin with "/" and must be a valid HTTP relative URI.
-     * It can contain a path and query string arguments.
-     * If the relative URI is empty, then the root path "/" will be used.
-     * No spaces are allowed, and the maximum length allowed is 2083 characters.
-     * 
- * - * string relative_uri = 3; - * - * @return This builder for chaining. - */ - public Builder clearRelativeUri() { - - relativeUri_ = getDefaultInstance().getRelativeUri(); - onChanged(); - return this; - } - /** - * - * - *
-     * The relative URI.
-     * The relative URI must begin with "/" and must be a valid HTTP relative URI.
-     * It can contain a path and query string arguments.
-     * If the relative URI is empty, then the root path "/" will be used.
-     * No spaces are allowed, and the maximum length allowed is 2083 characters.
-     * 
- * - * string relative_uri = 3; - * - * @param value The bytes for relativeUri to set. - * @return This builder for chaining. - */ - public Builder setRelativeUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - relativeUri_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField headers_; - - private com.google.protobuf.MapField internalGetHeaders() { - if (headers_ == null) { - return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); - } - return headers_; - } - - private com.google.protobuf.MapField - internalGetMutableHeaders() { - onChanged(); - ; - if (headers_ == null) { - headers_ = com.google.protobuf.MapField.newMapField(HeadersDefaultEntryHolder.defaultEntry); - } - if (!headers_.isMutable()) { - headers_ = headers_.copy(); - } - return headers_; - } - - public int getHeadersCount() { - return internalGetHeaders().getMap().size(); - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * Repeated headers are not supported but a header value can contain commas.
-     * Cloud Tasks sets some headers to default values:
-     * * `User-Agent`: By default, this header is
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-     *   This header can be modified, but Cloud Tasks will append
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-     *   modified `User-Agent`.
-     * If the task has a [body][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body], Cloud
-     * Tasks sets the following headers:
-     * * `Content-Type`: By default, the `Content-Type` header is set to
-     *   `"application/octet-stream"`. The default can be overridden by explicitly
-     *   setting `Content-Type` to a particular media type when the
-     *   [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     *   For example, `Content-Type` can be set to `"application/json"`.
-     * * `Content-Length`: This is computed by Cloud Tasks. This value is
-     *   output only.   It cannot be changed.
-     * The headers below cannot be set or overridden:
-     * * `Host`
-     * * `X-Google-*`
-     * * `X-AppEngine-*`
-     * In addition, Cloud Tasks sets some headers when the task is dispatched,
-     * such as headers containing information about the task; see
-     * [request
-     * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-     * These headers are set only when the task is dispatched, so they are not
-     * visible when the task is returned in a Cloud Tasks response.
-     * Although there is no specific limit for the maximum number of headers or
-     * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta3.Task]. For more
-     * information, see the [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] documentation.
-     * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public boolean containsHeaders(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetHeaders().getMap().containsKey(key); - } - /** Use {@link #getHeadersMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHeaders() { - return getHeadersMap(); - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * Repeated headers are not supported but a header value can contain commas.
-     * Cloud Tasks sets some headers to default values:
-     * * `User-Agent`: By default, this header is
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-     *   This header can be modified, but Cloud Tasks will append
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-     *   modified `User-Agent`.
-     * If the task has a [body][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body], Cloud
-     * Tasks sets the following headers:
-     * * `Content-Type`: By default, the `Content-Type` header is set to
-     *   `"application/octet-stream"`. The default can be overridden by explicitly
-     *   setting `Content-Type` to a particular media type when the
-     *   [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     *   For example, `Content-Type` can be set to `"application/json"`.
-     * * `Content-Length`: This is computed by Cloud Tasks. This value is
-     *   output only.   It cannot be changed.
-     * The headers below cannot be set or overridden:
-     * * `Host`
-     * * `X-Google-*`
-     * * `X-AppEngine-*`
-     * In addition, Cloud Tasks sets some headers when the task is dispatched,
-     * such as headers containing information about the task; see
-     * [request
-     * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-     * These headers are set only when the task is dispatched, so they are not
-     * visible when the task is returned in a Cloud Tasks response.
-     * Although there is no specific limit for the maximum number of headers or
-     * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta3.Task]. For more
-     * information, see the [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] documentation.
-     * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public java.util.Map getHeadersMap() { - return internalGetHeaders().getMap(); - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * Repeated headers are not supported but a header value can contain commas.
-     * Cloud Tasks sets some headers to default values:
-     * * `User-Agent`: By default, this header is
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-     *   This header can be modified, but Cloud Tasks will append
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-     *   modified `User-Agent`.
-     * If the task has a [body][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body], Cloud
-     * Tasks sets the following headers:
-     * * `Content-Type`: By default, the `Content-Type` header is set to
-     *   `"application/octet-stream"`. The default can be overridden by explicitly
-     *   setting `Content-Type` to a particular media type when the
-     *   [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     *   For example, `Content-Type` can be set to `"application/json"`.
-     * * `Content-Length`: This is computed by Cloud Tasks. This value is
-     *   output only.   It cannot be changed.
-     * The headers below cannot be set or overridden:
-     * * `Host`
-     * * `X-Google-*`
-     * * `X-AppEngine-*`
-     * In addition, Cloud Tasks sets some headers when the task is dispatched,
-     * such as headers containing information about the task; see
-     * [request
-     * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-     * These headers are set only when the task is dispatched, so they are not
-     * visible when the task is returned in a Cloud Tasks response.
-     * Although there is no specific limit for the maximum number of headers or
-     * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta3.Task]. For more
-     * information, see the [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] documentation.
-     * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public java.lang.String getHeadersOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHeaders().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * Repeated headers are not supported but a header value can contain commas.
-     * Cloud Tasks sets some headers to default values:
-     * * `User-Agent`: By default, this header is
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-     *   This header can be modified, but Cloud Tasks will append
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-     *   modified `User-Agent`.
-     * If the task has a [body][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body], Cloud
-     * Tasks sets the following headers:
-     * * `Content-Type`: By default, the `Content-Type` header is set to
-     *   `"application/octet-stream"`. The default can be overridden by explicitly
-     *   setting `Content-Type` to a particular media type when the
-     *   [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     *   For example, `Content-Type` can be set to `"application/json"`.
-     * * `Content-Length`: This is computed by Cloud Tasks. This value is
-     *   output only.   It cannot be changed.
-     * The headers below cannot be set or overridden:
-     * * `Host`
-     * * `X-Google-*`
-     * * `X-AppEngine-*`
-     * In addition, Cloud Tasks sets some headers when the task is dispatched,
-     * such as headers containing information about the task; see
-     * [request
-     * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-     * These headers are set only when the task is dispatched, so they are not
-     * visible when the task is returned in a Cloud Tasks response.
-     * Although there is no specific limit for the maximum number of headers or
-     * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta3.Task]. For more
-     * information, see the [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] documentation.
-     * 
- * - * map<string, string> headers = 4; - */ - @java.lang.Override - public java.lang.String getHeadersOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHeaders().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearHeaders() { - internalGetMutableHeaders().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * Repeated headers are not supported but a header value can contain commas.
-     * Cloud Tasks sets some headers to default values:
-     * * `User-Agent`: By default, this header is
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-     *   This header can be modified, but Cloud Tasks will append
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-     *   modified `User-Agent`.
-     * If the task has a [body][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body], Cloud
-     * Tasks sets the following headers:
-     * * `Content-Type`: By default, the `Content-Type` header is set to
-     *   `"application/octet-stream"`. The default can be overridden by explicitly
-     *   setting `Content-Type` to a particular media type when the
-     *   [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     *   For example, `Content-Type` can be set to `"application/json"`.
-     * * `Content-Length`: This is computed by Cloud Tasks. This value is
-     *   output only.   It cannot be changed.
-     * The headers below cannot be set or overridden:
-     * * `Host`
-     * * `X-Google-*`
-     * * `X-AppEngine-*`
-     * In addition, Cloud Tasks sets some headers when the task is dispatched,
-     * such as headers containing information about the task; see
-     * [request
-     * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-     * These headers are set only when the task is dispatched, so they are not
-     * visible when the task is returned in a Cloud Tasks response.
-     * Although there is no specific limit for the maximum number of headers or
-     * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta3.Task]. For more
-     * information, see the [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] documentation.
-     * 
- * - * map<string, string> headers = 4; - */ - public Builder removeHeaders(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableHeaders().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableHeaders() { - return internalGetMutableHeaders().getMutableMap(); - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * Repeated headers are not supported but a header value can contain commas.
-     * Cloud Tasks sets some headers to default values:
-     * * `User-Agent`: By default, this header is
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-     *   This header can be modified, but Cloud Tasks will append
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-     *   modified `User-Agent`.
-     * If the task has a [body][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body], Cloud
-     * Tasks sets the following headers:
-     * * `Content-Type`: By default, the `Content-Type` header is set to
-     *   `"application/octet-stream"`. The default can be overridden by explicitly
-     *   setting `Content-Type` to a particular media type when the
-     *   [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     *   For example, `Content-Type` can be set to `"application/json"`.
-     * * `Content-Length`: This is computed by Cloud Tasks. This value is
-     *   output only.   It cannot be changed.
-     * The headers below cannot be set or overridden:
-     * * `Host`
-     * * `X-Google-*`
-     * * `X-AppEngine-*`
-     * In addition, Cloud Tasks sets some headers when the task is dispatched,
-     * such as headers containing information about the task; see
-     * [request
-     * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-     * These headers are set only when the task is dispatched, so they are not
-     * visible when the task is returned in a Cloud Tasks response.
-     * Although there is no specific limit for the maximum number of headers or
-     * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta3.Task]. For more
-     * information, see the [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] documentation.
-     * 
- * - * map<string, string> headers = 4; - */ - public Builder putHeaders(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableHeaders().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * Repeated headers are not supported but a header value can contain commas.
-     * Cloud Tasks sets some headers to default values:
-     * * `User-Agent`: By default, this header is
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-     *   This header can be modified, but Cloud Tasks will append
-     *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-     *   modified `User-Agent`.
-     * If the task has a [body][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body], Cloud
-     * Tasks sets the following headers:
-     * * `Content-Type`: By default, the `Content-Type` header is set to
-     *   `"application/octet-stream"`. The default can be overridden by explicitly
-     *   setting `Content-Type` to a particular media type when the
-     *   [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     *   For example, `Content-Type` can be set to `"application/json"`.
-     * * `Content-Length`: This is computed by Cloud Tasks. This value is
-     *   output only.   It cannot be changed.
-     * The headers below cannot be set or overridden:
-     * * `Host`
-     * * `X-Google-*`
-     * * `X-AppEngine-*`
-     * In addition, Cloud Tasks sets some headers when the task is dispatched,
-     * such as headers containing information about the task; see
-     * [request
-     * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-     * These headers are set only when the task is dispatched, so they are not
-     * visible when the task is returned in a Cloud Tasks response.
-     * Although there is no specific limit for the maximum number of headers or
-     * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta3.Task]. For more
-     * information, see the [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] documentation.
-     * 
- * - * map<string, string> headers = 4; - */ - public Builder putAllHeaders(java.util.Map values) { - internalGetMutableHeaders().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; - /** - * - * - *
-     * HTTP request body.
-     * A request body is allowed only if the HTTP method is POST or PUT. It is
-     * an error to set a body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2beta3.HttpMethod].
-     * 
- * - * bytes body = 5; - * - * @return The body. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBody() { - return body_; - } - /** - * - * - *
-     * HTTP request body.
-     * A request body is allowed only if the HTTP method is POST or PUT. It is
-     * an error to set a body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2beta3.HttpMethod].
-     * 
- * - * bytes body = 5; - * - * @param value The body to set. - * @return This builder for chaining. - */ - public Builder setBody(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - body_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * HTTP request body.
-     * A request body is allowed only if the HTTP method is POST or PUT. It is
-     * an error to set a body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2beta3.HttpMethod].
-     * 
- * - * bytes body = 5; - * - * @return This builder for chaining. - */ - public Builder clearBody() { - - body_ = getDefaultInstance().getBody(); - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.AppEngineHttpRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.AppEngineHttpRequest) - private static final com.google.cloud.tasks.v2beta3.AppEngineHttpRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.AppEngineHttpRequest(); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineHttpRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AppEngineHttpRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineHttpRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequestOrBuilder.java deleted file mode 100644 index b7415b57..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequestOrBuilder.java +++ /dev/null @@ -1,376 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta3; - -public interface AppEngineHttpRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.AppEngineHttpRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The HTTP method to use for the request. The default is POST.
-   * The app's request handler for the task's target URL must be able to handle
-   * HTTP requests with this http_method, otherwise the task attempt fails with
-   * error code 405 (Method Not Allowed). See [Writing a push task request
-   * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-   * and the App Engine documentation for your runtime on [How Requests are
-   * Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
-   * 
- * - * .google.cloud.tasks.v2beta3.HttpMethod http_method = 1; - * - * @return The enum numeric value on the wire for httpMethod. - */ - int getHttpMethodValue(); - /** - * - * - *
-   * The HTTP method to use for the request. The default is POST.
-   * The app's request handler for the task's target URL must be able to handle
-   * HTTP requests with this http_method, otherwise the task attempt fails with
-   * error code 405 (Method Not Allowed). See [Writing a push task request
-   * handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
-   * and the App Engine documentation for your runtime on [How Requests are
-   * Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled).
-   * 
- * - * .google.cloud.tasks.v2beta3.HttpMethod http_method = 1; - * - * @return The httpMethod. - */ - com.google.cloud.tasks.v2beta3.HttpMethod getHttpMethod(); - - /** - * - * - *
-   * Task-level setting for App Engine routing.
-   * If set,
-   * [app_engine_routing_override][google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override]
-   * is used for all tasks in the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing = 2; - * - * @return Whether the appEngineRouting field is set. - */ - boolean hasAppEngineRouting(); - /** - * - * - *
-   * Task-level setting for App Engine routing.
-   * If set,
-   * [app_engine_routing_override][google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override]
-   * is used for all tasks in the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing = 2; - * - * @return The appEngineRouting. - */ - com.google.cloud.tasks.v2beta3.AppEngineRouting getAppEngineRouting(); - /** - * - * - *
-   * Task-level setting for App Engine routing.
-   * If set,
-   * [app_engine_routing_override][google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override]
-   * is used for all tasks in the queue, no matter what the setting is for the
-   * [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing].
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineRouting app_engine_routing = 2; - */ - com.google.cloud.tasks.v2beta3.AppEngineRoutingOrBuilder getAppEngineRoutingOrBuilder(); - - /** - * - * - *
-   * The relative URI.
-   * The relative URI must begin with "/" and must be a valid HTTP relative URI.
-   * It can contain a path and query string arguments.
-   * If the relative URI is empty, then the root path "/" will be used.
-   * No spaces are allowed, and the maximum length allowed is 2083 characters.
-   * 
- * - * string relative_uri = 3; - * - * @return The relativeUri. - */ - java.lang.String getRelativeUri(); - /** - * - * - *
-   * The relative URI.
-   * The relative URI must begin with "/" and must be a valid HTTP relative URI.
-   * It can contain a path and query string arguments.
-   * If the relative URI is empty, then the root path "/" will be used.
-   * No spaces are allowed, and the maximum length allowed is 2083 characters.
-   * 
- * - * string relative_uri = 3; - * - * @return The bytes for relativeUri. - */ - com.google.protobuf.ByteString getRelativeUriBytes(); - - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [body][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta3.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - int getHeadersCount(); - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [body][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta3.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - boolean containsHeaders(java.lang.String key); - /** Use {@link #getHeadersMap()} instead. */ - @java.lang.Deprecated - java.util.Map getHeaders(); - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [body][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta3.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - java.util.Map getHeadersMap(); - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [body][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta3.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - - /* nullable */ - java.lang.String getHeadersOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * Repeated headers are not supported but a header value can contain commas.
-   * Cloud Tasks sets some headers to default values:
-   * * `User-Agent`: By default, this header is
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
-   *   This header can be modified, but Cloud Tasks will append
-   *   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
-   *   modified `User-Agent`.
-   * If the task has a [body][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body], Cloud
-   * Tasks sets the following headers:
-   * * `Content-Type`: By default, the `Content-Type` header is set to
-   *   `"application/octet-stream"`. The default can be overridden by explicitly
-   *   setting `Content-Type` to a particular media type when the
-   *   [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *   For example, `Content-Type` can be set to `"application/json"`.
-   * * `Content-Length`: This is computed by Cloud Tasks. This value is
-   *   output only.   It cannot be changed.
-   * The headers below cannot be set or overridden:
-   * * `Host`
-   * * `X-Google-*`
-   * * `X-AppEngine-*`
-   * In addition, Cloud Tasks sets some headers when the task is dispatched,
-   * such as headers containing information about the task; see
-   * [request
-   * headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers).
-   * These headers are set only when the task is dispatched, so they are not
-   * visible when the task is returned in a Cloud Tasks response.
-   * Although there is no specific limit for the maximum number of headers or
-   * the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta3.Task]. For more
-   * information, see the [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] documentation.
-   * 
- * - * map<string, string> headers = 4; - */ - java.lang.String getHeadersOrThrow(java.lang.String key); - - /** - * - * - *
-   * HTTP request body.
-   * A request body is allowed only if the HTTP method is POST or PUT. It is
-   * an error to set a body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2beta3.HttpMethod].
-   * 
- * - * bytes body = 5; - * - * @return The body. - */ - com.google.protobuf.ByteString getBody(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRouting.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRouting.java deleted file mode 100644 index 82cb48cf..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRouting.java +++ /dev/null @@ -1,1479 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta3; - -/** - * - * - *
- * App Engine Routing.
- * Defines routing characteristics specific to App Engine - service, version,
- * and instance.
- * For more information about services, versions, and instances see
- * [An Overview of App
- * Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
- * [Microservices Architecture on Google App
- * Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
- * [App Engine Standard request
- * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
- * and [App Engine Flex request
- * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.AppEngineRouting} - */ -public final class AppEngineRouting extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.AppEngineRouting) - AppEngineRoutingOrBuilder { - private static final long serialVersionUID = 0L; - // Use AppEngineRouting.newBuilder() to construct. - private AppEngineRouting(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private AppEngineRouting() { - service_ = ""; - version_ = ""; - instance_ = ""; - host_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new AppEngineRouting(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_AppEngineRouting_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_AppEngineRouting_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.AppEngineRouting.class, - com.google.cloud.tasks.v2beta3.AppEngineRouting.Builder.class); - } - - public static final int SERVICE_FIELD_NUMBER = 1; - private volatile java.lang.Object service_; - /** - * - * - *
-   * App service.
-   * By default, the task is sent to the service which is the default
-   * service when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string service = 1; - * - * @return The service. - */ - @java.lang.Override - public java.lang.String getService() { - java.lang.Object ref = service_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - service_ = s; - return s; - } - } - /** - * - * - *
-   * App service.
-   * By default, the task is sent to the service which is the default
-   * service when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string service = 1; - * - * @return The bytes for service. - */ - @java.lang.Override - public com.google.protobuf.ByteString getServiceBytes() { - java.lang.Object ref = service_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - service_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object version_; - /** - * - * - *
-   * App version.
-   * By default, the task is sent to the version which is the default
-   * version when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string version = 2; - * - * @return The version. - */ - @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - * - * - *
-   * App version.
-   * By default, the task is sent to the version which is the default
-   * version when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string version = 2; - * - * @return The bytes for version. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INSTANCE_FIELD_NUMBER = 3; - private volatile java.lang.Object instance_; - /** - * - * - *
-   * App instance.
-   * By default, the task is sent to an instance which is available when
-   * the task is attempted.
-   * Requests can only be sent to a specific instance if
-   * [manual scaling is used in App Engine
-   * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-   * App Engine Flex does not support instances. For more information, see
-   * [App Engine Standard request
-   * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-   * and [App Engine Flex request
-   * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-   * 
- * - * string instance = 3; - * - * @return The instance. - */ - @java.lang.Override - public java.lang.String getInstance() { - java.lang.Object ref = instance_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instance_ = s; - return s; - } - } - /** - * - * - *
-   * App instance.
-   * By default, the task is sent to an instance which is available when
-   * the task is attempted.
-   * Requests can only be sent to a specific instance if
-   * [manual scaling is used in App Engine
-   * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-   * App Engine Flex does not support instances. For more information, see
-   * [App Engine Standard request
-   * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-   * and [App Engine Flex request
-   * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-   * 
- * - * string instance = 3; - * - * @return The bytes for instance. - */ - @java.lang.Override - public com.google.protobuf.ByteString getInstanceBytes() { - java.lang.Object ref = instance_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instance_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HOST_FIELD_NUMBER = 4; - private volatile java.lang.Object host_; - /** - * - * - *
-   * Output only. The host that the task is sent to.
-   * The host is constructed from the domain name of the app associated with
-   * the queue's project ID (for example <app-id>.appspot.com), and the
-   * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service], [version][google.cloud.tasks.v2beta3.AppEngineRouting.version],
-   * and [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. Tasks which were created using
-   * the App Engine SDK might have a custom domain name.
-   * For more information, see
-   * [How Requests are
-   * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-   * 
- * - * string host = 4; - * - * @return The host. - */ - @java.lang.Override - public java.lang.String getHost() { - java.lang.Object ref = host_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - host_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. The host that the task is sent to.
-   * The host is constructed from the domain name of the app associated with
-   * the queue's project ID (for example <app-id>.appspot.com), and the
-   * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service], [version][google.cloud.tasks.v2beta3.AppEngineRouting.version],
-   * and [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. Tasks which were created using
-   * the App Engine SDK might have a custom domain name.
-   * For more information, see
-   * [How Requests are
-   * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-   * 
- * - * string host = 4; - * - * @return The bytes for host. - */ - @java.lang.Override - public com.google.protobuf.ByteString getHostBytes() { - java.lang.Object ref = host_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - host_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instance_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, host_); - } - 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(service_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, service_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instance_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instance_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, host_); - } - 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.AppEngineRouting)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.AppEngineRouting other = - (com.google.cloud.tasks.v2beta3.AppEngineRouting) obj; - - if (!getService().equals(other.getService())) return false; - if (!getVersion().equals(other.getVersion())) return false; - if (!getInstance().equals(other.getInstance())) return false; - if (!getHost().equals(other.getHost())) return false; - if (!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) + SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getService().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + INSTANCE_FIELD_NUMBER; - hash = (53 * hash) + getInstance().hashCode(); - hash = (37 * hash) + HOST_FIELD_NUMBER; - hash = (53 * hash) + getHost().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.AppEngineRouting parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineRouting parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineRouting parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineRouting parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineRouting parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineRouting parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineRouting parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineRouting parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineRouting parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineRouting parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineRouting parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineRouting parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta3.AppEngineRouting prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * App Engine Routing.
-   * Defines routing characteristics specific to App Engine - service, version,
-   * and instance.
-   * For more information about services, versions, and instances see
-   * [An Overview of App
-   * Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
-   * [Microservices Architecture on Google App
-   * Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
-   * [App Engine Standard request
-   * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
-   * and [App Engine Flex request
-   * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.AppEngineRouting} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.AppEngineRouting) - com.google.cloud.tasks.v2beta3.AppEngineRoutingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_AppEngineRouting_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_AppEngineRouting_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.AppEngineRouting.class, - com.google.cloud.tasks.v2beta3.AppEngineRouting.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.AppEngineRouting.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - service_ = ""; - - version_ = ""; - - instance_ = ""; - - host_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_AppEngineRouting_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineRouting getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.AppEngineRouting.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineRouting build() { - com.google.cloud.tasks.v2beta3.AppEngineRouting result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineRouting buildPartial() { - com.google.cloud.tasks.v2beta3.AppEngineRouting result = - new com.google.cloud.tasks.v2beta3.AppEngineRouting(this); - result.service_ = service_; - result.version_ = version_; - result.instance_ = instance_; - result.host_ = host_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.AppEngineRouting) { - return mergeFrom((com.google.cloud.tasks.v2beta3.AppEngineRouting) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.AppEngineRouting other) { - if (other == com.google.cloud.tasks.v2beta3.AppEngineRouting.getDefaultInstance()) - return this; - if (!other.getService().isEmpty()) { - service_ = other.service_; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (!other.getInstance().isEmpty()) { - instance_ = other.instance_; - onChanged(); - } - if (!other.getHost().isEmpty()) { - host_ = other.host_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - service_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - version_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - instance_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - host_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object service_ = ""; - /** - * - * - *
-     * App service.
-     * By default, the task is sent to the service which is the default
-     * service when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string service = 1; - * - * @return The service. - */ - public java.lang.String getService() { - java.lang.Object ref = service_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - service_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * App service.
-     * By default, the task is sent to the service which is the default
-     * service when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string service = 1; - * - * @return The bytes for service. - */ - public com.google.protobuf.ByteString getServiceBytes() { - java.lang.Object ref = service_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - service_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * App service.
-     * By default, the task is sent to the service which is the default
-     * service when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string service = 1; - * - * @param value The service to set. - * @return This builder for chaining. - */ - public Builder setService(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - service_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * App service.
-     * By default, the task is sent to the service which is the default
-     * service when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string service = 1; - * - * @return This builder for chaining. - */ - public Builder clearService() { - - service_ = getDefaultInstance().getService(); - onChanged(); - return this; - } - /** - * - * - *
-     * App service.
-     * By default, the task is sent to the service which is the default
-     * service when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string service = 1; - * - * @param value The bytes for service to set. - * @return This builder for chaining. - */ - public Builder setServiceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - service_ = value; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - * - * - *
-     * App version.
-     * By default, the task is sent to the version which is the default
-     * version when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string version = 2; - * - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * App version.
-     * By default, the task is sent to the version which is the default
-     * version when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string version = 2; - * - * @return The bytes for version. - */ - public com.google.protobuf.ByteString getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * App version.
-     * By default, the task is sent to the version which is the default
-     * version when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string version = 2; - * - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * App version.
-     * By default, the task is sent to the version which is the default
-     * version when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string version = 2; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - * - * - *
-     * App version.
-     * By default, the task is sent to the version which is the default
-     * version when the task is attempted.
-     * For some queues or tasks which were created using the App Engine
-     * Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable
-     * into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks
-     * which were created using the App Engine SDK use a custom domain
-     * name; custom domains are not parsed by Cloud Tasks. If
-     * [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then
-     * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-     * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-     * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string.
-     * 
- * - * string version = 2; - * - * @param value The bytes for version to set. - * @return This builder for chaining. - */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private java.lang.Object instance_ = ""; - /** - * - * - *
-     * App instance.
-     * By default, the task is sent to an instance which is available when
-     * the task is attempted.
-     * Requests can only be sent to a specific instance if
-     * [manual scaling is used in App Engine
-     * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-     * App Engine Flex does not support instances. For more information, see
-     * [App Engine Standard request
-     * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-     * and [App Engine Flex request
-     * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-     * 
- * - * string instance = 3; - * - * @return The instance. - */ - public java.lang.String getInstance() { - java.lang.Object ref = instance_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instance_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * App instance.
-     * By default, the task is sent to an instance which is available when
-     * the task is attempted.
-     * Requests can only be sent to a specific instance if
-     * [manual scaling is used in App Engine
-     * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-     * App Engine Flex does not support instances. For more information, see
-     * [App Engine Standard request
-     * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-     * and [App Engine Flex request
-     * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-     * 
- * - * string instance = 3; - * - * @return The bytes for instance. - */ - public com.google.protobuf.ByteString getInstanceBytes() { - java.lang.Object ref = instance_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instance_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * App instance.
-     * By default, the task is sent to an instance which is available when
-     * the task is attempted.
-     * Requests can only be sent to a specific instance if
-     * [manual scaling is used in App Engine
-     * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-     * App Engine Flex does not support instances. For more information, see
-     * [App Engine Standard request
-     * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-     * and [App Engine Flex request
-     * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-     * 
- * - * string instance = 3; - * - * @param value The instance to set. - * @return This builder for chaining. - */ - public Builder setInstance(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - instance_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * App instance.
-     * By default, the task is sent to an instance which is available when
-     * the task is attempted.
-     * Requests can only be sent to a specific instance if
-     * [manual scaling is used in App Engine
-     * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-     * App Engine Flex does not support instances. For more information, see
-     * [App Engine Standard request
-     * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-     * and [App Engine Flex request
-     * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-     * 
- * - * string instance = 3; - * - * @return This builder for chaining. - */ - public Builder clearInstance() { - - instance_ = getDefaultInstance().getInstance(); - onChanged(); - return this; - } - /** - * - * - *
-     * App instance.
-     * By default, the task is sent to an instance which is available when
-     * the task is attempted.
-     * Requests can only be sent to a specific instance if
-     * [manual scaling is used in App Engine
-     * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-     * App Engine Flex does not support instances. For more information, see
-     * [App Engine Standard request
-     * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-     * and [App Engine Flex request
-     * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-     * 
- * - * string instance = 3; - * - * @param value The bytes for instance to set. - * @return This builder for chaining. - */ - public Builder setInstanceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - instance_ = value; - onChanged(); - return this; - } - - private java.lang.Object host_ = ""; - /** - * - * - *
-     * Output only. The host that the task is sent to.
-     * The host is constructed from the domain name of the app associated with
-     * the queue's project ID (for example <app-id>.appspot.com), and the
-     * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service], [version][google.cloud.tasks.v2beta3.AppEngineRouting.version],
-     * and [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. Tasks which were created using
-     * the App Engine SDK might have a custom domain name.
-     * For more information, see
-     * [How Requests are
-     * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-     * 
- * - * string host = 4; - * - * @return The host. - */ - public java.lang.String getHost() { - java.lang.Object ref = host_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - host_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. The host that the task is sent to.
-     * The host is constructed from the domain name of the app associated with
-     * the queue's project ID (for example <app-id>.appspot.com), and the
-     * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service], [version][google.cloud.tasks.v2beta3.AppEngineRouting.version],
-     * and [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. Tasks which were created using
-     * the App Engine SDK might have a custom domain name.
-     * For more information, see
-     * [How Requests are
-     * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-     * 
- * - * string host = 4; - * - * @return The bytes for host. - */ - public com.google.protobuf.ByteString getHostBytes() { - java.lang.Object ref = host_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - host_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. The host that the task is sent to.
-     * The host is constructed from the domain name of the app associated with
-     * the queue's project ID (for example <app-id>.appspot.com), and the
-     * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service], [version][google.cloud.tasks.v2beta3.AppEngineRouting.version],
-     * and [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. Tasks which were created using
-     * the App Engine SDK might have a custom domain name.
-     * For more information, see
-     * [How Requests are
-     * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-     * 
- * - * string host = 4; - * - * @param value The host to set. - * @return This builder for chaining. - */ - public Builder setHost(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - host_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The host that the task is sent to.
-     * The host is constructed from the domain name of the app associated with
-     * the queue's project ID (for example <app-id>.appspot.com), and the
-     * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service], [version][google.cloud.tasks.v2beta3.AppEngineRouting.version],
-     * and [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. Tasks which were created using
-     * the App Engine SDK might have a custom domain name.
-     * For more information, see
-     * [How Requests are
-     * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-     * 
- * - * string host = 4; - * - * @return This builder for chaining. - */ - public Builder clearHost() { - - host_ = getDefaultInstance().getHost(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The host that the task is sent to.
-     * The host is constructed from the domain name of the app associated with
-     * the queue's project ID (for example <app-id>.appspot.com), and the
-     * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service], [version][google.cloud.tasks.v2beta3.AppEngineRouting.version],
-     * and [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. Tasks which were created using
-     * the App Engine SDK might have a custom domain name.
-     * For more information, see
-     * [How Requests are
-     * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-     * 
- * - * string host = 4; - * - * @param value The bytes for host to set. - * @return This builder for chaining. - */ - public Builder setHostBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - host_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.AppEngineRouting) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.AppEngineRouting) - private static final com.google.cloud.tasks.v2beta3.AppEngineRouting DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.AppEngineRouting(); - } - - public static com.google.cloud.tasks.v2beta3.AppEngineRouting getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AppEngineRouting parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineRouting getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRoutingOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRoutingOrBuilder.java deleted file mode 100644 index b6a7c17e..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRoutingOrBuilder.java +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta3; - -public interface AppEngineRoutingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.AppEngineRouting) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * App service.
-   * By default, the task is sent to the service which is the default
-   * service when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string service = 1; - * - * @return The service. - */ - java.lang.String getService(); - /** - * - * - *
-   * App service.
-   * By default, the task is sent to the service which is the default
-   * service when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string service = 1; - * - * @return The bytes for service. - */ - com.google.protobuf.ByteString getServiceBytes(); - - /** - * - * - *
-   * App version.
-   * By default, the task is sent to the version which is the default
-   * version when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string version = 2; - * - * @return The version. - */ - java.lang.String getVersion(); - /** - * - * - *
-   * App version.
-   * By default, the task is sent to the version which is the default
-   * version when the task is attempted.
-   * For some queues or tasks which were created using the App Engine
-   * Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable
-   * into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks
-   * which were created using the App Engine SDK use a custom domain
-   * name; custom domains are not parsed by Cloud Tasks. If
-   * [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then
-   * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service],
-   * [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and
-   * [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string.
-   * 
- * - * string version = 2; - * - * @return The bytes for version. - */ - com.google.protobuf.ByteString getVersionBytes(); - - /** - * - * - *
-   * App instance.
-   * By default, the task is sent to an instance which is available when
-   * the task is attempted.
-   * Requests can only be sent to a specific instance if
-   * [manual scaling is used in App Engine
-   * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-   * App Engine Flex does not support instances. For more information, see
-   * [App Engine Standard request
-   * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-   * and [App Engine Flex request
-   * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-   * 
- * - * string instance = 3; - * - * @return The instance. - */ - java.lang.String getInstance(); - /** - * - * - *
-   * App instance.
-   * By default, the task is sent to an instance which is available when
-   * the task is attempted.
-   * Requests can only be sent to a specific instance if
-   * [manual scaling is used in App Engine
-   * Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
-   * App Engine Flex does not support instances. For more information, see
-   * [App Engine Standard request
-   * routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
-   * and [App Engine Flex request
-   * routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
-   * 
- * - * string instance = 3; - * - * @return The bytes for instance. - */ - com.google.protobuf.ByteString getInstanceBytes(); - - /** - * - * - *
-   * Output only. The host that the task is sent to.
-   * The host is constructed from the domain name of the app associated with
-   * the queue's project ID (for example <app-id>.appspot.com), and the
-   * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service], [version][google.cloud.tasks.v2beta3.AppEngineRouting.version],
-   * and [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. Tasks which were created using
-   * the App Engine SDK might have a custom domain name.
-   * For more information, see
-   * [How Requests are
-   * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-   * 
- * - * string host = 4; - * - * @return The host. - */ - java.lang.String getHost(); - /** - * - * - *
-   * Output only. The host that the task is sent to.
-   * The host is constructed from the domain name of the app associated with
-   * the queue's project ID (for example <app-id>.appspot.com), and the
-   * [service][google.cloud.tasks.v2beta3.AppEngineRouting.service], [version][google.cloud.tasks.v2beta3.AppEngineRouting.version],
-   * and [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. Tasks which were created using
-   * the App Engine SDK might have a custom domain name.
-   * For more information, see
-   * [How Requests are
-   * Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
-   * 
- * - * string host = 4; - * - * @return The bytes for host. - */ - com.google.protobuf.ByteString getHostBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Attempt.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Attempt.java deleted file mode 100644 index b64e85dc..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Attempt.java +++ /dev/null @@ -1,1554 +0,0 @@ -/* - * Copyright 2020 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/task.proto - -package com.google.cloud.tasks.v2beta3; - -/** - * - * - *
- * The status of a task attempt.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.Attempt} - */ -public final class Attempt extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.Attempt) - AttemptOrBuilder { - private static final long serialVersionUID = 0L; - // Use Attempt.newBuilder() to construct. - private Attempt(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Attempt() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Attempt(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.TaskProto - .internal_static_google_cloud_tasks_v2beta3_Attempt_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.TaskProto - .internal_static_google_cloud_tasks_v2beta3_Attempt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.Attempt.class, - com.google.cloud.tasks.v2beta3.Attempt.Builder.class); - } - - public static final int SCHEDULE_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp scheduleTime_; - /** - * - * - *
-   * Output only. The time that this attempt was scheduled.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - * - * @return Whether the scheduleTime field is set. - */ - @java.lang.Override - public boolean hasScheduleTime() { - return scheduleTime_ != null; - } - /** - * - * - *
-   * Output only. The time that this attempt was scheduled.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - * - * @return The scheduleTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } - /** - * - * - *
-   * Output only. The time that this attempt was scheduled.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { - return getScheduleTime(); - } - - public static final int DISPATCH_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp dispatchTime_; - /** - * - * - *
-   * Output only. The time that this attempt was dispatched.
-   * `dispatch_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - * - * @return Whether the dispatchTime field is set. - */ - @java.lang.Override - public boolean hasDispatchTime() { - return dispatchTime_ != null; - } - /** - * - * - *
-   * Output only. The time that this attempt was dispatched.
-   * `dispatch_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - * - * @return The dispatchTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getDispatchTime() { - return dispatchTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dispatchTime_; - } - /** - * - * - *
-   * Output only. The time that this attempt was dispatched.
-   * `dispatch_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getDispatchTimeOrBuilder() { - return getDispatchTime(); - } - - public static final int RESPONSE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp responseTime_; - /** - * - * - *
-   * Output only. The time that this attempt response was received.
-   * `response_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp response_time = 3; - * - * @return Whether the responseTime field is set. - */ - @java.lang.Override - public boolean hasResponseTime() { - return responseTime_ != null; - } - /** - * - * - *
-   * Output only. The time that this attempt response was received.
-   * `response_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp response_time = 3; - * - * @return The responseTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getResponseTime() { - return responseTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : responseTime_; - } - /** - * - * - *
-   * Output only. The time that this attempt response was received.
-   * `response_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() { - return getResponseTime(); - } - - public static final int RESPONSE_STATUS_FIELD_NUMBER = 4; - private com.google.rpc.Status responseStatus_; - /** - * - * - *
-   * Output only. The response from the worker for this attempt.
-   * If `response_time` is unset, then the task has not been attempted or is
-   * currently running and the `response_status` field is meaningless.
-   * 
- * - * .google.rpc.Status response_status = 4; - * - * @return Whether the responseStatus field is set. - */ - @java.lang.Override - public boolean hasResponseStatus() { - return responseStatus_ != null; - } - /** - * - * - *
-   * Output only. The response from the worker for this attempt.
-   * If `response_time` is unset, then the task has not been attempted or is
-   * currently running and the `response_status` field is meaningless.
-   * 
- * - * .google.rpc.Status response_status = 4; - * - * @return The responseStatus. - */ - @java.lang.Override - public com.google.rpc.Status getResponseStatus() { - return responseStatus_ == null ? com.google.rpc.Status.getDefaultInstance() : responseStatus_; - } - /** - * - * - *
-   * Output only. The response from the worker for this attempt.
-   * If `response_time` is unset, then the task has not been attempted or is
-   * currently running and the `response_status` field is meaningless.
-   * 
- * - * .google.rpc.Status response_status = 4; - */ - @java.lang.Override - public com.google.rpc.StatusOrBuilder getResponseStatusOrBuilder() { - return getResponseStatus(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (scheduleTime_ != null) { - output.writeMessage(1, getScheduleTime()); - } - if (dispatchTime_ != null) { - output.writeMessage(2, getDispatchTime()); - } - if (responseTime_ != null) { - output.writeMessage(3, getResponseTime()); - } - if (responseStatus_ != null) { - output.writeMessage(4, getResponseStatus()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getScheduleTime()); - } - if (dispatchTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDispatchTime()); - } - if (responseTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResponseTime()); - } - if (responseStatus_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResponseStatus()); - } - size += 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.Attempt)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.Attempt other = (com.google.cloud.tasks.v2beta3.Attempt) obj; - - if (hasScheduleTime() != other.hasScheduleTime()) return false; - if (hasScheduleTime()) { - if (!getScheduleTime().equals(other.getScheduleTime())) return false; - } - if (hasDispatchTime() != other.hasDispatchTime()) return false; - if (hasDispatchTime()) { - if (!getDispatchTime().equals(other.getDispatchTime())) return false; - } - if (hasResponseTime() != other.hasResponseTime()) return false; - if (hasResponseTime()) { - if (!getResponseTime().equals(other.getResponseTime())) return false; - } - if (hasResponseStatus() != other.hasResponseStatus()) return false; - if (hasResponseStatus()) { - if (!getResponseStatus().equals(other.getResponseStatus())) return false; - } - if (!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 (hasScheduleTime()) { - hash = (37 * hash) + SCHEDULE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getScheduleTime().hashCode(); - } - if (hasDispatchTime()) { - hash = (37 * hash) + DISPATCH_TIME_FIELD_NUMBER; - hash = (53 * hash) + getDispatchTime().hashCode(); - } - if (hasResponseTime()) { - hash = (37 * hash) + RESPONSE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getResponseTime().hashCode(); - } - if (hasResponseStatus()) { - hash = (37 * hash) + RESPONSE_STATUS_FIELD_NUMBER; - hash = (53 * hash) + getResponseStatus().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.Attempt parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.Attempt parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.Attempt parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.Attempt parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.Attempt parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.Attempt parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.Attempt parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.Attempt parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.Attempt parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.Attempt parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.Attempt parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.Attempt parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta3.Attempt prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * The status of a task attempt.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.Attempt} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.Attempt) - com.google.cloud.tasks.v2beta3.AttemptOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.TaskProto - .internal_static_google_cloud_tasks_v2beta3_Attempt_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.TaskProto - .internal_static_google_cloud_tasks_v2beta3_Attempt_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.Attempt.class, - com.google.cloud.tasks.v2beta3.Attempt.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.Attempt.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = null; - } else { - scheduleTime_ = null; - scheduleTimeBuilder_ = null; - } - if (dispatchTimeBuilder_ == null) { - dispatchTime_ = null; - } else { - dispatchTime_ = null; - dispatchTimeBuilder_ = null; - } - if (responseTimeBuilder_ == null) { - responseTime_ = null; - } else { - responseTime_ = null; - responseTimeBuilder_ = null; - } - if (responseStatusBuilder_ == null) { - responseStatus_ = null; - } else { - responseStatus_ = null; - responseStatusBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.TaskProto - .internal_static_google_cloud_tasks_v2beta3_Attempt_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Attempt getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.Attempt.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Attempt build() { - com.google.cloud.tasks.v2beta3.Attempt result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Attempt buildPartial() { - com.google.cloud.tasks.v2beta3.Attempt result = - new com.google.cloud.tasks.v2beta3.Attempt(this); - if (scheduleTimeBuilder_ == null) { - result.scheduleTime_ = scheduleTime_; - } else { - result.scheduleTime_ = scheduleTimeBuilder_.build(); - } - if (dispatchTimeBuilder_ == null) { - result.dispatchTime_ = dispatchTime_; - } else { - result.dispatchTime_ = dispatchTimeBuilder_.build(); - } - if (responseTimeBuilder_ == null) { - result.responseTime_ = responseTime_; - } else { - result.responseTime_ = responseTimeBuilder_.build(); - } - if (responseStatusBuilder_ == null) { - result.responseStatus_ = responseStatus_; - } else { - result.responseStatus_ = responseStatusBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.Attempt) { - return mergeFrom((com.google.cloud.tasks.v2beta3.Attempt) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.Attempt other) { - if (other == com.google.cloud.tasks.v2beta3.Attempt.getDefaultInstance()) return this; - if (other.hasScheduleTime()) { - mergeScheduleTime(other.getScheduleTime()); - } - if (other.hasDispatchTime()) { - mergeDispatchTime(other.getDispatchTime()); - } - if (other.hasResponseTime()) { - mergeResponseTime(other.getResponseTime()); - } - if (other.hasResponseStatus()) { - mergeResponseStatus(other.getResponseStatus()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getDispatchTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getResponseTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getResponseStatusFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.protobuf.Timestamp scheduleTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - scheduleTimeBuilder_; - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - * - * @return Whether the scheduleTime field is set. - */ - public boolean hasScheduleTime() { - return scheduleTimeBuilder_ != null || scheduleTime_ != null; - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - * - * @return The scheduleTime. - */ - public com.google.protobuf.Timestamp getScheduleTime() { - if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } else { - return scheduleTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - public Builder setScheduleTime(com.google.protobuf.Timestamp value) { - if (scheduleTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduleTime_ = value; - onChanged(); - } else { - scheduleTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = builderForValue.build(); - onChanged(); - } else { - scheduleTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { - if (scheduleTimeBuilder_ == null) { - if (scheduleTime_ != null) { - scheduleTime_ = - com.google.protobuf.Timestamp.newBuilder(scheduleTime_) - .mergeFrom(value) - .buildPartial(); - } else { - scheduleTime_ = value; - } - onChanged(); - } else { - scheduleTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - public Builder clearScheduleTime() { - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = null; - onChanged(); - } else { - scheduleTime_ = null; - scheduleTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { - - onChanged(); - return getScheduleTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { - if (scheduleTimeBuilder_ != null) { - return scheduleTimeBuilder_.getMessageOrBuilder(); - } else { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } - } - /** - * - * - *
-     * Output only. The time that this attempt was scheduled.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getScheduleTimeFieldBuilder() { - if (scheduleTimeBuilder_ == null) { - scheduleTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getScheduleTime(), getParentForChildren(), isClean()); - scheduleTime_ = null; - } - return scheduleTimeBuilder_; - } - - private com.google.protobuf.Timestamp dispatchTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - dispatchTimeBuilder_; - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - * - * @return Whether the dispatchTime field is set. - */ - public boolean hasDispatchTime() { - return dispatchTimeBuilder_ != null || dispatchTime_ != null; - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - * - * @return The dispatchTime. - */ - public com.google.protobuf.Timestamp getDispatchTime() { - if (dispatchTimeBuilder_ == null) { - return dispatchTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dispatchTime_; - } else { - return dispatchTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - public Builder setDispatchTime(com.google.protobuf.Timestamp value) { - if (dispatchTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dispatchTime_ = value; - onChanged(); - } else { - dispatchTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - public Builder setDispatchTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (dispatchTimeBuilder_ == null) { - dispatchTime_ = builderForValue.build(); - onChanged(); - } else { - dispatchTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - public Builder mergeDispatchTime(com.google.protobuf.Timestamp value) { - if (dispatchTimeBuilder_ == null) { - if (dispatchTime_ != null) { - dispatchTime_ = - com.google.protobuf.Timestamp.newBuilder(dispatchTime_) - .mergeFrom(value) - .buildPartial(); - } else { - dispatchTime_ = value; - } - onChanged(); - } else { - dispatchTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - public Builder clearDispatchTime() { - if (dispatchTimeBuilder_ == null) { - dispatchTime_ = null; - onChanged(); - } else { - dispatchTime_ = null; - dispatchTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - public com.google.protobuf.Timestamp.Builder getDispatchTimeBuilder() { - - onChanged(); - return getDispatchTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - public com.google.protobuf.TimestampOrBuilder getDispatchTimeOrBuilder() { - if (dispatchTimeBuilder_ != null) { - return dispatchTimeBuilder_.getMessageOrBuilder(); - } else { - return dispatchTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : dispatchTime_; - } - } - /** - * - * - *
-     * Output only. The time that this attempt was dispatched.
-     * `dispatch_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getDispatchTimeFieldBuilder() { - if (dispatchTimeBuilder_ == null) { - dispatchTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getDispatchTime(), getParentForChildren(), isClean()); - dispatchTime_ = null; - } - return dispatchTimeBuilder_; - } - - private com.google.protobuf.Timestamp responseTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - responseTimeBuilder_; - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - * - * @return Whether the responseTime field is set. - */ - public boolean hasResponseTime() { - return responseTimeBuilder_ != null || responseTime_ != null; - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - * - * @return The responseTime. - */ - public com.google.protobuf.Timestamp getResponseTime() { - if (responseTimeBuilder_ == null) { - return responseTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : responseTime_; - } else { - return responseTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - public Builder setResponseTime(com.google.protobuf.Timestamp value) { - if (responseTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - responseTime_ = value; - onChanged(); - } else { - responseTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - public Builder setResponseTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (responseTimeBuilder_ == null) { - responseTime_ = builderForValue.build(); - onChanged(); - } else { - responseTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - public Builder mergeResponseTime(com.google.protobuf.Timestamp value) { - if (responseTimeBuilder_ == null) { - if (responseTime_ != null) { - responseTime_ = - com.google.protobuf.Timestamp.newBuilder(responseTime_) - .mergeFrom(value) - .buildPartial(); - } else { - responseTime_ = value; - } - onChanged(); - } else { - responseTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - public Builder clearResponseTime() { - if (responseTimeBuilder_ == null) { - responseTime_ = null; - onChanged(); - } else { - responseTime_ = null; - responseTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - public com.google.protobuf.Timestamp.Builder getResponseTimeBuilder() { - - onChanged(); - return getResponseTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - public com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder() { - if (responseTimeBuilder_ != null) { - return responseTimeBuilder_.getMessageOrBuilder(); - } else { - return responseTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : responseTime_; - } - } - /** - * - * - *
-     * Output only. The time that this attempt response was received.
-     * `response_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getResponseTimeFieldBuilder() { - if (responseTimeBuilder_ == null) { - responseTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getResponseTime(), getParentForChildren(), isClean()); - responseTime_ = null; - } - return responseTimeBuilder_; - } - - private com.google.rpc.Status responseStatus_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - responseStatusBuilder_; - /** - * - * - *
-     * Output only. The response from the worker for this attempt.
-     * If `response_time` is unset, then the task has not been attempted or is
-     * currently running and the `response_status` field is meaningless.
-     * 
- * - * .google.rpc.Status response_status = 4; - * - * @return Whether the responseStatus field is set. - */ - public boolean hasResponseStatus() { - return responseStatusBuilder_ != null || responseStatus_ != null; - } - /** - * - * - *
-     * Output only. The response from the worker for this attempt.
-     * If `response_time` is unset, then the task has not been attempted or is
-     * currently running and the `response_status` field is meaningless.
-     * 
- * - * .google.rpc.Status response_status = 4; - * - * @return The responseStatus. - */ - public com.google.rpc.Status getResponseStatus() { - if (responseStatusBuilder_ == null) { - return responseStatus_ == null - ? com.google.rpc.Status.getDefaultInstance() - : responseStatus_; - } else { - return responseStatusBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The response from the worker for this attempt.
-     * If `response_time` is unset, then the task has not been attempted or is
-     * currently running and the `response_status` field is meaningless.
-     * 
- * - * .google.rpc.Status response_status = 4; - */ - public Builder setResponseStatus(com.google.rpc.Status value) { - if (responseStatusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - responseStatus_ = value; - onChanged(); - } else { - responseStatusBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The response from the worker for this attempt.
-     * If `response_time` is unset, then the task has not been attempted or is
-     * currently running and the `response_status` field is meaningless.
-     * 
- * - * .google.rpc.Status response_status = 4; - */ - public Builder setResponseStatus(com.google.rpc.Status.Builder builderForValue) { - if (responseStatusBuilder_ == null) { - responseStatus_ = builderForValue.build(); - onChanged(); - } else { - responseStatusBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The response from the worker for this attempt.
-     * If `response_time` is unset, then the task has not been attempted or is
-     * currently running and the `response_status` field is meaningless.
-     * 
- * - * .google.rpc.Status response_status = 4; - */ - public Builder mergeResponseStatus(com.google.rpc.Status value) { - if (responseStatusBuilder_ == null) { - if (responseStatus_ != null) { - responseStatus_ = - com.google.rpc.Status.newBuilder(responseStatus_).mergeFrom(value).buildPartial(); - } else { - responseStatus_ = value; - } - onChanged(); - } else { - responseStatusBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The response from the worker for this attempt.
-     * If `response_time` is unset, then the task has not been attempted or is
-     * currently running and the `response_status` field is meaningless.
-     * 
- * - * .google.rpc.Status response_status = 4; - */ - public Builder clearResponseStatus() { - if (responseStatusBuilder_ == null) { - responseStatus_ = null; - onChanged(); - } else { - responseStatus_ = null; - responseStatusBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The response from the worker for this attempt.
-     * If `response_time` is unset, then the task has not been attempted or is
-     * currently running and the `response_status` field is meaningless.
-     * 
- * - * .google.rpc.Status response_status = 4; - */ - public com.google.rpc.Status.Builder getResponseStatusBuilder() { - - onChanged(); - return getResponseStatusFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The response from the worker for this attempt.
-     * If `response_time` is unset, then the task has not been attempted or is
-     * currently running and the `response_status` field is meaningless.
-     * 
- * - * .google.rpc.Status response_status = 4; - */ - public com.google.rpc.StatusOrBuilder getResponseStatusOrBuilder() { - if (responseStatusBuilder_ != null) { - return responseStatusBuilder_.getMessageOrBuilder(); - } else { - return responseStatus_ == null - ? com.google.rpc.Status.getDefaultInstance() - : responseStatus_; - } - } - /** - * - * - *
-     * Output only. The response from the worker for this attempt.
-     * If `response_time` is unset, then the task has not been attempted or is
-     * currently running and the `response_status` field is meaningless.
-     * 
- * - * .google.rpc.Status response_status = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - getResponseStatusFieldBuilder() { - if (responseStatusBuilder_ == null) { - responseStatusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - getResponseStatus(), getParentForChildren(), isClean()); - responseStatus_ = null; - } - return responseStatusBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.Attempt) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.Attempt) - private static final com.google.cloud.tasks.v2beta3.Attempt DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.Attempt(); - } - - public static com.google.cloud.tasks.v2beta3.Attempt getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Attempt parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Attempt getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AttemptOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AttemptOrBuilder.java deleted file mode 100644 index 9b943d64..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AttemptOrBuilder.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Copyright 2020 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/task.proto - -package com.google.cloud.tasks.v2beta3; - -public interface AttemptOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.Attempt) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The time that this attempt was scheduled.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - * - * @return Whether the scheduleTime field is set. - */ - boolean hasScheduleTime(); - /** - * - * - *
-   * Output only. The time that this attempt was scheduled.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - * - * @return The scheduleTime. - */ - com.google.protobuf.Timestamp getScheduleTime(); - /** - * - * - *
-   * Output only. The time that this attempt was scheduled.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 1; - */ - com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The time that this attempt was dispatched.
-   * `dispatch_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - * - * @return Whether the dispatchTime field is set. - */ - boolean hasDispatchTime(); - /** - * - * - *
-   * Output only. The time that this attempt was dispatched.
-   * `dispatch_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - * - * @return The dispatchTime. - */ - com.google.protobuf.Timestamp getDispatchTime(); - /** - * - * - *
-   * Output only. The time that this attempt was dispatched.
-   * `dispatch_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp dispatch_time = 2; - */ - com.google.protobuf.TimestampOrBuilder getDispatchTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The time that this attempt response was received.
-   * `response_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp response_time = 3; - * - * @return Whether the responseTime field is set. - */ - boolean hasResponseTime(); - /** - * - * - *
-   * Output only. The time that this attempt response was received.
-   * `response_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp response_time = 3; - * - * @return The responseTime. - */ - com.google.protobuf.Timestamp getResponseTime(); - /** - * - * - *
-   * Output only. The time that this attempt response was received.
-   * `response_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp response_time = 3; - */ - com.google.protobuf.TimestampOrBuilder getResponseTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The response from the worker for this attempt.
-   * If `response_time` is unset, then the task has not been attempted or is
-   * currently running and the `response_status` field is meaningless.
-   * 
- * - * .google.rpc.Status response_status = 4; - * - * @return Whether the responseStatus field is set. - */ - boolean hasResponseStatus(); - /** - * - * - *
-   * Output only. The response from the worker for this attempt.
-   * If `response_time` is unset, then the task has not been attempted or is
-   * currently running and the `response_status` field is meaningless.
-   * 
- * - * .google.rpc.Status response_status = 4; - * - * @return The responseStatus. - */ - com.google.rpc.Status getResponseStatus(); - /** - * - * - *
-   * Output only. The response from the worker for this attempt.
-   * If `response_time` is unset, then the task has not been attempted or is
-   * currently running and the `response_status` field is meaningless.
-   * 
- * - * .google.rpc.Status response_status = 4; - */ - com.google.rpc.StatusOrBuilder getResponseStatusOrBuilder(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksProto.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksProto.java deleted file mode 100644 index f9f9d0eb..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksProto.java +++ /dev/null @@ -1,388 +0,0 @@ -/* - * Copyright 2020 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; - -public final class CloudTasksProto { - private CloudTasksProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_ListQueuesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_ListQueuesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_ListQueuesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_ListQueuesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_GetQueueRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_GetQueueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_CreateQueueRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_CreateQueueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_UpdateQueueRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_UpdateQueueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_DeleteQueueRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_DeleteQueueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_PurgeQueueRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_PurgeQueueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_PauseQueueRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_PauseQueueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_ResumeQueueRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_ResumeQueueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_ListTasksRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_ListTasksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_ListTasksResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_ListTasksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_GetTaskRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_GetTaskRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_CreateTaskRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_CreateTaskRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_DeleteTaskRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_DeleteTaskRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_RunTaskRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_RunTaskRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n+google/cloud/tasks/v2beta3/cloudtasks." - + "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/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\"\267\001\n\021ListQ" - + "ueuesRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037cl" - + "oudtasks.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\0222\n\tread_mask\030\005 \001(\0132\032.google.protobu" - + "f.FieldMaskB\003\340A\001\"`\n\022ListQueuesResponse\0221" - + "\n\006queues\030\001 \003(\0132!.google.cloud.tasks.v2be" - + "ta3.Queue\022\027\n\017next_page_token\030\002 \001(\t\"|\n\017Ge" - + "tQueueRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037clo" - + "udtasks.googleapis.com/Queue\0222\n\tread_mas" - + "k\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001" - + "\"\204\001\n\022CreateQueueRequest\0227\n\006parent\030\001 \001(\tB" - + "\'\340A\002\372A!\022\037cloudtasks.googleapis.com/Queue" - + "\0225\n\005queue\030\002 \001(\0132!.google.cloud.tasks.v2b" - + "eta3.QueueB\003\340A\002\"|\n\022UpdateQueueRequest\0225\n" - + "\005queue\030\001 \001(\0132!.google.cloud.tasks.v2beta" - + "3.QueueB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.goog" - + "le.protobuf.FieldMask\"K\n\022DeleteQueueRequ" - + "est\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037cloudtasks.go" - + "ogleapis.com/Queue\"J\n\021PurgeQueueRequest\022" - + "5\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037cloudtasks.google" - + "apis.com/Queue\"J\n\021PauseQueueRequest\0225\n\004n" - + "ame\030\001 \001(\tB\'\340A\002\372A!\n\037cloudtasks.googleapis" - + ".com/Queue\"K\n\022ResumeQueueRequest\0225\n\004name" - + "\030\001 \001(\tB\'\340A\002\372A!\n\037cloudtasks.googleapis.co" - + "m/Queue\"\257\001\n\020ListTasksRequest\0226\n\006parent\030\001" - + " \001(\tB&\340A\002\372A \022\036cloudtasks.googleapis.com/" - + "Task\022<\n\rresponse_view\030\002 \001(\0162%.google.clo" - + "ud.tasks.v2beta3.Task.View\022\021\n\tpage_size\030" - + "\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"]\n\021ListTasksRe" - + "sponse\022/\n\005tasks\030\001 \003(\0132 .google.cloud.tas" - + "ks.v2beta3.Task\022\027\n\017next_page_token\030\002 \001(\t" - + "\"\204\001\n\016GetTaskRequest\0224\n\004name\030\001 \001(\tB&\340A\002\372A" - + " \n\036cloudtasks.googleapis.com/Task\022<\n\rres" - + "ponse_view\030\002 \001(\0162%.google.cloud.tasks.v2" - + "beta3.Task.View\"\276\001\n\021CreateTaskRequest\0226\n" - + "\006parent\030\001 \001(\tB&\340A\002\372A \022\036cloudtasks.google" - + "apis.com/Task\0223\n\004task\030\002 \001(\0132 .google.clo" - + "ud.tasks.v2beta3.TaskB\003\340A\002\022<\n\rresponse_v" - + "iew\030\003 \001(\0162%.google.cloud.tasks.v2beta3.T" - + "ask.View\"I\n\021DeleteTaskRequest\0224\n\004name\030\001 " - + "\001(\tB&\340A\002\372A \n\036cloudtasks.googleapis.com/T" - + "ask\"\204\001\n\016RunTaskRequest\0224\n\004name\030\001 \001(\tB&\340A" - + "\002\372A \n\036cloudtasks.googleapis.com/Task\022<\n\r" - + "response_view\030\002 \001(\0162%.google.cloud.tasks" - + ".v2beta3.Task.View2\245\026\n\nCloudTasks\022\255\001\n\nLi" - + "stQueues\022-.google.cloud.tasks.v2beta3.Li" - + "stQueuesRequest\032..google.cloud.tasks.v2b" - + "eta3.ListQueuesResponse\"@\202\323\344\223\0021\022//v2beta" - + "3/{parent=projects/*/locations/*}/queues" - + "\332A\006parent\022\232\001\n\010GetQueue\022+.google.cloud.ta" - + "sks.v2beta3.GetQueueRequest\032!.google.clo" - + "ud.tasks.v2beta3.Queue\">\202\323\344\223\0021\022//v2beta3" - + "/{name=projects/*/locations/*/queues/*}\332" - + "A\004name\022\257\001\n\013CreateQueue\022..google.cloud.ta" - + "sks.v2beta3.CreateQueueRequest\032!.google." - + "cloud.tasks.v2beta3.Queue\"M\202\323\344\223\0028\"//v2be" - + "ta3/{parent=projects/*/locations/*}/queu" - + "es:\005queue\332A\014parent,queue\022\272\001\n\013UpdateQueue" - + "\022..google.cloud.tasks.v2beta3.UpdateQueu" - + "eRequest\032!.google.cloud.tasks.v2beta3.Qu" - + "eue\"X\202\323\344\223\002>25/v2beta3/{queue.name=projec" - + "ts/*/locations/*/queues/*}:\005queue\332A\021queu" - + "e,update_mask\022\225\001\n\013DeleteQueue\022..google.c" - + "loud.tasks.v2beta3.DeleteQueueRequest\032\026." - + "google.protobuf.Empty\">\202\323\344\223\0021*//v2beta3/" - + "{name=projects/*/locations/*/queues/*}\332A" - + "\004name\022\247\001\n\nPurgeQueue\022-.google.cloud.task" - + "s.v2beta3.PurgeQueueRequest\032!.google.clo" - + "ud.tasks.v2beta3.Queue\"G\202\323\344\223\002:\"5/v2beta3" - + "/{name=projects/*/locations/*/queues/*}:" - + "purge:\001*\332A\004name\022\247\001\n\nPauseQueue\022-.google." - + "cloud.tasks.v2beta3.PauseQueueRequest\032!." - + "google.cloud.tasks.v2beta3.Queue\"G\202\323\344\223\002:" - + "\"5/v2beta3/{name=projects/*/locations/*/" - + "queues/*}:pause:\001*\332A\004name\022\252\001\n\013ResumeQueu" - + "e\022..google.cloud.tasks.v2beta3.ResumeQue" - + "ueRequest\032!.google.cloud.tasks.v2beta3.Q" - + "ueue\"H\202\323\344\223\002;\"6/v2beta3/{name=projects/*/" - + "locations/*/queues/*}:resume:\001*\332A\004name\022\241" - + "\001\n\014GetIamPolicy\022\".google.iam.v1.GetIamPo" - + "licyRequest\032\025.google.iam.v1.Policy\"V\202\323\344\223" - + "\002E\"@/v2beta3/{resource=projects/*/locati" - + "ons/*/queues/*}:getIamPolicy:\001*\332A\010resour" - + "ce\022\250\001\n\014SetIamPolicy\022\".google.iam.v1.SetI" - + "amPolicyRequest\032\025.google.iam.v1.Policy\"]" - + "\202\323\344\223\002E\"@/v2beta3/{resource=projects/*/lo" - + "cations/*/queues/*}:setIamPolicy:\001*\332A\017re" - + "source,policy\022\323\001\n\022TestIamPermissions\022(.g" - + "oogle.iam.v1.TestIamPermissionsRequest\032)" - + ".google.iam.v1.TestIamPermissionsRespons" - + "e\"h\202\323\344\223\002K\"F/v2beta3/{resource=projects/*" - + "/locations/*/queues/*}:testIamPermission" - + "s:\001*\332A\024resource,permissions\022\262\001\n\tListTask" - + "s\022,.google.cloud.tasks.v2beta3.ListTasks" - + "Request\032-.google.cloud.tasks.v2beta3.Lis" - + "tTasksResponse\"H\202\323\344\223\0029\0227/v2beta3/{parent" - + "=projects/*/locations/*/queues/*}/tasks\332" - + "A\006parent\022\237\001\n\007GetTask\022*.google.cloud.task" - + "s.v2beta3.GetTaskRequest\032 .google.cloud." - + "tasks.v2beta3.Task\"F\202\323\344\223\0029\0227/v2beta3/{na" - + "me=projects/*/locations/*/queues/*/tasks" - + "/*}\332A\004name\022\257\001\n\nCreateTask\022-.google.cloud" - + ".tasks.v2beta3.CreateTaskRequest\032 .googl" - + "e.cloud.tasks.v2beta3.Task\"P\202\323\344\223\002<\"7/v2b" - + "eta3/{parent=projects/*/locations/*/queu" - + "es/*}/tasks:\001*\332A\013parent,task\022\233\001\n\nDeleteT" - + "ask\022-.google.cloud.tasks.v2beta3.DeleteT" - + "askRequest\032\026.google.protobuf.Empty\"F\202\323\344\223" - + "\0029*7/v2beta3/{name=projects/*/locations/" - + "*/queues/*/tasks/*}\332A\004name\022\246\001\n\007RunTask\022*" - + ".google.cloud.tasks.v2beta3.RunTaskReque" - + "st\032 .google.cloud.tasks.v2beta3.Task\"M\202\323" - + "\344\223\002@\";/v2beta3/{name=projects/*/location" - + "s/*/queues/*/tasks/*}:run:\001*\332A\004name\032M\312A\031" - + "cloudtasks.googleapis.com\322A.https://www." - + "googleapis.com/auth/cloud-platformB|\n\036co" - + "m.google.cloud.tasks.v2beta3B\017CloudTasks" - + "ProtoP\001Z?google.golang.org/genproto/goog" - + "leapis/cloud/tasks/v2beta3;tasks\242\002\005TASKS" - + "b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.tasks.v2beta3.QueueProto.getDescriptor(), - com.google.cloud.tasks.v2beta3.TaskProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_tasks_v2beta3_ListQueuesRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_tasks_v2beta3_ListQueuesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_ListQueuesRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", "ReadMask", - }); - internal_static_google_cloud_tasks_v2beta3_ListQueuesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_tasks_v2beta3_ListQueuesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_ListQueuesResponse_descriptor, - new java.lang.String[] { - "Queues", "NextPageToken", - }); - internal_static_google_cloud_tasks_v2beta3_GetQueueRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_tasks_v2beta3_GetQueueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_GetQueueRequest_descriptor, - new java.lang.String[] { - "Name", "ReadMask", - }); - internal_static_google_cloud_tasks_v2beta3_CreateQueueRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_tasks_v2beta3_CreateQueueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_CreateQueueRequest_descriptor, - new java.lang.String[] { - "Parent", "Queue", - }); - internal_static_google_cloud_tasks_v2beta3_UpdateQueueRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_tasks_v2beta3_UpdateQueueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_UpdateQueueRequest_descriptor, - new java.lang.String[] { - "Queue", "UpdateMask", - }); - internal_static_google_cloud_tasks_v2beta3_DeleteQueueRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_tasks_v2beta3_DeleteQueueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_DeleteQueueRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_tasks_v2beta3_PurgeQueueRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_tasks_v2beta3_PurgeQueueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_PurgeQueueRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_tasks_v2beta3_PauseQueueRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_tasks_v2beta3_PauseQueueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_PauseQueueRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_tasks_v2beta3_ResumeQueueRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_tasks_v2beta3_ResumeQueueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_ResumeQueueRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_tasks_v2beta3_ListTasksRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_tasks_v2beta3_ListTasksRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_ListTasksRequest_descriptor, - new java.lang.String[] { - "Parent", "ResponseView", "PageSize", "PageToken", - }); - internal_static_google_cloud_tasks_v2beta3_ListTasksResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_tasks_v2beta3_ListTasksResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_ListTasksResponse_descriptor, - new java.lang.String[] { - "Tasks", "NextPageToken", - }); - internal_static_google_cloud_tasks_v2beta3_GetTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_tasks_v2beta3_GetTaskRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_GetTaskRequest_descriptor, - new java.lang.String[] { - "Name", "ResponseView", - }); - internal_static_google_cloud_tasks_v2beta3_CreateTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_tasks_v2beta3_CreateTaskRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_CreateTaskRequest_descriptor, - new java.lang.String[] { - "Parent", "Task", "ResponseView", - }); - internal_static_google_cloud_tasks_v2beta3_DeleteTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_tasks_v2beta3_DeleteTaskRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_DeleteTaskRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_tasks_v2beta3_RunTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_tasks_v2beta3_RunTaskRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_RunTaskRequest_descriptor, - new java.lang.String[] { - "Name", "ResponseView", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.tasks.v2beta3.QueueProto.getDescriptor(); - com.google.cloud.tasks.v2beta3.TaskProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequest.java deleted file mode 100644 index c749b577..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequest.java +++ /dev/null @@ -1,942 +0,0 @@ -/* - * Copyright 2020 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 [CreateQueue][google.cloud.tasks.v2beta3.CloudTasks.CreateQueue].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.CreateQueueRequest} - */ -public final class CreateQueueRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.CreateQueueRequest) - CreateQueueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateQueueRequest.newBuilder() to construct. - private CreateQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateQueueRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateQueueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_CreateQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_CreateQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.CreateQueueRequest.class, - com.google.cloud.tasks.v2beta3.CreateQueueRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The location name in which the queue will be created.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * The list of allowed locations can be obtained by calling Cloud
-   * Tasks' implementation of
-   * [ListLocations][google.cloud.location.Locations.ListLocations].
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The location name in which the queue will be created.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * The list of allowed locations can be obtained by calling Cloud
-   * Tasks' implementation of
-   * [ListLocations][google.cloud.location.Locations.ListLocations].
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUEUE_FIELD_NUMBER = 2; - private com.google.cloud.tasks.v2beta3.Queue queue_; - /** - * - * - *
-   * Required. The queue to create.
-   * [Queue's name][google.cloud.tasks.v2beta3.Queue.name] cannot be the same as an existing queue.
-   * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the queue field is set. - */ - @java.lang.Override - public boolean hasQueue() { - return queue_ != null; - } - /** - * - * - *
-   * Required. The queue to create.
-   * [Queue's name][google.cloud.tasks.v2beta3.Queue.name] cannot be the same as an existing queue.
-   * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The queue. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Queue getQueue() { - return queue_ == null ? com.google.cloud.tasks.v2beta3.Queue.getDefaultInstance() : queue_; - } - /** - * - * - *
-   * Required. The queue to create.
-   * [Queue's name][google.cloud.tasks.v2beta3.Queue.name] cannot be the same as an existing queue.
-   * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.QueueOrBuilder getQueueOrBuilder() { - return getQueue(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (queue_ != null) { - output.writeMessage(2, getQueue()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (queue_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQueue()); - } - 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.CreateQueueRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.CreateQueueRequest other = - (com.google.cloud.tasks.v2beta3.CreateQueueRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasQueue() != other.hasQueue()) return false; - if (hasQueue()) { - if (!getQueue().equals(other.getQueue())) return false; - } - if (!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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasQueue()) { - hash = (37 * hash) + QUEUE_FIELD_NUMBER; - hash = (53 * hash) + getQueue().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.CreateQueueRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.CreateQueueRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.CreateQueueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.CreateQueueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.CreateQueueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.CreateQueueRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.CreateQueueRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.CreateQueueRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.CreateQueueRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.CreateQueueRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.CreateQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.CreateQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta3.CreateQueueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [CreateQueue][google.cloud.tasks.v2beta3.CloudTasks.CreateQueue].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.CreateQueueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.CreateQueueRequest) - com.google.cloud.tasks.v2beta3.CreateQueueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_CreateQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_CreateQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.CreateQueueRequest.class, - com.google.cloud.tasks.v2beta3.CreateQueueRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.CreateQueueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (queueBuilder_ == null) { - queue_ = null; - } else { - queue_ = null; - queueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_CreateQueueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.CreateQueueRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.CreateQueueRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.CreateQueueRequest build() { - com.google.cloud.tasks.v2beta3.CreateQueueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.CreateQueueRequest buildPartial() { - com.google.cloud.tasks.v2beta3.CreateQueueRequest result = - new com.google.cloud.tasks.v2beta3.CreateQueueRequest(this); - result.parent_ = parent_; - if (queueBuilder_ == null) { - result.queue_ = queue_; - } else { - result.queue_ = queueBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.CreateQueueRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta3.CreateQueueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.CreateQueueRequest other) { - if (other == com.google.cloud.tasks.v2beta3.CreateQueueRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasQueue()) { - mergeQueue(other.getQueue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getQueueFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The location name in which the queue will be created.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * The list of allowed locations can be obtained by calling Cloud
-     * Tasks' implementation of
-     * [ListLocations][google.cloud.location.Locations.ListLocations].
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The location name in which the queue will be created.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * The list of allowed locations can be obtained by calling Cloud
-     * Tasks' implementation of
-     * [ListLocations][google.cloud.location.Locations.ListLocations].
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The location name in which the queue will be created.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * The list of allowed locations can be obtained by calling Cloud
-     * Tasks' implementation of
-     * [ListLocations][google.cloud.location.Locations.ListLocations].
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location name in which the queue will be created.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * The list of allowed locations can be obtained by calling Cloud
-     * Tasks' implementation of
-     * [ListLocations][google.cloud.location.Locations.ListLocations].
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location name in which the queue will be created.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * The list of allowed locations can be obtained by calling Cloud
-     * Tasks' implementation of
-     * [ListLocations][google.cloud.location.Locations.ListLocations].
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.cloud.tasks.v2beta3.Queue queue_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.Queue, - com.google.cloud.tasks.v2beta3.Queue.Builder, - com.google.cloud.tasks.v2beta3.QueueOrBuilder> - queueBuilder_; - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2beta3.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the queue field is set. - */ - public boolean hasQueue() { - return queueBuilder_ != null || queue_ != null; - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2beta3.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The queue. - */ - public com.google.cloud.tasks.v2beta3.Queue getQueue() { - if (queueBuilder_ == null) { - return queue_ == null ? com.google.cloud.tasks.v2beta3.Queue.getDefaultInstance() : queue_; - } else { - return queueBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2beta3.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setQueue(com.google.cloud.tasks.v2beta3.Queue value) { - if (queueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queue_ = value; - onChanged(); - } else { - queueBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2beta3.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setQueue(com.google.cloud.tasks.v2beta3.Queue.Builder builderForValue) { - if (queueBuilder_ == null) { - queue_ = builderForValue.build(); - onChanged(); - } else { - queueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2beta3.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeQueue(com.google.cloud.tasks.v2beta3.Queue value) { - if (queueBuilder_ == null) { - if (queue_ != null) { - queue_ = - com.google.cloud.tasks.v2beta3.Queue.newBuilder(queue_) - .mergeFrom(value) - .buildPartial(); - } else { - queue_ = value; - } - onChanged(); - } else { - queueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2beta3.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearQueue() { - if (queueBuilder_ == null) { - queue_ = null; - onChanged(); - } else { - queue_ = null; - queueBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2beta3.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.tasks.v2beta3.Queue.Builder getQueueBuilder() { - - onChanged(); - return getQueueFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2beta3.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.tasks.v2beta3.QueueOrBuilder getQueueOrBuilder() { - if (queueBuilder_ != null) { - return queueBuilder_.getMessageOrBuilder(); - } else { - return queue_ == null ? com.google.cloud.tasks.v2beta3.Queue.getDefaultInstance() : queue_; - } - } - /** - * - * - *
-     * Required. The queue to create.
-     * [Queue's name][google.cloud.tasks.v2beta3.Queue.name] cannot be the same as an existing queue.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.Queue, - com.google.cloud.tasks.v2beta3.Queue.Builder, - com.google.cloud.tasks.v2beta3.QueueOrBuilder> - getQueueFieldBuilder() { - if (queueBuilder_ == null) { - queueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.Queue, - com.google.cloud.tasks.v2beta3.Queue.Builder, - com.google.cloud.tasks.v2beta3.QueueOrBuilder>( - getQueue(), getParentForChildren(), isClean()); - queue_ = null; - } - return queueBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.CreateQueueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.CreateQueueRequest) - private static final com.google.cloud.tasks.v2beta3.CreateQueueRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.CreateQueueRequest(); - } - - public static com.google.cloud.tasks.v2beta3.CreateQueueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateQueueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.CreateQueueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequestOrBuilder.java deleted file mode 100644 index ffa30b22..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequestOrBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2020 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; - -public interface CreateQueueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.CreateQueueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The location name in which the queue will be created.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * The list of allowed locations can be obtained by calling Cloud
-   * Tasks' implementation of
-   * [ListLocations][google.cloud.location.Locations.ListLocations].
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The location name in which the queue will be created.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * The list of allowed locations can be obtained by calling Cloud
-   * Tasks' implementation of
-   * [ListLocations][google.cloud.location.Locations.ListLocations].
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The queue to create.
-   * [Queue's name][google.cloud.tasks.v2beta3.Queue.name] cannot be the same as an existing queue.
-   * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the queue field is set. - */ - boolean hasQueue(); - /** - * - * - *
-   * Required. The queue to create.
-   * [Queue's name][google.cloud.tasks.v2beta3.Queue.name] cannot be the same as an existing queue.
-   * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The queue. - */ - com.google.cloud.tasks.v2beta3.Queue getQueue(); - /** - * - * - *
-   * Required. The queue to create.
-   * [Queue's name][google.cloud.tasks.v2beta3.Queue.name] cannot be the same as an existing queue.
-   * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.tasks.v2beta3.QueueOrBuilder getQueueOrBuilder(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequest.java deleted file mode 100644 index 10d3b5e8..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequest.java +++ /dev/null @@ -1,1450 +0,0 @@ -/* - * Copyright 2020 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 [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.CreateTaskRequest} - */ -public final class CreateTaskRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.CreateTaskRequest) - CreateTaskRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateTaskRequest.newBuilder() to construct. - private CreateTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateTaskRequest() { - parent_ = ""; - responseView_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateTaskRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_CreateTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_CreateTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.CreateTaskRequest.class, - com.google.cloud.tasks.v2beta3.CreateTaskRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * The queue must already exist.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * The queue must already exist.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TASK_FIELD_NUMBER = 2; - private com.google.cloud.tasks.v2beta3.Task task_; - /** - * - * - *
-   * Required. The task to add.
-   * Task names have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-   * The user can optionally specify a task [name][google.cloud.tasks.v2beta3.Task.name]. If a
-   * name is not specified then the system will generate a random
-   * unique task id, which will be set in the task returned in the
-   * [response][google.cloud.tasks.v2beta3.Task.name].
-   * If [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] is not set or is in the
-   * past then Cloud Tasks will set it to the current time.
-   * Task De-duplication:
-   * Explicitly specifying a task ID enables task de-duplication.  If
-   * a task's ID is identical to that of an existing task or a task
-   * that was deleted or executed recently then the call will fail
-   * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-   * If the task's queue was created using Cloud Tasks, then another task with
-   * the same name can't be created for ~1hour after the original task was
-   * deleted or executed. If the task's queue was created using queue.yaml or
-   * queue.xml, then another task with the same name can't be created
-   * for ~9days after the original task was deleted or executed.
-   * Because there is an extra lookup cost to identify duplicate task
-   * names, these [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] calls have significantly
-   * increased latency. Using hashed strings for the task id or for
-   * the prefix of the task id is recommended. Choosing task ids that
-   * are sequential or have sequential prefixes, for example using a
-   * timestamp, causes an increase in latency and error rates in all
-   * task commands. The infrastructure relies on an approximately
-   * uniform distribution of task ids to store and serve tasks
-   * efficiently.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the task field is set. - */ - @java.lang.Override - public boolean hasTask() { - return task_ != null; - } - /** - * - * - *
-   * Required. The task to add.
-   * Task names have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-   * The user can optionally specify a task [name][google.cloud.tasks.v2beta3.Task.name]. If a
-   * name is not specified then the system will generate a random
-   * unique task id, which will be set in the task returned in the
-   * [response][google.cloud.tasks.v2beta3.Task.name].
-   * If [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] is not set or is in the
-   * past then Cloud Tasks will set it to the current time.
-   * Task De-duplication:
-   * Explicitly specifying a task ID enables task de-duplication.  If
-   * a task's ID is identical to that of an existing task or a task
-   * that was deleted or executed recently then the call will fail
-   * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-   * If the task's queue was created using Cloud Tasks, then another task with
-   * the same name can't be created for ~1hour after the original task was
-   * deleted or executed. If the task's queue was created using queue.yaml or
-   * queue.xml, then another task with the same name can't be created
-   * for ~9days after the original task was deleted or executed.
-   * Because there is an extra lookup cost to identify duplicate task
-   * names, these [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] calls have significantly
-   * increased latency. Using hashed strings for the task id or for
-   * the prefix of the task id is recommended. Choosing task ids that
-   * are sequential or have sequential prefixes, for example using a
-   * timestamp, causes an increase in latency and error rates in all
-   * task commands. The infrastructure relies on an approximately
-   * uniform distribution of task ids to store and serve tasks
-   * efficiently.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @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_; - } - /** - * - * - *
-   * Required. The task to add.
-   * Task names have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-   * The user can optionally specify a task [name][google.cloud.tasks.v2beta3.Task.name]. If a
-   * name is not specified then the system will generate a random
-   * unique task id, which will be set in the task returned in the
-   * [response][google.cloud.tasks.v2beta3.Task.name].
-   * If [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] is not set or is in the
-   * past then Cloud Tasks will set it to the current time.
-   * Task De-duplication:
-   * Explicitly specifying a task ID enables task de-duplication.  If
-   * a task's ID is identical to that of an existing task or a task
-   * that was deleted or executed recently then the call will fail
-   * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-   * If the task's queue was created using Cloud Tasks, then another task with
-   * the same name can't be created for ~1hour after the original task was
-   * deleted or executed. If the task's queue was created using queue.yaml or
-   * queue.xml, then another task with the same name can't be created
-   * for ~9days after the original task was deleted or executed.
-   * Because there is an extra lookup cost to identify duplicate task
-   * names, these [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] calls have significantly
-   * increased latency. Using hashed strings for the task id or for
-   * the prefix of the task id is recommended. Choosing task ids that
-   * are sequential or have sequential prefixes, for example using a
-   * timestamp, causes an increase in latency and error rates in all
-   * task commands. The infrastructure relies on an approximately
-   * uniform distribution of task ids to store and serve tasks
-   * efficiently.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.TaskOrBuilder getTaskOrBuilder() { - return getTask(); - } - - public static final int RESPONSE_VIEW_FIELD_NUMBER = 3; - private int responseView_; - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 3; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 3; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta3.Task.View result = - com.google.cloud.tasks.v2beta3.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta3.Task.View.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (task_ != null) { - output.writeMessage(2, getTask()); - } - if (responseView_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { - output.writeEnum(3, responseView_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (task_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTask()); - } - if (responseView_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, responseView_); - } - 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.CreateTaskRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.CreateTaskRequest other = - (com.google.cloud.tasks.v2beta3.CreateTaskRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasTask() != other.hasTask()) return false; - if (hasTask()) { - if (!getTask().equals(other.getTask())) return false; - } - if (responseView_ != other.responseView_) return false; - if (!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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasTask()) { - hash = (37 * hash) + TASK_FIELD_NUMBER; - hash = (53 * hash) + getTask().hashCode(); - } - hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; - hash = (53 * hash) + responseView_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.CreateTaskRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.CreateTaskRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.CreateTaskRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.CreateTaskRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.CreateTaskRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.CreateTaskRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.CreateTaskRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.CreateTaskRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.CreateTaskRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.CreateTaskRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.CreateTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.CreateTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta3.CreateTaskRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.CreateTaskRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.CreateTaskRequest) - com.google.cloud.tasks.v2beta3.CreateTaskRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_CreateTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_CreateTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.CreateTaskRequest.class, - com.google.cloud.tasks.v2beta3.CreateTaskRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.CreateTaskRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - if (taskBuilder_ == null) { - task_ = null; - } else { - task_ = null; - taskBuilder_ = null; - } - responseView_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_CreateTaskRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.CreateTaskRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.CreateTaskRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.CreateTaskRequest build() { - com.google.cloud.tasks.v2beta3.CreateTaskRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.CreateTaskRequest buildPartial() { - com.google.cloud.tasks.v2beta3.CreateTaskRequest result = - new com.google.cloud.tasks.v2beta3.CreateTaskRequest(this); - result.parent_ = parent_; - if (taskBuilder_ == null) { - result.task_ = task_; - } else { - result.task_ = taskBuilder_.build(); - } - result.responseView_ = responseView_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.CreateTaskRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta3.CreateTaskRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.CreateTaskRequest other) { - if (other == com.google.cloud.tasks.v2beta3.CreateTaskRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.hasTask()) { - mergeTask(other.getTask()); - } - if (other.responseView_ != 0) { - setResponseViewValue(other.getResponseViewValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getTaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 24: - { - responseView_ = input.readEnum(); - - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * The queue must already exist.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * The queue must already exist.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * The queue must already exist.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * The queue must already exist.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * The queue must already exist.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private com.google.cloud.tasks.v2beta3.Task task_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.Task, - com.google.cloud.tasks.v2beta3.Task.Builder, - com.google.cloud.tasks.v2beta3.TaskOrBuilder> - taskBuilder_; - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2beta3.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2beta3.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or executed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or executed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or executed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the task field is set. - */ - public boolean hasTask() { - return taskBuilder_ != null || task_ != null; - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2beta3.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2beta3.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or executed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or executed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or executed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @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(); - } - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2beta3.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2beta3.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or executed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or executed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or executed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTask(com.google.cloud.tasks.v2beta3.Task value) { - if (taskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - task_ = value; - onChanged(); - } else { - taskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2beta3.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2beta3.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or executed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or executed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or executed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTask(com.google.cloud.tasks.v2beta3.Task.Builder builderForValue) { - if (taskBuilder_ == null) { - task_ = builderForValue.build(); - onChanged(); - } else { - taskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2beta3.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2beta3.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or executed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or executed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or executed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTask(com.google.cloud.tasks.v2beta3.Task value) { - if (taskBuilder_ == null) { - if (task_ != null) { - task_ = - com.google.cloud.tasks.v2beta3.Task.newBuilder(task_).mergeFrom(value).buildPartial(); - } else { - task_ = value; - } - onChanged(); - } else { - taskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2beta3.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2beta3.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or executed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or executed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or executed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTask() { - if (taskBuilder_ == null) { - task_ = null; - onChanged(); - } else { - task_ = null; - taskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2beta3.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2beta3.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or executed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or executed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or executed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.tasks.v2beta3.Task.Builder getTaskBuilder() { - - onChanged(); - return getTaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2beta3.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2beta3.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or executed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or executed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or executed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - 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_; - } - } - /** - * - * - *
-     * Required. The task to add.
-     * Task names have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-     * The user can optionally specify a task [name][google.cloud.tasks.v2beta3.Task.name]. If a
-     * name is not specified then the system will generate a random
-     * unique task id, which will be set in the task returned in the
-     * [response][google.cloud.tasks.v2beta3.Task.name].
-     * If [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] is not set or is in the
-     * past then Cloud Tasks will set it to the current time.
-     * Task De-duplication:
-     * Explicitly specifying a task ID enables task de-duplication.  If
-     * a task's ID is identical to that of an existing task or a task
-     * that was deleted or executed recently then the call will fail
-     * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-     * If the task's queue was created using Cloud Tasks, then another task with
-     * the same name can't be created for ~1hour after the original task was
-     * deleted or executed. If the task's queue was created using queue.yaml or
-     * queue.xml, then another task with the same name can't be created
-     * for ~9days after the original task was deleted or executed.
-     * Because there is an extra lookup cost to identify duplicate task
-     * names, these [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] calls have significantly
-     * increased latency. Using hashed strings for the task id or for
-     * the prefix of the task id is recommended. Choosing task ids that
-     * are sequential or have sequential prefixes, for example using a
-     * timestamp, causes an increase in latency and error rates in all
-     * task commands. The infrastructure relies on an approximately
-     * uniform distribution of task ids to store and serve tasks
-     * efficiently.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - 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_; - } - - private int responseView_ = 0; - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 3; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 3; - * - * @param value The enum numeric value on the wire for responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseViewValue(int value) { - - responseView_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 3; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta3.Task.View result = - com.google.cloud.tasks.v2beta3.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta3.Task.View.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 3; - * - * @param value The responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseView(com.google.cloud.tasks.v2beta3.Task.View value) { - if (value == null) { - throw new NullPointerException(); - } - - responseView_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 3; - * - * @return This builder for chaining. - */ - public Builder clearResponseView() { - - responseView_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.CreateTaskRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.CreateTaskRequest) - private static final com.google.cloud.tasks.v2beta3.CreateTaskRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.CreateTaskRequest(); - } - - public static com.google.cloud.tasks.v2beta3.CreateTaskRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTaskRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.CreateTaskRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequestOrBuilder.java deleted file mode 100644 index 3dca068b..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequestOrBuilder.java +++ /dev/null @@ -1,220 +0,0 @@ -/* - * Copyright 2020 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; - -public interface CreateTaskRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.CreateTaskRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * The queue must already exist.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * The queue must already exist.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The task to add.
-   * Task names have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-   * The user can optionally specify a task [name][google.cloud.tasks.v2beta3.Task.name]. If a
-   * name is not specified then the system will generate a random
-   * unique task id, which will be set in the task returned in the
-   * [response][google.cloud.tasks.v2beta3.Task.name].
-   * If [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] is not set or is in the
-   * past then Cloud Tasks will set it to the current time.
-   * Task De-duplication:
-   * Explicitly specifying a task ID enables task de-duplication.  If
-   * a task's ID is identical to that of an existing task or a task
-   * that was deleted or executed recently then the call will fail
-   * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-   * If the task's queue was created using Cloud Tasks, then another task with
-   * the same name can't be created for ~1hour after the original task was
-   * deleted or executed. If the task's queue was created using queue.yaml or
-   * queue.xml, then another task with the same name can't be created
-   * for ~9days after the original task was deleted or executed.
-   * Because there is an extra lookup cost to identify duplicate task
-   * names, these [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] calls have significantly
-   * increased latency. Using hashed strings for the task id or for
-   * the prefix of the task id is recommended. Choosing task ids that
-   * are sequential or have sequential prefixes, for example using a
-   * timestamp, causes an increase in latency and error rates in all
-   * task commands. The infrastructure relies on an approximately
-   * uniform distribution of task ids to store and serve tasks
-   * efficiently.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the task field is set. - */ - boolean hasTask(); - /** - * - * - *
-   * Required. The task to add.
-   * Task names have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-   * The user can optionally specify a task [name][google.cloud.tasks.v2beta3.Task.name]. If a
-   * name is not specified then the system will generate a random
-   * unique task id, which will be set in the task returned in the
-   * [response][google.cloud.tasks.v2beta3.Task.name].
-   * If [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] is not set or is in the
-   * past then Cloud Tasks will set it to the current time.
-   * Task De-duplication:
-   * Explicitly specifying a task ID enables task de-duplication.  If
-   * a task's ID is identical to that of an existing task or a task
-   * that was deleted or executed recently then the call will fail
-   * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-   * If the task's queue was created using Cloud Tasks, then another task with
-   * the same name can't be created for ~1hour after the original task was
-   * deleted or executed. If the task's queue was created using queue.yaml or
-   * queue.xml, then another task with the same name can't be created
-   * for ~9days after the original task was deleted or executed.
-   * Because there is an extra lookup cost to identify duplicate task
-   * names, these [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] calls have significantly
-   * increased latency. Using hashed strings for the task id or for
-   * the prefix of the task id is recommended. Choosing task ids that
-   * are sequential or have sequential prefixes, for example using a
-   * timestamp, causes an increase in latency and error rates in all
-   * task commands. The infrastructure relies on an approximately
-   * uniform distribution of task ids to store and serve tasks
-   * efficiently.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The task. - */ - com.google.cloud.tasks.v2beta3.Task getTask(); - /** - * - * - *
-   * Required. The task to add.
-   * Task names have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`.
-   * The user can optionally specify a task [name][google.cloud.tasks.v2beta3.Task.name]. If a
-   * name is not specified then the system will generate a random
-   * unique task id, which will be set in the task returned in the
-   * [response][google.cloud.tasks.v2beta3.Task.name].
-   * If [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] is not set or is in the
-   * past then Cloud Tasks will set it to the current time.
-   * Task De-duplication:
-   * Explicitly specifying a task ID enables task de-duplication.  If
-   * a task's ID is identical to that of an existing task or a task
-   * that was deleted or executed recently then the call will fail
-   * with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS].
-   * If the task's queue was created using Cloud Tasks, then another task with
-   * the same name can't be created for ~1hour after the original task was
-   * deleted or executed. If the task's queue was created using queue.yaml or
-   * queue.xml, then another task with the same name can't be created
-   * for ~9days after the original task was deleted or executed.
-   * Because there is an extra lookup cost to identify duplicate task
-   * names, these [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] calls have significantly
-   * increased latency. Using hashed strings for the task id or for
-   * the prefix of the task id is recommended. Choosing task ids that
-   * are sequential or have sequential prefixes, for example using a
-   * timestamp, causes an increase in latency and error rates in all
-   * task commands. The infrastructure relies on an approximately
-   * uniform distribution of task ids to store and serve tasks
-   * efficiently.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task task = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.tasks.v2beta3.TaskOrBuilder getTaskOrBuilder(); - - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 3; - * - * @return The enum numeric value on the wire for responseView. - */ - int getResponseViewValue(); - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 3; - * - * @return The responseView. - */ - com.google.cloud.tasks.v2beta3.Task.View getResponseView(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequest.java deleted file mode 100644 index a9d87d3a..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequest.java +++ /dev/null @@ -1,636 +0,0 @@ -/* - * Copyright 2020 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 [DeleteQueue][google.cloud.tasks.v2beta3.CloudTasks.DeleteQueue].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.DeleteQueueRequest} - */ -public final class DeleteQueueRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.DeleteQueueRequest) - DeleteQueueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteQueueRequest.newBuilder() to construct. - private DeleteQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteQueueRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteQueueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_DeleteQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_DeleteQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.DeleteQueueRequest.class, - com.google.cloud.tasks.v2beta3.DeleteQueueRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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.DeleteQueueRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.DeleteQueueRequest other = - (com.google.cloud.tasks.v2beta3.DeleteQueueRequest) obj; - - if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.DeleteQueueRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.DeleteQueueRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.DeleteQueueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.DeleteQueueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.DeleteQueueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.DeleteQueueRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.DeleteQueueRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.DeleteQueueRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.DeleteQueueRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.DeleteQueueRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.DeleteQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.DeleteQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta3.DeleteQueueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [DeleteQueue][google.cloud.tasks.v2beta3.CloudTasks.DeleteQueue].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.DeleteQueueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.DeleteQueueRequest) - com.google.cloud.tasks.v2beta3.DeleteQueueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_DeleteQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_DeleteQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.DeleteQueueRequest.class, - com.google.cloud.tasks.v2beta3.DeleteQueueRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.DeleteQueueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_DeleteQueueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.DeleteQueueRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.DeleteQueueRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.DeleteQueueRequest build() { - com.google.cloud.tasks.v2beta3.DeleteQueueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.DeleteQueueRequest buildPartial() { - com.google.cloud.tasks.v2beta3.DeleteQueueRequest result = - new com.google.cloud.tasks.v2beta3.DeleteQueueRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.DeleteQueueRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta3.DeleteQueueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.DeleteQueueRequest other) { - if (other == com.google.cloud.tasks.v2beta3.DeleteQueueRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.DeleteQueueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.DeleteQueueRequest) - private static final com.google.cloud.tasks.v2beta3.DeleteQueueRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.DeleteQueueRequest(); - } - - public static com.google.cloud.tasks.v2beta3.DeleteQueueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteQueueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.DeleteQueueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequestOrBuilder.java deleted file mode 100644 index 1005fb1e..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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; - -public interface DeleteQueueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.DeleteQueueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequest.java deleted file mode 100644 index 10b454e5..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequest.java +++ /dev/null @@ -1,638 +0,0 @@ -/* - * Copyright 2020 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 deleting a task using
- * [DeleteTask][google.cloud.tasks.v2beta3.CloudTasks.DeleteTask].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.DeleteTaskRequest} - */ -public final class DeleteTaskRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.DeleteTaskRequest) - DeleteTaskRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteTaskRequest.newBuilder() to construct. - private DeleteTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private DeleteTaskRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new DeleteTaskRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_DeleteTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_DeleteTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.DeleteTaskRequest.class, - com.google.cloud.tasks.v2beta3.DeleteTaskRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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.DeleteTaskRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.DeleteTaskRequest other = - (com.google.cloud.tasks.v2beta3.DeleteTaskRequest) obj; - - if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.DeleteTaskRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.DeleteTaskRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.DeleteTaskRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.DeleteTaskRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.DeleteTaskRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.DeleteTaskRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.DeleteTaskRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.DeleteTaskRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.DeleteTaskRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.DeleteTaskRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.DeleteTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.DeleteTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta3.DeleteTaskRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for deleting a task using
-   * [DeleteTask][google.cloud.tasks.v2beta3.CloudTasks.DeleteTask].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.DeleteTaskRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.DeleteTaskRequest) - com.google.cloud.tasks.v2beta3.DeleteTaskRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_DeleteTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_DeleteTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.DeleteTaskRequest.class, - com.google.cloud.tasks.v2beta3.DeleteTaskRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.DeleteTaskRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_DeleteTaskRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.DeleteTaskRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.DeleteTaskRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.DeleteTaskRequest build() { - com.google.cloud.tasks.v2beta3.DeleteTaskRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.DeleteTaskRequest buildPartial() { - com.google.cloud.tasks.v2beta3.DeleteTaskRequest result = - new com.google.cloud.tasks.v2beta3.DeleteTaskRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.DeleteTaskRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta3.DeleteTaskRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.DeleteTaskRequest other) { - if (other == com.google.cloud.tasks.v2beta3.DeleteTaskRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.DeleteTaskRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.DeleteTaskRequest) - private static final com.google.cloud.tasks.v2beta3.DeleteTaskRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.DeleteTaskRequest(); - } - - public static com.google.cloud.tasks.v2beta3.DeleteTaskRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTaskRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.DeleteTaskRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequestOrBuilder.java deleted file mode 100644 index 31df875a..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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; - -public interface DeleteTaskRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.DeleteTaskRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequest.java deleted file mode 100644 index d6860354..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequest.java +++ /dev/null @@ -1,942 +0,0 @@ -/* - * Copyright 2020 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 [GetQueue][google.cloud.tasks.v2beta3.CloudTasks.GetQueue].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.GetQueueRequest} - */ -public final class GetQueueRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.GetQueueRequest) - GetQueueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetQueueRequest.newBuilder() to construct. - private GetQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetQueueRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetQueueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_GetQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_GetQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.GetQueueRequest.class, - com.google.cloud.tasks.v2beta3.GetQueueRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The resource name of the queue. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The resource name of the queue. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int READ_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask readMask_; - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the readMask field is set. - */ - @java.lang.Override - public boolean hasReadMask() { - return readMask_ != null; - } - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The readMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getReadMask() { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); - } - - 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(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (readMask_ != null) { - output.writeMessage(2, getReadMask()); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (readMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getReadMask()); - } - 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.GetQueueRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.GetQueueRequest other = - (com.google.cloud.tasks.v2beta3.GetQueueRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (hasReadMask() != other.hasReadMask()) return false; - if (hasReadMask()) { - if (!getReadMask().equals(other.getReadMask())) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasReadMask()) { - hash = (37 * hash) + READ_MASK_FIELD_NUMBER; - hash = (53 * hash) + getReadMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.GetQueueRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.GetQueueRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.GetQueueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.GetQueueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.GetQueueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.GetQueueRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.GetQueueRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.GetQueueRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.GetQueueRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.GetQueueRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.GetQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.GetQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta3.GetQueueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [GetQueue][google.cloud.tasks.v2beta3.CloudTasks.GetQueue].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.GetQueueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.GetQueueRequest) - com.google.cloud.tasks.v2beta3.GetQueueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_GetQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_GetQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.GetQueueRequest.class, - com.google.cloud.tasks.v2beta3.GetQueueRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.GetQueueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; - readMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_GetQueueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.GetQueueRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.GetQueueRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.GetQueueRequest build() { - com.google.cloud.tasks.v2beta3.GetQueueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.GetQueueRequest buildPartial() { - com.google.cloud.tasks.v2beta3.GetQueueRequest result = - new com.google.cloud.tasks.v2beta3.GetQueueRequest(this); - result.name_ = name_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.GetQueueRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta3.GetQueueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.GetQueueRequest other) { - if (other == com.google.cloud.tasks.v2beta3.GetQueueRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasReadMask()) { - mergeReadMask(other.getReadMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The resource name of the queue. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the queue. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The resource name of the queue. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource name of the queue. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource name of the queue. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.FieldMask readMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - readMaskBuilder_; - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the readMask field is set. - */ - public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The readMask. - */ - public com.google.protobuf.FieldMask getReadMask() { - if (readMaskBuilder_ == null) { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } else { - return readMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setReadMask(com.google.protobuf.FieldMask value) { - if (readMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - readMask_ = value; - onChanged(); - } else { - readMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (readMaskBuilder_ == null) { - readMask_ = builderForValue.build(); - onChanged(); - } else { - readMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeReadMask(com.google.protobuf.FieldMask value) { - if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); - } else { - readMask_ = value; - } - onChanged(); - } else { - readMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; - readMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - - onChanged(); - return getReadMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - if (readMaskBuilder_ != null) { - return readMaskBuilder_.getMessageOrBuilder(); - } else { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getReadMaskFieldBuilder() { - if (readMaskBuilder_ == null) { - readMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), getParentForChildren(), isClean()); - readMask_ = null; - } - return readMaskBuilder_; - } - - @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.GetQueueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.GetQueueRequest) - private static final com.google.cloud.tasks.v2beta3.GetQueueRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.GetQueueRequest(); - } - - public static com.google.cloud.tasks.v2beta3.GetQueueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetQueueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.GetQueueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequestOrBuilder.java deleted file mode 100644 index f8c79d47..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequestOrBuilder.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2020 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; - -public interface GetQueueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.GetQueueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the queue. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the queue. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the readMask field is set. - */ - boolean hasReadMask(); - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The readMask. - */ - com.google.protobuf.FieldMask getReadMask(); - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequest.java deleted file mode 100644 index 1d60cbbb..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequest.java +++ /dev/null @@ -1,847 +0,0 @@ -/* - * Copyright 2020 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 getting a task using [GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.GetTaskRequest} - */ -public final class GetTaskRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.GetTaskRequest) - GetTaskRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetTaskRequest.newBuilder() to construct. - private GetTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private GetTaskRequest() { - name_ = ""; - responseView_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new GetTaskRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_GetTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_GetTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.GetTaskRequest.class, - com.google.cloud.tasks.v2beta3.GetTaskRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESPONSE_VIEW_FIELD_NUMBER = 2; - private int responseView_; - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta3.Task.View result = - com.google.cloud.tasks.v2beta3.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta3.Task.View.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (responseView_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { - output.writeEnum(2, responseView_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (responseView_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, responseView_); - } - 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.GetTaskRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.GetTaskRequest other = - (com.google.cloud.tasks.v2beta3.GetTaskRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (responseView_ != other.responseView_) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; - hash = (53 * hash) + responseView_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.GetTaskRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.GetTaskRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.GetTaskRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.GetTaskRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.GetTaskRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.GetTaskRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.GetTaskRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.GetTaskRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.GetTaskRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.GetTaskRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.GetTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.GetTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta3.GetTaskRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for getting a task using [GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.GetTaskRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.GetTaskRequest) - com.google.cloud.tasks.v2beta3.GetTaskRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_GetTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_GetTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.GetTaskRequest.class, - com.google.cloud.tasks.v2beta3.GetTaskRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.GetTaskRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - responseView_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_GetTaskRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.GetTaskRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.GetTaskRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.GetTaskRequest build() { - com.google.cloud.tasks.v2beta3.GetTaskRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.GetTaskRequest buildPartial() { - com.google.cloud.tasks.v2beta3.GetTaskRequest result = - new com.google.cloud.tasks.v2beta3.GetTaskRequest(this); - result.name_ = name_; - result.responseView_ = responseView_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.GetTaskRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta3.GetTaskRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.GetTaskRequest other) { - if (other == com.google.cloud.tasks.v2beta3.GetTaskRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.responseView_ != 0) { - setResponseViewValue(other.getResponseViewValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - responseView_ = input.readEnum(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int responseView_ = 0; - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @param value The enum numeric value on the wire for responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseViewValue(int value) { - - responseView_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta3.Task.View result = - com.google.cloud.tasks.v2beta3.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta3.Task.View.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @param value The responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseView(com.google.cloud.tasks.v2beta3.Task.View value) { - if (value == null) { - throw new NullPointerException(); - } - - responseView_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @return This builder for chaining. - */ - public Builder clearResponseView() { - - responseView_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.GetTaskRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.GetTaskRequest) - private static final com.google.cloud.tasks.v2beta3.GetTaskRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.GetTaskRequest(); - } - - public static com.google.cloud.tasks.v2beta3.GetTaskRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTaskRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.GetTaskRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequestOrBuilder.java deleted file mode 100644 index 702b5ba7..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequestOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2020 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; - -public interface GetTaskRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.GetTaskRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - int getResponseViewValue(); - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @return The responseView. - */ - com.google.cloud.tasks.v2beta3.Task.View getResponseView(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpMethod.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpMethod.java deleted file mode 100644 index f6dd90bc..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpMethod.java +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta3; - -/** - * - * - *
- * The HTTP method used to execute the task.
- * 
- * - * Protobuf enum {@code google.cloud.tasks.v2beta3.HttpMethod} - */ -public enum HttpMethod implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * HTTP method unspecified
-   * 
- * - * HTTP_METHOD_UNSPECIFIED = 0; - */ - HTTP_METHOD_UNSPECIFIED(0), - /** - * - * - *
-   * HTTP POST
-   * 
- * - * POST = 1; - */ - POST(1), - /** - * - * - *
-   * HTTP GET
-   * 
- * - * GET = 2; - */ - GET(2), - /** - * - * - *
-   * HTTP HEAD
-   * 
- * - * HEAD = 3; - */ - HEAD(3), - /** - * - * - *
-   * HTTP PUT
-   * 
- * - * PUT = 4; - */ - PUT(4), - /** - * - * - *
-   * HTTP DELETE
-   * 
- * - * DELETE = 5; - */ - DELETE(5), - /** - * - * - *
-   * HTTP PATCH
-   * 
- * - * PATCH = 6; - */ - PATCH(6), - /** - * - * - *
-   * HTTP OPTIONS
-   * 
- * - * OPTIONS = 7; - */ - OPTIONS(7), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * HTTP method unspecified
-   * 
- * - * HTTP_METHOD_UNSPECIFIED = 0; - */ - public static final int HTTP_METHOD_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * HTTP POST
-   * 
- * - * POST = 1; - */ - public static final int POST_VALUE = 1; - /** - * - * - *
-   * HTTP GET
-   * 
- * - * GET = 2; - */ - public static final int GET_VALUE = 2; - /** - * - * - *
-   * HTTP HEAD
-   * 
- * - * HEAD = 3; - */ - public static final int HEAD_VALUE = 3; - /** - * - * - *
-   * HTTP PUT
-   * 
- * - * PUT = 4; - */ - public static final int PUT_VALUE = 4; - /** - * - * - *
-   * HTTP DELETE
-   * 
- * - * DELETE = 5; - */ - public static final int DELETE_VALUE = 5; - /** - * - * - *
-   * HTTP PATCH
-   * 
- * - * PATCH = 6; - */ - public static final int PATCH_VALUE = 6; - /** - * - * - *
-   * HTTP OPTIONS
-   * 
- * - * OPTIONS = 7; - */ - public static final int OPTIONS_VALUE = 7; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static HttpMethod valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static HttpMethod forNumber(int value) { - switch (value) { - case 0: - return HTTP_METHOD_UNSPECIFIED; - case 1: - return POST; - case 2: - return GET; - case 3: - return HEAD; - case 4: - return PUT; - case 5: - return DELETE; - case 6: - return PATCH; - case 7: - return OPTIONS; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public HttpMethod findValueByNumber(int number) { - return HttpMethod.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.TargetProto.getDescriptor().getEnumTypes().get(0); - } - - private static final HttpMethod[] VALUES = values(); - - public static HttpMethod valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private HttpMethod(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.tasks.v2beta3.HttpMethod) -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequest.java deleted file mode 100644 index 9823b6a4..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequest.java +++ /dev/null @@ -1,2304 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta3; - -/** - * - * - *
- * HTTP request.
- * The task will be pushed to the worker as an HTTP request. If the worker
- * or the redirected worker acknowledges the task by returning a successful HTTP
- * response code ([`200` - `299`]), the task will be removed from the queue. If
- * any other HTTP response code is returned or no response is received, the
- * task will be retried according to the following:
- * * User-specified throttling: [retry configuration][google.cloud.tasks.v2beta3.Queue.retry_config],
- *   [rate limits][google.cloud.tasks.v2beta3.Queue.rate_limits], and the [queue's state][google.cloud.tasks.v2beta3.Queue.state].
- * * System throttling: To prevent the worker from overloading, Cloud Tasks may
- *   temporarily reduce the queue's effective rate. User-specified settings
- *   will not be changed.
- *  System throttling happens because:
- *   * Cloud Tasks backs off on all errors. Normally the backoff specified in
- *     [rate limits][google.cloud.tasks.v2beta3.Queue.rate_limits] will be used. But if the worker returns
- *     `429` (Too Many Requests), `503` (Service Unavailable), or the rate of
- *     errors is high, Cloud Tasks will use a higher backoff rate. The retry
- *     specified in the `Retry-After` HTTP response header is considered.
- *   * To prevent traffic spikes and to smooth sudden increases in traffic,
- *     dispatches ramp up slowly when the queue is newly created or idle and
- *     if large numbers of tasks suddenly become available to dispatch (due to
- *     spikes in create task rates, the queue being unpaused, or many tasks
- *     that are scheduled at the same time).
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.HttpRequest} - */ -public final class HttpRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.HttpRequest) - HttpRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use HttpRequest.newBuilder() to construct. - private HttpRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private HttpRequest() { - url_ = ""; - httpMethod_ = 0; - body_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new HttpRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_HttpRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 3: - return internalGetHeaders(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_HttpRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.HttpRequest.class, - com.google.cloud.tasks.v2beta3.HttpRequest.Builder.class); - } - - private int authorizationHeaderCase_ = 0; - private java.lang.Object authorizationHeader_; - - public enum AuthorizationHeaderCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - OAUTH_TOKEN(5), - OIDC_TOKEN(6), - AUTHORIZATIONHEADER_NOT_SET(0); - private final int value; - - private AuthorizationHeaderCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AuthorizationHeaderCase valueOf(int value) { - return forNumber(value); - } - - public static AuthorizationHeaderCase forNumber(int value) { - switch (value) { - case 5: - return OAUTH_TOKEN; - case 6: - return OIDC_TOKEN; - case 0: - return AUTHORIZATIONHEADER_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public AuthorizationHeaderCase getAuthorizationHeaderCase() { - return AuthorizationHeaderCase.forNumber(authorizationHeaderCase_); - } - - public static final int URL_FIELD_NUMBER = 1; - private volatile java.lang.Object url_; - /** - * - * - *
-   * Required. The full url path that the request will be sent to.
-   * This string must begin with either "http://" or "https://". Some examples
-   * are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will
-   * encode some characters for safety and compatibility. The maximum allowed
-   * URL length is 2083 characters after encoding.
-   * The `Location` header response from a redirect response [`300` - `399`]
-   * may be followed. The redirect is not counted as a separate attempt.
-   * 
- * - * string url = 1; - * - * @return The url. - */ - @java.lang.Override - public java.lang.String getUrl() { - java.lang.Object ref = url_; - 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(); - url_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The full url path that the request will be sent to.
-   * This string must begin with either "http://" or "https://". Some examples
-   * are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will
-   * encode some characters for safety and compatibility. The maximum allowed
-   * URL length is 2083 characters after encoding.
-   * The `Location` header response from a redirect response [`300` - `399`]
-   * may be followed. The redirect is not counted as a separate attempt.
-   * 
- * - * string url = 1; - * - * @return The bytes for url. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HTTP_METHOD_FIELD_NUMBER = 2; - private int httpMethod_; - /** - * - * - *
-   * The HTTP method to use for the request. The default is POST.
-   * 
- * - * .google.cloud.tasks.v2beta3.HttpMethod http_method = 2; - * - * @return The enum numeric value on the wire for httpMethod. - */ - @java.lang.Override - public int getHttpMethodValue() { - return httpMethod_; - } - /** - * - * - *
-   * The HTTP method to use for the request. The default is POST.
-   * 
- * - * .google.cloud.tasks.v2beta3.HttpMethod http_method = 2; - * - * @return The httpMethod. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.HttpMethod getHttpMethod() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta3.HttpMethod result = - com.google.cloud.tasks.v2beta3.HttpMethod.valueOf(httpMethod_); - return result == null ? com.google.cloud.tasks.v2beta3.HttpMethod.UNRECOGNIZED : result; - } - - public static final int HEADERS_FIELD_NUMBER = 3; - - private static final class HeadersDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_HttpRequest_HeadersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField headers_; - - private com.google.protobuf.MapField internalGetHeaders() { - if (headers_ == null) { - return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); - } - return headers_; - } - - public int getHeadersCount() { - return internalGetHeaders().getMap().size(); - } - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * These headers represent a subset of the headers that will accompany the
-   * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-   * A partial list of headers that will be ignored or replaced is:
-   * * Host: This will be computed by Cloud Tasks and derived from
-   *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
-   * * Content-Length: This will be computed by Cloud Tasks.
-   * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * `X-Google-*`: Google use only.
-   * * `X-AppEngine-*`: Google use only.
-   * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-   * `Content-Type` to a media type when the
-   *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-   *  `"application/json"`.
-   * Headers which can have multiple values (according to RFC2616) can be
-   * specified using comma-separated values.
-   * The size of the headers must be less than 80KB.
-   * 
- * - * map<string, string> headers = 3; - */ - @java.lang.Override - public boolean containsHeaders(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetHeaders().getMap().containsKey(key); - } - /** Use {@link #getHeadersMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHeaders() { - return getHeadersMap(); - } - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * These headers represent a subset of the headers that will accompany the
-   * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-   * A partial list of headers that will be ignored or replaced is:
-   * * Host: This will be computed by Cloud Tasks and derived from
-   *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
-   * * Content-Length: This will be computed by Cloud Tasks.
-   * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * `X-Google-*`: Google use only.
-   * * `X-AppEngine-*`: Google use only.
-   * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-   * `Content-Type` to a media type when the
-   *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-   *  `"application/json"`.
-   * Headers which can have multiple values (according to RFC2616) can be
-   * specified using comma-separated values.
-   * The size of the headers must be less than 80KB.
-   * 
- * - * map<string, string> headers = 3; - */ - @java.lang.Override - public java.util.Map getHeadersMap() { - return internalGetHeaders().getMap(); - } - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * These headers represent a subset of the headers that will accompany the
-   * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-   * A partial list of headers that will be ignored or replaced is:
-   * * Host: This will be computed by Cloud Tasks and derived from
-   *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
-   * * Content-Length: This will be computed by Cloud Tasks.
-   * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * `X-Google-*`: Google use only.
-   * * `X-AppEngine-*`: Google use only.
-   * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-   * `Content-Type` to a media type when the
-   *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-   *  `"application/json"`.
-   * Headers which can have multiple values (according to RFC2616) can be
-   * specified using comma-separated values.
-   * The size of the headers must be less than 80KB.
-   * 
- * - * map<string, string> headers = 3; - */ - @java.lang.Override - public java.lang.String getHeadersOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHeaders().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * These headers represent a subset of the headers that will accompany the
-   * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-   * A partial list of headers that will be ignored or replaced is:
-   * * Host: This will be computed by Cloud Tasks and derived from
-   *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
-   * * Content-Length: This will be computed by Cloud Tasks.
-   * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * `X-Google-*`: Google use only.
-   * * `X-AppEngine-*`: Google use only.
-   * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-   * `Content-Type` to a media type when the
-   *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-   *  `"application/json"`.
-   * Headers which can have multiple values (according to RFC2616) can be
-   * specified using comma-separated values.
-   * The size of the headers must be less than 80KB.
-   * 
- * - * map<string, string> headers = 3; - */ - @java.lang.Override - public java.lang.String getHeadersOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHeaders().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int BODY_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString body_; - /** - * - * - *
-   * HTTP request body.
-   * A request body is allowed only if the
-   * [HTTP method][google.cloud.tasks.v2beta3.HttpRequest.http_method] is POST, PUT, or PATCH. It is an
-   * error to set body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2beta3.HttpMethod].
-   * 
- * - * bytes body = 4; - * - * @return The body. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBody() { - return body_; - } - - public static final int OAUTH_TOKEN_FIELD_NUMBER = 5; - /** - * - * - *
-   * If specified, an
-   * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-   * will be generated and attached as an `Authorization` header in the HTTP
-   * request.
-   * This type of authorization should generally only be used when calling
-   * Google APIs hosted on *.googleapis.com.
-   * 
- * - * .google.cloud.tasks.v2beta3.OAuthToken oauth_token = 5; - * - * @return Whether the oauthToken field is set. - */ - @java.lang.Override - public boolean hasOauthToken() { - return authorizationHeaderCase_ == 5; - } - /** - * - * - *
-   * If specified, an
-   * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-   * will be generated and attached as an `Authorization` header in the HTTP
-   * request.
-   * This type of authorization should generally only be used when calling
-   * Google APIs hosted on *.googleapis.com.
-   * 
- * - * .google.cloud.tasks.v2beta3.OAuthToken oauth_token = 5; - * - * @return The oauthToken. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.OAuthToken getOauthToken() { - if (authorizationHeaderCase_ == 5) { - return (com.google.cloud.tasks.v2beta3.OAuthToken) authorizationHeader_; - } - return com.google.cloud.tasks.v2beta3.OAuthToken.getDefaultInstance(); - } - /** - * - * - *
-   * If specified, an
-   * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-   * will be generated and attached as an `Authorization` header in the HTTP
-   * request.
-   * This type of authorization should generally only be used when calling
-   * Google APIs hosted on *.googleapis.com.
-   * 
- * - * .google.cloud.tasks.v2beta3.OAuthToken oauth_token = 5; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.OAuthTokenOrBuilder getOauthTokenOrBuilder() { - if (authorizationHeaderCase_ == 5) { - return (com.google.cloud.tasks.v2beta3.OAuthToken) authorizationHeader_; - } - return com.google.cloud.tasks.v2beta3.OAuthToken.getDefaultInstance(); - } - - public static final int OIDC_TOKEN_FIELD_NUMBER = 6; - /** - * - * - *
-   * If specified, an
-   * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-   * token will be generated and attached as an `Authorization` header in the
-   * HTTP request.
-   * This type of authorization can be used for many scenarios, including
-   * calling Cloud Run, or endpoints where you intend to validate the token
-   * yourself.
-   * 
- * - * .google.cloud.tasks.v2beta3.OidcToken oidc_token = 6; - * - * @return Whether the oidcToken field is set. - */ - @java.lang.Override - public boolean hasOidcToken() { - return authorizationHeaderCase_ == 6; - } - /** - * - * - *
-   * If specified, an
-   * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-   * token will be generated and attached as an `Authorization` header in the
-   * HTTP request.
-   * This type of authorization can be used for many scenarios, including
-   * calling Cloud Run, or endpoints where you intend to validate the token
-   * yourself.
-   * 
- * - * .google.cloud.tasks.v2beta3.OidcToken oidc_token = 6; - * - * @return The oidcToken. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.OidcToken getOidcToken() { - if (authorizationHeaderCase_ == 6) { - return (com.google.cloud.tasks.v2beta3.OidcToken) authorizationHeader_; - } - return com.google.cloud.tasks.v2beta3.OidcToken.getDefaultInstance(); - } - /** - * - * - *
-   * If specified, an
-   * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-   * token will be generated and attached as an `Authorization` header in the
-   * HTTP request.
-   * This type of authorization can be used for many scenarios, including
-   * calling Cloud Run, or endpoints where you intend to validate the token
-   * yourself.
-   * 
- * - * .google.cloud.tasks.v2beta3.OidcToken oidc_token = 6; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.OidcTokenOrBuilder getOidcTokenOrBuilder() { - if (authorizationHeaderCase_ == 6) { - return (com.google.cloud.tasks.v2beta3.OidcToken) authorizationHeader_; - } - return com.google.cloud.tasks.v2beta3.OidcToken.getDefaultInstance(); - } - - 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(url_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); - } - if (httpMethod_ - != com.google.cloud.tasks.v2beta3.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) { - output.writeEnum(2, httpMethod_); - } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetHeaders(), HeadersDefaultEntryHolder.defaultEntry, 3); - if (!body_.isEmpty()) { - output.writeBytes(4, body_); - } - if (authorizationHeaderCase_ == 5) { - output.writeMessage(5, (com.google.cloud.tasks.v2beta3.OAuthToken) authorizationHeader_); - } - if (authorizationHeaderCase_ == 6) { - output.writeMessage(6, (com.google.cloud.tasks.v2beta3.OidcToken) authorizationHeader_); - } - 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(url_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); - } - if (httpMethod_ - != com.google.cloud.tasks.v2beta3.HttpMethod.HTTP_METHOD_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, httpMethod_); - } - for (java.util.Map.Entry entry : - internalGetHeaders().getMap().entrySet()) { - com.google.protobuf.MapEntry headers__ = - HeadersDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, headers__); - } - if (!body_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, body_); - } - if (authorizationHeaderCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.tasks.v2beta3.OAuthToken) authorizationHeader_); - } - if (authorizationHeaderCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.tasks.v2beta3.OidcToken) authorizationHeader_); - } - 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.HttpRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.HttpRequest other = - (com.google.cloud.tasks.v2beta3.HttpRequest) obj; - - if (!getUrl().equals(other.getUrl())) return false; - if (httpMethod_ != other.httpMethod_) return false; - if (!internalGetHeaders().equals(other.internalGetHeaders())) return false; - if (!getBody().equals(other.getBody())) return false; - if (!getAuthorizationHeaderCase().equals(other.getAuthorizationHeaderCase())) return false; - switch (authorizationHeaderCase_) { - case 5: - if (!getOauthToken().equals(other.getOauthToken())) return false; - break; - case 6: - if (!getOidcToken().equals(other.getOidcToken())) return false; - break; - case 0: - default: - } - 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) + URL_FIELD_NUMBER; - hash = (53 * hash) + getUrl().hashCode(); - hash = (37 * hash) + HTTP_METHOD_FIELD_NUMBER; - hash = (53 * hash) + httpMethod_; - if (!internalGetHeaders().getMap().isEmpty()) { - hash = (37 * hash) + HEADERS_FIELD_NUMBER; - hash = (53 * hash) + internalGetHeaders().hashCode(); - } - hash = (37 * hash) + BODY_FIELD_NUMBER; - hash = (53 * hash) + getBody().hashCode(); - switch (authorizationHeaderCase_) { - case 5: - hash = (37 * hash) + OAUTH_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getOauthToken().hashCode(); - break; - case 6: - hash = (37 * hash) + OIDC_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getOidcToken().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.HttpRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.HttpRequest 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.HttpRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.HttpRequest 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.HttpRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.HttpRequest 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.HttpRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.HttpRequest 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.HttpRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.HttpRequest 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.HttpRequest 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.HttpRequest 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.HttpRequest 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; - } - /** - * - * - *
-   * HTTP request.
-   * The task will be pushed to the worker as an HTTP request. If the worker
-   * or the redirected worker acknowledges the task by returning a successful HTTP
-   * response code ([`200` - `299`]), the task will be removed from the queue. If
-   * any other HTTP response code is returned or no response is received, the
-   * task will be retried according to the following:
-   * * User-specified throttling: [retry configuration][google.cloud.tasks.v2beta3.Queue.retry_config],
-   *   [rate limits][google.cloud.tasks.v2beta3.Queue.rate_limits], and the [queue's state][google.cloud.tasks.v2beta3.Queue.state].
-   * * System throttling: To prevent the worker from overloading, Cloud Tasks may
-   *   temporarily reduce the queue's effective rate. User-specified settings
-   *   will not be changed.
-   *  System throttling happens because:
-   *   * Cloud Tasks backs off on all errors. Normally the backoff specified in
-   *     [rate limits][google.cloud.tasks.v2beta3.Queue.rate_limits] will be used. But if the worker returns
-   *     `429` (Too Many Requests), `503` (Service Unavailable), or the rate of
-   *     errors is high, Cloud Tasks will use a higher backoff rate. The retry
-   *     specified in the `Retry-After` HTTP response header is considered.
-   *   * To prevent traffic spikes and to smooth sudden increases in traffic,
-   *     dispatches ramp up slowly when the queue is newly created or idle and
-   *     if large numbers of tasks suddenly become available to dispatch (due to
-   *     spikes in create task rates, the queue being unpaused, or many tasks
-   *     that are scheduled at the same time).
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.HttpRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.HttpRequest) - com.google.cloud.tasks.v2beta3.HttpRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_HttpRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { - switch (number) { - case 3: - return internalGetHeaders(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField(int number) { - switch (number) { - case 3: - return internalGetMutableHeaders(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_HttpRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.HttpRequest.class, - com.google.cloud.tasks.v2beta3.HttpRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.HttpRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - url_ = ""; - - httpMethod_ = 0; - - internalGetMutableHeaders().clear(); - body_ = com.google.protobuf.ByteString.EMPTY; - - if (oauthTokenBuilder_ != null) { - oauthTokenBuilder_.clear(); - } - if (oidcTokenBuilder_ != null) { - oidcTokenBuilder_.clear(); - } - authorizationHeaderCase_ = 0; - authorizationHeader_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_HttpRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.HttpRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.HttpRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.HttpRequest build() { - com.google.cloud.tasks.v2beta3.HttpRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.HttpRequest buildPartial() { - com.google.cloud.tasks.v2beta3.HttpRequest result = - new com.google.cloud.tasks.v2beta3.HttpRequest(this); - int from_bitField0_ = bitField0_; - result.url_ = url_; - result.httpMethod_ = httpMethod_; - result.headers_ = internalGetHeaders(); - result.headers_.makeImmutable(); - result.body_ = body_; - if (authorizationHeaderCase_ == 5) { - if (oauthTokenBuilder_ == null) { - result.authorizationHeader_ = authorizationHeader_; - } else { - result.authorizationHeader_ = oauthTokenBuilder_.build(); - } - } - if (authorizationHeaderCase_ == 6) { - if (oidcTokenBuilder_ == null) { - result.authorizationHeader_ = authorizationHeader_; - } else { - result.authorizationHeader_ = oidcTokenBuilder_.build(); - } - } - result.authorizationHeaderCase_ = authorizationHeaderCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.HttpRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta3.HttpRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.HttpRequest other) { - if (other == com.google.cloud.tasks.v2beta3.HttpRequest.getDefaultInstance()) return this; - if (!other.getUrl().isEmpty()) { - url_ = other.url_; - onChanged(); - } - if (other.httpMethod_ != 0) { - setHttpMethodValue(other.getHttpMethodValue()); - } - internalGetMutableHeaders().mergeFrom(other.internalGetHeaders()); - if (other.getBody() != com.google.protobuf.ByteString.EMPTY) { - setBody(other.getBody()); - } - switch (other.getAuthorizationHeaderCase()) { - case OAUTH_TOKEN: - { - mergeOauthToken(other.getOauthToken()); - break; - } - case OIDC_TOKEN: - { - mergeOidcToken(other.getOidcToken()); - break; - } - case AUTHORIZATIONHEADER_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - url_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - httpMethod_ = input.readEnum(); - - break; - } // case 16 - case 26: - { - com.google.protobuf.MapEntry headers__ = - input.readMessage( - HeadersDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableHeaders() - .getMutableMap() - .put(headers__.getKey(), headers__.getValue()); - break; - } // case 26 - case 34: - { - body_ = input.readBytes(); - - break; - } // case 34 - case 42: - { - input.readMessage(getOauthTokenFieldBuilder().getBuilder(), extensionRegistry); - authorizationHeaderCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage(getOidcTokenFieldBuilder().getBuilder(), extensionRegistry); - authorizationHeaderCase_ = 6; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int authorizationHeaderCase_ = 0; - private java.lang.Object authorizationHeader_; - - public AuthorizationHeaderCase getAuthorizationHeaderCase() { - return AuthorizationHeaderCase.forNumber(authorizationHeaderCase_); - } - - public Builder clearAuthorizationHeader() { - authorizationHeaderCase_ = 0; - authorizationHeader_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object url_ = ""; - /** - * - * - *
-     * Required. The full url path that the request will be sent to.
-     * This string must begin with either "http://" or "https://". Some examples
-     * are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will
-     * encode some characters for safety and compatibility. The maximum allowed
-     * URL length is 2083 characters after encoding.
-     * The `Location` header response from a redirect response [`300` - `399`]
-     * may be followed. The redirect is not counted as a separate attempt.
-     * 
- * - * string url = 1; - * - * @return The url. - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The full url path that the request will be sent to.
-     * This string must begin with either "http://" or "https://". Some examples
-     * are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will
-     * encode some characters for safety and compatibility. The maximum allowed
-     * URL length is 2083 characters after encoding.
-     * The `Location` header response from a redirect response [`300` - `399`]
-     * may be followed. The redirect is not counted as a separate attempt.
-     * 
- * - * string url = 1; - * - * @return The bytes for url. - */ - public com.google.protobuf.ByteString getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The full url path that the request will be sent to.
-     * This string must begin with either "http://" or "https://". Some examples
-     * are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will
-     * encode some characters for safety and compatibility. The maximum allowed
-     * URL length is 2083 characters after encoding.
-     * The `Location` header response from a redirect response [`300` - `399`]
-     * may be followed. The redirect is not counted as a separate attempt.
-     * 
- * - * string url = 1; - * - * @param value The url to set. - * @return This builder for chaining. - */ - public Builder setUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - url_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The full url path that the request will be sent to.
-     * This string must begin with either "http://" or "https://". Some examples
-     * are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will
-     * encode some characters for safety and compatibility. The maximum allowed
-     * URL length is 2083 characters after encoding.
-     * The `Location` header response from a redirect response [`300` - `399`]
-     * may be followed. The redirect is not counted as a separate attempt.
-     * 
- * - * string url = 1; - * - * @return This builder for chaining. - */ - public Builder clearUrl() { - - url_ = getDefaultInstance().getUrl(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The full url path that the request will be sent to.
-     * This string must begin with either "http://" or "https://". Some examples
-     * are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will
-     * encode some characters for safety and compatibility. The maximum allowed
-     * URL length is 2083 characters after encoding.
-     * The `Location` header response from a redirect response [`300` - `399`]
-     * may be followed. The redirect is not counted as a separate attempt.
-     * 
- * - * string url = 1; - * - * @param value The bytes for url to set. - * @return This builder for chaining. - */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - url_ = value; - onChanged(); - return this; - } - - private int httpMethod_ = 0; - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * 
- * - * .google.cloud.tasks.v2beta3.HttpMethod http_method = 2; - * - * @return The enum numeric value on the wire for httpMethod. - */ - @java.lang.Override - public int getHttpMethodValue() { - return httpMethod_; - } - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * 
- * - * .google.cloud.tasks.v2beta3.HttpMethod http_method = 2; - * - * @param value The enum numeric value on the wire for httpMethod to set. - * @return This builder for chaining. - */ - public Builder setHttpMethodValue(int value) { - - httpMethod_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * 
- * - * .google.cloud.tasks.v2beta3.HttpMethod http_method = 2; - * - * @return The httpMethod. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.HttpMethod getHttpMethod() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta3.HttpMethod result = - com.google.cloud.tasks.v2beta3.HttpMethod.valueOf(httpMethod_); - return result == null ? com.google.cloud.tasks.v2beta3.HttpMethod.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * 
- * - * .google.cloud.tasks.v2beta3.HttpMethod http_method = 2; - * - * @param value The httpMethod to set. - * @return This builder for chaining. - */ - public Builder setHttpMethod(com.google.cloud.tasks.v2beta3.HttpMethod value) { - if (value == null) { - throw new NullPointerException(); - } - - httpMethod_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The HTTP method to use for the request. The default is POST.
-     * 
- * - * .google.cloud.tasks.v2beta3.HttpMethod http_method = 2; - * - * @return This builder for chaining. - */ - public Builder clearHttpMethod() { - - httpMethod_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField headers_; - - private com.google.protobuf.MapField internalGetHeaders() { - if (headers_ == null) { - return com.google.protobuf.MapField.emptyMapField(HeadersDefaultEntryHolder.defaultEntry); - } - return headers_; - } - - private com.google.protobuf.MapField - internalGetMutableHeaders() { - onChanged(); - ; - if (headers_ == null) { - headers_ = com.google.protobuf.MapField.newMapField(HeadersDefaultEntryHolder.defaultEntry); - } - if (!headers_.isMutable()) { - headers_ = headers_.copy(); - } - return headers_; - } - - public int getHeadersCount() { - return internalGetHeaders().getMap().size(); - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * These headers represent a subset of the headers that will accompany the
-     * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-     * A partial list of headers that will be ignored or replaced is:
-     * * Host: This will be computed by Cloud Tasks and derived from
-     *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
-     * * Content-Length: This will be computed by Cloud Tasks.
-     * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * `X-Google-*`: Google use only.
-     * * `X-AppEngine-*`: Google use only.
-     * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-     * `Content-Type` to a media type when the
-     *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-     *  `"application/json"`.
-     * Headers which can have multiple values (according to RFC2616) can be
-     * specified using comma-separated values.
-     * The size of the headers must be less than 80KB.
-     * 
- * - * map<string, string> headers = 3; - */ - @java.lang.Override - public boolean containsHeaders(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetHeaders().getMap().containsKey(key); - } - /** Use {@link #getHeadersMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getHeaders() { - return getHeadersMap(); - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * These headers represent a subset of the headers that will accompany the
-     * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-     * A partial list of headers that will be ignored or replaced is:
-     * * Host: This will be computed by Cloud Tasks and derived from
-     *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
-     * * Content-Length: This will be computed by Cloud Tasks.
-     * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * `X-Google-*`: Google use only.
-     * * `X-AppEngine-*`: Google use only.
-     * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-     * `Content-Type` to a media type when the
-     *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-     *  `"application/json"`.
-     * Headers which can have multiple values (according to RFC2616) can be
-     * specified using comma-separated values.
-     * The size of the headers must be less than 80KB.
-     * 
- * - * map<string, string> headers = 3; - */ - @java.lang.Override - public java.util.Map getHeadersMap() { - return internalGetHeaders().getMap(); - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * These headers represent a subset of the headers that will accompany the
-     * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-     * A partial list of headers that will be ignored or replaced is:
-     * * Host: This will be computed by Cloud Tasks and derived from
-     *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
-     * * Content-Length: This will be computed by Cloud Tasks.
-     * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * `X-Google-*`: Google use only.
-     * * `X-AppEngine-*`: Google use only.
-     * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-     * `Content-Type` to a media type when the
-     *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-     *  `"application/json"`.
-     * Headers which can have multiple values (according to RFC2616) can be
-     * specified using comma-separated values.
-     * The size of the headers must be less than 80KB.
-     * 
- * - * map<string, string> headers = 3; - */ - @java.lang.Override - public java.lang.String getHeadersOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHeaders().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * These headers represent a subset of the headers that will accompany the
-     * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-     * A partial list of headers that will be ignored or replaced is:
-     * * Host: This will be computed by Cloud Tasks and derived from
-     *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
-     * * Content-Length: This will be computed by Cloud Tasks.
-     * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * `X-Google-*`: Google use only.
-     * * `X-AppEngine-*`: Google use only.
-     * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-     * `Content-Type` to a media type when the
-     *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-     *  `"application/json"`.
-     * Headers which can have multiple values (according to RFC2616) can be
-     * specified using comma-separated values.
-     * The size of the headers must be less than 80KB.
-     * 
- * - * map<string, string> headers = 3; - */ - @java.lang.Override - public java.lang.String getHeadersOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetHeaders().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearHeaders() { - internalGetMutableHeaders().getMutableMap().clear(); - return this; - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * These headers represent a subset of the headers that will accompany the
-     * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-     * A partial list of headers that will be ignored or replaced is:
-     * * Host: This will be computed by Cloud Tasks and derived from
-     *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
-     * * Content-Length: This will be computed by Cloud Tasks.
-     * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * `X-Google-*`: Google use only.
-     * * `X-AppEngine-*`: Google use only.
-     * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-     * `Content-Type` to a media type when the
-     *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-     *  `"application/json"`.
-     * Headers which can have multiple values (according to RFC2616) can be
-     * specified using comma-separated values.
-     * The size of the headers must be less than 80KB.
-     * 
- * - * map<string, string> headers = 3; - */ - public Builder removeHeaders(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableHeaders().getMutableMap().remove(key); - return this; - } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableHeaders() { - return internalGetMutableHeaders().getMutableMap(); - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * These headers represent a subset of the headers that will accompany the
-     * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-     * A partial list of headers that will be ignored or replaced is:
-     * * Host: This will be computed by Cloud Tasks and derived from
-     *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
-     * * Content-Length: This will be computed by Cloud Tasks.
-     * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * `X-Google-*`: Google use only.
-     * * `X-AppEngine-*`: Google use only.
-     * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-     * `Content-Type` to a media type when the
-     *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-     *  `"application/json"`.
-     * Headers which can have multiple values (according to RFC2616) can be
-     * specified using comma-separated values.
-     * The size of the headers must be less than 80KB.
-     * 
- * - * map<string, string> headers = 3; - */ - public Builder putHeaders(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - - internalGetMutableHeaders().getMutableMap().put(key, value); - return this; - } - /** - * - * - *
-     * HTTP request headers.
-     * This map contains the header field names and values.
-     * Headers can be set when the
-     * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * These headers represent a subset of the headers that will accompany the
-     * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-     * A partial list of headers that will be ignored or replaced is:
-     * * Host: This will be computed by Cloud Tasks and derived from
-     *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
-     * * Content-Length: This will be computed by Cloud Tasks.
-     * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-     * * `X-Google-*`: Google use only.
-     * * `X-AppEngine-*`: Google use only.
-     * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-     * `Content-Type` to a media type when the
-     *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-     *  `"application/json"`.
-     * Headers which can have multiple values (according to RFC2616) can be
-     * specified using comma-separated values.
-     * The size of the headers must be less than 80KB.
-     * 
- * - * map<string, string> headers = 3; - */ - public Builder putAllHeaders(java.util.Map values) { - internalGetMutableHeaders().getMutableMap().putAll(values); - return this; - } - - private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; - /** - * - * - *
-     * HTTP request body.
-     * A request body is allowed only if the
-     * [HTTP method][google.cloud.tasks.v2beta3.HttpRequest.http_method] is POST, PUT, or PATCH. It is an
-     * error to set body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2beta3.HttpMethod].
-     * 
- * - * bytes body = 4; - * - * @return The body. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBody() { - return body_; - } - /** - * - * - *
-     * HTTP request body.
-     * A request body is allowed only if the
-     * [HTTP method][google.cloud.tasks.v2beta3.HttpRequest.http_method] is POST, PUT, or PATCH. It is an
-     * error to set body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2beta3.HttpMethod].
-     * 
- * - * bytes body = 4; - * - * @param value The body to set. - * @return This builder for chaining. - */ - public Builder setBody(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - body_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * HTTP request body.
-     * A request body is allowed only if the
-     * [HTTP method][google.cloud.tasks.v2beta3.HttpRequest.http_method] is POST, PUT, or PATCH. It is an
-     * error to set body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2beta3.HttpMethod].
-     * 
- * - * bytes body = 4; - * - * @return This builder for chaining. - */ - public Builder clearBody() { - - body_ = getDefaultInstance().getBody(); - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.OAuthToken, - com.google.cloud.tasks.v2beta3.OAuthToken.Builder, - com.google.cloud.tasks.v2beta3.OAuthTokenOrBuilder> - oauthTokenBuilder_; - /** - * - * - *
-     * If specified, an
-     * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-     * will be generated and attached as an `Authorization` header in the HTTP
-     * request.
-     * This type of authorization should generally only be used when calling
-     * Google APIs hosted on *.googleapis.com.
-     * 
- * - * .google.cloud.tasks.v2beta3.OAuthToken oauth_token = 5; - * - * @return Whether the oauthToken field is set. - */ - @java.lang.Override - public boolean hasOauthToken() { - return authorizationHeaderCase_ == 5; - } - /** - * - * - *
-     * If specified, an
-     * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-     * will be generated and attached as an `Authorization` header in the HTTP
-     * request.
-     * This type of authorization should generally only be used when calling
-     * Google APIs hosted on *.googleapis.com.
-     * 
- * - * .google.cloud.tasks.v2beta3.OAuthToken oauth_token = 5; - * - * @return The oauthToken. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.OAuthToken getOauthToken() { - if (oauthTokenBuilder_ == null) { - if (authorizationHeaderCase_ == 5) { - return (com.google.cloud.tasks.v2beta3.OAuthToken) authorizationHeader_; - } - return com.google.cloud.tasks.v2beta3.OAuthToken.getDefaultInstance(); - } else { - if (authorizationHeaderCase_ == 5) { - return oauthTokenBuilder_.getMessage(); - } - return com.google.cloud.tasks.v2beta3.OAuthToken.getDefaultInstance(); - } - } - /** - * - * - *
-     * If specified, an
-     * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-     * will be generated and attached as an `Authorization` header in the HTTP
-     * request.
-     * This type of authorization should generally only be used when calling
-     * Google APIs hosted on *.googleapis.com.
-     * 
- * - * .google.cloud.tasks.v2beta3.OAuthToken oauth_token = 5; - */ - public Builder setOauthToken(com.google.cloud.tasks.v2beta3.OAuthToken value) { - if (oauthTokenBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - authorizationHeader_ = value; - onChanged(); - } else { - oauthTokenBuilder_.setMessage(value); - } - authorizationHeaderCase_ = 5; - return this; - } - /** - * - * - *
-     * If specified, an
-     * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-     * will be generated and attached as an `Authorization` header in the HTTP
-     * request.
-     * This type of authorization should generally only be used when calling
-     * Google APIs hosted on *.googleapis.com.
-     * 
- * - * .google.cloud.tasks.v2beta3.OAuthToken oauth_token = 5; - */ - public Builder setOauthToken( - com.google.cloud.tasks.v2beta3.OAuthToken.Builder builderForValue) { - if (oauthTokenBuilder_ == null) { - authorizationHeader_ = builderForValue.build(); - onChanged(); - } else { - oauthTokenBuilder_.setMessage(builderForValue.build()); - } - authorizationHeaderCase_ = 5; - return this; - } - /** - * - * - *
-     * If specified, an
-     * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-     * will be generated and attached as an `Authorization` header in the HTTP
-     * request.
-     * This type of authorization should generally only be used when calling
-     * Google APIs hosted on *.googleapis.com.
-     * 
- * - * .google.cloud.tasks.v2beta3.OAuthToken oauth_token = 5; - */ - public Builder mergeOauthToken(com.google.cloud.tasks.v2beta3.OAuthToken value) { - if (oauthTokenBuilder_ == null) { - if (authorizationHeaderCase_ == 5 - && authorizationHeader_ - != com.google.cloud.tasks.v2beta3.OAuthToken.getDefaultInstance()) { - authorizationHeader_ = - com.google.cloud.tasks.v2beta3.OAuthToken.newBuilder( - (com.google.cloud.tasks.v2beta3.OAuthToken) authorizationHeader_) - .mergeFrom(value) - .buildPartial(); - } else { - authorizationHeader_ = value; - } - onChanged(); - } else { - if (authorizationHeaderCase_ == 5) { - oauthTokenBuilder_.mergeFrom(value); - } else { - oauthTokenBuilder_.setMessage(value); - } - } - authorizationHeaderCase_ = 5; - return this; - } - /** - * - * - *
-     * If specified, an
-     * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-     * will be generated and attached as an `Authorization` header in the HTTP
-     * request.
-     * This type of authorization should generally only be used when calling
-     * Google APIs hosted on *.googleapis.com.
-     * 
- * - * .google.cloud.tasks.v2beta3.OAuthToken oauth_token = 5; - */ - public Builder clearOauthToken() { - if (oauthTokenBuilder_ == null) { - if (authorizationHeaderCase_ == 5) { - authorizationHeaderCase_ = 0; - authorizationHeader_ = null; - onChanged(); - } - } else { - if (authorizationHeaderCase_ == 5) { - authorizationHeaderCase_ = 0; - authorizationHeader_ = null; - } - oauthTokenBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * If specified, an
-     * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-     * will be generated and attached as an `Authorization` header in the HTTP
-     * request.
-     * This type of authorization should generally only be used when calling
-     * Google APIs hosted on *.googleapis.com.
-     * 
- * - * .google.cloud.tasks.v2beta3.OAuthToken oauth_token = 5; - */ - public com.google.cloud.tasks.v2beta3.OAuthToken.Builder getOauthTokenBuilder() { - return getOauthTokenFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * If specified, an
-     * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-     * will be generated and attached as an `Authorization` header in the HTTP
-     * request.
-     * This type of authorization should generally only be used when calling
-     * Google APIs hosted on *.googleapis.com.
-     * 
- * - * .google.cloud.tasks.v2beta3.OAuthToken oauth_token = 5; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.OAuthTokenOrBuilder getOauthTokenOrBuilder() { - if ((authorizationHeaderCase_ == 5) && (oauthTokenBuilder_ != null)) { - return oauthTokenBuilder_.getMessageOrBuilder(); - } else { - if (authorizationHeaderCase_ == 5) { - return (com.google.cloud.tasks.v2beta3.OAuthToken) authorizationHeader_; - } - return com.google.cloud.tasks.v2beta3.OAuthToken.getDefaultInstance(); - } - } - /** - * - * - *
-     * If specified, an
-     * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-     * will be generated and attached as an `Authorization` header in the HTTP
-     * request.
-     * This type of authorization should generally only be used when calling
-     * Google APIs hosted on *.googleapis.com.
-     * 
- * - * .google.cloud.tasks.v2beta3.OAuthToken oauth_token = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.OAuthToken, - com.google.cloud.tasks.v2beta3.OAuthToken.Builder, - com.google.cloud.tasks.v2beta3.OAuthTokenOrBuilder> - getOauthTokenFieldBuilder() { - if (oauthTokenBuilder_ == null) { - if (!(authorizationHeaderCase_ == 5)) { - authorizationHeader_ = com.google.cloud.tasks.v2beta3.OAuthToken.getDefaultInstance(); - } - oauthTokenBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.OAuthToken, - com.google.cloud.tasks.v2beta3.OAuthToken.Builder, - com.google.cloud.tasks.v2beta3.OAuthTokenOrBuilder>( - (com.google.cloud.tasks.v2beta3.OAuthToken) authorizationHeader_, - getParentForChildren(), - isClean()); - authorizationHeader_ = null; - } - authorizationHeaderCase_ = 5; - onChanged(); - ; - return oauthTokenBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.OidcToken, - com.google.cloud.tasks.v2beta3.OidcToken.Builder, - com.google.cloud.tasks.v2beta3.OidcTokenOrBuilder> - oidcTokenBuilder_; - /** - * - * - *
-     * If specified, an
-     * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-     * token will be generated and attached as an `Authorization` header in the
-     * HTTP request.
-     * This type of authorization can be used for many scenarios, including
-     * calling Cloud Run, or endpoints where you intend to validate the token
-     * yourself.
-     * 
- * - * .google.cloud.tasks.v2beta3.OidcToken oidc_token = 6; - * - * @return Whether the oidcToken field is set. - */ - @java.lang.Override - public boolean hasOidcToken() { - return authorizationHeaderCase_ == 6; - } - /** - * - * - *
-     * If specified, an
-     * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-     * token will be generated and attached as an `Authorization` header in the
-     * HTTP request.
-     * This type of authorization can be used for many scenarios, including
-     * calling Cloud Run, or endpoints where you intend to validate the token
-     * yourself.
-     * 
- * - * .google.cloud.tasks.v2beta3.OidcToken oidc_token = 6; - * - * @return The oidcToken. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.OidcToken getOidcToken() { - if (oidcTokenBuilder_ == null) { - if (authorizationHeaderCase_ == 6) { - return (com.google.cloud.tasks.v2beta3.OidcToken) authorizationHeader_; - } - return com.google.cloud.tasks.v2beta3.OidcToken.getDefaultInstance(); - } else { - if (authorizationHeaderCase_ == 6) { - return oidcTokenBuilder_.getMessage(); - } - return com.google.cloud.tasks.v2beta3.OidcToken.getDefaultInstance(); - } - } - /** - * - * - *
-     * If specified, an
-     * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-     * token will be generated and attached as an `Authorization` header in the
-     * HTTP request.
-     * This type of authorization can be used for many scenarios, including
-     * calling Cloud Run, or endpoints where you intend to validate the token
-     * yourself.
-     * 
- * - * .google.cloud.tasks.v2beta3.OidcToken oidc_token = 6; - */ - public Builder setOidcToken(com.google.cloud.tasks.v2beta3.OidcToken value) { - if (oidcTokenBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - authorizationHeader_ = value; - onChanged(); - } else { - oidcTokenBuilder_.setMessage(value); - } - authorizationHeaderCase_ = 6; - return this; - } - /** - * - * - *
-     * If specified, an
-     * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-     * token will be generated and attached as an `Authorization` header in the
-     * HTTP request.
-     * This type of authorization can be used for many scenarios, including
-     * calling Cloud Run, or endpoints where you intend to validate the token
-     * yourself.
-     * 
- * - * .google.cloud.tasks.v2beta3.OidcToken oidc_token = 6; - */ - public Builder setOidcToken(com.google.cloud.tasks.v2beta3.OidcToken.Builder builderForValue) { - if (oidcTokenBuilder_ == null) { - authorizationHeader_ = builderForValue.build(); - onChanged(); - } else { - oidcTokenBuilder_.setMessage(builderForValue.build()); - } - authorizationHeaderCase_ = 6; - return this; - } - /** - * - * - *
-     * If specified, an
-     * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-     * token will be generated and attached as an `Authorization` header in the
-     * HTTP request.
-     * This type of authorization can be used for many scenarios, including
-     * calling Cloud Run, or endpoints where you intend to validate the token
-     * yourself.
-     * 
- * - * .google.cloud.tasks.v2beta3.OidcToken oidc_token = 6; - */ - public Builder mergeOidcToken(com.google.cloud.tasks.v2beta3.OidcToken value) { - if (oidcTokenBuilder_ == null) { - if (authorizationHeaderCase_ == 6 - && authorizationHeader_ - != com.google.cloud.tasks.v2beta3.OidcToken.getDefaultInstance()) { - authorizationHeader_ = - com.google.cloud.tasks.v2beta3.OidcToken.newBuilder( - (com.google.cloud.tasks.v2beta3.OidcToken) authorizationHeader_) - .mergeFrom(value) - .buildPartial(); - } else { - authorizationHeader_ = value; - } - onChanged(); - } else { - if (authorizationHeaderCase_ == 6) { - oidcTokenBuilder_.mergeFrom(value); - } else { - oidcTokenBuilder_.setMessage(value); - } - } - authorizationHeaderCase_ = 6; - return this; - } - /** - * - * - *
-     * If specified, an
-     * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-     * token will be generated and attached as an `Authorization` header in the
-     * HTTP request.
-     * This type of authorization can be used for many scenarios, including
-     * calling Cloud Run, or endpoints where you intend to validate the token
-     * yourself.
-     * 
- * - * .google.cloud.tasks.v2beta3.OidcToken oidc_token = 6; - */ - public Builder clearOidcToken() { - if (oidcTokenBuilder_ == null) { - if (authorizationHeaderCase_ == 6) { - authorizationHeaderCase_ = 0; - authorizationHeader_ = null; - onChanged(); - } - } else { - if (authorizationHeaderCase_ == 6) { - authorizationHeaderCase_ = 0; - authorizationHeader_ = null; - } - oidcTokenBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * If specified, an
-     * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-     * token will be generated and attached as an `Authorization` header in the
-     * HTTP request.
-     * This type of authorization can be used for many scenarios, including
-     * calling Cloud Run, or endpoints where you intend to validate the token
-     * yourself.
-     * 
- * - * .google.cloud.tasks.v2beta3.OidcToken oidc_token = 6; - */ - public com.google.cloud.tasks.v2beta3.OidcToken.Builder getOidcTokenBuilder() { - return getOidcTokenFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * If specified, an
-     * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-     * token will be generated and attached as an `Authorization` header in the
-     * HTTP request.
-     * This type of authorization can be used for many scenarios, including
-     * calling Cloud Run, or endpoints where you intend to validate the token
-     * yourself.
-     * 
- * - * .google.cloud.tasks.v2beta3.OidcToken oidc_token = 6; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.OidcTokenOrBuilder getOidcTokenOrBuilder() { - if ((authorizationHeaderCase_ == 6) && (oidcTokenBuilder_ != null)) { - return oidcTokenBuilder_.getMessageOrBuilder(); - } else { - if (authorizationHeaderCase_ == 6) { - return (com.google.cloud.tasks.v2beta3.OidcToken) authorizationHeader_; - } - return com.google.cloud.tasks.v2beta3.OidcToken.getDefaultInstance(); - } - } - /** - * - * - *
-     * If specified, an
-     * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-     * token will be generated and attached as an `Authorization` header in the
-     * HTTP request.
-     * This type of authorization can be used for many scenarios, including
-     * calling Cloud Run, or endpoints where you intend to validate the token
-     * yourself.
-     * 
- * - * .google.cloud.tasks.v2beta3.OidcToken oidc_token = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.OidcToken, - com.google.cloud.tasks.v2beta3.OidcToken.Builder, - com.google.cloud.tasks.v2beta3.OidcTokenOrBuilder> - getOidcTokenFieldBuilder() { - if (oidcTokenBuilder_ == null) { - if (!(authorizationHeaderCase_ == 6)) { - authorizationHeader_ = com.google.cloud.tasks.v2beta3.OidcToken.getDefaultInstance(); - } - oidcTokenBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.OidcToken, - com.google.cloud.tasks.v2beta3.OidcToken.Builder, - com.google.cloud.tasks.v2beta3.OidcTokenOrBuilder>( - (com.google.cloud.tasks.v2beta3.OidcToken) authorizationHeader_, - getParentForChildren(), - isClean()); - authorizationHeader_ = null; - } - authorizationHeaderCase_ = 6; - onChanged(); - ; - return oidcTokenBuilder_; - } - - @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.HttpRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.HttpRequest) - private static final com.google.cloud.tasks.v2beta3.HttpRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.HttpRequest(); - } - - public static com.google.cloud.tasks.v2beta3.HttpRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HttpRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.HttpRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequestOrBuilder.java deleted file mode 100644 index a6be1e13..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequestOrBuilder.java +++ /dev/null @@ -1,368 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta3; - -public interface HttpRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.HttpRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The full url path that the request will be sent to.
-   * This string must begin with either "http://" or "https://". Some examples
-   * are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will
-   * encode some characters for safety and compatibility. The maximum allowed
-   * URL length is 2083 characters after encoding.
-   * The `Location` header response from a redirect response [`300` - `399`]
-   * may be followed. The redirect is not counted as a separate attempt.
-   * 
- * - * string url = 1; - * - * @return The url. - */ - java.lang.String getUrl(); - /** - * - * - *
-   * Required. The full url path that the request will be sent to.
-   * This string must begin with either "http://" or "https://". Some examples
-   * are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will
-   * encode some characters for safety and compatibility. The maximum allowed
-   * URL length is 2083 characters after encoding.
-   * The `Location` header response from a redirect response [`300` - `399`]
-   * may be followed. The redirect is not counted as a separate attempt.
-   * 
- * - * string url = 1; - * - * @return The bytes for url. - */ - com.google.protobuf.ByteString getUrlBytes(); - - /** - * - * - *
-   * The HTTP method to use for the request. The default is POST.
-   * 
- * - * .google.cloud.tasks.v2beta3.HttpMethod http_method = 2; - * - * @return The enum numeric value on the wire for httpMethod. - */ - int getHttpMethodValue(); - /** - * - * - *
-   * The HTTP method to use for the request. The default is POST.
-   * 
- * - * .google.cloud.tasks.v2beta3.HttpMethod http_method = 2; - * - * @return The httpMethod. - */ - com.google.cloud.tasks.v2beta3.HttpMethod getHttpMethod(); - - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * These headers represent a subset of the headers that will accompany the
-   * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-   * A partial list of headers that will be ignored or replaced is:
-   * * Host: This will be computed by Cloud Tasks and derived from
-   *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
-   * * Content-Length: This will be computed by Cloud Tasks.
-   * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * `X-Google-*`: Google use only.
-   * * `X-AppEngine-*`: Google use only.
-   * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-   * `Content-Type` to a media type when the
-   *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-   *  `"application/json"`.
-   * Headers which can have multiple values (according to RFC2616) can be
-   * specified using comma-separated values.
-   * The size of the headers must be less than 80KB.
-   * 
- * - * map<string, string> headers = 3; - */ - int getHeadersCount(); - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * These headers represent a subset of the headers that will accompany the
-   * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-   * A partial list of headers that will be ignored or replaced is:
-   * * Host: This will be computed by Cloud Tasks and derived from
-   *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
-   * * Content-Length: This will be computed by Cloud Tasks.
-   * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * `X-Google-*`: Google use only.
-   * * `X-AppEngine-*`: Google use only.
-   * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-   * `Content-Type` to a media type when the
-   *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-   *  `"application/json"`.
-   * Headers which can have multiple values (according to RFC2616) can be
-   * specified using comma-separated values.
-   * The size of the headers must be less than 80KB.
-   * 
- * - * map<string, string> headers = 3; - */ - boolean containsHeaders(java.lang.String key); - /** Use {@link #getHeadersMap()} instead. */ - @java.lang.Deprecated - java.util.Map getHeaders(); - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * These headers represent a subset of the headers that will accompany the
-   * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-   * A partial list of headers that will be ignored or replaced is:
-   * * Host: This will be computed by Cloud Tasks and derived from
-   *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
-   * * Content-Length: This will be computed by Cloud Tasks.
-   * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * `X-Google-*`: Google use only.
-   * * `X-AppEngine-*`: Google use only.
-   * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-   * `Content-Type` to a media type when the
-   *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-   *  `"application/json"`.
-   * Headers which can have multiple values (according to RFC2616) can be
-   * specified using comma-separated values.
-   * The size of the headers must be less than 80KB.
-   * 
- * - * map<string, string> headers = 3; - */ - java.util.Map getHeadersMap(); - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * These headers represent a subset of the headers that will accompany the
-   * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-   * A partial list of headers that will be ignored or replaced is:
-   * * Host: This will be computed by Cloud Tasks and derived from
-   *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
-   * * Content-Length: This will be computed by Cloud Tasks.
-   * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * `X-Google-*`: Google use only.
-   * * `X-AppEngine-*`: Google use only.
-   * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-   * `Content-Type` to a media type when the
-   *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-   *  `"application/json"`.
-   * Headers which can have multiple values (according to RFC2616) can be
-   * specified using comma-separated values.
-   * The size of the headers must be less than 80KB.
-   * 
- * - * map<string, string> headers = 3; - */ - - /* nullable */ - java.lang.String getHeadersOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - /** - * - * - *
-   * HTTP request headers.
-   * This map contains the header field names and values.
-   * Headers can be set when the
-   * [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * These headers represent a subset of the headers that will accompany the
-   * task's HTTP request. Some HTTP request headers will be ignored or replaced.
-   * A partial list of headers that will be ignored or replaced is:
-   * * Host: This will be computed by Cloud Tasks and derived from
-   *   [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url].
-   * * Content-Length: This will be computed by Cloud Tasks.
-   * * User-Agent: This will be set to `"Google-Cloud-Tasks"`.
-   * * `X-Google-*`: Google use only.
-   * * `X-AppEngine-*`: Google use only.
-   * `Content-Type` won't be set by Cloud Tasks. You can explicitly set
-   * `Content-Type` to a media type when the
-   *  [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   *  For example, `Content-Type` can be set to `"application/octet-stream"` or
-   *  `"application/json"`.
-   * Headers which can have multiple values (according to RFC2616) can be
-   * specified using comma-separated values.
-   * The size of the headers must be less than 80KB.
-   * 
- * - * map<string, string> headers = 3; - */ - java.lang.String getHeadersOrThrow(java.lang.String key); - - /** - * - * - *
-   * HTTP request body.
-   * A request body is allowed only if the
-   * [HTTP method][google.cloud.tasks.v2beta3.HttpRequest.http_method] is POST, PUT, or PATCH. It is an
-   * error to set body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2beta3.HttpMethod].
-   * 
- * - * bytes body = 4; - * - * @return The body. - */ - com.google.protobuf.ByteString getBody(); - - /** - * - * - *
-   * If specified, an
-   * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-   * will be generated and attached as an `Authorization` header in the HTTP
-   * request.
-   * This type of authorization should generally only be used when calling
-   * Google APIs hosted on *.googleapis.com.
-   * 
- * - * .google.cloud.tasks.v2beta3.OAuthToken oauth_token = 5; - * - * @return Whether the oauthToken field is set. - */ - boolean hasOauthToken(); - /** - * - * - *
-   * If specified, an
-   * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-   * will be generated and attached as an `Authorization` header in the HTTP
-   * request.
-   * This type of authorization should generally only be used when calling
-   * Google APIs hosted on *.googleapis.com.
-   * 
- * - * .google.cloud.tasks.v2beta3.OAuthToken oauth_token = 5; - * - * @return The oauthToken. - */ - com.google.cloud.tasks.v2beta3.OAuthToken getOauthToken(); - /** - * - * - *
-   * If specified, an
-   * [OAuth token](https://developers.google.com/identity/protocols/OAuth2)
-   * will be generated and attached as an `Authorization` header in the HTTP
-   * request.
-   * This type of authorization should generally only be used when calling
-   * Google APIs hosted on *.googleapis.com.
-   * 
- * - * .google.cloud.tasks.v2beta3.OAuthToken oauth_token = 5; - */ - com.google.cloud.tasks.v2beta3.OAuthTokenOrBuilder getOauthTokenOrBuilder(); - - /** - * - * - *
-   * If specified, an
-   * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-   * token will be generated and attached as an `Authorization` header in the
-   * HTTP request.
-   * This type of authorization can be used for many scenarios, including
-   * calling Cloud Run, or endpoints where you intend to validate the token
-   * yourself.
-   * 
- * - * .google.cloud.tasks.v2beta3.OidcToken oidc_token = 6; - * - * @return Whether the oidcToken field is set. - */ - boolean hasOidcToken(); - /** - * - * - *
-   * If specified, an
-   * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-   * token will be generated and attached as an `Authorization` header in the
-   * HTTP request.
-   * This type of authorization can be used for many scenarios, including
-   * calling Cloud Run, or endpoints where you intend to validate the token
-   * yourself.
-   * 
- * - * .google.cloud.tasks.v2beta3.OidcToken oidc_token = 6; - * - * @return The oidcToken. - */ - com.google.cloud.tasks.v2beta3.OidcToken getOidcToken(); - /** - * - * - *
-   * If specified, an
-   * [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect)
-   * token will be generated and attached as an `Authorization` header in the
-   * HTTP request.
-   * This type of authorization can be used for many scenarios, including
-   * calling Cloud Run, or endpoints where you intend to validate the token
-   * yourself.
-   * 
- * - * .google.cloud.tasks.v2beta3.OidcToken oidc_token = 6; - */ - com.google.cloud.tasks.v2beta3.OidcTokenOrBuilder getOidcTokenOrBuilder(); - - public com.google.cloud.tasks.v2beta3.HttpRequest.AuthorizationHeaderCase - getAuthorizationHeaderCase(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequest.java deleted file mode 100644 index 3c6b5bf5..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequest.java +++ /dev/null @@ -1,1508 +0,0 @@ -/* - * Copyright 2020 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 [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.ListQueuesRequest} - */ -public final class ListQueuesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.ListQueuesRequest) - ListQueuesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListQueuesRequest.newBuilder() to construct. - private ListQueuesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListQueuesRequest() { - parent_ = ""; - filter_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListQueuesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ListQueuesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ListQueuesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.ListQueuesRequest.class, - com.google.cloud.tasks.v2beta3.ListQueuesRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The location name.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The location name.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; - /** - * - * - *
-   * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta3.Queue]
-   * field can be used as a filter and several operators as supported.
-   * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-   * described in
-   * [Stackdriver's Advanced Logs
-   * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-   * Sample filter "state: PAUSED".
-   * Note that using filters might cause fewer queues than the
-   * requested page_size to be returned.
-   * 
- * - * string filter = 2; - * - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - * - * - *
-   * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta3.Queue]
-   * field can be used as a filter and several operators as supported.
-   * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-   * described in
-   * [Stackdriver's Advanced Logs
-   * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-   * Sample filter "state: PAUSED".
-   * Note that using filters might cause fewer queues than the
-   * requested page_size to be returned.
-   * 
- * - * string filter = 2; - * - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; - /** - * - * - *
-   * Requested page size.
-   * The maximum page size is 9800. If unspecified, the page size will
-   * be the maximum. Fewer queues than requested might be returned,
-   * even if more queues exist; use the
-   * [next_page_token][google.cloud.tasks.v2beta3.ListQueuesResponse.next_page_token] in the
-   * response to determine if more queues exist.
-   * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2beta3.ListQueuesResponse.next_page_token] returned
-   * from the previous call to [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues]
-   * method. It is an error to switch the value of the
-   * [filter][google.cloud.tasks.v2beta3.ListQueuesRequest.filter] while iterating through pages.
-   * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2beta3.ListQueuesResponse.next_page_token] returned
-   * from the previous call to [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues]
-   * method. It is an error to switch the value of the
-   * [filter][google.cloud.tasks.v2beta3.ListQueuesRequest.filter] while iterating through pages.
-   * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int READ_MASK_FIELD_NUMBER = 5; - private com.google.protobuf.FieldMask readMask_; - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the readMask field is set. - */ - @java.lang.Override - public boolean hasReadMask() { - return readMask_ != null; - } - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The readMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getReadMask() { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return getReadMask(); - } - - 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(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); - } - if (pageSize_ != 0) { - output.writeInt32(3, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); - } - if (readMask_ != null) { - output.writeMessage(5, getReadMask()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); - } - if (readMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getReadMask()); - } - 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.ListQueuesRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.ListQueuesRequest other = - (com.google.cloud.tasks.v2beta3.ListQueuesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (hasReadMask() != other.hasReadMask()) return false; - if (hasReadMask()) { - if (!getReadMask().equals(other.getReadMask())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - if (hasReadMask()) { - hash = (37 * hash) + READ_MASK_FIELD_NUMBER; - hash = (53 * hash) + getReadMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta3.ListQueuesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.ListQueuesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.ListQueuesRequest) - com.google.cloud.tasks.v2beta3.ListQueuesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ListQueuesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ListQueuesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.ListQueuesRequest.class, - com.google.cloud.tasks.v2beta3.ListQueuesRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.ListQueuesRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - filter_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - if (readMaskBuilder_ == null) { - readMask_ = null; - } else { - readMask_ = null; - readMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ListQueuesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.ListQueuesRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.ListQueuesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.ListQueuesRequest build() { - com.google.cloud.tasks.v2beta3.ListQueuesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.ListQueuesRequest buildPartial() { - com.google.cloud.tasks.v2beta3.ListQueuesRequest result = - new com.google.cloud.tasks.v2beta3.ListQueuesRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - if (readMaskBuilder_ == null) { - result.readMask_ = readMask_; - } else { - result.readMask_ = readMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.ListQueuesRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta3.ListQueuesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.ListQueuesRequest other) { - if (other == com.google.cloud.tasks.v2beta3.ListQueuesRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - if (other.hasReadMask()) { - mergeReadMask(other.getReadMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - filter_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - pageSize_ = input.readInt32(); - - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 34 - case 42: - { - input.readMessage(getReadMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The location name.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The location name.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The location name.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location name.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The location name.
-     * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - * - * - *
-     * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta3.Queue]
-     * field can be used as a filter and several operators as supported.
-     * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-     * described in
-     * [Stackdriver's Advanced Logs
-     * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-     * Sample filter "state: PAUSED".
-     * Note that using filters might cause fewer queues than the
-     * requested page_size to be returned.
-     * 
- * - * string filter = 2; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta3.Queue]
-     * field can be used as a filter and several operators as supported.
-     * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-     * described in
-     * [Stackdriver's Advanced Logs
-     * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-     * Sample filter "state: PAUSED".
-     * Note that using filters might cause fewer queues than the
-     * requested page_size to be returned.
-     * 
- * - * string filter = 2; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta3.Queue]
-     * field can be used as a filter and several operators as supported.
-     * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-     * described in
-     * [Stackdriver's Advanced Logs
-     * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-     * Sample filter "state: PAUSED".
-     * Note that using filters might cause fewer queues than the
-     * requested page_size to be returned.
-     * 
- * - * string filter = 2; - * - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta3.Queue]
-     * field can be used as a filter and several operators as supported.
-     * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-     * described in
-     * [Stackdriver's Advanced Logs
-     * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-     * Sample filter "state: PAUSED".
-     * Note that using filters might cause fewer queues than the
-     * requested page_size to be returned.
-     * 
- * - * string filter = 2; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - * - * - *
-     * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta3.Queue]
-     * field can be used as a filter and several operators as supported.
-     * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-     * described in
-     * [Stackdriver's Advanced Logs
-     * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-     * Sample filter "state: PAUSED".
-     * Note that using filters might cause fewer queues than the
-     * requested page_size to be returned.
-     * 
- * - * string filter = 2; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * Requested page size.
-     * The maximum page size is 9800. If unspecified, the page size will
-     * be the maximum. Fewer queues than requested might be returned,
-     * even if more queues exist; use the
-     * [next_page_token][google.cloud.tasks.v2beta3.ListQueuesResponse.next_page_token] in the
-     * response to determine if more queues exist.
-     * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * Requested page size.
-     * The maximum page size is 9800. If unspecified, the page size will
-     * be the maximum. Fewer queues than requested might be returned,
-     * even if more queues exist; use the
-     * [next_page_token][google.cloud.tasks.v2beta3.ListQueuesResponse.next_page_token] in the
-     * response to determine if more queues exist.
-     * 
- * - * int32 page_size = 3; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Requested page size.
-     * The maximum page size is 9800. If unspecified, the page size will
-     * be the maximum. Fewer queues than requested might be returned,
-     * even if more queues exist; use the
-     * [next_page_token][google.cloud.tasks.v2beta3.ListQueuesResponse.next_page_token] in the
-     * response to determine if more queues exist.
-     * 
- * - * int32 page_size = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2beta3.ListQueuesResponse.next_page_token] returned
-     * from the previous call to [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues]
-     * method. It is an error to switch the value of the
-     * [filter][google.cloud.tasks.v2beta3.ListQueuesRequest.filter] while iterating through pages.
-     * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2beta3.ListQueuesResponse.next_page_token] returned
-     * from the previous call to [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues]
-     * method. It is an error to switch the value of the
-     * [filter][google.cloud.tasks.v2beta3.ListQueuesRequest.filter] while iterating through pages.
-     * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2beta3.ListQueuesResponse.next_page_token] returned
-     * from the previous call to [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues]
-     * method. It is an error to switch the value of the
-     * [filter][google.cloud.tasks.v2beta3.ListQueuesRequest.filter] while iterating through pages.
-     * 
- * - * string page_token = 4; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2beta3.ListQueuesResponse.next_page_token] returned
-     * from the previous call to [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues]
-     * method. It is an error to switch the value of the
-     * [filter][google.cloud.tasks.v2beta3.ListQueuesRequest.filter] while iterating through pages.
-     * 
- * - * string page_token = 4; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2beta3.ListQueuesResponse.next_page_token] returned
-     * from the previous call to [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues]
-     * method. It is an error to switch the value of the
-     * [filter][google.cloud.tasks.v2beta3.ListQueuesRequest.filter] while iterating through pages.
-     * 
- * - * string page_token = 4; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.FieldMask readMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - readMaskBuilder_; - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the readMask field is set. - */ - public boolean hasReadMask() { - return readMaskBuilder_ != null || readMask_ != null; - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The readMask. - */ - public com.google.protobuf.FieldMask getReadMask() { - if (readMaskBuilder_ == null) { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } else { - return readMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setReadMask(com.google.protobuf.FieldMask value) { - if (readMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - readMask_ = value; - onChanged(); - } else { - readMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (readMaskBuilder_ == null) { - readMask_ = builderForValue.build(); - onChanged(); - } else { - readMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeReadMask(com.google.protobuf.FieldMask value) { - if (readMaskBuilder_ == null) { - if (readMask_ != null) { - readMask_ = - com.google.protobuf.FieldMask.newBuilder(readMask_).mergeFrom(value).buildPartial(); - } else { - readMask_ = value; - } - onChanged(); - } else { - readMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearReadMask() { - if (readMaskBuilder_ == null) { - readMask_ = null; - onChanged(); - } else { - readMask_ = null; - readMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - - onChanged(); - return getReadMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - if (readMaskBuilder_ != null) { - return readMaskBuilder_.getMessageOrBuilder(); - } else { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } - } - /** - * - * - *
-     * Optional. Read mask is used for a more granular control over what the API returns.
-     * If the mask is not present all fields will be returned except
-     * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-     * specified in the mask.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getReadMaskFieldBuilder() { - if (readMaskBuilder_ == null) { - readMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), getParentForChildren(), isClean()); - readMask_ = null; - } - return readMaskBuilder_; - } - - @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.ListQueuesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.ListQueuesRequest) - private static final com.google.cloud.tasks.v2beta3.ListQueuesRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.ListQueuesRequest(); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListQueuesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.ListQueuesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequestOrBuilder.java deleted file mode 100644 index 7d932d07..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequestOrBuilder.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Copyright 2020 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; - -public interface ListQueuesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.ListQueuesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The location name.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The location name.
-   * For example: `projects/PROJECT_ID/locations/LOCATION_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta3.Queue]
-   * field can be used as a filter and several operators as supported.
-   * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-   * described in
-   * [Stackdriver's Advanced Logs
-   * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-   * Sample filter "state: PAUSED".
-   * Note that using filters might cause fewer queues than the
-   * requested page_size to be returned.
-   * 
- * - * string filter = 2; - * - * @return The filter. - */ - java.lang.String getFilter(); - /** - * - * - *
-   * `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta3.Queue]
-   * field can be used as a filter and several operators as supported.
-   * For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as
-   * described in
-   * [Stackdriver's Advanced Logs
-   * Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
-   * Sample filter "state: PAUSED".
-   * Note that using filters might cause fewer queues than the
-   * requested page_size to be returned.
-   * 
- * - * string filter = 2; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); - - /** - * - * - *
-   * Requested page size.
-   * The maximum page size is 9800. If unspecified, the page size will
-   * be the maximum. Fewer queues than requested might be returned,
-   * even if more queues exist; use the
-   * [next_page_token][google.cloud.tasks.v2beta3.ListQueuesResponse.next_page_token] in the
-   * response to determine if more queues exist.
-   * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2beta3.ListQueuesResponse.next_page_token] returned
-   * from the previous call to [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues]
-   * method. It is an error to switch the value of the
-   * [filter][google.cloud.tasks.v2beta3.ListQueuesRequest.filter] while iterating through pages.
-   * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2beta3.ListQueuesResponse.next_page_token] returned
-   * from the previous call to [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues]
-   * method. It is an error to switch the value of the
-   * [filter][google.cloud.tasks.v2beta3.ListQueuesRequest.filter] while iterating through pages.
-   * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the readMask field is set. - */ - boolean hasReadMask(); - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The readMask. - */ - com.google.protobuf.FieldMask getReadMask(); - /** - * - * - *
-   * Optional. Read mask is used for a more granular control over what the API returns.
-   * If the mask is not present all fields will be returned except
-   * [Queue.stats]. [Queue.stats] will be returned only if it was  explicitly
-   * specified in the mask.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponse.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponse.java deleted file mode 100644 index 8089b53a..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponse.java +++ /dev/null @@ -1,1138 +0,0 @@ -/* - * Copyright 2020 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 [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.ListQueuesResponse} - */ -public final class ListQueuesResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.ListQueuesResponse) - ListQueuesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListQueuesResponse.newBuilder() to construct. - private ListQueuesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListQueuesResponse() { - queues_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListQueuesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ListQueuesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ListQueuesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.ListQueuesResponse.class, - com.google.cloud.tasks.v2beta3.ListQueuesResponse.Builder.class); - } - - public static final int QUEUES_FIELD_NUMBER = 1; - private java.util.List queues_; - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - @java.lang.Override - public java.util.List getQueuesList() { - return queues_; - } - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - @java.lang.Override - public java.util.List - getQueuesOrBuilderList() { - return queues_; - } - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - @java.lang.Override - public int getQueuesCount() { - return queues_.size(); - } - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Queue getQueues(int index) { - return queues_.get(index); - } - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.QueueOrBuilder getQueuesOrBuilder(int index) { - return queues_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues] with this value as the
-   * [page_token][google.cloud.tasks.v2beta3.ListQueuesRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues] with this value as the
-   * [page_token][google.cloud.tasks.v2beta3.ListQueuesRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < queues_.size(); i++) { - output.writeMessage(1, queues_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < queues_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, queues_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.ListQueuesResponse)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.ListQueuesResponse other = - (com.google.cloud.tasks.v2beta3.ListQueuesResponse) obj; - - if (!getQueuesList().equals(other.getQueuesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getQueuesCount() > 0) { - hash = (37 * hash) + QUEUES_FIELD_NUMBER; - hash = (53 * hash) + getQueuesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta3.ListQueuesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message for [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.ListQueuesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.ListQueuesResponse) - com.google.cloud.tasks.v2beta3.ListQueuesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ListQueuesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ListQueuesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.ListQueuesResponse.class, - com.google.cloud.tasks.v2beta3.ListQueuesResponse.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.ListQueuesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (queuesBuilder_ == null) { - queues_ = java.util.Collections.emptyList(); - } else { - queues_ = null; - queuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ListQueuesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.ListQueuesResponse getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.ListQueuesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.ListQueuesResponse build() { - com.google.cloud.tasks.v2beta3.ListQueuesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.ListQueuesResponse buildPartial() { - com.google.cloud.tasks.v2beta3.ListQueuesResponse result = - new com.google.cloud.tasks.v2beta3.ListQueuesResponse(this); - int from_bitField0_ = bitField0_; - if (queuesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - queues_ = java.util.Collections.unmodifiableList(queues_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.queues_ = queues_; - } else { - result.queues_ = queuesBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.ListQueuesResponse) { - return mergeFrom((com.google.cloud.tasks.v2beta3.ListQueuesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.ListQueuesResponse other) { - if (other == com.google.cloud.tasks.v2beta3.ListQueuesResponse.getDefaultInstance()) - return this; - if (queuesBuilder_ == null) { - if (!other.queues_.isEmpty()) { - if (queues_.isEmpty()) { - queues_ = other.queues_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureQueuesIsMutable(); - queues_.addAll(other.queues_); - } - onChanged(); - } - } else { - if (!other.queues_.isEmpty()) { - if (queuesBuilder_.isEmpty()) { - queuesBuilder_.dispose(); - queuesBuilder_ = null; - queues_ = other.queues_; - bitField0_ = (bitField0_ & ~0x00000001); - queuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getQueuesFieldBuilder() - : null; - } else { - queuesBuilder_.addAllMessages(other.queues_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.tasks.v2beta3.Queue m = - input.readMessage( - com.google.cloud.tasks.v2beta3.Queue.parser(), extensionRegistry); - if (queuesBuilder_ == null) { - ensureQueuesIsMutable(); - queues_.add(m); - } else { - queuesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List queues_ = - java.util.Collections.emptyList(); - - private void ensureQueuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - queues_ = new java.util.ArrayList(queues_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tasks.v2beta3.Queue, - com.google.cloud.tasks.v2beta3.Queue.Builder, - com.google.cloud.tasks.v2beta3.QueueOrBuilder> - queuesBuilder_; - - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - public java.util.List getQueuesList() { - if (queuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(queues_); - } else { - return queuesBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - public int getQueuesCount() { - if (queuesBuilder_ == null) { - return queues_.size(); - } else { - return queuesBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - public com.google.cloud.tasks.v2beta3.Queue getQueues(int index) { - if (queuesBuilder_ == null) { - return queues_.get(index); - } else { - return queuesBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - public Builder setQueues(int index, com.google.cloud.tasks.v2beta3.Queue value) { - if (queuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueuesIsMutable(); - queues_.set(index, value); - onChanged(); - } else { - queuesBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - public Builder setQueues( - int index, com.google.cloud.tasks.v2beta3.Queue.Builder builderForValue) { - if (queuesBuilder_ == null) { - ensureQueuesIsMutable(); - queues_.set(index, builderForValue.build()); - onChanged(); - } else { - queuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - public Builder addQueues(com.google.cloud.tasks.v2beta3.Queue value) { - if (queuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueuesIsMutable(); - queues_.add(value); - onChanged(); - } else { - queuesBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - public Builder addQueues(int index, com.google.cloud.tasks.v2beta3.Queue value) { - if (queuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueuesIsMutable(); - queues_.add(index, value); - onChanged(); - } else { - queuesBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - public Builder addQueues(com.google.cloud.tasks.v2beta3.Queue.Builder builderForValue) { - if (queuesBuilder_ == null) { - ensureQueuesIsMutable(); - queues_.add(builderForValue.build()); - onChanged(); - } else { - queuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - public Builder addQueues( - int index, com.google.cloud.tasks.v2beta3.Queue.Builder builderForValue) { - if (queuesBuilder_ == null) { - ensureQueuesIsMutable(); - queues_.add(index, builderForValue.build()); - onChanged(); - } else { - queuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - public Builder addAllQueues( - java.lang.Iterable values) { - if (queuesBuilder_ == null) { - ensureQueuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queues_); - onChanged(); - } else { - queuesBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - public Builder clearQueues() { - if (queuesBuilder_ == null) { - queues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - queuesBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - public Builder removeQueues(int index) { - if (queuesBuilder_ == null) { - ensureQueuesIsMutable(); - queues_.remove(index); - onChanged(); - } else { - queuesBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - public com.google.cloud.tasks.v2beta3.Queue.Builder getQueuesBuilder(int index) { - return getQueuesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - public com.google.cloud.tasks.v2beta3.QueueOrBuilder getQueuesOrBuilder(int index) { - if (queuesBuilder_ == null) { - return queues_.get(index); - } else { - return queuesBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - public java.util.List - getQueuesOrBuilderList() { - if (queuesBuilder_ != null) { - return queuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(queues_); - } - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - public com.google.cloud.tasks.v2beta3.Queue.Builder addQueuesBuilder() { - return getQueuesFieldBuilder() - .addBuilder(com.google.cloud.tasks.v2beta3.Queue.getDefaultInstance()); - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - public com.google.cloud.tasks.v2beta3.Queue.Builder addQueuesBuilder(int index) { - return getQueuesFieldBuilder() - .addBuilder(index, com.google.cloud.tasks.v2beta3.Queue.getDefaultInstance()); - } - /** - * - * - *
-     * The list of queues.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - public java.util.List getQueuesBuilderList() { - return getQueuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tasks.v2beta3.Queue, - com.google.cloud.tasks.v2beta3.Queue.Builder, - com.google.cloud.tasks.v2beta3.QueueOrBuilder> - getQueuesFieldBuilder() { - if (queuesBuilder_ == null) { - queuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tasks.v2beta3.Queue, - com.google.cloud.tasks.v2beta3.Queue.Builder, - com.google.cloud.tasks.v2beta3.QueueOrBuilder>( - queues_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - queues_ = null; - } - return queuesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues] with this value as the
-     * [page_token][google.cloud.tasks.v2beta3.ListQueuesRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues] with this value as the
-     * [page_token][google.cloud.tasks.v2beta3.ListQueuesRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues] with this value as the
-     * [page_token][google.cloud.tasks.v2beta3.ListQueuesRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues] with this value as the
-     * [page_token][google.cloud.tasks.v2beta3.ListQueuesRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues] with this value as the
-     * [page_token][google.cloud.tasks.v2beta3.ListQueuesRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.ListQueuesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.ListQueuesResponse) - private static final com.google.cloud.tasks.v2beta3.ListQueuesResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.ListQueuesResponse(); - } - - public static com.google.cloud.tasks.v2beta3.ListQueuesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListQueuesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.ListQueuesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponseOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponseOrBuilder.java deleted file mode 100644 index ac61989f..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponseOrBuilder.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2020 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; - -public interface ListQueuesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.ListQueuesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - java.util.List getQueuesList(); - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - com.google.cloud.tasks.v2beta3.Queue getQueues(int index); - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - int getQueuesCount(); - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - java.util.List getQueuesOrBuilderList(); - /** - * - * - *
-   * The list of queues.
-   * 
- * - * repeated .google.cloud.tasks.v2beta3.Queue queues = 1; - */ - com.google.cloud.tasks.v2beta3.QueueOrBuilder getQueuesOrBuilder(int index); - - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues] with this value as the
-   * [page_token][google.cloud.tasks.v2beta3.ListQueuesRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues] with this value as the
-   * [page_token][google.cloud.tasks.v2beta3.ListQueuesRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequest.java deleted file mode 100644 index 6cc72803..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequest.java +++ /dev/null @@ -1,1179 +0,0 @@ -/* - * Copyright 2020 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 listing tasks using [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.ListTasksRequest} - */ -public final class ListTasksRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.ListTasksRequest) - ListTasksRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListTasksRequest.newBuilder() to construct. - private ListTasksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListTasksRequest() { - parent_ = ""; - responseView_ = 0; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListTasksRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ListTasksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ListTasksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.ListTasksRequest.class, - com.google.cloud.tasks.v2beta3.ListTasksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESPONSE_VIEW_FIELD_NUMBER = 2; - private int responseView_; - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta3.Task.View result = - com.google.cloud.tasks.v2beta3.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta3.Task.View.UNRECOGNIZED : result; - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; - /** - * - * - *
-   * Maximum page size.
-   * Fewer tasks than requested might be returned, even if more tasks exist; use
-   * [next_page_token][google.cloud.tasks.v2beta3.ListTasksResponse.next_page_token] in the response to
-   * determine if more tasks exist.
-   * The maximum page size is 1000. If unspecified, the page size will be the
-   * maximum.
-   * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2beta3.ListTasksResponse.next_page_token] returned
-   * from the previous call to [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks]
-   * method.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2beta3.ListTasksResponse.next_page_token] returned
-   * from the previous call to [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks]
-   * method.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (responseView_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { - output.writeEnum(2, responseView_); - } - if (pageSize_ != 0) { - output.writeInt32(3, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (responseView_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, responseView_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); - } - 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.ListTasksRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.ListTasksRequest other = - (com.google.cloud.tasks.v2beta3.ListTasksRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (responseView_ != other.responseView_) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; - hash = (53 * hash) + responseView_; - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.ListTasksRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta3.ListTasksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for listing tasks using [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.ListTasksRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.ListTasksRequest) - com.google.cloud.tasks.v2beta3.ListTasksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ListTasksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ListTasksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.ListTasksRequest.class, - com.google.cloud.tasks.v2beta3.ListTasksRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.ListTasksRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - responseView_ = 0; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ListTasksRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.ListTasksRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.ListTasksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.ListTasksRequest build() { - com.google.cloud.tasks.v2beta3.ListTasksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.ListTasksRequest buildPartial() { - com.google.cloud.tasks.v2beta3.ListTasksRequest result = - new com.google.cloud.tasks.v2beta3.ListTasksRequest(this); - result.parent_ = parent_; - result.responseView_ = responseView_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.ListTasksRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta3.ListTasksRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.ListTasksRequest other) { - if (other == com.google.cloud.tasks.v2beta3.ListTasksRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.responseView_ != 0) { - setResponseViewValue(other.getResponseViewValue()); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - responseView_ = input.readEnum(); - - break; - } // case 16 - case 24: - { - pageSize_ = input.readInt32(); - - break; - } // case 24 - case 34: - { - pageToken_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int responseView_ = 0; - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @param value The enum numeric value on the wire for responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseViewValue(int value) { - - responseView_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta3.Task.View result = - com.google.cloud.tasks.v2beta3.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta3.Task.View.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @param value The responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseView(com.google.cloud.tasks.v2beta3.Task.View value) { - if (value == null) { - throw new NullPointerException(); - } - - responseView_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @return This builder for chaining. - */ - public Builder clearResponseView() { - - responseView_ = 0; - onChanged(); - return this; - } - - private int pageSize_; - /** - * - * - *
-     * Maximum page size.
-     * Fewer tasks than requested might be returned, even if more tasks exist; use
-     * [next_page_token][google.cloud.tasks.v2beta3.ListTasksResponse.next_page_token] in the response to
-     * determine if more tasks exist.
-     * The maximum page size is 1000. If unspecified, the page size will be the
-     * maximum.
-     * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - * - * - *
-     * Maximum page size.
-     * Fewer tasks than requested might be returned, even if more tasks exist; use
-     * [next_page_token][google.cloud.tasks.v2beta3.ListTasksResponse.next_page_token] in the response to
-     * determine if more tasks exist.
-     * The maximum page size is 1000. If unspecified, the page size will be the
-     * maximum.
-     * 
- * - * int32 page_size = 3; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Maximum page size.
-     * Fewer tasks than requested might be returned, even if more tasks exist; use
-     * [next_page_token][google.cloud.tasks.v2beta3.ListTasksResponse.next_page_token] in the response to
-     * determine if more tasks exist.
-     * The maximum page size is 1000. If unspecified, the page size will be the
-     * maximum.
-     * 
- * - * int32 page_size = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2beta3.ListTasksResponse.next_page_token] returned
-     * from the previous call to [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks]
-     * method.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2beta3.ListTasksResponse.next_page_token] returned
-     * from the previous call to [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks]
-     * method.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2beta3.ListTasksResponse.next_page_token] returned
-     * from the previous call to [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks]
-     * method.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string page_token = 4; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2beta3.ListTasksResponse.next_page_token] returned
-     * from the previous call to [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks]
-     * method.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string page_token = 4; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token identifying the page of results to return.
-     * To request the first page results, page_token must be empty. To
-     * request the next page of results, page_token must be the value of
-     * [next_page_token][google.cloud.tasks.v2beta3.ListTasksResponse.next_page_token] returned
-     * from the previous call to [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks]
-     * method.
-     * The page token is valid for only 2 hours.
-     * 
- * - * string page_token = 4; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.ListTasksRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.ListTasksRequest) - private static final com.google.cloud.tasks.v2beta3.ListTasksRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.ListTasksRequest(); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTasksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.ListTasksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequestOrBuilder.java deleted file mode 100644 index 39f56488..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequestOrBuilder.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Copyright 2020 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; - -public interface ListTasksRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.ListTasksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - int getResponseViewValue(); - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @return The responseView. - */ - com.google.cloud.tasks.v2beta3.Task.View getResponseView(); - - /** - * - * - *
-   * Maximum page size.
-   * Fewer tasks than requested might be returned, even if more tasks exist; use
-   * [next_page_token][google.cloud.tasks.v2beta3.ListTasksResponse.next_page_token] in the response to
-   * determine if more tasks exist.
-   * The maximum page size is 1000. If unspecified, the page size will be the
-   * maximum.
-   * 
- * - * int32 page_size = 3; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2beta3.ListTasksResponse.next_page_token] returned
-   * from the previous call to [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks]
-   * method.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string page_token = 4; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - * - * - *
-   * A token identifying the page of results to return.
-   * To request the first page results, page_token must be empty. To
-   * request the next page of results, page_token must be the value of
-   * [next_page_token][google.cloud.tasks.v2beta3.ListTasksResponse.next_page_token] returned
-   * from the previous call to [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks]
-   * method.
-   * The page token is valid for only 2 hours.
-   * 
- * - * string page_token = 4; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponse.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponse.java deleted file mode 100644 index c70c9156..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponse.java +++ /dev/null @@ -1,1131 +0,0 @@ -/* - * Copyright 2020 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 listing tasks using [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.ListTasksResponse} - */ -public final class ListTasksResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.ListTasksResponse) - ListTasksResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListTasksResponse.newBuilder() to construct. - private ListTasksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ListTasksResponse() { - tasks_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ListTasksResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ListTasksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ListTasksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.ListTasksResponse.class, - com.google.cloud.tasks.v2beta3.ListTasksResponse.Builder.class); - } - - public static final int TASKS_FIELD_NUMBER = 1; - private java.util.List tasks_; - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - @java.lang.Override - public java.util.List getTasksList() { - return tasks_; - } - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - @java.lang.Override - public java.util.List - getTasksOrBuilderList() { - return tasks_; - } - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - @java.lang.Override - public int getTasksCount() { - return tasks_.size(); - } - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Task getTasks(int index) { - return tasks_.get(index); - } - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.TaskOrBuilder getTasksOrBuilder(int index) { - return tasks_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks] with this value as the
-   * [page_token][google.cloud.tasks.v2beta3.ListTasksRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks] with this value as the
-   * [page_token][google.cloud.tasks.v2beta3.ListTasksRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < tasks_.size(); i++) { - output.writeMessage(1, tasks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < tasks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tasks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.ListTasksResponse)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.ListTasksResponse other = - (com.google.cloud.tasks.v2beta3.ListTasksResponse) obj; - - if (!getTasksList().equals(other.getTasksList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getTasksCount() > 0) { - hash = (37 * hash) + TASKS_FIELD_NUMBER; - hash = (53 * hash) + getTasksList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.ListTasksResponse parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta3.ListTasksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Response message for listing tasks using [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.ListTasksResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.ListTasksResponse) - com.google.cloud.tasks.v2beta3.ListTasksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ListTasksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ListTasksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.ListTasksResponse.class, - com.google.cloud.tasks.v2beta3.ListTasksResponse.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.ListTasksResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - } else { - tasks_ = null; - tasksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ListTasksResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.ListTasksResponse getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.ListTasksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.ListTasksResponse build() { - com.google.cloud.tasks.v2beta3.ListTasksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.ListTasksResponse buildPartial() { - com.google.cloud.tasks.v2beta3.ListTasksResponse result = - new com.google.cloud.tasks.v2beta3.ListTasksResponse(this); - int from_bitField0_ = bitField0_; - if (tasksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tasks_ = tasks_; - } else { - result.tasks_ = tasksBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.ListTasksResponse) { - return mergeFrom((com.google.cloud.tasks.v2beta3.ListTasksResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.ListTasksResponse other) { - if (other == com.google.cloud.tasks.v2beta3.ListTasksResponse.getDefaultInstance()) - return this; - if (tasksBuilder_ == null) { - if (!other.tasks_.isEmpty()) { - if (tasks_.isEmpty()) { - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTasksIsMutable(); - tasks_.addAll(other.tasks_); - } - onChanged(); - } - } else { - if (!other.tasks_.isEmpty()) { - if (tasksBuilder_.isEmpty()) { - tasksBuilder_.dispose(); - tasksBuilder_ = null; - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000001); - tasksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getTasksFieldBuilder() - : null; - } else { - tasksBuilder_.addAllMessages(other.tasks_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.tasks.v2beta3.Task m = - input.readMessage( - com.google.cloud.tasks.v2beta3.Task.parser(), extensionRegistry); - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(m); - } else { - tasksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List tasks_ = - java.util.Collections.emptyList(); - - private void ensureTasksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - tasks_ = new java.util.ArrayList(tasks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tasks.v2beta3.Task, - com.google.cloud.tasks.v2beta3.Task.Builder, - com.google.cloud.tasks.v2beta3.TaskOrBuilder> - tasksBuilder_; - - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - public java.util.List getTasksList() { - if (tasksBuilder_ == null) { - return java.util.Collections.unmodifiableList(tasks_); - } else { - return tasksBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - public int getTasksCount() { - if (tasksBuilder_ == null) { - return tasks_.size(); - } else { - return tasksBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - public com.google.cloud.tasks.v2beta3.Task getTasks(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - public Builder setTasks(int index, com.google.cloud.tasks.v2beta3.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.set(index, value); - onChanged(); - } else { - tasksBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - public Builder setTasks( - int index, com.google.cloud.tasks.v2beta3.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.set(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - public Builder addTasks(com.google.cloud.tasks.v2beta3.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(value); - onChanged(); - } else { - tasksBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - public Builder addTasks(int index, com.google.cloud.tasks.v2beta3.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(index, value); - onChanged(); - } else { - tasksBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - public Builder addTasks(com.google.cloud.tasks.v2beta3.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - public Builder addTasks( - int index, com.google.cloud.tasks.v2beta3.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - public Builder addAllTasks( - java.lang.Iterable values) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tasks_); - onChanged(); - } else { - tasksBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - public Builder clearTasks() { - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - tasksBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - public Builder removeTasks(int index) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.remove(index); - onChanged(); - } else { - tasksBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - public com.google.cloud.tasks.v2beta3.Task.Builder getTasksBuilder(int index) { - return getTasksFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - public com.google.cloud.tasks.v2beta3.TaskOrBuilder getTasksOrBuilder(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - public java.util.List - getTasksOrBuilderList() { - if (tasksBuilder_ != null) { - return tasksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tasks_); - } - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - public com.google.cloud.tasks.v2beta3.Task.Builder addTasksBuilder() { - return getTasksFieldBuilder() - .addBuilder(com.google.cloud.tasks.v2beta3.Task.getDefaultInstance()); - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - public com.google.cloud.tasks.v2beta3.Task.Builder addTasksBuilder(int index) { - return getTasksFieldBuilder() - .addBuilder(index, com.google.cloud.tasks.v2beta3.Task.getDefaultInstance()); - } - /** - * - * - *
-     * The list of tasks.
-     * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - public java.util.List getTasksBuilderList() { - return getTasksFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tasks.v2beta3.Task, - com.google.cloud.tasks.v2beta3.Task.Builder, - com.google.cloud.tasks.v2beta3.TaskOrBuilder> - getTasksFieldBuilder() { - if (tasksBuilder_ == null) { - tasksBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.tasks.v2beta3.Task, - com.google.cloud.tasks.v2beta3.Task.Builder, - com.google.cloud.tasks.v2beta3.TaskOrBuilder>( - tasks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - tasks_ = null; - } - return tasksBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks] with this value as the
-     * [page_token][google.cloud.tasks.v2beta3.ListTasksRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks] with this value as the
-     * [page_token][google.cloud.tasks.v2beta3.ListTasksRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks] with this value as the
-     * [page_token][google.cloud.tasks.v2beta3.ListTasksRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks] with this value as the
-     * [page_token][google.cloud.tasks.v2beta3.ListTasksRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - * - * - *
-     * A token to retrieve next page of results.
-     * To return the next page of results, call
-     * [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks] with this value as the
-     * [page_token][google.cloud.tasks.v2beta3.ListTasksRequest.page_token].
-     * If the next_page_token is empty, there are no more results.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.ListTasksResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.ListTasksResponse) - private static final com.google.cloud.tasks.v2beta3.ListTasksResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.ListTasksResponse(); - } - - public static com.google.cloud.tasks.v2beta3.ListTasksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTasksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.ListTasksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponseOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponseOrBuilder.java deleted file mode 100644 index 8b9ed0ad..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponseOrBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2020 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; - -public interface ListTasksResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.ListTasksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - java.util.List getTasksList(); - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - com.google.cloud.tasks.v2beta3.Task getTasks(int index); - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - int getTasksCount(); - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - java.util.List getTasksOrBuilderList(); - /** - * - * - *
-   * The list of tasks.
-   * 
- * - * repeated .google.cloud.tasks.v2beta3.Task tasks = 1; - */ - com.google.cloud.tasks.v2beta3.TaskOrBuilder getTasksOrBuilder(int index); - - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks] with this value as the
-   * [page_token][google.cloud.tasks.v2beta3.ListTasksRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token to retrieve next page of results.
-   * To return the next page of results, call
-   * [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks] with this value as the
-   * [page_token][google.cloud.tasks.v2beta3.ListTasksRequest.page_token].
-   * If the next_page_token is empty, there are no more results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/LocationName.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/LocationName.java deleted file mode 100644 index afcff3bd..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/LocationName.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2022 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.v2beta3; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class LocationName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION = - PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - - @Deprecated - protected LocationName() { - project = null; - location = null; - } - - private LocationName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static LocationName of(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build(); - } - - public static String format(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build().toString(); - } - - public static LocationName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION.validatedMatch( - formattedString, "LocationName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (LocationName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION.instantiate("project", project, "location", location); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - LocationName that = ((LocationName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - return h; - } - - /** Builder for projects/{project}/locations/{location}. */ - public static class Builder { - private String project; - private String location; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - private Builder(LocationName locationName) { - this.project = locationName.project; - this.location = locationName.location; - } - - public LocationName build() { - return new LocationName(this); - } - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthToken.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthToken.java deleted file mode 100644 index c130d855..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthToken.java +++ /dev/null @@ -1,840 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta3; - -/** - * - * - *
- * Contains information needed for generating an
- * [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
- * This type of authorization should generally only be used when calling Google
- * APIs hosted on *.googleapis.com.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.OAuthToken} - */ -public final class OAuthToken extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.OAuthToken) - OAuthTokenOrBuilder { - private static final long serialVersionUID = 0L; - // Use OAuthToken.newBuilder() to construct. - private OAuthToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private OAuthToken() { - serviceAccountEmail_ = ""; - scope_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new OAuthToken(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_OAuthToken_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_OAuthToken_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.OAuthToken.class, - com.google.cloud.tasks.v2beta3.OAuthToken.Builder.class); - } - - public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 1; - private volatile java.lang.Object serviceAccountEmail_; - /** - * - * - *
-   * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-   * to be used for generating OAuth token.
-   * The service account must be within the same project as the queue. The
-   * caller must have iam.serviceAccounts.actAs permission for the service
-   * account.
-   * 
- * - * string service_account_email = 1; - * - * @return The serviceAccountEmail. - */ - @java.lang.Override - public java.lang.String getServiceAccountEmail() { - java.lang.Object ref = serviceAccountEmail_; - 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(); - serviceAccountEmail_ = s; - return s; - } - } - /** - * - * - *
-   * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-   * to be used for generating OAuth token.
-   * The service account must be within the same project as the queue. The
-   * caller must have iam.serviceAccounts.actAs permission for the service
-   * account.
-   * 
- * - * string service_account_email = 1; - * - * @return The bytes for serviceAccountEmail. - */ - @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { - java.lang.Object ref = serviceAccountEmail_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAccountEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCOPE_FIELD_NUMBER = 2; - private volatile java.lang.Object scope_; - /** - * - * - *
-   * OAuth scope to be used for generating OAuth access token.
-   * If not specified, "https://www.googleapis.com/auth/cloud-platform"
-   * will be used.
-   * 
- * - * string scope = 2; - * - * @return The scope. - */ - @java.lang.Override - public java.lang.String getScope() { - java.lang.Object ref = scope_; - 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(); - scope_ = s; - return s; - } - } - /** - * - * - *
-   * OAuth scope to be used for generating OAuth access token.
-   * If not specified, "https://www.googleapis.com/auth/cloud-platform"
-   * will be used.
-   * 
- * - * string scope = 2; - * - * @return The bytes for scope. - */ - @java.lang.Override - public com.google.protobuf.ByteString getScopeBytes() { - java.lang.Object ref = scope_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - scope_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountEmail_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scope_); - } - 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(serviceAccountEmail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccountEmail_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(scope_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, scope_); - } - 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.OAuthToken)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.OAuthToken other = - (com.google.cloud.tasks.v2beta3.OAuthToken) obj; - - if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; - if (!getScope().equals(other.getScope())) 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) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getServiceAccountEmail().hashCode(); - hash = (37 * hash) + SCOPE_FIELD_NUMBER; - hash = (53 * hash) + getScope().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.OAuthToken parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.OAuthToken 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.OAuthToken parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.OAuthToken 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.OAuthToken parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.OAuthToken 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.OAuthToken parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.OAuthToken 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.OAuthToken parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.OAuthToken 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.OAuthToken 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.OAuthToken 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.OAuthToken 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; - } - /** - * - * - *
-   * Contains information needed for generating an
-   * [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
-   * This type of authorization should generally only be used when calling Google
-   * APIs hosted on *.googleapis.com.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.OAuthToken} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.OAuthToken) - com.google.cloud.tasks.v2beta3.OAuthTokenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_OAuthToken_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_OAuthToken_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.OAuthToken.class, - com.google.cloud.tasks.v2beta3.OAuthToken.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.OAuthToken.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - serviceAccountEmail_ = ""; - - scope_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_OAuthToken_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.OAuthToken getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.OAuthToken.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.OAuthToken build() { - com.google.cloud.tasks.v2beta3.OAuthToken result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.OAuthToken buildPartial() { - com.google.cloud.tasks.v2beta3.OAuthToken result = - new com.google.cloud.tasks.v2beta3.OAuthToken(this); - result.serviceAccountEmail_ = serviceAccountEmail_; - result.scope_ = scope_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.OAuthToken) { - return mergeFrom((com.google.cloud.tasks.v2beta3.OAuthToken) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.OAuthToken other) { - if (other == com.google.cloud.tasks.v2beta3.OAuthToken.getDefaultInstance()) return this; - if (!other.getServiceAccountEmail().isEmpty()) { - serviceAccountEmail_ = other.serviceAccountEmail_; - onChanged(); - } - if (!other.getScope().isEmpty()) { - scope_ = other.scope_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - serviceAccountEmail_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - scope_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object serviceAccountEmail_ = ""; - /** - * - * - *
-     * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-     * to be used for generating OAuth token.
-     * The service account must be within the same project as the queue. The
-     * caller must have iam.serviceAccounts.actAs permission for the service
-     * account.
-     * 
- * - * string service_account_email = 1; - * - * @return The serviceAccountEmail. - */ - public java.lang.String getServiceAccountEmail() { - java.lang.Object ref = serviceAccountEmail_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccountEmail_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-     * to be used for generating OAuth token.
-     * The service account must be within the same project as the queue. The
-     * caller must have iam.serviceAccounts.actAs permission for the service
-     * account.
-     * 
- * - * string service_account_email = 1; - * - * @return The bytes for serviceAccountEmail. - */ - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { - java.lang.Object ref = serviceAccountEmail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAccountEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-     * to be used for generating OAuth token.
-     * The service account must be within the same project as the queue. The
-     * caller must have iam.serviceAccounts.actAs permission for the service
-     * account.
-     * 
- * - * string service_account_email = 1; - * - * @param value The serviceAccountEmail to set. - * @return This builder for chaining. - */ - public Builder setServiceAccountEmail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serviceAccountEmail_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-     * to be used for generating OAuth token.
-     * The service account must be within the same project as the queue. The
-     * caller must have iam.serviceAccounts.actAs permission for the service
-     * account.
-     * 
- * - * string service_account_email = 1; - * - * @return This builder for chaining. - */ - public Builder clearServiceAccountEmail() { - - serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-     * to be used for generating OAuth token.
-     * The service account must be within the same project as the queue. The
-     * caller must have iam.serviceAccounts.actAs permission for the service
-     * account.
-     * 
- * - * string service_account_email = 1; - * - * @param value The bytes for serviceAccountEmail to set. - * @return This builder for chaining. - */ - public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serviceAccountEmail_ = value; - onChanged(); - return this; - } - - private java.lang.Object scope_ = ""; - /** - * - * - *
-     * OAuth scope to be used for generating OAuth access token.
-     * If not specified, "https://www.googleapis.com/auth/cloud-platform"
-     * will be used.
-     * 
- * - * string scope = 2; - * - * @return The scope. - */ - public java.lang.String getScope() { - java.lang.Object ref = scope_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - scope_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * OAuth scope to be used for generating OAuth access token.
-     * If not specified, "https://www.googleapis.com/auth/cloud-platform"
-     * will be used.
-     * 
- * - * string scope = 2; - * - * @return The bytes for scope. - */ - public com.google.protobuf.ByteString getScopeBytes() { - java.lang.Object ref = scope_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - scope_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * OAuth scope to be used for generating OAuth access token.
-     * If not specified, "https://www.googleapis.com/auth/cloud-platform"
-     * will be used.
-     * 
- * - * string scope = 2; - * - * @param value The scope to set. - * @return This builder for chaining. - */ - public Builder setScope(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - scope_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * OAuth scope to be used for generating OAuth access token.
-     * If not specified, "https://www.googleapis.com/auth/cloud-platform"
-     * will be used.
-     * 
- * - * string scope = 2; - * - * @return This builder for chaining. - */ - public Builder clearScope() { - - scope_ = getDefaultInstance().getScope(); - onChanged(); - return this; - } - /** - * - * - *
-     * OAuth scope to be used for generating OAuth access token.
-     * If not specified, "https://www.googleapis.com/auth/cloud-platform"
-     * will be used.
-     * 
- * - * string scope = 2; - * - * @param value The bytes for scope to set. - * @return This builder for chaining. - */ - public Builder setScopeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - scope_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.OAuthToken) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.OAuthToken) - private static final com.google.cloud.tasks.v2beta3.OAuthToken DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.OAuthToken(); - } - - public static com.google.cloud.tasks.v2beta3.OAuthToken getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OAuthToken parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.OAuthToken getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthTokenOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthTokenOrBuilder.java deleted file mode 100644 index 6409320a..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthTokenOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta3; - -public interface OAuthTokenOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.OAuthToken) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-   * to be used for generating OAuth token.
-   * The service account must be within the same project as the queue. The
-   * caller must have iam.serviceAccounts.actAs permission for the service
-   * account.
-   * 
- * - * string service_account_email = 1; - * - * @return The serviceAccountEmail. - */ - java.lang.String getServiceAccountEmail(); - /** - * - * - *
-   * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-   * to be used for generating OAuth token.
-   * The service account must be within the same project as the queue. The
-   * caller must have iam.serviceAccounts.actAs permission for the service
-   * account.
-   * 
- * - * string service_account_email = 1; - * - * @return The bytes for serviceAccountEmail. - */ - com.google.protobuf.ByteString getServiceAccountEmailBytes(); - - /** - * - * - *
-   * OAuth scope to be used for generating OAuth access token.
-   * If not specified, "https://www.googleapis.com/auth/cloud-platform"
-   * will be used.
-   * 
- * - * string scope = 2; - * - * @return The scope. - */ - java.lang.String getScope(); - /** - * - * - *
-   * OAuth scope to be used for generating OAuth access token.
-   * If not specified, "https://www.googleapis.com/auth/cloud-platform"
-   * will be used.
-   * 
- * - * string scope = 2; - * - * @return The bytes for scope. - */ - com.google.protobuf.ByteString getScopeBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcToken.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcToken.java deleted file mode 100644 index 3bfed40f..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcToken.java +++ /dev/null @@ -1,836 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta3; - -/** - * - * - *
- * Contains information needed for generating an
- * [OpenID Connect
- * token](https://developers.google.com/identity/protocols/OpenIDConnect).
- * This type of authorization can be used for many scenarios, including
- * calling Cloud Run, or endpoints where you intend to validate the token
- * yourself.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.OidcToken} - */ -public final class OidcToken extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.OidcToken) - OidcTokenOrBuilder { - private static final long serialVersionUID = 0L; - // Use OidcToken.newBuilder() to construct. - private OidcToken(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private OidcToken() { - serviceAccountEmail_ = ""; - audience_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new OidcToken(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_OidcToken_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_OidcToken_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.OidcToken.class, - com.google.cloud.tasks.v2beta3.OidcToken.Builder.class); - } - - public static final int SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER = 1; - private volatile java.lang.Object serviceAccountEmail_; - /** - * - * - *
-   * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-   * to be used for generating OIDC token.
-   * The service account must be within the same project as the queue. The
-   * caller must have iam.serviceAccounts.actAs permission for the service
-   * account.
-   * 
- * - * string service_account_email = 1; - * - * @return The serviceAccountEmail. - */ - @java.lang.Override - public java.lang.String getServiceAccountEmail() { - java.lang.Object ref = serviceAccountEmail_; - 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(); - serviceAccountEmail_ = s; - return s; - } - } - /** - * - * - *
-   * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-   * to be used for generating OIDC token.
-   * The service account must be within the same project as the queue. The
-   * caller must have iam.serviceAccounts.actAs permission for the service
-   * account.
-   * 
- * - * string service_account_email = 1; - * - * @return The bytes for serviceAccountEmail. - */ - @java.lang.Override - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { - java.lang.Object ref = serviceAccountEmail_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAccountEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AUDIENCE_FIELD_NUMBER = 2; - private volatile java.lang.Object audience_; - /** - * - * - *
-   * Audience to be used when generating OIDC token. If not specified, the URI
-   * specified in target will be used.
-   * 
- * - * string audience = 2; - * - * @return The audience. - */ - @java.lang.Override - public java.lang.String getAudience() { - java.lang.Object ref = audience_; - 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(); - audience_ = s; - return s; - } - } - /** - * - * - *
-   * Audience to be used when generating OIDC token. If not specified, the URI
-   * specified in target will be used.
-   * 
- * - * string audience = 2; - * - * @return The bytes for audience. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAudienceBytes() { - java.lang.Object ref = audience_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - audience_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountEmail_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccountEmail_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audience_); - } - 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(serviceAccountEmail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccountEmail_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audience_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, audience_); - } - 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.OidcToken)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.OidcToken other = (com.google.cloud.tasks.v2beta3.OidcToken) obj; - - if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false; - if (!getAudience().equals(other.getAudience())) 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) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getServiceAccountEmail().hashCode(); - hash = (37 * hash) + AUDIENCE_FIELD_NUMBER; - hash = (53 * hash) + getAudience().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.OidcToken parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.OidcToken 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.OidcToken parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.OidcToken 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.OidcToken parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.OidcToken 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.OidcToken parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.OidcToken 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.OidcToken parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.OidcToken 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.OidcToken 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.OidcToken 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.OidcToken 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; - } - /** - * - * - *
-   * Contains information needed for generating an
-   * [OpenID Connect
-   * token](https://developers.google.com/identity/protocols/OpenIDConnect).
-   * This type of authorization can be used for many scenarios, including
-   * calling Cloud Run, or endpoints where you intend to validate the token
-   * yourself.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.OidcToken} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.OidcToken) - com.google.cloud.tasks.v2beta3.OidcTokenOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_OidcToken_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_OidcToken_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.OidcToken.class, - com.google.cloud.tasks.v2beta3.OidcToken.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.OidcToken.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - serviceAccountEmail_ = ""; - - audience_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_OidcToken_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.OidcToken getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.OidcToken.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.OidcToken build() { - com.google.cloud.tasks.v2beta3.OidcToken result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.OidcToken buildPartial() { - com.google.cloud.tasks.v2beta3.OidcToken result = - new com.google.cloud.tasks.v2beta3.OidcToken(this); - result.serviceAccountEmail_ = serviceAccountEmail_; - result.audience_ = audience_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.OidcToken) { - return mergeFrom((com.google.cloud.tasks.v2beta3.OidcToken) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.OidcToken other) { - if (other == com.google.cloud.tasks.v2beta3.OidcToken.getDefaultInstance()) return this; - if (!other.getServiceAccountEmail().isEmpty()) { - serviceAccountEmail_ = other.serviceAccountEmail_; - onChanged(); - } - if (!other.getAudience().isEmpty()) { - audience_ = other.audience_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - serviceAccountEmail_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - audience_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object serviceAccountEmail_ = ""; - /** - * - * - *
-     * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-     * to be used for generating OIDC token.
-     * The service account must be within the same project as the queue. The
-     * caller must have iam.serviceAccounts.actAs permission for the service
-     * account.
-     * 
- * - * string service_account_email = 1; - * - * @return The serviceAccountEmail. - */ - public java.lang.String getServiceAccountEmail() { - java.lang.Object ref = serviceAccountEmail_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccountEmail_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-     * to be used for generating OIDC token.
-     * The service account must be within the same project as the queue. The
-     * caller must have iam.serviceAccounts.actAs permission for the service
-     * account.
-     * 
- * - * string service_account_email = 1; - * - * @return The bytes for serviceAccountEmail. - */ - public com.google.protobuf.ByteString getServiceAccountEmailBytes() { - java.lang.Object ref = serviceAccountEmail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - serviceAccountEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-     * to be used for generating OIDC token.
-     * The service account must be within the same project as the queue. The
-     * caller must have iam.serviceAccounts.actAs permission for the service
-     * account.
-     * 
- * - * string service_account_email = 1; - * - * @param value The serviceAccountEmail to set. - * @return This builder for chaining. - */ - public Builder setServiceAccountEmail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serviceAccountEmail_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-     * to be used for generating OIDC token.
-     * The service account must be within the same project as the queue. The
-     * caller must have iam.serviceAccounts.actAs permission for the service
-     * account.
-     * 
- * - * string service_account_email = 1; - * - * @return This builder for chaining. - */ - public Builder clearServiceAccountEmail() { - - serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail(); - onChanged(); - return this; - } - /** - * - * - *
-     * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-     * to be used for generating OIDC token.
-     * The service account must be within the same project as the queue. The
-     * caller must have iam.serviceAccounts.actAs permission for the service
-     * account.
-     * 
- * - * string service_account_email = 1; - * - * @param value The bytes for serviceAccountEmail to set. - * @return This builder for chaining. - */ - public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serviceAccountEmail_ = value; - onChanged(); - return this; - } - - private java.lang.Object audience_ = ""; - /** - * - * - *
-     * Audience to be used when generating OIDC token. If not specified, the URI
-     * specified in target will be used.
-     * 
- * - * string audience = 2; - * - * @return The audience. - */ - public java.lang.String getAudience() { - java.lang.Object ref = audience_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - audience_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Audience to be used when generating OIDC token. If not specified, the URI
-     * specified in target will be used.
-     * 
- * - * string audience = 2; - * - * @return The bytes for audience. - */ - public com.google.protobuf.ByteString getAudienceBytes() { - java.lang.Object ref = audience_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - audience_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Audience to be used when generating OIDC token. If not specified, the URI
-     * specified in target will be used.
-     * 
- * - * string audience = 2; - * - * @param value The audience to set. - * @return This builder for chaining. - */ - public Builder setAudience(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - audience_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Audience to be used when generating OIDC token. If not specified, the URI
-     * specified in target will be used.
-     * 
- * - * string audience = 2; - * - * @return This builder for chaining. - */ - public Builder clearAudience() { - - audience_ = getDefaultInstance().getAudience(); - onChanged(); - return this; - } - /** - * - * - *
-     * Audience to be used when generating OIDC token. If not specified, the URI
-     * specified in target will be used.
-     * 
- * - * string audience = 2; - * - * @param value The bytes for audience to set. - * @return This builder for chaining. - */ - public Builder setAudienceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - audience_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.OidcToken) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.OidcToken) - private static final com.google.cloud.tasks.v2beta3.OidcToken DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.OidcToken(); - } - - public static com.google.cloud.tasks.v2beta3.OidcToken getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OidcToken parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.OidcToken getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcTokenOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcTokenOrBuilder.java deleted file mode 100644 index 639b960f..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcTokenOrBuilder.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta3; - -public interface OidcTokenOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.OidcToken) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-   * to be used for generating OIDC token.
-   * The service account must be within the same project as the queue. The
-   * caller must have iam.serviceAccounts.actAs permission for the service
-   * account.
-   * 
- * - * string service_account_email = 1; - * - * @return The serviceAccountEmail. - */ - java.lang.String getServiceAccountEmail(); - /** - * - * - *
-   * [Service account email](https://cloud.google.com/iam/docs/service-accounts)
-   * to be used for generating OIDC token.
-   * The service account must be within the same project as the queue. The
-   * caller must have iam.serviceAccounts.actAs permission for the service
-   * account.
-   * 
- * - * string service_account_email = 1; - * - * @return The bytes for serviceAccountEmail. - */ - com.google.protobuf.ByteString getServiceAccountEmailBytes(); - - /** - * - * - *
-   * Audience to be used when generating OIDC token. If not specified, the URI
-   * specified in target will be used.
-   * 
- * - * string audience = 2; - * - * @return The audience. - */ - java.lang.String getAudience(); - /** - * - * - *
-   * Audience to be used when generating OIDC token. If not specified, the URI
-   * specified in target will be used.
-   * 
- * - * string audience = 2; - * - * @return The bytes for audience. - */ - com.google.protobuf.ByteString getAudienceBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequest.java deleted file mode 100644 index fbd6579c..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequest.java +++ /dev/null @@ -1,636 +0,0 @@ -/* - * Copyright 2020 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 [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.PauseQueueRequest} - */ -public final class PauseQueueRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.PauseQueueRequest) - PauseQueueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PauseQueueRequest.newBuilder() to construct. - private PauseQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PauseQueueRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PauseQueueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_PauseQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_PauseQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.PauseQueueRequest.class, - com.google.cloud.tasks.v2beta3.PauseQueueRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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.PauseQueueRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.PauseQueueRequest other = - (com.google.cloud.tasks.v2beta3.PauseQueueRequest) obj; - - if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.PauseQueueRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.PauseQueueRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.PauseQueueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.PauseQueueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.PauseQueueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.PauseQueueRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.PauseQueueRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.PauseQueueRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.PauseQueueRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.PauseQueueRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.PauseQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.PauseQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta3.PauseQueueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.PauseQueueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.PauseQueueRequest) - com.google.cloud.tasks.v2beta3.PauseQueueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_PauseQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_PauseQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.PauseQueueRequest.class, - com.google.cloud.tasks.v2beta3.PauseQueueRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.PauseQueueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_PauseQueueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.PauseQueueRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.PauseQueueRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.PauseQueueRequest build() { - com.google.cloud.tasks.v2beta3.PauseQueueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.PauseQueueRequest buildPartial() { - com.google.cloud.tasks.v2beta3.PauseQueueRequest result = - new com.google.cloud.tasks.v2beta3.PauseQueueRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.PauseQueueRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta3.PauseQueueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.PauseQueueRequest other) { - if (other == com.google.cloud.tasks.v2beta3.PauseQueueRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.PauseQueueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.PauseQueueRequest) - private static final com.google.cloud.tasks.v2beta3.PauseQueueRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.PauseQueueRequest(); - } - - public static com.google.cloud.tasks.v2beta3.PauseQueueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PauseQueueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.PauseQueueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequestOrBuilder.java deleted file mode 100644 index d4fc3a55..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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; - -public interface PauseQueueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.PauseQueueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ProjectName.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ProjectName.java deleted file mode 100644 index aa0ef9db..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ProjectName.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright 2019 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.v2beta3; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; - -// AUTO-GENERATED DOCUMENTATION AND CLASS -@javax.annotation.Generated("by GAPIC protoc plugin") -public class ProjectName implements ResourceName { - - private static final PathTemplate PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding("projects/{project}"); - - private volatile Map fieldValuesMap; - - private final String project; - - public String getProject() { - return project; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - private ProjectName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - } - - public static ProjectName of(String project) { - return newBuilder().setProject(project).build(); - } - - public static String format(String project) { - return newBuilder().setProject(project).build().toString(); - } - - public static ProjectName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PATH_TEMPLATE.validatedMatch( - formattedString, "ProjectName.parse: formattedString not in valid format"); - return of(matchMap.get("project")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList(values.size()); - for (ProjectName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PATH_TEMPLATE.matches(formattedString); - } - - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - fieldMapBuilder.put("project", project); - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PATH_TEMPLATE.instantiate("project", project); - } - - /** Builder for ProjectName. */ - public static class Builder { - - private String project; - - public String getProject() { - return project; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - private Builder() {} - - private Builder(ProjectName projectName) { - project = projectName.project; - } - - public ProjectName build() { - return new ProjectName(this); - } - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o instanceof ProjectName) { - ProjectName that = (ProjectName) o; - return (this.project.equals(that.project)); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= project.hashCode(); - return h; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessage.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessage.java deleted file mode 100644 index b022bc6f..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessage.java +++ /dev/null @@ -1,763 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta3; - -/** - * - * - *
- * Pull Message.
- * This proto can only be used for tasks in a queue which has
- * [PULL][google.cloud.tasks.v2beta3.Queue.type] type. It currently exists for backwards compatibility with
- * the App Engine Task Queue SDK. This message type maybe returned with methods
- * [list][google.cloud.tasks.v2beta3.CloudTask.ListTasks] and
- * [get][google.cloud.tasks.v2beta3.CloudTask.ListTasks], when the response view
- * is [FULL][google.cloud.tasks.v2beta3.Task.View.Full].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.PullMessage} - */ -public final class PullMessage extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.PullMessage) - PullMessageOrBuilder { - private static final long serialVersionUID = 0L; - // Use PullMessage.newBuilder() to construct. - private PullMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PullMessage() { - payload_ = com.google.protobuf.ByteString.EMPTY; - tag_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PullMessage(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_PullMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_PullMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.PullMessage.class, - com.google.cloud.tasks.v2beta3.PullMessage.Builder.class); - } - - public static final int PAYLOAD_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString payload_; - /** - * - * - *
-   * A data payload consumed by the worker to execute the task.
-   * 
- * - * bytes payload = 1; - * - * @return The payload. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPayload() { - return payload_; - } - - public static final int TAG_FIELD_NUMBER = 2; - private volatile java.lang.Object tag_; - /** - * - * - *
-   * The tasks's tag.
-   * The tag is less than 500 characters.
-   * SDK compatibility: Although the SDK allows tags to be either
-   * string or
-   * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-   * only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
-   * encoded, the tag will be empty when the task is returned by Cloud Tasks.
-   * 
- * - * string tag = 2; - * - * @return The tag. - */ - @java.lang.Override - public java.lang.String getTag() { - java.lang.Object ref = tag_; - 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(); - tag_ = s; - return s; - } - } - /** - * - * - *
-   * The tasks's tag.
-   * The tag is less than 500 characters.
-   * SDK compatibility: Although the SDK allows tags to be either
-   * string or
-   * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-   * only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
-   * encoded, the tag will be empty when the task is returned by Cloud Tasks.
-   * 
- * - * string tag = 2; - * - * @return The bytes for tag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTagBytes() { - java.lang.Object ref = tag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!payload_.isEmpty()) { - output.writeBytes(1, payload_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!payload_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, payload_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); - } - 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.PullMessage)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.PullMessage other = - (com.google.cloud.tasks.v2beta3.PullMessage) obj; - - if (!getPayload().equals(other.getPayload())) return false; - if (!getTag().equals(other.getTag())) 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) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - hash = (37 * hash) + TAG_FIELD_NUMBER; - hash = (53 * hash) + getTag().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.PullMessage parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.PullMessage 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.PullMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.PullMessage 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.PullMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.PullMessage 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.PullMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.PullMessage 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.PullMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.PullMessage 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.PullMessage 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.PullMessage 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.PullMessage 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; - } - /** - * - * - *
-   * Pull Message.
-   * This proto can only be used for tasks in a queue which has
-   * [PULL][google.cloud.tasks.v2beta3.Queue.type] type. It currently exists for backwards compatibility with
-   * the App Engine Task Queue SDK. This message type maybe returned with methods
-   * [list][google.cloud.tasks.v2beta3.CloudTask.ListTasks] and
-   * [get][google.cloud.tasks.v2beta3.CloudTask.ListTasks], when the response view
-   * is [FULL][google.cloud.tasks.v2beta3.Task.View.Full].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.PullMessage} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.PullMessage) - com.google.cloud.tasks.v2beta3.PullMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_PullMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_PullMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.PullMessage.class, - com.google.cloud.tasks.v2beta3.PullMessage.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.PullMessage.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - payload_ = com.google.protobuf.ByteString.EMPTY; - - tag_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.TargetProto - .internal_static_google_cloud_tasks_v2beta3_PullMessage_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.PullMessage getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.PullMessage.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.PullMessage build() { - com.google.cloud.tasks.v2beta3.PullMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.PullMessage buildPartial() { - com.google.cloud.tasks.v2beta3.PullMessage result = - new com.google.cloud.tasks.v2beta3.PullMessage(this); - result.payload_ = payload_; - result.tag_ = tag_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.PullMessage) { - return mergeFrom((com.google.cloud.tasks.v2beta3.PullMessage) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.PullMessage other) { - if (other == com.google.cloud.tasks.v2beta3.PullMessage.getDefaultInstance()) return this; - if (other.getPayload() != com.google.protobuf.ByteString.EMPTY) { - setPayload(other.getPayload()); - } - if (!other.getTag().isEmpty()) { - tag_ = other.tag_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - payload_ = input.readBytes(); - - break; - } // case 10 - case 18: - { - tag_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.protobuf.ByteString payload_ = com.google.protobuf.ByteString.EMPTY; - /** - * - * - *
-     * A data payload consumed by the worker to execute the task.
-     * 
- * - * bytes payload = 1; - * - * @return The payload. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPayload() { - return payload_; - } - /** - * - * - *
-     * A data payload consumed by the worker to execute the task.
-     * 
- * - * bytes payload = 1; - * - * @param value The payload to set. - * @return This builder for chaining. - */ - public Builder setPayload(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - payload_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A data payload consumed by the worker to execute the task.
-     * 
- * - * bytes payload = 1; - * - * @return This builder for chaining. - */ - public Builder clearPayload() { - - payload_ = getDefaultInstance().getPayload(); - onChanged(); - return this; - } - - private java.lang.Object tag_ = ""; - /** - * - * - *
-     * The tasks's tag.
-     * The tag is less than 500 characters.
-     * SDK compatibility: Although the SDK allows tags to be either
-     * string or
-     * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-     * only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
-     * encoded, the tag will be empty when the task is returned by Cloud Tasks.
-     * 
- * - * string tag = 2; - * - * @return The tag. - */ - public java.lang.String getTag() { - java.lang.Object ref = tag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The tasks's tag.
-     * The tag is less than 500 characters.
-     * SDK compatibility: Although the SDK allows tags to be either
-     * string or
-     * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-     * only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
-     * encoded, the tag will be empty when the task is returned by Cloud Tasks.
-     * 
- * - * string tag = 2; - * - * @return The bytes for tag. - */ - public com.google.protobuf.ByteString getTagBytes() { - java.lang.Object ref = tag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The tasks's tag.
-     * The tag is less than 500 characters.
-     * SDK compatibility: Although the SDK allows tags to be either
-     * string or
-     * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-     * only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
-     * encoded, the tag will be empty when the task is returned by Cloud Tasks.
-     * 
- * - * string tag = 2; - * - * @param value The tag to set. - * @return This builder for chaining. - */ - public Builder setTag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tag_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The tasks's tag.
-     * The tag is less than 500 characters.
-     * SDK compatibility: Although the SDK allows tags to be either
-     * string or
-     * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-     * only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
-     * encoded, the tag will be empty when the task is returned by Cloud Tasks.
-     * 
- * - * string tag = 2; - * - * @return This builder for chaining. - */ - public Builder clearTag() { - - tag_ = getDefaultInstance().getTag(); - onChanged(); - return this; - } - /** - * - * - *
-     * The tasks's tag.
-     * The tag is less than 500 characters.
-     * SDK compatibility: Although the SDK allows tags to be either
-     * string or
-     * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-     * only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
-     * encoded, the tag will be empty when the task is returned by Cloud Tasks.
-     * 
- * - * string tag = 2; - * - * @param value The bytes for tag to set. - * @return This builder for chaining. - */ - public Builder setTagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tag_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.PullMessage) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.PullMessage) - private static final com.google.cloud.tasks.v2beta3.PullMessage DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.PullMessage(); - } - - public static com.google.cloud.tasks.v2beta3.PullMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PullMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.PullMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessageOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessageOrBuilder.java deleted file mode 100644 index cfae720a..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessageOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta3; - -public interface PullMessageOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.PullMessage) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A data payload consumed by the worker to execute the task.
-   * 
- * - * bytes payload = 1; - * - * @return The payload. - */ - com.google.protobuf.ByteString getPayload(); - - /** - * - * - *
-   * The tasks's tag.
-   * The tag is less than 500 characters.
-   * SDK compatibility: Although the SDK allows tags to be either
-   * string or
-   * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-   * only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
-   * encoded, the tag will be empty when the task is returned by Cloud Tasks.
-   * 
- * - * string tag = 2; - * - * @return The tag. - */ - java.lang.String getTag(); - /** - * - * - *
-   * The tasks's tag.
-   * The tag is less than 500 characters.
-   * SDK compatibility: Although the SDK allows tags to be either
-   * string or
-   * [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
-   * only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
-   * encoded, the tag will be empty when the task is returned by Cloud Tasks.
-   * 
- * - * string tag = 2; - * - * @return The bytes for tag. - */ - com.google.protobuf.ByteString getTagBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequest.java deleted file mode 100644 index 4b71cf16..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequest.java +++ /dev/null @@ -1,636 +0,0 @@ -/* - * Copyright 2020 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 [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.PurgeQueueRequest} - */ -public final class PurgeQueueRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.PurgeQueueRequest) - PurgeQueueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PurgeQueueRequest.newBuilder() to construct. - private PurgeQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private PurgeQueueRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new PurgeQueueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_PurgeQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_PurgeQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.PurgeQueueRequest.class, - com.google.cloud.tasks.v2beta3.PurgeQueueRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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.PurgeQueueRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.PurgeQueueRequest other = - (com.google.cloud.tasks.v2beta3.PurgeQueueRequest) obj; - - if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.PurgeQueueRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.PurgeQueueRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.PurgeQueueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.PurgeQueueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.PurgeQueueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.PurgeQueueRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.PurgeQueueRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.PurgeQueueRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.PurgeQueueRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.PurgeQueueRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.PurgeQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.PurgeQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta3.PurgeQueueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.PurgeQueueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.PurgeQueueRequest) - com.google.cloud.tasks.v2beta3.PurgeQueueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_PurgeQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_PurgeQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.PurgeQueueRequest.class, - com.google.cloud.tasks.v2beta3.PurgeQueueRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.PurgeQueueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_PurgeQueueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.PurgeQueueRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.PurgeQueueRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.PurgeQueueRequest build() { - com.google.cloud.tasks.v2beta3.PurgeQueueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.PurgeQueueRequest buildPartial() { - com.google.cloud.tasks.v2beta3.PurgeQueueRequest result = - new com.google.cloud.tasks.v2beta3.PurgeQueueRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.PurgeQueueRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta3.PurgeQueueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.PurgeQueueRequest other) { - if (other == com.google.cloud.tasks.v2beta3.PurgeQueueRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.PurgeQueueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.PurgeQueueRequest) - private static final com.google.cloud.tasks.v2beta3.PurgeQueueRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.PurgeQueueRequest(); - } - - public static com.google.cloud.tasks.v2beta3.PurgeQueueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PurgeQueueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.PurgeQueueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequestOrBuilder.java deleted file mode 100644 index 5a994955..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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; - -public interface PurgeQueueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.PurgeQueueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Queue.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Queue.java deleted file mode 100644 index ab51cc5a..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Queue.java +++ /dev/null @@ -1,4410 +0,0 @@ -/* - * Copyright 2020 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/queue.proto - -package com.google.cloud.tasks.v2beta3; - -/** - * - * - *
- * A queue is a container of related tasks. Queues are configured to manage
- * how those tasks are dispatched. Configurable properties include rate limits,
- * retry options, queue types, and others.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.Queue} - */ -public final class Queue extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.Queue) - QueueOrBuilder { - private static final long serialVersionUID = 0L; - // Use Queue.newBuilder() to construct. - private Queue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Queue() { - name_ = ""; - state_ = 0; - type_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Queue(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_Queue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_Queue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.Queue.class, - com.google.cloud.tasks.v2beta3.Queue.Builder.class); - } - - /** - * - * - *
-   * State of the queue.
-   * 
- * - * Protobuf enum {@code google.cloud.tasks.v2beta3.Queue.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unspecified state.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - STATE_UNSPECIFIED(0), - /** - * - * - *
-     * The queue is running. Tasks can be dispatched.
-     * If the queue was created using Cloud Tasks and the queue has
-     * had no activity (method calls or task dispatches) for 30 days,
-     * the queue may take a few minutes to re-activate. Some method
-     * calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and
-     * tasks may not be dispatched for a few minutes until the queue
-     * has been re-activated.
-     * 
- * - * RUNNING = 1; - */ - RUNNING(1), - /** - * - * - *
-     * Tasks are paused by the user. If the queue is paused then Cloud
-     * Tasks will stop delivering tasks from it, but more tasks can
-     * still be added to it by the user.
-     * 
- * - * PAUSED = 2; - */ - PAUSED(2), - /** - * - * - *
-     * The queue is disabled.
-     * A queue becomes `DISABLED` when
-     * [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref)
-     * or
-     * [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref)
-     * is uploaded which does not contain the queue. You cannot directly disable
-     * a queue.
-     * When a queue is disabled, tasks can still be added to a queue
-     * but the tasks are not dispatched.
-     * To permanently delete this queue and all of its tasks, call
-     * [DeleteQueue][google.cloud.tasks.v2beta3.CloudTasks.DeleteQueue].
-     * 
- * - * DISABLED = 3; - */ - DISABLED(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Unspecified state.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - public static final int STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The queue is running. Tasks can be dispatched.
-     * If the queue was created using Cloud Tasks and the queue has
-     * had no activity (method calls or task dispatches) for 30 days,
-     * the queue may take a few minutes to re-activate. Some method
-     * calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and
-     * tasks may not be dispatched for a few minutes until the queue
-     * has been re-activated.
-     * 
- * - * RUNNING = 1; - */ - public static final int RUNNING_VALUE = 1; - /** - * - * - *
-     * Tasks are paused by the user. If the queue is paused then Cloud
-     * Tasks will stop delivering tasks from it, but more tasks can
-     * still be added to it by the user.
-     * 
- * - * PAUSED = 2; - */ - public static final int PAUSED_VALUE = 2; - /** - * - * - *
-     * The queue is disabled.
-     * A queue becomes `DISABLED` when
-     * [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref)
-     * or
-     * [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref)
-     * is uploaded which does not contain the queue. You cannot directly disable
-     * a queue.
-     * When a queue is disabled, tasks can still be added to a queue
-     * but the tasks are not dispatched.
-     * To permanently delete this queue and all of its tasks, call
-     * [DeleteQueue][google.cloud.tasks.v2beta3.CloudTasks.DeleteQueue].
-     * 
- * - * DISABLED = 3; - */ - public static final int DISABLED_VALUE = 3; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static State valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static State forNumber(int value) { - switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return RUNNING; - case 2: - return PAUSED; - case 3: - return DISABLED; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.Queue.getDescriptor().getEnumTypes().get(0); - } - - private static final State[] VALUES = values(); - - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private State(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.tasks.v2beta3.Queue.State) - } - - /** - * - * - *
-   * The type of the queue.
-   * 
- * - * Protobuf enum {@code google.cloud.tasks.v2beta3.Queue.Type} - */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value.
-     * 
- * - * TYPE_UNSPECIFIED = 0; - */ - TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * A pull queue.
-     * 
- * - * PULL = 1; - */ - PULL(1), - /** - * - * - *
-     * A push queue.
-     * 
- * - * PUSH = 2; - */ - PUSH(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Default value.
-     * 
- * - * TYPE_UNSPECIFIED = 0; - */ - public static final int TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * A pull queue.
-     * 
- * - * PULL = 1; - */ - public static final int PULL_VALUE = 1; - /** - * - * - *
-     * A push queue.
-     * 
- * - * PUSH = 2; - */ - public static final int PUSH_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Type valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Type forNumber(int value) { - switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return PULL; - case 2: - return PUSH; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.Queue.getDescriptor().getEnumTypes().get(1); - } - - private static final Type[] VALUES = values(); - - public static Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Type(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.tasks.v2beta3.Queue.Type) - } - - private int queueTypeCase_ = 0; - private java.lang.Object queueType_; - - public enum QueueTypeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - APP_ENGINE_HTTP_QUEUE(3), - QUEUETYPE_NOT_SET(0); - private final int value; - - private QueueTypeCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static QueueTypeCase valueOf(int value) { - return forNumber(value); - } - - public static QueueTypeCase forNumber(int value) { - switch (value) { - case 3: - return APP_ENGINE_HTTP_QUEUE; - case 0: - return QUEUETYPE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public QueueTypeCase getQueueTypeCase() { - return QueueTypeCase.forNumber(queueTypeCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta3.CloudTasks.CreateQueue],
-   * after which it becomes output only.
-   * The queue name.
-   * The queue name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the queue's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta3.CloudTasks.CreateQueue],
-   * after which it becomes output only.
-   * The queue name.
-   * The queue name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the queue's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int APP_ENGINE_HTTP_QUEUE_FIELD_NUMBER = 3; - /** - * - * - *
-   * [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] settings apply only to
-   * [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest] in this queue.
-   * [Http tasks][google.cloud.tasks.v2beta3.HttpRequest] are not affected by this proto.
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpQueue app_engine_http_queue = 3; - * - * @return Whether the appEngineHttpQueue field is set. - */ - @java.lang.Override - public boolean hasAppEngineHttpQueue() { - return queueTypeCase_ == 3; - } - /** - * - * - *
-   * [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] settings apply only to
-   * [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest] in this queue.
-   * [Http tasks][google.cloud.tasks.v2beta3.HttpRequest] are not affected by this proto.
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpQueue app_engine_http_queue = 3; - * - * @return The appEngineHttpQueue. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineHttpQueue getAppEngineHttpQueue() { - if (queueTypeCase_ == 3) { - return (com.google.cloud.tasks.v2beta3.AppEngineHttpQueue) queueType_; - } - return com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.getDefaultInstance(); - } - /** - * - * - *
-   * [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] settings apply only to
-   * [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest] in this queue.
-   * [Http tasks][google.cloud.tasks.v2beta3.HttpRequest] are not affected by this proto.
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpQueue app_engine_http_queue = 3; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineHttpQueueOrBuilder - getAppEngineHttpQueueOrBuilder() { - if (queueTypeCase_ == 3) { - return (com.google.cloud.tasks.v2beta3.AppEngineHttpQueue) queueType_; - } - return com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.getDefaultInstance(); - } - - public static final int RATE_LIMITS_FIELD_NUMBER = 4; - private com.google.cloud.tasks.v2beta3.RateLimits rateLimits_; - /** - * - * - *
-   * Rate limits for task dispatches.
-   * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] are
-   * related because they both control task attempts. However they control task
-   * attempts in different ways:
-   * * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] controls the total rate of
-   *   dispatches from a queue (i.e. all traffic dispatched from the
-   *   queue, regardless of whether the dispatch is from a first
-   *   attempt or a retry).
-   * * [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls what happens to
-   *   particular a task after its first attempt fails. That is,
-   *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls task retries (the
-   *   second attempt, third attempt, etc).
-   * The queue's actual dispatch rate is the result of:
-   * * Number of tasks in the queue
-   * * User-specified throttling: [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits],
-   *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config], and the
-   *   [queue's state][google.cloud.tasks.v2beta3.Queue.state].
-   * * System throttling due to `429` (Too Many Requests) or `503` (Service
-   *   Unavailable) responses from the worker, high error rates, or to smooth
-   *   sudden large traffic spikes.
-   * 
- * - * .google.cloud.tasks.v2beta3.RateLimits rate_limits = 4; - * - * @return Whether the rateLimits field is set. - */ - @java.lang.Override - public boolean hasRateLimits() { - return rateLimits_ != null; - } - /** - * - * - *
-   * Rate limits for task dispatches.
-   * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] are
-   * related because they both control task attempts. However they control task
-   * attempts in different ways:
-   * * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] controls the total rate of
-   *   dispatches from a queue (i.e. all traffic dispatched from the
-   *   queue, regardless of whether the dispatch is from a first
-   *   attempt or a retry).
-   * * [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls what happens to
-   *   particular a task after its first attempt fails. That is,
-   *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls task retries (the
-   *   second attempt, third attempt, etc).
-   * The queue's actual dispatch rate is the result of:
-   * * Number of tasks in the queue
-   * * User-specified throttling: [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits],
-   *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config], and the
-   *   [queue's state][google.cloud.tasks.v2beta3.Queue.state].
-   * * System throttling due to `429` (Too Many Requests) or `503` (Service
-   *   Unavailable) responses from the worker, high error rates, or to smooth
-   *   sudden large traffic spikes.
-   * 
- * - * .google.cloud.tasks.v2beta3.RateLimits rate_limits = 4; - * - * @return The rateLimits. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.RateLimits getRateLimits() { - return rateLimits_ == null - ? com.google.cloud.tasks.v2beta3.RateLimits.getDefaultInstance() - : rateLimits_; - } - /** - * - * - *
-   * Rate limits for task dispatches.
-   * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] are
-   * related because they both control task attempts. However they control task
-   * attempts in different ways:
-   * * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] controls the total rate of
-   *   dispatches from a queue (i.e. all traffic dispatched from the
-   *   queue, regardless of whether the dispatch is from a first
-   *   attempt or a retry).
-   * * [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls what happens to
-   *   particular a task after its first attempt fails. That is,
-   *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls task retries (the
-   *   second attempt, third attempt, etc).
-   * The queue's actual dispatch rate is the result of:
-   * * Number of tasks in the queue
-   * * User-specified throttling: [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits],
-   *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config], and the
-   *   [queue's state][google.cloud.tasks.v2beta3.Queue.state].
-   * * System throttling due to `429` (Too Many Requests) or `503` (Service
-   *   Unavailable) responses from the worker, high error rates, or to smooth
-   *   sudden large traffic spikes.
-   * 
- * - * .google.cloud.tasks.v2beta3.RateLimits rate_limits = 4; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.RateLimitsOrBuilder getRateLimitsOrBuilder() { - return getRateLimits(); - } - - public static final int RETRY_CONFIG_FIELD_NUMBER = 5; - private com.google.cloud.tasks.v2beta3.RetryConfig retryConfig_; - /** - * - * - *
-   * Settings that determine the retry behavior.
-   * * For tasks created using Cloud Tasks: the queue-level retry settings
-   *   apply to all tasks in the queue that were created using Cloud Tasks.
-   *   Retry settings cannot be set on individual tasks.
-   * * For tasks created using the App Engine SDK: the queue-level retry
-   *   settings apply to all tasks in the queue which do not have retry settings
-   *   explicitly set on the task and were created by the App Engine SDK. See
-   *   [App Engine
-   *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-   * 
- * - * .google.cloud.tasks.v2beta3.RetryConfig retry_config = 5; - * - * @return Whether the retryConfig field is set. - */ - @java.lang.Override - public boolean hasRetryConfig() { - return retryConfig_ != null; - } - /** - * - * - *
-   * Settings that determine the retry behavior.
-   * * For tasks created using Cloud Tasks: the queue-level retry settings
-   *   apply to all tasks in the queue that were created using Cloud Tasks.
-   *   Retry settings cannot be set on individual tasks.
-   * * For tasks created using the App Engine SDK: the queue-level retry
-   *   settings apply to all tasks in the queue which do not have retry settings
-   *   explicitly set on the task and were created by the App Engine SDK. See
-   *   [App Engine
-   *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-   * 
- * - * .google.cloud.tasks.v2beta3.RetryConfig retry_config = 5; - * - * @return The retryConfig. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.RetryConfig getRetryConfig() { - return retryConfig_ == null - ? com.google.cloud.tasks.v2beta3.RetryConfig.getDefaultInstance() - : retryConfig_; - } - /** - * - * - *
-   * Settings that determine the retry behavior.
-   * * For tasks created using Cloud Tasks: the queue-level retry settings
-   *   apply to all tasks in the queue that were created using Cloud Tasks.
-   *   Retry settings cannot be set on individual tasks.
-   * * For tasks created using the App Engine SDK: the queue-level retry
-   *   settings apply to all tasks in the queue which do not have retry settings
-   *   explicitly set on the task and were created by the App Engine SDK. See
-   *   [App Engine
-   *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-   * 
- * - * .google.cloud.tasks.v2beta3.RetryConfig retry_config = 5; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.RetryConfigOrBuilder getRetryConfigOrBuilder() { - return getRetryConfig(); - } - - public static final int STATE_FIELD_NUMBER = 6; - private int state_; - /** - * - * - *
-   * Output only. The state of the queue.
-   * `state` can only be changed by calling
-   * [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue],
-   * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading
-   * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-   * [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] cannot be used to change `state`.
-   * 
- * - * .google.cloud.tasks.v2beta3.Queue.State state = 6; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-   * Output only. The state of the queue.
-   * `state` can only be changed by calling
-   * [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue],
-   * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading
-   * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-   * [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] cannot be used to change `state`.
-   * 
- * - * .google.cloud.tasks.v2beta3.Queue.State state = 6; - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Queue.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta3.Queue.State result = - com.google.cloud.tasks.v2beta3.Queue.State.valueOf(state_); - return result == null ? com.google.cloud.tasks.v2beta3.Queue.State.UNRECOGNIZED : result; - } - - public static final int PURGE_TIME_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp purgeTime_; - /** - * - * - *
-   * Output only. The last time this queue was purged.
-   * All tasks that were [created][google.cloud.tasks.v2beta3.Task.create_time] before this time
-   * were purged.
-   * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue], the
-   * [App Engine Task Queue SDK, or the Cloud
-   * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-   * Purge time will be truncated to the nearest microsecond. Purge
-   * time will be unset if the queue has never been purged.
-   * 
- * - * .google.protobuf.Timestamp purge_time = 7; - * - * @return Whether the purgeTime field is set. - */ - @java.lang.Override - public boolean hasPurgeTime() { - return purgeTime_ != null; - } - /** - * - * - *
-   * Output only. The last time this queue was purged.
-   * All tasks that were [created][google.cloud.tasks.v2beta3.Task.create_time] before this time
-   * were purged.
-   * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue], the
-   * [App Engine Task Queue SDK, or the Cloud
-   * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-   * Purge time will be truncated to the nearest microsecond. Purge
-   * time will be unset if the queue has never been purged.
-   * 
- * - * .google.protobuf.Timestamp purge_time = 7; - * - * @return The purgeTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getPurgeTime() { - return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; - } - /** - * - * - *
-   * Output only. The last time this queue was purged.
-   * All tasks that were [created][google.cloud.tasks.v2beta3.Task.create_time] before this time
-   * were purged.
-   * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue], the
-   * [App Engine Task Queue SDK, or the Cloud
-   * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-   * Purge time will be truncated to the nearest microsecond. Purge
-   * time will be unset if the queue has never been purged.
-   * 
- * - * .google.protobuf.Timestamp purge_time = 7; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder() { - return getPurgeTime(); - } - - public static final int TASK_TTL_FIELD_NUMBER = 8; - private com.google.protobuf.Duration taskTtl_; - /** - * - * - *
-   * The maximum amount of time that a task will be retained in
-   * this queue.
-   * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-   * After a task has lived for `task_ttl`, the task will be deleted
-   * regardless of whether it was dispatched or not.
-   * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-   * maximum duration because there is a
-   * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-   * these queues. To view the maximum valid duration, see the documentation for
-   * [Duration][google.protobuf.Duration].
-   * 
- * - * .google.protobuf.Duration task_ttl = 8; - * - * @return Whether the taskTtl field is set. - */ - @java.lang.Override - public boolean hasTaskTtl() { - return taskTtl_ != null; - } - /** - * - * - *
-   * The maximum amount of time that a task will be retained in
-   * this queue.
-   * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-   * After a task has lived for `task_ttl`, the task will be deleted
-   * regardless of whether it was dispatched or not.
-   * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-   * maximum duration because there is a
-   * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-   * these queues. To view the maximum valid duration, see the documentation for
-   * [Duration][google.protobuf.Duration].
-   * 
- * - * .google.protobuf.Duration task_ttl = 8; - * - * @return The taskTtl. - */ - @java.lang.Override - public com.google.protobuf.Duration getTaskTtl() { - return taskTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : taskTtl_; - } - /** - * - * - *
-   * The maximum amount of time that a task will be retained in
-   * this queue.
-   * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-   * After a task has lived for `task_ttl`, the task will be deleted
-   * regardless of whether it was dispatched or not.
-   * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-   * maximum duration because there is a
-   * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-   * these queues. To view the maximum valid duration, see the documentation for
-   * [Duration][google.protobuf.Duration].
-   * 
- * - * .google.protobuf.Duration task_ttl = 8; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getTaskTtlOrBuilder() { - return getTaskTtl(); - } - - public static final int TOMBSTONE_TTL_FIELD_NUMBER = 9; - private com.google.protobuf.Duration tombstoneTtl_; - /** - * - * - *
-   * The task tombstone time to live (TTL).
-   * After a task is deleted or executed, the task's tombstone is
-   * retained for the length of time specified by `tombstone_ttl`.
-   * The tombstone is used by task de-duplication; another task with the same
-   * name can't be created until the tombstone has expired. For more information
-   * about task de-duplication, see the documentation for
-   * [CreateTaskRequest][google.cloud.tasks.v2beta3.CreateTaskRequest.task].
-   * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-   * 
- * - * .google.protobuf.Duration tombstone_ttl = 9; - * - * @return Whether the tombstoneTtl field is set. - */ - @java.lang.Override - public boolean hasTombstoneTtl() { - return tombstoneTtl_ != null; - } - /** - * - * - *
-   * The task tombstone time to live (TTL).
-   * After a task is deleted or executed, the task's tombstone is
-   * retained for the length of time specified by `tombstone_ttl`.
-   * The tombstone is used by task de-duplication; another task with the same
-   * name can't be created until the tombstone has expired. For more information
-   * about task de-duplication, see the documentation for
-   * [CreateTaskRequest][google.cloud.tasks.v2beta3.CreateTaskRequest.task].
-   * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-   * 
- * - * .google.protobuf.Duration tombstone_ttl = 9; - * - * @return The tombstoneTtl. - */ - @java.lang.Override - public com.google.protobuf.Duration getTombstoneTtl() { - return tombstoneTtl_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : tombstoneTtl_; - } - /** - * - * - *
-   * The task tombstone time to live (TTL).
-   * After a task is deleted or executed, the task's tombstone is
-   * retained for the length of time specified by `tombstone_ttl`.
-   * The tombstone is used by task de-duplication; another task with the same
-   * name can't be created until the tombstone has expired. For more information
-   * about task de-duplication, see the documentation for
-   * [CreateTaskRequest][google.cloud.tasks.v2beta3.CreateTaskRequest.task].
-   * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-   * 
- * - * .google.protobuf.Duration tombstone_ttl = 9; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getTombstoneTtlOrBuilder() { - return getTombstoneTtl(); - } - - public static final int STACKDRIVER_LOGGING_CONFIG_FIELD_NUMBER = 10; - private com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig stackdriverLoggingConfig_; - /** - * - * - *
-   * Configuration options for writing logs to
-   * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-   * field is unset, then no logs are written.
-   * 
- * - * .google.cloud.tasks.v2beta3.StackdriverLoggingConfig stackdriver_logging_config = 10; - * - * - * @return Whether the stackdriverLoggingConfig field is set. - */ - @java.lang.Override - public boolean hasStackdriverLoggingConfig() { - return stackdriverLoggingConfig_ != null; - } - /** - * - * - *
-   * Configuration options for writing logs to
-   * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-   * field is unset, then no logs are written.
-   * 
- * - * .google.cloud.tasks.v2beta3.StackdriverLoggingConfig stackdriver_logging_config = 10; - * - * - * @return The stackdriverLoggingConfig. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig getStackdriverLoggingConfig() { - return stackdriverLoggingConfig_ == null - ? com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig.getDefaultInstance() - : stackdriverLoggingConfig_; - } - /** - * - * - *
-   * Configuration options for writing logs to
-   * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-   * field is unset, then no logs are written.
-   * 
- * - * .google.cloud.tasks.v2beta3.StackdriverLoggingConfig stackdriver_logging_config = 10; - * - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.StackdriverLoggingConfigOrBuilder - getStackdriverLoggingConfigOrBuilder() { - return getStackdriverLoggingConfig(); - } - - public static final int TYPE_FIELD_NUMBER = 11; - private int type_; - /** - * - * - *
-   * Immutable. The type of a queue (push or pull).
-   * `Queue.type` is an immutable property of the queue that is set at the queue
-   * creation time. When left unspecified, the default value of `PUSH` is
-   * selected.
-   * 
- * - * - * .google.cloud.tasks.v2beta3.Queue.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-   * Immutable. The type of a queue (push or pull).
-   * `Queue.type` is an immutable property of the queue that is set at the queue
-   * creation time. When left unspecified, the default value of `PUSH` is
-   * selected.
-   * 
- * - * - * .google.cloud.tasks.v2beta3.Queue.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Queue.Type getType() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta3.Queue.Type result = - com.google.cloud.tasks.v2beta3.Queue.Type.valueOf(type_); - return result == null ? com.google.cloud.tasks.v2beta3.Queue.Type.UNRECOGNIZED : result; - } - - public static final int STATS_FIELD_NUMBER = 12; - private com.google.cloud.tasks.v2beta3.QueueStats stats_; - /** - * - * - *
-   * Output only. The realtime, informational statistics for a queue. In order
-   * to receive the statistics the caller should include this field in the
-   * FieldMask.
-   * 
- * - * - * .google.cloud.tasks.v2beta3.QueueStats stats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stats field is set. - */ - @java.lang.Override - public boolean hasStats() { - return stats_ != null; - } - /** - * - * - *
-   * Output only. The realtime, informational statistics for a queue. In order
-   * to receive the statistics the caller should include this field in the
-   * FieldMask.
-   * 
- * - * - * .google.cloud.tasks.v2beta3.QueueStats stats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stats. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.QueueStats getStats() { - return stats_ == null ? com.google.cloud.tasks.v2beta3.QueueStats.getDefaultInstance() : stats_; - } - /** - * - * - *
-   * Output only. The realtime, informational statistics for a queue. In order
-   * to receive the statistics the caller should include this field in the
-   * FieldMask.
-   * 
- * - * - * .google.cloud.tasks.v2beta3.QueueStats stats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.QueueStatsOrBuilder getStatsOrBuilder() { - return getStats(); - } - - 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(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (queueTypeCase_ == 3) { - output.writeMessage(3, (com.google.cloud.tasks.v2beta3.AppEngineHttpQueue) queueType_); - } - if (rateLimits_ != null) { - output.writeMessage(4, getRateLimits()); - } - if (retryConfig_ != null) { - output.writeMessage(5, getRetryConfig()); - } - if (state_ != com.google.cloud.tasks.v2beta3.Queue.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(6, state_); - } - if (purgeTime_ != null) { - output.writeMessage(7, getPurgeTime()); - } - if (taskTtl_ != null) { - output.writeMessage(8, getTaskTtl()); - } - if (tombstoneTtl_ != null) { - output.writeMessage(9, getTombstoneTtl()); - } - if (stackdriverLoggingConfig_ != null) { - output.writeMessage(10, getStackdriverLoggingConfig()); - } - if (type_ != com.google.cloud.tasks.v2beta3.Queue.Type.TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(11, type_); - } - if (stats_ != null) { - output.writeMessage(12, getStats()); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (queueTypeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.tasks.v2beta3.AppEngineHttpQueue) queueType_); - } - if (rateLimits_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRateLimits()); - } - if (retryConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRetryConfig()); - } - if (state_ != com.google.cloud.tasks.v2beta3.Queue.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); - } - if (purgeTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPurgeTime()); - } - if (taskTtl_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getTaskTtl()); - } - if (tombstoneTtl_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getTombstoneTtl()); - } - if (stackdriverLoggingConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, getStackdriverLoggingConfig()); - } - if (type_ != com.google.cloud.tasks.v2beta3.Queue.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, type_); - } - if (stats_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getStats()); - } - 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.Queue)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.Queue other = (com.google.cloud.tasks.v2beta3.Queue) obj; - - if (!getName().equals(other.getName())) return false; - if (hasRateLimits() != other.hasRateLimits()) return false; - if (hasRateLimits()) { - if (!getRateLimits().equals(other.getRateLimits())) return false; - } - if (hasRetryConfig() != other.hasRetryConfig()) return false; - if (hasRetryConfig()) { - if (!getRetryConfig().equals(other.getRetryConfig())) return false; - } - if (state_ != other.state_) return false; - if (hasPurgeTime() != other.hasPurgeTime()) return false; - if (hasPurgeTime()) { - if (!getPurgeTime().equals(other.getPurgeTime())) return false; - } - if (hasTaskTtl() != other.hasTaskTtl()) return false; - if (hasTaskTtl()) { - if (!getTaskTtl().equals(other.getTaskTtl())) return false; - } - if (hasTombstoneTtl() != other.hasTombstoneTtl()) return false; - if (hasTombstoneTtl()) { - if (!getTombstoneTtl().equals(other.getTombstoneTtl())) return false; - } - if (hasStackdriverLoggingConfig() != other.hasStackdriverLoggingConfig()) return false; - if (hasStackdriverLoggingConfig()) { - if (!getStackdriverLoggingConfig().equals(other.getStackdriverLoggingConfig())) return false; - } - if (type_ != other.type_) return false; - if (hasStats() != other.hasStats()) return false; - if (hasStats()) { - if (!getStats().equals(other.getStats())) return false; - } - if (!getQueueTypeCase().equals(other.getQueueTypeCase())) return false; - switch (queueTypeCase_) { - case 3: - if (!getAppEngineHttpQueue().equals(other.getAppEngineHttpQueue())) return false; - break; - case 0: - default: - } - 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasRateLimits()) { - hash = (37 * hash) + RATE_LIMITS_FIELD_NUMBER; - hash = (53 * hash) + getRateLimits().hashCode(); - } - if (hasRetryConfig()) { - hash = (37 * hash) + RETRY_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getRetryConfig().hashCode(); - } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (hasPurgeTime()) { - hash = (37 * hash) + PURGE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getPurgeTime().hashCode(); - } - if (hasTaskTtl()) { - hash = (37 * hash) + TASK_TTL_FIELD_NUMBER; - hash = (53 * hash) + getTaskTtl().hashCode(); - } - if (hasTombstoneTtl()) { - hash = (37 * hash) + TOMBSTONE_TTL_FIELD_NUMBER; - hash = (53 * hash) + getTombstoneTtl().hashCode(); - } - if (hasStackdriverLoggingConfig()) { - hash = (37 * hash) + STACKDRIVER_LOGGING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getStackdriverLoggingConfig().hashCode(); - } - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - if (hasStats()) { - hash = (37 * hash) + STATS_FIELD_NUMBER; - hash = (53 * hash) + getStats().hashCode(); - } - switch (queueTypeCase_) { - case 3: - hash = (37 * hash) + APP_ENGINE_HTTP_QUEUE_FIELD_NUMBER; - hash = (53 * hash) + getAppEngineHttpQueue().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.Queue parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.Queue parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.Queue parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.Queue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.Queue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.Queue parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.Queue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.Queue parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.Queue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.Queue parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.Queue parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.Queue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta3.Queue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A queue is a container of related tasks. Queues are configured to manage
-   * how those tasks are dispatched. Configurable properties include rate limits,
-   * retry options, queue types, and others.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.Queue} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.Queue) - com.google.cloud.tasks.v2beta3.QueueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_Queue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_Queue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.Queue.class, - com.google.cloud.tasks.v2beta3.Queue.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.Queue.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (appEngineHttpQueueBuilder_ != null) { - appEngineHttpQueueBuilder_.clear(); - } - if (rateLimitsBuilder_ == null) { - rateLimits_ = null; - } else { - rateLimits_ = null; - rateLimitsBuilder_ = null; - } - if (retryConfigBuilder_ == null) { - retryConfig_ = null; - } else { - retryConfig_ = null; - retryConfigBuilder_ = null; - } - state_ = 0; - - if (purgeTimeBuilder_ == null) { - purgeTime_ = null; - } else { - purgeTime_ = null; - purgeTimeBuilder_ = null; - } - if (taskTtlBuilder_ == null) { - taskTtl_ = null; - } else { - taskTtl_ = null; - taskTtlBuilder_ = null; - } - if (tombstoneTtlBuilder_ == null) { - tombstoneTtl_ = null; - } else { - tombstoneTtl_ = null; - tombstoneTtlBuilder_ = null; - } - if (stackdriverLoggingConfigBuilder_ == null) { - stackdriverLoggingConfig_ = null; - } else { - stackdriverLoggingConfig_ = null; - stackdriverLoggingConfigBuilder_ = null; - } - type_ = 0; - - if (statsBuilder_ == null) { - stats_ = null; - } else { - stats_ = null; - statsBuilder_ = null; - } - queueTypeCase_ = 0; - queueType_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_Queue_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Queue getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.Queue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Queue build() { - com.google.cloud.tasks.v2beta3.Queue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Queue buildPartial() { - com.google.cloud.tasks.v2beta3.Queue result = new com.google.cloud.tasks.v2beta3.Queue(this); - result.name_ = name_; - if (queueTypeCase_ == 3) { - if (appEngineHttpQueueBuilder_ == null) { - result.queueType_ = queueType_; - } else { - result.queueType_ = appEngineHttpQueueBuilder_.build(); - } - } - if (rateLimitsBuilder_ == null) { - result.rateLimits_ = rateLimits_; - } else { - result.rateLimits_ = rateLimitsBuilder_.build(); - } - if (retryConfigBuilder_ == null) { - result.retryConfig_ = retryConfig_; - } else { - result.retryConfig_ = retryConfigBuilder_.build(); - } - result.state_ = state_; - if (purgeTimeBuilder_ == null) { - result.purgeTime_ = purgeTime_; - } else { - result.purgeTime_ = purgeTimeBuilder_.build(); - } - if (taskTtlBuilder_ == null) { - result.taskTtl_ = taskTtl_; - } else { - result.taskTtl_ = taskTtlBuilder_.build(); - } - if (tombstoneTtlBuilder_ == null) { - result.tombstoneTtl_ = tombstoneTtl_; - } else { - result.tombstoneTtl_ = tombstoneTtlBuilder_.build(); - } - if (stackdriverLoggingConfigBuilder_ == null) { - result.stackdriverLoggingConfig_ = stackdriverLoggingConfig_; - } else { - result.stackdriverLoggingConfig_ = stackdriverLoggingConfigBuilder_.build(); - } - result.type_ = type_; - if (statsBuilder_ == null) { - result.stats_ = stats_; - } else { - result.stats_ = statsBuilder_.build(); - } - result.queueTypeCase_ = queueTypeCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.Queue) { - return mergeFrom((com.google.cloud.tasks.v2beta3.Queue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.Queue other) { - if (other == com.google.cloud.tasks.v2beta3.Queue.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasRateLimits()) { - mergeRateLimits(other.getRateLimits()); - } - if (other.hasRetryConfig()) { - mergeRetryConfig(other.getRetryConfig()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.hasPurgeTime()) { - mergePurgeTime(other.getPurgeTime()); - } - if (other.hasTaskTtl()) { - mergeTaskTtl(other.getTaskTtl()); - } - if (other.hasTombstoneTtl()) { - mergeTombstoneTtl(other.getTombstoneTtl()); - } - if (other.hasStackdriverLoggingConfig()) { - mergeStackdriverLoggingConfig(other.getStackdriverLoggingConfig()); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (other.hasStats()) { - mergeStats(other.getStats()); - } - switch (other.getQueueTypeCase()) { - case APP_ENGINE_HTTP_QUEUE: - { - mergeAppEngineHttpQueue(other.getAppEngineHttpQueue()); - break; - } - case QUEUETYPE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 26: - { - input.readMessage( - getAppEngineHttpQueueFieldBuilder().getBuilder(), extensionRegistry); - queueTypeCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getRateLimitsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage(getRetryConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 48: - { - state_ = input.readEnum(); - - break; - } // case 48 - case 58: - { - input.readMessage(getPurgeTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - case 66: - { - input.readMessage(getTaskTtlFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 66 - case 74: - { - input.readMessage(getTombstoneTtlFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 74 - case 82: - { - input.readMessage( - getStackdriverLoggingConfigFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 82 - case 88: - { - type_ = input.readEnum(); - - break; - } // case 88 - case 98: - { - input.readMessage(getStatsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 98 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int queueTypeCase_ = 0; - private java.lang.Object queueType_; - - public QueueTypeCase getQueueTypeCase() { - return QueueTypeCase.forNumber(queueTypeCase_); - } - - public Builder clearQueueType() { - queueTypeCase_ = 0; - queueType_ = null; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta3.CloudTasks.CreateQueue],
-     * after which it becomes output only.
-     * The queue name.
-     * The queue name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the queue's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta3.CloudTasks.CreateQueue],
-     * after which it becomes output only.
-     * The queue name.
-     * The queue name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the queue's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta3.CloudTasks.CreateQueue],
-     * after which it becomes output only.
-     * The queue name.
-     * The queue name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the queue's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta3.CloudTasks.CreateQueue],
-     * after which it becomes output only.
-     * The queue name.
-     * The queue name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the queue's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta3.CloudTasks.CreateQueue],
-     * after which it becomes output only.
-     * The queue name.
-     * The queue name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the queue's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.AppEngineHttpQueue, - com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.Builder, - com.google.cloud.tasks.v2beta3.AppEngineHttpQueueOrBuilder> - appEngineHttpQueueBuilder_; - /** - * - * - *
-     * [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] settings apply only to
-     * [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest] in this queue.
-     * [Http tasks][google.cloud.tasks.v2beta3.HttpRequest] are not affected by this proto.
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpQueue app_engine_http_queue = 3; - * - * @return Whether the appEngineHttpQueue field is set. - */ - @java.lang.Override - public boolean hasAppEngineHttpQueue() { - return queueTypeCase_ == 3; - } - /** - * - * - *
-     * [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] settings apply only to
-     * [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest] in this queue.
-     * [Http tasks][google.cloud.tasks.v2beta3.HttpRequest] are not affected by this proto.
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpQueue app_engine_http_queue = 3; - * - * @return The appEngineHttpQueue. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineHttpQueue getAppEngineHttpQueue() { - if (appEngineHttpQueueBuilder_ == null) { - if (queueTypeCase_ == 3) { - return (com.google.cloud.tasks.v2beta3.AppEngineHttpQueue) queueType_; - } - return com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.getDefaultInstance(); - } else { - if (queueTypeCase_ == 3) { - return appEngineHttpQueueBuilder_.getMessage(); - } - return com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.getDefaultInstance(); - } - } - /** - * - * - *
-     * [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] settings apply only to
-     * [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest] in this queue.
-     * [Http tasks][google.cloud.tasks.v2beta3.HttpRequest] are not affected by this proto.
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpQueue app_engine_http_queue = 3; - */ - public Builder setAppEngineHttpQueue(com.google.cloud.tasks.v2beta3.AppEngineHttpQueue value) { - if (appEngineHttpQueueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queueType_ = value; - onChanged(); - } else { - appEngineHttpQueueBuilder_.setMessage(value); - } - queueTypeCase_ = 3; - return this; - } - /** - * - * - *
-     * [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] settings apply only to
-     * [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest] in this queue.
-     * [Http tasks][google.cloud.tasks.v2beta3.HttpRequest] are not affected by this proto.
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpQueue app_engine_http_queue = 3; - */ - public Builder setAppEngineHttpQueue( - com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.Builder builderForValue) { - if (appEngineHttpQueueBuilder_ == null) { - queueType_ = builderForValue.build(); - onChanged(); - } else { - appEngineHttpQueueBuilder_.setMessage(builderForValue.build()); - } - queueTypeCase_ = 3; - return this; - } - /** - * - * - *
-     * [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] settings apply only to
-     * [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest] in this queue.
-     * [Http tasks][google.cloud.tasks.v2beta3.HttpRequest] are not affected by this proto.
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpQueue app_engine_http_queue = 3; - */ - public Builder mergeAppEngineHttpQueue( - com.google.cloud.tasks.v2beta3.AppEngineHttpQueue value) { - if (appEngineHttpQueueBuilder_ == null) { - if (queueTypeCase_ == 3 - && queueType_ - != com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.getDefaultInstance()) { - queueType_ = - com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.newBuilder( - (com.google.cloud.tasks.v2beta3.AppEngineHttpQueue) queueType_) - .mergeFrom(value) - .buildPartial(); - } else { - queueType_ = value; - } - onChanged(); - } else { - if (queueTypeCase_ == 3) { - appEngineHttpQueueBuilder_.mergeFrom(value); - } else { - appEngineHttpQueueBuilder_.setMessage(value); - } - } - queueTypeCase_ = 3; - return this; - } - /** - * - * - *
-     * [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] settings apply only to
-     * [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest] in this queue.
-     * [Http tasks][google.cloud.tasks.v2beta3.HttpRequest] are not affected by this proto.
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpQueue app_engine_http_queue = 3; - */ - public Builder clearAppEngineHttpQueue() { - if (appEngineHttpQueueBuilder_ == null) { - if (queueTypeCase_ == 3) { - queueTypeCase_ = 0; - queueType_ = null; - onChanged(); - } - } else { - if (queueTypeCase_ == 3) { - queueTypeCase_ = 0; - queueType_ = null; - } - appEngineHttpQueueBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] settings apply only to
-     * [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest] in this queue.
-     * [Http tasks][google.cloud.tasks.v2beta3.HttpRequest] are not affected by this proto.
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpQueue app_engine_http_queue = 3; - */ - public com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.Builder - getAppEngineHttpQueueBuilder() { - return getAppEngineHttpQueueFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] settings apply only to
-     * [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest] in this queue.
-     * [Http tasks][google.cloud.tasks.v2beta3.HttpRequest] are not affected by this proto.
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpQueue app_engine_http_queue = 3; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineHttpQueueOrBuilder - getAppEngineHttpQueueOrBuilder() { - if ((queueTypeCase_ == 3) && (appEngineHttpQueueBuilder_ != null)) { - return appEngineHttpQueueBuilder_.getMessageOrBuilder(); - } else { - if (queueTypeCase_ == 3) { - return (com.google.cloud.tasks.v2beta3.AppEngineHttpQueue) queueType_; - } - return com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.getDefaultInstance(); - } - } - /** - * - * - *
-     * [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] settings apply only to
-     * [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest] in this queue.
-     * [Http tasks][google.cloud.tasks.v2beta3.HttpRequest] are not affected by this proto.
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpQueue app_engine_http_queue = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.AppEngineHttpQueue, - com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.Builder, - com.google.cloud.tasks.v2beta3.AppEngineHttpQueueOrBuilder> - getAppEngineHttpQueueFieldBuilder() { - if (appEngineHttpQueueBuilder_ == null) { - if (!(queueTypeCase_ == 3)) { - queueType_ = com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.getDefaultInstance(); - } - appEngineHttpQueueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.AppEngineHttpQueue, - com.google.cloud.tasks.v2beta3.AppEngineHttpQueue.Builder, - com.google.cloud.tasks.v2beta3.AppEngineHttpQueueOrBuilder>( - (com.google.cloud.tasks.v2beta3.AppEngineHttpQueue) queueType_, - getParentForChildren(), - isClean()); - queueType_ = null; - } - queueTypeCase_ = 3; - onChanged(); - ; - return appEngineHttpQueueBuilder_; - } - - private com.google.cloud.tasks.v2beta3.RateLimits rateLimits_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.RateLimits, - com.google.cloud.tasks.v2beta3.RateLimits.Builder, - com.google.cloud.tasks.v2beta3.RateLimitsOrBuilder> - rateLimitsBuilder_; - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] are
-     * related because they both control task attempts. However they control task
-     * attempts in different ways:
-     * * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * The queue's actual dispatch rate is the result of:
-     * * Number of tasks in the queue
-     * * User-specified throttling: [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits],
-     *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config], and the
-     *   [queue's state][google.cloud.tasks.v2beta3.Queue.state].
-     * * System throttling due to `429` (Too Many Requests) or `503` (Service
-     *   Unavailable) responses from the worker, high error rates, or to smooth
-     *   sudden large traffic spikes.
-     * 
- * - * .google.cloud.tasks.v2beta3.RateLimits rate_limits = 4; - * - * @return Whether the rateLimits field is set. - */ - public boolean hasRateLimits() { - return rateLimitsBuilder_ != null || rateLimits_ != null; - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] are
-     * related because they both control task attempts. However they control task
-     * attempts in different ways:
-     * * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * The queue's actual dispatch rate is the result of:
-     * * Number of tasks in the queue
-     * * User-specified throttling: [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits],
-     *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config], and the
-     *   [queue's state][google.cloud.tasks.v2beta3.Queue.state].
-     * * System throttling due to `429` (Too Many Requests) or `503` (Service
-     *   Unavailable) responses from the worker, high error rates, or to smooth
-     *   sudden large traffic spikes.
-     * 
- * - * .google.cloud.tasks.v2beta3.RateLimits rate_limits = 4; - * - * @return The rateLimits. - */ - public com.google.cloud.tasks.v2beta3.RateLimits getRateLimits() { - if (rateLimitsBuilder_ == null) { - return rateLimits_ == null - ? com.google.cloud.tasks.v2beta3.RateLimits.getDefaultInstance() - : rateLimits_; - } else { - return rateLimitsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] are
-     * related because they both control task attempts. However they control task
-     * attempts in different ways:
-     * * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * The queue's actual dispatch rate is the result of:
-     * * Number of tasks in the queue
-     * * User-specified throttling: [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits],
-     *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config], and the
-     *   [queue's state][google.cloud.tasks.v2beta3.Queue.state].
-     * * System throttling due to `429` (Too Many Requests) or `503` (Service
-     *   Unavailable) responses from the worker, high error rates, or to smooth
-     *   sudden large traffic spikes.
-     * 
- * - * .google.cloud.tasks.v2beta3.RateLimits rate_limits = 4; - */ - public Builder setRateLimits(com.google.cloud.tasks.v2beta3.RateLimits value) { - if (rateLimitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rateLimits_ = value; - onChanged(); - } else { - rateLimitsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] are
-     * related because they both control task attempts. However they control task
-     * attempts in different ways:
-     * * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * The queue's actual dispatch rate is the result of:
-     * * Number of tasks in the queue
-     * * User-specified throttling: [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits],
-     *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config], and the
-     *   [queue's state][google.cloud.tasks.v2beta3.Queue.state].
-     * * System throttling due to `429` (Too Many Requests) or `503` (Service
-     *   Unavailable) responses from the worker, high error rates, or to smooth
-     *   sudden large traffic spikes.
-     * 
- * - * .google.cloud.tasks.v2beta3.RateLimits rate_limits = 4; - */ - public Builder setRateLimits( - com.google.cloud.tasks.v2beta3.RateLimits.Builder builderForValue) { - if (rateLimitsBuilder_ == null) { - rateLimits_ = builderForValue.build(); - onChanged(); - } else { - rateLimitsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] are
-     * related because they both control task attempts. However they control task
-     * attempts in different ways:
-     * * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * The queue's actual dispatch rate is the result of:
-     * * Number of tasks in the queue
-     * * User-specified throttling: [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits],
-     *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config], and the
-     *   [queue's state][google.cloud.tasks.v2beta3.Queue.state].
-     * * System throttling due to `429` (Too Many Requests) or `503` (Service
-     *   Unavailable) responses from the worker, high error rates, or to smooth
-     *   sudden large traffic spikes.
-     * 
- * - * .google.cloud.tasks.v2beta3.RateLimits rate_limits = 4; - */ - public Builder mergeRateLimits(com.google.cloud.tasks.v2beta3.RateLimits value) { - if (rateLimitsBuilder_ == null) { - if (rateLimits_ != null) { - rateLimits_ = - com.google.cloud.tasks.v2beta3.RateLimits.newBuilder(rateLimits_) - .mergeFrom(value) - .buildPartial(); - } else { - rateLimits_ = value; - } - onChanged(); - } else { - rateLimitsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] are
-     * related because they both control task attempts. However they control task
-     * attempts in different ways:
-     * * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * The queue's actual dispatch rate is the result of:
-     * * Number of tasks in the queue
-     * * User-specified throttling: [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits],
-     *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config], and the
-     *   [queue's state][google.cloud.tasks.v2beta3.Queue.state].
-     * * System throttling due to `429` (Too Many Requests) or `503` (Service
-     *   Unavailable) responses from the worker, high error rates, or to smooth
-     *   sudden large traffic spikes.
-     * 
- * - * .google.cloud.tasks.v2beta3.RateLimits rate_limits = 4; - */ - public Builder clearRateLimits() { - if (rateLimitsBuilder_ == null) { - rateLimits_ = null; - onChanged(); - } else { - rateLimits_ = null; - rateLimitsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] are
-     * related because they both control task attempts. However they control task
-     * attempts in different ways:
-     * * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * The queue's actual dispatch rate is the result of:
-     * * Number of tasks in the queue
-     * * User-specified throttling: [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits],
-     *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config], and the
-     *   [queue's state][google.cloud.tasks.v2beta3.Queue.state].
-     * * System throttling due to `429` (Too Many Requests) or `503` (Service
-     *   Unavailable) responses from the worker, high error rates, or to smooth
-     *   sudden large traffic spikes.
-     * 
- * - * .google.cloud.tasks.v2beta3.RateLimits rate_limits = 4; - */ - public com.google.cloud.tasks.v2beta3.RateLimits.Builder getRateLimitsBuilder() { - - onChanged(); - return getRateLimitsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] are
-     * related because they both control task attempts. However they control task
-     * attempts in different ways:
-     * * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * The queue's actual dispatch rate is the result of:
-     * * Number of tasks in the queue
-     * * User-specified throttling: [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits],
-     *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config], and the
-     *   [queue's state][google.cloud.tasks.v2beta3.Queue.state].
-     * * System throttling due to `429` (Too Many Requests) or `503` (Service
-     *   Unavailable) responses from the worker, high error rates, or to smooth
-     *   sudden large traffic spikes.
-     * 
- * - * .google.cloud.tasks.v2beta3.RateLimits rate_limits = 4; - */ - public com.google.cloud.tasks.v2beta3.RateLimitsOrBuilder getRateLimitsOrBuilder() { - if (rateLimitsBuilder_ != null) { - return rateLimitsBuilder_.getMessageOrBuilder(); - } else { - return rateLimits_ == null - ? com.google.cloud.tasks.v2beta3.RateLimits.getDefaultInstance() - : rateLimits_; - } - } - /** - * - * - *
-     * Rate limits for task dispatches.
-     * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] are
-     * related because they both control task attempts. However they control task
-     * attempts in different ways:
-     * * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] controls the total rate of
-     *   dispatches from a queue (i.e. all traffic dispatched from the
-     *   queue, regardless of whether the dispatch is from a first
-     *   attempt or a retry).
-     * * [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls what happens to
-     *   particular a task after its first attempt fails. That is,
-     *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls task retries (the
-     *   second attempt, third attempt, etc).
-     * The queue's actual dispatch rate is the result of:
-     * * Number of tasks in the queue
-     * * User-specified throttling: [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits],
-     *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config], and the
-     *   [queue's state][google.cloud.tasks.v2beta3.Queue.state].
-     * * System throttling due to `429` (Too Many Requests) or `503` (Service
-     *   Unavailable) responses from the worker, high error rates, or to smooth
-     *   sudden large traffic spikes.
-     * 
- * - * .google.cloud.tasks.v2beta3.RateLimits rate_limits = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.RateLimits, - com.google.cloud.tasks.v2beta3.RateLimits.Builder, - com.google.cloud.tasks.v2beta3.RateLimitsOrBuilder> - getRateLimitsFieldBuilder() { - if (rateLimitsBuilder_ == null) { - rateLimitsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.RateLimits, - com.google.cloud.tasks.v2beta3.RateLimits.Builder, - com.google.cloud.tasks.v2beta3.RateLimitsOrBuilder>( - getRateLimits(), getParentForChildren(), isClean()); - rateLimits_ = null; - } - return rateLimitsBuilder_; - } - - private com.google.cloud.tasks.v2beta3.RetryConfig retryConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.RetryConfig, - com.google.cloud.tasks.v2beta3.RetryConfig.Builder, - com.google.cloud.tasks.v2beta3.RetryConfigOrBuilder> - retryConfigBuilder_; - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2beta3.RetryConfig retry_config = 5; - * - * @return Whether the retryConfig field is set. - */ - public boolean hasRetryConfig() { - return retryConfigBuilder_ != null || retryConfig_ != null; - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2beta3.RetryConfig retry_config = 5; - * - * @return The retryConfig. - */ - public com.google.cloud.tasks.v2beta3.RetryConfig getRetryConfig() { - if (retryConfigBuilder_ == null) { - return retryConfig_ == null - ? com.google.cloud.tasks.v2beta3.RetryConfig.getDefaultInstance() - : retryConfig_; - } else { - return retryConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2beta3.RetryConfig retry_config = 5; - */ - public Builder setRetryConfig(com.google.cloud.tasks.v2beta3.RetryConfig value) { - if (retryConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - retryConfig_ = value; - onChanged(); - } else { - retryConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2beta3.RetryConfig retry_config = 5; - */ - public Builder setRetryConfig( - com.google.cloud.tasks.v2beta3.RetryConfig.Builder builderForValue) { - if (retryConfigBuilder_ == null) { - retryConfig_ = builderForValue.build(); - onChanged(); - } else { - retryConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2beta3.RetryConfig retry_config = 5; - */ - public Builder mergeRetryConfig(com.google.cloud.tasks.v2beta3.RetryConfig value) { - if (retryConfigBuilder_ == null) { - if (retryConfig_ != null) { - retryConfig_ = - com.google.cloud.tasks.v2beta3.RetryConfig.newBuilder(retryConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - retryConfig_ = value; - } - onChanged(); - } else { - retryConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2beta3.RetryConfig retry_config = 5; - */ - public Builder clearRetryConfig() { - if (retryConfigBuilder_ == null) { - retryConfig_ = null; - onChanged(); - } else { - retryConfig_ = null; - retryConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2beta3.RetryConfig retry_config = 5; - */ - public com.google.cloud.tasks.v2beta3.RetryConfig.Builder getRetryConfigBuilder() { - - onChanged(); - return getRetryConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2beta3.RetryConfig retry_config = 5; - */ - public com.google.cloud.tasks.v2beta3.RetryConfigOrBuilder getRetryConfigOrBuilder() { - if (retryConfigBuilder_ != null) { - return retryConfigBuilder_.getMessageOrBuilder(); - } else { - return retryConfig_ == null - ? com.google.cloud.tasks.v2beta3.RetryConfig.getDefaultInstance() - : retryConfig_; - } - } - /** - * - * - *
-     * Settings that determine the retry behavior.
-     * * For tasks created using Cloud Tasks: the queue-level retry settings
-     *   apply to all tasks in the queue that were created using Cloud Tasks.
-     *   Retry settings cannot be set on individual tasks.
-     * * For tasks created using the App Engine SDK: the queue-level retry
-     *   settings apply to all tasks in the queue which do not have retry settings
-     *   explicitly set on the task and were created by the App Engine SDK. See
-     *   [App Engine
-     *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-     * 
- * - * .google.cloud.tasks.v2beta3.RetryConfig retry_config = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.RetryConfig, - com.google.cloud.tasks.v2beta3.RetryConfig.Builder, - com.google.cloud.tasks.v2beta3.RetryConfigOrBuilder> - getRetryConfigFieldBuilder() { - if (retryConfigBuilder_ == null) { - retryConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.RetryConfig, - com.google.cloud.tasks.v2beta3.RetryConfig.Builder, - com.google.cloud.tasks.v2beta3.RetryConfigOrBuilder>( - getRetryConfig(), getParentForChildren(), isClean()); - retryConfig_ = null; - } - return retryConfigBuilder_; - } - - private int state_ = 0; - /** - * - * - *
-     * Output only. The state of the queue.
-     * `state` can only be changed by calling
-     * [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue],
-     * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading
-     * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-     * [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] cannot be used to change `state`.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue.State state = 6; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - /** - * - * - *
-     * Output only. The state of the queue.
-     * `state` can only be changed by calling
-     * [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue],
-     * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading
-     * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-     * [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] cannot be used to change `state`.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue.State state = 6; - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The state of the queue.
-     * `state` can only be changed by calling
-     * [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue],
-     * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading
-     * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-     * [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] cannot be used to change `state`.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue.State state = 6; - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Queue.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta3.Queue.State result = - com.google.cloud.tasks.v2beta3.Queue.State.valueOf(state_); - return result == null ? com.google.cloud.tasks.v2beta3.Queue.State.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Output only. The state of the queue.
-     * `state` can only be changed by calling
-     * [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue],
-     * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading
-     * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-     * [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] cannot be used to change `state`.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue.State state = 6; - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.tasks.v2beta3.Queue.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The state of the queue.
-     * `state` can only be changed by calling
-     * [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue],
-     * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading
-     * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-     * [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] cannot be used to change `state`.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue.State state = 6; - * - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp purgeTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - purgeTimeBuilder_; - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2beta3.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 7; - * - * @return Whether the purgeTime field is set. - */ - public boolean hasPurgeTime() { - return purgeTimeBuilder_ != null || purgeTime_ != null; - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2beta3.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 7; - * - * @return The purgeTime. - */ - public com.google.protobuf.Timestamp getPurgeTime() { - if (purgeTimeBuilder_ == null) { - return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; - } else { - return purgeTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2beta3.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 7; - */ - public Builder setPurgeTime(com.google.protobuf.Timestamp value) { - if (purgeTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - purgeTime_ = value; - onChanged(); - } else { - purgeTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2beta3.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 7; - */ - public Builder setPurgeTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (purgeTimeBuilder_ == null) { - purgeTime_ = builderForValue.build(); - onChanged(); - } else { - purgeTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2beta3.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 7; - */ - public Builder mergePurgeTime(com.google.protobuf.Timestamp value) { - if (purgeTimeBuilder_ == null) { - if (purgeTime_ != null) { - purgeTime_ = - com.google.protobuf.Timestamp.newBuilder(purgeTime_).mergeFrom(value).buildPartial(); - } else { - purgeTime_ = value; - } - onChanged(); - } else { - purgeTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2beta3.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 7; - */ - public Builder clearPurgeTime() { - if (purgeTimeBuilder_ == null) { - purgeTime_ = null; - onChanged(); - } else { - purgeTime_ = null; - purgeTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2beta3.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 7; - */ - public com.google.protobuf.Timestamp.Builder getPurgeTimeBuilder() { - - onChanged(); - return getPurgeTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2beta3.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 7; - */ - public com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder() { - if (purgeTimeBuilder_ != null) { - return purgeTimeBuilder_.getMessageOrBuilder(); - } else { - return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; - } - } - /** - * - * - *
-     * Output only. The last time this queue was purged.
-     * All tasks that were [created][google.cloud.tasks.v2beta3.Task.create_time] before this time
-     * were purged.
-     * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue], the
-     * [App Engine Task Queue SDK, or the Cloud
-     * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-     * Purge time will be truncated to the nearest microsecond. Purge
-     * time will be unset if the queue has never been purged.
-     * 
- * - * .google.protobuf.Timestamp purge_time = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getPurgeTimeFieldBuilder() { - if (purgeTimeBuilder_ == null) { - purgeTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getPurgeTime(), getParentForChildren(), isClean()); - purgeTime_ = null; - } - return purgeTimeBuilder_; - } - - private com.google.protobuf.Duration taskTtl_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - taskTtlBuilder_; - /** - * - * - *
-     * The maximum amount of time that a task will be retained in
-     * this queue.
-     * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-     * After a task has lived for `task_ttl`, the task will be deleted
-     * regardless of whether it was dispatched or not.
-     * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-     * maximum duration because there is a
-     * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-     * these queues. To view the maximum valid duration, see the documentation for
-     * [Duration][google.protobuf.Duration].
-     * 
- * - * .google.protobuf.Duration task_ttl = 8; - * - * @return Whether the taskTtl field is set. - */ - public boolean hasTaskTtl() { - return taskTtlBuilder_ != null || taskTtl_ != null; - } - /** - * - * - *
-     * The maximum amount of time that a task will be retained in
-     * this queue.
-     * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-     * After a task has lived for `task_ttl`, the task will be deleted
-     * regardless of whether it was dispatched or not.
-     * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-     * maximum duration because there is a
-     * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-     * these queues. To view the maximum valid duration, see the documentation for
-     * [Duration][google.protobuf.Duration].
-     * 
- * - * .google.protobuf.Duration task_ttl = 8; - * - * @return The taskTtl. - */ - public com.google.protobuf.Duration getTaskTtl() { - if (taskTtlBuilder_ == null) { - return taskTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : taskTtl_; - } else { - return taskTtlBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The maximum amount of time that a task will be retained in
-     * this queue.
-     * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-     * After a task has lived for `task_ttl`, the task will be deleted
-     * regardless of whether it was dispatched or not.
-     * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-     * maximum duration because there is a
-     * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-     * these queues. To view the maximum valid duration, see the documentation for
-     * [Duration][google.protobuf.Duration].
-     * 
- * - * .google.protobuf.Duration task_ttl = 8; - */ - public Builder setTaskTtl(com.google.protobuf.Duration value) { - if (taskTtlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taskTtl_ = value; - onChanged(); - } else { - taskTtlBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The maximum amount of time that a task will be retained in
-     * this queue.
-     * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-     * After a task has lived for `task_ttl`, the task will be deleted
-     * regardless of whether it was dispatched or not.
-     * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-     * maximum duration because there is a
-     * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-     * these queues. To view the maximum valid duration, see the documentation for
-     * [Duration][google.protobuf.Duration].
-     * 
- * - * .google.protobuf.Duration task_ttl = 8; - */ - public Builder setTaskTtl(com.google.protobuf.Duration.Builder builderForValue) { - if (taskTtlBuilder_ == null) { - taskTtl_ = builderForValue.build(); - onChanged(); - } else { - taskTtlBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The maximum amount of time that a task will be retained in
-     * this queue.
-     * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-     * After a task has lived for `task_ttl`, the task will be deleted
-     * regardless of whether it was dispatched or not.
-     * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-     * maximum duration because there is a
-     * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-     * these queues. To view the maximum valid duration, see the documentation for
-     * [Duration][google.protobuf.Duration].
-     * 
- * - * .google.protobuf.Duration task_ttl = 8; - */ - public Builder mergeTaskTtl(com.google.protobuf.Duration value) { - if (taskTtlBuilder_ == null) { - if (taskTtl_ != null) { - taskTtl_ = - com.google.protobuf.Duration.newBuilder(taskTtl_).mergeFrom(value).buildPartial(); - } else { - taskTtl_ = value; - } - onChanged(); - } else { - taskTtlBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The maximum amount of time that a task will be retained in
-     * this queue.
-     * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-     * After a task has lived for `task_ttl`, the task will be deleted
-     * regardless of whether it was dispatched or not.
-     * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-     * maximum duration because there is a
-     * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-     * these queues. To view the maximum valid duration, see the documentation for
-     * [Duration][google.protobuf.Duration].
-     * 
- * - * .google.protobuf.Duration task_ttl = 8; - */ - public Builder clearTaskTtl() { - if (taskTtlBuilder_ == null) { - taskTtl_ = null; - onChanged(); - } else { - taskTtl_ = null; - taskTtlBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The maximum amount of time that a task will be retained in
-     * this queue.
-     * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-     * After a task has lived for `task_ttl`, the task will be deleted
-     * regardless of whether it was dispatched or not.
-     * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-     * maximum duration because there is a
-     * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-     * these queues. To view the maximum valid duration, see the documentation for
-     * [Duration][google.protobuf.Duration].
-     * 
- * - * .google.protobuf.Duration task_ttl = 8; - */ - public com.google.protobuf.Duration.Builder getTaskTtlBuilder() { - - onChanged(); - return getTaskTtlFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The maximum amount of time that a task will be retained in
-     * this queue.
-     * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-     * After a task has lived for `task_ttl`, the task will be deleted
-     * regardless of whether it was dispatched or not.
-     * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-     * maximum duration because there is a
-     * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-     * these queues. To view the maximum valid duration, see the documentation for
-     * [Duration][google.protobuf.Duration].
-     * 
- * - * .google.protobuf.Duration task_ttl = 8; - */ - public com.google.protobuf.DurationOrBuilder getTaskTtlOrBuilder() { - if (taskTtlBuilder_ != null) { - return taskTtlBuilder_.getMessageOrBuilder(); - } else { - return taskTtl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : taskTtl_; - } - } - /** - * - * - *
-     * The maximum amount of time that a task will be retained in
-     * this queue.
-     * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-     * After a task has lived for `task_ttl`, the task will be deleted
-     * regardless of whether it was dispatched or not.
-     * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-     * maximum duration because there is a
-     * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-     * these queues. To view the maximum valid duration, see the documentation for
-     * [Duration][google.protobuf.Duration].
-     * 
- * - * .google.protobuf.Duration task_ttl = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getTaskTtlFieldBuilder() { - if (taskTtlBuilder_ == null) { - taskTtlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getTaskTtl(), getParentForChildren(), isClean()); - taskTtl_ = null; - } - return taskTtlBuilder_; - } - - private com.google.protobuf.Duration tombstoneTtl_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - tombstoneTtlBuilder_; - /** - * - * - *
-     * The task tombstone time to live (TTL).
-     * After a task is deleted or executed, the task's tombstone is
-     * retained for the length of time specified by `tombstone_ttl`.
-     * The tombstone is used by task de-duplication; another task with the same
-     * name can't be created until the tombstone has expired. For more information
-     * about task de-duplication, see the documentation for
-     * [CreateTaskRequest][google.cloud.tasks.v2beta3.CreateTaskRequest.task].
-     * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-     * 
- * - * .google.protobuf.Duration tombstone_ttl = 9; - * - * @return Whether the tombstoneTtl field is set. - */ - public boolean hasTombstoneTtl() { - return tombstoneTtlBuilder_ != null || tombstoneTtl_ != null; - } - /** - * - * - *
-     * The task tombstone time to live (TTL).
-     * After a task is deleted or executed, the task's tombstone is
-     * retained for the length of time specified by `tombstone_ttl`.
-     * The tombstone is used by task de-duplication; another task with the same
-     * name can't be created until the tombstone has expired. For more information
-     * about task de-duplication, see the documentation for
-     * [CreateTaskRequest][google.cloud.tasks.v2beta3.CreateTaskRequest.task].
-     * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-     * 
- * - * .google.protobuf.Duration tombstone_ttl = 9; - * - * @return The tombstoneTtl. - */ - public com.google.protobuf.Duration getTombstoneTtl() { - if (tombstoneTtlBuilder_ == null) { - return tombstoneTtl_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : tombstoneTtl_; - } else { - return tombstoneTtlBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The task tombstone time to live (TTL).
-     * After a task is deleted or executed, the task's tombstone is
-     * retained for the length of time specified by `tombstone_ttl`.
-     * The tombstone is used by task de-duplication; another task with the same
-     * name can't be created until the tombstone has expired. For more information
-     * about task de-duplication, see the documentation for
-     * [CreateTaskRequest][google.cloud.tasks.v2beta3.CreateTaskRequest.task].
-     * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-     * 
- * - * .google.protobuf.Duration tombstone_ttl = 9; - */ - public Builder setTombstoneTtl(com.google.protobuf.Duration value) { - if (tombstoneTtlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tombstoneTtl_ = value; - onChanged(); - } else { - tombstoneTtlBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The task tombstone time to live (TTL).
-     * After a task is deleted or executed, the task's tombstone is
-     * retained for the length of time specified by `tombstone_ttl`.
-     * The tombstone is used by task de-duplication; another task with the same
-     * name can't be created until the tombstone has expired. For more information
-     * about task de-duplication, see the documentation for
-     * [CreateTaskRequest][google.cloud.tasks.v2beta3.CreateTaskRequest.task].
-     * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-     * 
- * - * .google.protobuf.Duration tombstone_ttl = 9; - */ - public Builder setTombstoneTtl(com.google.protobuf.Duration.Builder builderForValue) { - if (tombstoneTtlBuilder_ == null) { - tombstoneTtl_ = builderForValue.build(); - onChanged(); - } else { - tombstoneTtlBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The task tombstone time to live (TTL).
-     * After a task is deleted or executed, the task's tombstone is
-     * retained for the length of time specified by `tombstone_ttl`.
-     * The tombstone is used by task de-duplication; another task with the same
-     * name can't be created until the tombstone has expired. For more information
-     * about task de-duplication, see the documentation for
-     * [CreateTaskRequest][google.cloud.tasks.v2beta3.CreateTaskRequest.task].
-     * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-     * 
- * - * .google.protobuf.Duration tombstone_ttl = 9; - */ - public Builder mergeTombstoneTtl(com.google.protobuf.Duration value) { - if (tombstoneTtlBuilder_ == null) { - if (tombstoneTtl_ != null) { - tombstoneTtl_ = - com.google.protobuf.Duration.newBuilder(tombstoneTtl_) - .mergeFrom(value) - .buildPartial(); - } else { - tombstoneTtl_ = value; - } - onChanged(); - } else { - tombstoneTtlBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The task tombstone time to live (TTL).
-     * After a task is deleted or executed, the task's tombstone is
-     * retained for the length of time specified by `tombstone_ttl`.
-     * The tombstone is used by task de-duplication; another task with the same
-     * name can't be created until the tombstone has expired. For more information
-     * about task de-duplication, see the documentation for
-     * [CreateTaskRequest][google.cloud.tasks.v2beta3.CreateTaskRequest.task].
-     * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-     * 
- * - * .google.protobuf.Duration tombstone_ttl = 9; - */ - public Builder clearTombstoneTtl() { - if (tombstoneTtlBuilder_ == null) { - tombstoneTtl_ = null; - onChanged(); - } else { - tombstoneTtl_ = null; - tombstoneTtlBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The task tombstone time to live (TTL).
-     * After a task is deleted or executed, the task's tombstone is
-     * retained for the length of time specified by `tombstone_ttl`.
-     * The tombstone is used by task de-duplication; another task with the same
-     * name can't be created until the tombstone has expired. For more information
-     * about task de-duplication, see the documentation for
-     * [CreateTaskRequest][google.cloud.tasks.v2beta3.CreateTaskRequest.task].
-     * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-     * 
- * - * .google.protobuf.Duration tombstone_ttl = 9; - */ - public com.google.protobuf.Duration.Builder getTombstoneTtlBuilder() { - - onChanged(); - return getTombstoneTtlFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The task tombstone time to live (TTL).
-     * After a task is deleted or executed, the task's tombstone is
-     * retained for the length of time specified by `tombstone_ttl`.
-     * The tombstone is used by task de-duplication; another task with the same
-     * name can't be created until the tombstone has expired. For more information
-     * about task de-duplication, see the documentation for
-     * [CreateTaskRequest][google.cloud.tasks.v2beta3.CreateTaskRequest.task].
-     * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-     * 
- * - * .google.protobuf.Duration tombstone_ttl = 9; - */ - public com.google.protobuf.DurationOrBuilder getTombstoneTtlOrBuilder() { - if (tombstoneTtlBuilder_ != null) { - return tombstoneTtlBuilder_.getMessageOrBuilder(); - } else { - return tombstoneTtl_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : tombstoneTtl_; - } - } - /** - * - * - *
-     * The task tombstone time to live (TTL).
-     * After a task is deleted or executed, the task's tombstone is
-     * retained for the length of time specified by `tombstone_ttl`.
-     * The tombstone is used by task de-duplication; another task with the same
-     * name can't be created until the tombstone has expired. For more information
-     * about task de-duplication, see the documentation for
-     * [CreateTaskRequest][google.cloud.tasks.v2beta3.CreateTaskRequest.task].
-     * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-     * 
- * - * .google.protobuf.Duration tombstone_ttl = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getTombstoneTtlFieldBuilder() { - if (tombstoneTtlBuilder_ == null) { - tombstoneTtlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getTombstoneTtl(), getParentForChildren(), isClean()); - tombstoneTtl_ = null; - } - return tombstoneTtlBuilder_; - } - - private com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig stackdriverLoggingConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig, - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig.Builder, - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfigOrBuilder> - stackdriverLoggingConfigBuilder_; - /** - * - * - *
-     * Configuration options for writing logs to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-     * field is unset, then no logs are written.
-     * 
- * - * .google.cloud.tasks.v2beta3.StackdriverLoggingConfig stackdriver_logging_config = 10; - * - * - * @return Whether the stackdriverLoggingConfig field is set. - */ - public boolean hasStackdriverLoggingConfig() { - return stackdriverLoggingConfigBuilder_ != null || stackdriverLoggingConfig_ != null; - } - /** - * - * - *
-     * Configuration options for writing logs to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-     * field is unset, then no logs are written.
-     * 
- * - * .google.cloud.tasks.v2beta3.StackdriverLoggingConfig stackdriver_logging_config = 10; - * - * - * @return The stackdriverLoggingConfig. - */ - public com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig getStackdriverLoggingConfig() { - if (stackdriverLoggingConfigBuilder_ == null) { - return stackdriverLoggingConfig_ == null - ? com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig.getDefaultInstance() - : stackdriverLoggingConfig_; - } else { - return stackdriverLoggingConfigBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Configuration options for writing logs to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-     * field is unset, then no logs are written.
-     * 
- * - * .google.cloud.tasks.v2beta3.StackdriverLoggingConfig stackdriver_logging_config = 10; - * - */ - public Builder setStackdriverLoggingConfig( - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig value) { - if (stackdriverLoggingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stackdriverLoggingConfig_ = value; - onChanged(); - } else { - stackdriverLoggingConfigBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Configuration options for writing logs to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-     * field is unset, then no logs are written.
-     * 
- * - * .google.cloud.tasks.v2beta3.StackdriverLoggingConfig stackdriver_logging_config = 10; - * - */ - public Builder setStackdriverLoggingConfig( - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig.Builder builderForValue) { - if (stackdriverLoggingConfigBuilder_ == null) { - stackdriverLoggingConfig_ = builderForValue.build(); - onChanged(); - } else { - stackdriverLoggingConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Configuration options for writing logs to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-     * field is unset, then no logs are written.
-     * 
- * - * .google.cloud.tasks.v2beta3.StackdriverLoggingConfig stackdriver_logging_config = 10; - * - */ - public Builder mergeStackdriverLoggingConfig( - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig value) { - if (stackdriverLoggingConfigBuilder_ == null) { - if (stackdriverLoggingConfig_ != null) { - stackdriverLoggingConfig_ = - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig.newBuilder( - stackdriverLoggingConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - stackdriverLoggingConfig_ = value; - } - onChanged(); - } else { - stackdriverLoggingConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Configuration options for writing logs to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-     * field is unset, then no logs are written.
-     * 
- * - * .google.cloud.tasks.v2beta3.StackdriverLoggingConfig stackdriver_logging_config = 10; - * - */ - public Builder clearStackdriverLoggingConfig() { - if (stackdriverLoggingConfigBuilder_ == null) { - stackdriverLoggingConfig_ = null; - onChanged(); - } else { - stackdriverLoggingConfig_ = null; - stackdriverLoggingConfigBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Configuration options for writing logs to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-     * field is unset, then no logs are written.
-     * 
- * - * .google.cloud.tasks.v2beta3.StackdriverLoggingConfig stackdriver_logging_config = 10; - * - */ - public com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig.Builder - getStackdriverLoggingConfigBuilder() { - - onChanged(); - return getStackdriverLoggingConfigFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Configuration options for writing logs to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-     * field is unset, then no logs are written.
-     * 
- * - * .google.cloud.tasks.v2beta3.StackdriverLoggingConfig stackdriver_logging_config = 10; - * - */ - public com.google.cloud.tasks.v2beta3.StackdriverLoggingConfigOrBuilder - getStackdriverLoggingConfigOrBuilder() { - if (stackdriverLoggingConfigBuilder_ != null) { - return stackdriverLoggingConfigBuilder_.getMessageOrBuilder(); - } else { - return stackdriverLoggingConfig_ == null - ? com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig.getDefaultInstance() - : stackdriverLoggingConfig_; - } - } - /** - * - * - *
-     * Configuration options for writing logs to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-     * field is unset, then no logs are written.
-     * 
- * - * .google.cloud.tasks.v2beta3.StackdriverLoggingConfig stackdriver_logging_config = 10; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig, - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig.Builder, - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfigOrBuilder> - getStackdriverLoggingConfigFieldBuilder() { - if (stackdriverLoggingConfigBuilder_ == null) { - stackdriverLoggingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig, - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig.Builder, - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfigOrBuilder>( - getStackdriverLoggingConfig(), getParentForChildren(), isClean()); - stackdriverLoggingConfig_ = null; - } - return stackdriverLoggingConfigBuilder_; - } - - private int type_ = 0; - /** - * - * - *
-     * Immutable. The type of a queue (push or pull).
-     * `Queue.type` is an immutable property of the queue that is set at the queue
-     * creation time. When left unspecified, the default value of `PUSH` is
-     * selected.
-     * 
- * - * - * .google.cloud.tasks.v2beta3.Queue.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - /** - * - * - *
-     * Immutable. The type of a queue (push or pull).
-     * `Queue.type` is an immutable property of the queue that is set at the queue
-     * creation time. When left unspecified, the default value of `PUSH` is
-     * selected.
-     * 
- * - * - * .google.cloud.tasks.v2beta3.Queue.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. The type of a queue (push or pull).
-     * `Queue.type` is an immutable property of the queue that is set at the queue
-     * creation time. When left unspecified, the default value of `PUSH` is
-     * selected.
-     * 
- * - * - * .google.cloud.tasks.v2beta3.Queue.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Queue.Type getType() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta3.Queue.Type result = - com.google.cloud.tasks.v2beta3.Queue.Type.valueOf(type_); - return result == null ? com.google.cloud.tasks.v2beta3.Queue.Type.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Immutable. The type of a queue (push or pull).
-     * `Queue.type` is an immutable property of the queue that is set at the queue
-     * creation time. When left unspecified, the default value of `PUSH` is
-     * selected.
-     * 
- * - * - * .google.cloud.tasks.v2beta3.Queue.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.cloud.tasks.v2beta3.Queue.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Immutable. The type of a queue (push or pull).
-     * `Queue.type` is an immutable property of the queue that is set at the queue
-     * creation time. When left unspecified, the default value of `PUSH` is
-     * selected.
-     * 
- * - * - * .google.cloud.tasks.v2beta3.Queue.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private com.google.cloud.tasks.v2beta3.QueueStats stats_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.QueueStats, - com.google.cloud.tasks.v2beta3.QueueStats.Builder, - com.google.cloud.tasks.v2beta3.QueueStatsOrBuilder> - statsBuilder_; - /** - * - * - *
-     * Output only. The realtime, informational statistics for a queue. In order
-     * to receive the statistics the caller should include this field in the
-     * FieldMask.
-     * 
- * - * - * .google.cloud.tasks.v2beta3.QueueStats stats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stats field is set. - */ - public boolean hasStats() { - return statsBuilder_ != null || stats_ != null; - } - /** - * - * - *
-     * Output only. The realtime, informational statistics for a queue. In order
-     * to receive the statistics the caller should include this field in the
-     * FieldMask.
-     * 
- * - * - * .google.cloud.tasks.v2beta3.QueueStats stats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stats. - */ - public com.google.cloud.tasks.v2beta3.QueueStats getStats() { - if (statsBuilder_ == null) { - return stats_ == null - ? com.google.cloud.tasks.v2beta3.QueueStats.getDefaultInstance() - : stats_; - } else { - return statsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The realtime, informational statistics for a queue. In order
-     * to receive the statistics the caller should include this field in the
-     * FieldMask.
-     * 
- * - * - * .google.cloud.tasks.v2beta3.QueueStats stats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStats(com.google.cloud.tasks.v2beta3.QueueStats value) { - if (statsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stats_ = value; - onChanged(); - } else { - statsBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The realtime, informational statistics for a queue. In order
-     * to receive the statistics the caller should include this field in the
-     * FieldMask.
-     * 
- * - * - * .google.cloud.tasks.v2beta3.QueueStats stats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setStats(com.google.cloud.tasks.v2beta3.QueueStats.Builder builderForValue) { - if (statsBuilder_ == null) { - stats_ = builderForValue.build(); - onChanged(); - } else { - statsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The realtime, informational statistics for a queue. In order
-     * to receive the statistics the caller should include this field in the
-     * FieldMask.
-     * 
- * - * - * .google.cloud.tasks.v2beta3.QueueStats stats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeStats(com.google.cloud.tasks.v2beta3.QueueStats value) { - if (statsBuilder_ == null) { - if (stats_ != null) { - stats_ = - com.google.cloud.tasks.v2beta3.QueueStats.newBuilder(stats_) - .mergeFrom(value) - .buildPartial(); - } else { - stats_ = value; - } - onChanged(); - } else { - statsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The realtime, informational statistics for a queue. In order
-     * to receive the statistics the caller should include this field in the
-     * FieldMask.
-     * 
- * - * - * .google.cloud.tasks.v2beta3.QueueStats stats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearStats() { - if (statsBuilder_ == null) { - stats_ = null; - onChanged(); - } else { - stats_ = null; - statsBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The realtime, informational statistics for a queue. In order
-     * to receive the statistics the caller should include this field in the
-     * FieldMask.
-     * 
- * - * - * .google.cloud.tasks.v2beta3.QueueStats stats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.tasks.v2beta3.QueueStats.Builder getStatsBuilder() { - - onChanged(); - return getStatsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The realtime, informational statistics for a queue. In order
-     * to receive the statistics the caller should include this field in the
-     * FieldMask.
-     * 
- * - * - * .google.cloud.tasks.v2beta3.QueueStats stats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.tasks.v2beta3.QueueStatsOrBuilder getStatsOrBuilder() { - if (statsBuilder_ != null) { - return statsBuilder_.getMessageOrBuilder(); - } else { - return stats_ == null - ? com.google.cloud.tasks.v2beta3.QueueStats.getDefaultInstance() - : stats_; - } - } - /** - * - * - *
-     * Output only. The realtime, informational statistics for a queue. In order
-     * to receive the statistics the caller should include this field in the
-     * FieldMask.
-     * 
- * - * - * .google.cloud.tasks.v2beta3.QueueStats stats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.QueueStats, - com.google.cloud.tasks.v2beta3.QueueStats.Builder, - com.google.cloud.tasks.v2beta3.QueueStatsOrBuilder> - getStatsFieldBuilder() { - if (statsBuilder_ == null) { - statsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.QueueStats, - com.google.cloud.tasks.v2beta3.QueueStats.Builder, - com.google.cloud.tasks.v2beta3.QueueStatsOrBuilder>( - getStats(), getParentForChildren(), isClean()); - stats_ = null; - } - return statsBuilder_; - } - - @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.Queue) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.Queue) - private static final com.google.cloud.tasks.v2beta3.Queue DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.Queue(); - } - - public static com.google.cloud.tasks.v2beta3.Queue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Queue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Queue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueName.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueName.java deleted file mode 100644 index 50a0ee52..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueName.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Copyright 2022 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.v2beta3; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class QueueName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_QUEUE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/queues/{queue}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String queue; - - @Deprecated - protected QueueName() { - project = null; - location = null; - queue = null; - } - - private QueueName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - queue = Preconditions.checkNotNull(builder.getQueue()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getQueue() { - return queue; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static QueueName of(String project, String location, String queue) { - return newBuilder().setProject(project).setLocation(location).setQueue(queue).build(); - } - - public static String format(String project, String location, String queue) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setQueue(queue) - .build() - .toString(); - } - - public static QueueName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_QUEUE.validatedMatch( - formattedString, "QueueName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("queue")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (QueueName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_QUEUE.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - if (queue != null) { - fieldMapBuilder.put("queue", queue); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_QUEUE.instantiate( - "project", project, "location", location, "queue", queue); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - QueueName that = ((QueueName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.queue, that.queue); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - h *= 1000003; - h ^= Objects.hashCode(queue); - return h; - } - - /** Builder for projects/{project}/locations/{location}/queues/{queue}. */ - public static class Builder { - private String project; - private String location; - private String queue; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getQueue() { - return queue; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setQueue(String queue) { - this.queue = queue; - return this; - } - - private Builder(QueueName queueName) { - this.project = queueName.project; - this.location = queueName.location; - this.queue = queueName.queue; - } - - public QueueName build() { - return new QueueName(this); - } - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueOrBuilder.java deleted file mode 100644 index cc0ff52c..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueOrBuilder.java +++ /dev/null @@ -1,610 +0,0 @@ -/* - * Copyright 2020 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/queue.proto - -package com.google.cloud.tasks.v2beta3; - -public interface QueueOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.Queue) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta3.CloudTasks.CreateQueue],
-   * after which it becomes output only.
-   * The queue name.
-   * The queue name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the queue's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta3.CloudTasks.CreateQueue],
-   * after which it becomes output only.
-   * The queue name.
-   * The queue name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the queue's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] settings apply only to
-   * [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest] in this queue.
-   * [Http tasks][google.cloud.tasks.v2beta3.HttpRequest] are not affected by this proto.
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpQueue app_engine_http_queue = 3; - * - * @return Whether the appEngineHttpQueue field is set. - */ - boolean hasAppEngineHttpQueue(); - /** - * - * - *
-   * [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] settings apply only to
-   * [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest] in this queue.
-   * [Http tasks][google.cloud.tasks.v2beta3.HttpRequest] are not affected by this proto.
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpQueue app_engine_http_queue = 3; - * - * @return The appEngineHttpQueue. - */ - com.google.cloud.tasks.v2beta3.AppEngineHttpQueue getAppEngineHttpQueue(); - /** - * - * - *
-   * [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] settings apply only to
-   * [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest] in this queue.
-   * [Http tasks][google.cloud.tasks.v2beta3.HttpRequest] are not affected by this proto.
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpQueue app_engine_http_queue = 3; - */ - com.google.cloud.tasks.v2beta3.AppEngineHttpQueueOrBuilder getAppEngineHttpQueueOrBuilder(); - - /** - * - * - *
-   * Rate limits for task dispatches.
-   * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] are
-   * related because they both control task attempts. However they control task
-   * attempts in different ways:
-   * * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] controls the total rate of
-   *   dispatches from a queue (i.e. all traffic dispatched from the
-   *   queue, regardless of whether the dispatch is from a first
-   *   attempt or a retry).
-   * * [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls what happens to
-   *   particular a task after its first attempt fails. That is,
-   *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls task retries (the
-   *   second attempt, third attempt, etc).
-   * The queue's actual dispatch rate is the result of:
-   * * Number of tasks in the queue
-   * * User-specified throttling: [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits],
-   *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config], and the
-   *   [queue's state][google.cloud.tasks.v2beta3.Queue.state].
-   * * System throttling due to `429` (Too Many Requests) or `503` (Service
-   *   Unavailable) responses from the worker, high error rates, or to smooth
-   *   sudden large traffic spikes.
-   * 
- * - * .google.cloud.tasks.v2beta3.RateLimits rate_limits = 4; - * - * @return Whether the rateLimits field is set. - */ - boolean hasRateLimits(); - /** - * - * - *
-   * Rate limits for task dispatches.
-   * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] are
-   * related because they both control task attempts. However they control task
-   * attempts in different ways:
-   * * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] controls the total rate of
-   *   dispatches from a queue (i.e. all traffic dispatched from the
-   *   queue, regardless of whether the dispatch is from a first
-   *   attempt or a retry).
-   * * [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls what happens to
-   *   particular a task after its first attempt fails. That is,
-   *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls task retries (the
-   *   second attempt, third attempt, etc).
-   * The queue's actual dispatch rate is the result of:
-   * * Number of tasks in the queue
-   * * User-specified throttling: [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits],
-   *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config], and the
-   *   [queue's state][google.cloud.tasks.v2beta3.Queue.state].
-   * * System throttling due to `429` (Too Many Requests) or `503` (Service
-   *   Unavailable) responses from the worker, high error rates, or to smooth
-   *   sudden large traffic spikes.
-   * 
- * - * .google.cloud.tasks.v2beta3.RateLimits rate_limits = 4; - * - * @return The rateLimits. - */ - com.google.cloud.tasks.v2beta3.RateLimits getRateLimits(); - /** - * - * - *
-   * Rate limits for task dispatches.
-   * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] are
-   * related because they both control task attempts. However they control task
-   * attempts in different ways:
-   * * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] controls the total rate of
-   *   dispatches from a queue (i.e. all traffic dispatched from the
-   *   queue, regardless of whether the dispatch is from a first
-   *   attempt or a retry).
-   * * [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls what happens to
-   *   particular a task after its first attempt fails. That is,
-   *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls task retries (the
-   *   second attempt, third attempt, etc).
-   * The queue's actual dispatch rate is the result of:
-   * * Number of tasks in the queue
-   * * User-specified throttling: [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits],
-   *   [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config], and the
-   *   [queue's state][google.cloud.tasks.v2beta3.Queue.state].
-   * * System throttling due to `429` (Too Many Requests) or `503` (Service
-   *   Unavailable) responses from the worker, high error rates, or to smooth
-   *   sudden large traffic spikes.
-   * 
- * - * .google.cloud.tasks.v2beta3.RateLimits rate_limits = 4; - */ - com.google.cloud.tasks.v2beta3.RateLimitsOrBuilder getRateLimitsOrBuilder(); - - /** - * - * - *
-   * Settings that determine the retry behavior.
-   * * For tasks created using Cloud Tasks: the queue-level retry settings
-   *   apply to all tasks in the queue that were created using Cloud Tasks.
-   *   Retry settings cannot be set on individual tasks.
-   * * For tasks created using the App Engine SDK: the queue-level retry
-   *   settings apply to all tasks in the queue which do not have retry settings
-   *   explicitly set on the task and were created by the App Engine SDK. See
-   *   [App Engine
-   *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-   * 
- * - * .google.cloud.tasks.v2beta3.RetryConfig retry_config = 5; - * - * @return Whether the retryConfig field is set. - */ - boolean hasRetryConfig(); - /** - * - * - *
-   * Settings that determine the retry behavior.
-   * * For tasks created using Cloud Tasks: the queue-level retry settings
-   *   apply to all tasks in the queue that were created using Cloud Tasks.
-   *   Retry settings cannot be set on individual tasks.
-   * * For tasks created using the App Engine SDK: the queue-level retry
-   *   settings apply to all tasks in the queue which do not have retry settings
-   *   explicitly set on the task and were created by the App Engine SDK. See
-   *   [App Engine
-   *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-   * 
- * - * .google.cloud.tasks.v2beta3.RetryConfig retry_config = 5; - * - * @return The retryConfig. - */ - com.google.cloud.tasks.v2beta3.RetryConfig getRetryConfig(); - /** - * - * - *
-   * Settings that determine the retry behavior.
-   * * For tasks created using Cloud Tasks: the queue-level retry settings
-   *   apply to all tasks in the queue that were created using Cloud Tasks.
-   *   Retry settings cannot be set on individual tasks.
-   * * For tasks created using the App Engine SDK: the queue-level retry
-   *   settings apply to all tasks in the queue which do not have retry settings
-   *   explicitly set on the task and were created by the App Engine SDK. See
-   *   [App Engine
-   *   documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
-   * 
- * - * .google.cloud.tasks.v2beta3.RetryConfig retry_config = 5; - */ - com.google.cloud.tasks.v2beta3.RetryConfigOrBuilder getRetryConfigOrBuilder(); - - /** - * - * - *
-   * Output only. The state of the queue.
-   * `state` can only be changed by calling
-   * [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue],
-   * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading
-   * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-   * [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] cannot be used to change `state`.
-   * 
- * - * .google.cloud.tasks.v2beta3.Queue.State state = 6; - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - * - * - *
-   * Output only. The state of the queue.
-   * `state` can only be changed by calling
-   * [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue],
-   * [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading
-   * [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
-   * [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] cannot be used to change `state`.
-   * 
- * - * .google.cloud.tasks.v2beta3.Queue.State state = 6; - * - * @return The state. - */ - com.google.cloud.tasks.v2beta3.Queue.State getState(); - - /** - * - * - *
-   * Output only. The last time this queue was purged.
-   * All tasks that were [created][google.cloud.tasks.v2beta3.Task.create_time] before this time
-   * were purged.
-   * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue], the
-   * [App Engine Task Queue SDK, or the Cloud
-   * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-   * Purge time will be truncated to the nearest microsecond. Purge
-   * time will be unset if the queue has never been purged.
-   * 
- * - * .google.protobuf.Timestamp purge_time = 7; - * - * @return Whether the purgeTime field is set. - */ - boolean hasPurgeTime(); - /** - * - * - *
-   * Output only. The last time this queue was purged.
-   * All tasks that were [created][google.cloud.tasks.v2beta3.Task.create_time] before this time
-   * were purged.
-   * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue], the
-   * [App Engine Task Queue SDK, or the Cloud
-   * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-   * Purge time will be truncated to the nearest microsecond. Purge
-   * time will be unset if the queue has never been purged.
-   * 
- * - * .google.protobuf.Timestamp purge_time = 7; - * - * @return The purgeTime. - */ - com.google.protobuf.Timestamp getPurgeTime(); - /** - * - * - *
-   * Output only. The last time this queue was purged.
-   * All tasks that were [created][google.cloud.tasks.v2beta3.Task.create_time] before this time
-   * were purged.
-   * A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue], the
-   * [App Engine Task Queue SDK, or the Cloud
-   * Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
-   * Purge time will be truncated to the nearest microsecond. Purge
-   * time will be unset if the queue has never been purged.
-   * 
- * - * .google.protobuf.Timestamp purge_time = 7; - */ - com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder(); - - /** - * - * - *
-   * The maximum amount of time that a task will be retained in
-   * this queue.
-   * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-   * After a task has lived for `task_ttl`, the task will be deleted
-   * regardless of whether it was dispatched or not.
-   * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-   * maximum duration because there is a
-   * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-   * these queues. To view the maximum valid duration, see the documentation for
-   * [Duration][google.protobuf.Duration].
-   * 
- * - * .google.protobuf.Duration task_ttl = 8; - * - * @return Whether the taskTtl field is set. - */ - boolean hasTaskTtl(); - /** - * - * - *
-   * The maximum amount of time that a task will be retained in
-   * this queue.
-   * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-   * After a task has lived for `task_ttl`, the task will be deleted
-   * regardless of whether it was dispatched or not.
-   * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-   * maximum duration because there is a
-   * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-   * these queues. To view the maximum valid duration, see the documentation for
-   * [Duration][google.protobuf.Duration].
-   * 
- * - * .google.protobuf.Duration task_ttl = 8; - * - * @return The taskTtl. - */ - com.google.protobuf.Duration getTaskTtl(); - /** - * - * - *
-   * The maximum amount of time that a task will be retained in
-   * this queue.
-   * Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
-   * After a task has lived for `task_ttl`, the task will be deleted
-   * regardless of whether it was dispatched or not.
-   * The `task_ttl` for queues created via queue.yaml/xml is equal to the
-   * maximum duration because there is a
-   * [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
-   * these queues. To view the maximum valid duration, see the documentation for
-   * [Duration][google.protobuf.Duration].
-   * 
- * - * .google.protobuf.Duration task_ttl = 8; - */ - com.google.protobuf.DurationOrBuilder getTaskTtlOrBuilder(); - - /** - * - * - *
-   * The task tombstone time to live (TTL).
-   * After a task is deleted or executed, the task's tombstone is
-   * retained for the length of time specified by `tombstone_ttl`.
-   * The tombstone is used by task de-duplication; another task with the same
-   * name can't be created until the tombstone has expired. For more information
-   * about task de-duplication, see the documentation for
-   * [CreateTaskRequest][google.cloud.tasks.v2beta3.CreateTaskRequest.task].
-   * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-   * 
- * - * .google.protobuf.Duration tombstone_ttl = 9; - * - * @return Whether the tombstoneTtl field is set. - */ - boolean hasTombstoneTtl(); - /** - * - * - *
-   * The task tombstone time to live (TTL).
-   * After a task is deleted or executed, the task's tombstone is
-   * retained for the length of time specified by `tombstone_ttl`.
-   * The tombstone is used by task de-duplication; another task with the same
-   * name can't be created until the tombstone has expired. For more information
-   * about task de-duplication, see the documentation for
-   * [CreateTaskRequest][google.cloud.tasks.v2beta3.CreateTaskRequest.task].
-   * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-   * 
- * - * .google.protobuf.Duration tombstone_ttl = 9; - * - * @return The tombstoneTtl. - */ - com.google.protobuf.Duration getTombstoneTtl(); - /** - * - * - *
-   * The task tombstone time to live (TTL).
-   * After a task is deleted or executed, the task's tombstone is
-   * retained for the length of time specified by `tombstone_ttl`.
-   * The tombstone is used by task de-duplication; another task with the same
-   * name can't be created until the tombstone has expired. For more information
-   * about task de-duplication, see the documentation for
-   * [CreateTaskRequest][google.cloud.tasks.v2beta3.CreateTaskRequest.task].
-   * Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
-   * 
- * - * .google.protobuf.Duration tombstone_ttl = 9; - */ - com.google.protobuf.DurationOrBuilder getTombstoneTtlOrBuilder(); - - /** - * - * - *
-   * Configuration options for writing logs to
-   * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-   * field is unset, then no logs are written.
-   * 
- * - * .google.cloud.tasks.v2beta3.StackdriverLoggingConfig stackdriver_logging_config = 10; - * - * - * @return Whether the stackdriverLoggingConfig field is set. - */ - boolean hasStackdriverLoggingConfig(); - /** - * - * - *
-   * Configuration options for writing logs to
-   * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-   * field is unset, then no logs are written.
-   * 
- * - * .google.cloud.tasks.v2beta3.StackdriverLoggingConfig stackdriver_logging_config = 10; - * - * - * @return The stackdriverLoggingConfig. - */ - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig getStackdriverLoggingConfig(); - /** - * - * - *
-   * Configuration options for writing logs to
-   * [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this
-   * field is unset, then no logs are written.
-   * 
- * - * .google.cloud.tasks.v2beta3.StackdriverLoggingConfig stackdriver_logging_config = 10; - * - */ - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfigOrBuilder - getStackdriverLoggingConfigOrBuilder(); - - /** - * - * - *
-   * Immutable. The type of a queue (push or pull).
-   * `Queue.type` is an immutable property of the queue that is set at the queue
-   * creation time. When left unspecified, the default value of `PUSH` is
-   * selected.
-   * 
- * - * - * .google.cloud.tasks.v2beta3.Queue.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - * - * - *
-   * Immutable. The type of a queue (push or pull).
-   * `Queue.type` is an immutable property of the queue that is set at the queue
-   * creation time. When left unspecified, the default value of `PUSH` is
-   * selected.
-   * 
- * - * - * .google.cloud.tasks.v2beta3.Queue.Type type = 11 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The type. - */ - com.google.cloud.tasks.v2beta3.Queue.Type getType(); - - /** - * - * - *
-   * Output only. The realtime, informational statistics for a queue. In order
-   * to receive the statistics the caller should include this field in the
-   * FieldMask.
-   * 
- * - * - * .google.cloud.tasks.v2beta3.QueueStats stats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the stats field is set. - */ - boolean hasStats(); - /** - * - * - *
-   * Output only. The realtime, informational statistics for a queue. In order
-   * to receive the statistics the caller should include this field in the
-   * FieldMask.
-   * 
- * - * - * .google.cloud.tasks.v2beta3.QueueStats stats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The stats. - */ - com.google.cloud.tasks.v2beta3.QueueStats getStats(); - /** - * - * - *
-   * Output only. The realtime, informational statistics for a queue. In order
-   * to receive the statistics the caller should include this field in the
-   * FieldMask.
-   * 
- * - * - * .google.cloud.tasks.v2beta3.QueueStats stats = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.tasks.v2beta3.QueueStatsOrBuilder getStatsOrBuilder(); - - public com.google.cloud.tasks.v2beta3.Queue.QueueTypeCase getQueueTypeCase(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueProto.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueProto.java deleted file mode 100644 index 6bee2e5e..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueProto.java +++ /dev/null @@ -1,185 +0,0 @@ -/* - * Copyright 2020 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/queue.proto - -package com.google.cloud.tasks.v2beta3; - -public final class QueueProto { - private QueueProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_Queue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_Queue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_RateLimits_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_RateLimits_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_RetryConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_RetryConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_StackdriverLoggingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_StackdriverLoggingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_QueueStats_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_QueueStats_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n&google/cloud/tasks/v2beta3/queue.proto" - + "\022\032google.cloud.tasks.v2beta3\032\037google/api" - + "/field_behavior.proto\032\031google/api/resour" - + "ce.proto\032\'google/cloud/tasks/v2beta3/tar" - + "get.proto\032\036google/protobuf/duration.prot" - + "o\032\037google/protobuf/timestamp.proto\"\337\006\n\005Q" - + "ueue\022\014\n\004name\030\001 \001(\t\022O\n\025app_engine_http_qu" - + "eue\030\003 \001(\0132..google.cloud.tasks.v2beta3.A" - + "ppEngineHttpQueueH\000\022;\n\013rate_limits\030\004 \001(\013" - + "2&.google.cloud.tasks.v2beta3.RateLimits" - + "\022=\n\014retry_config\030\005 \001(\0132\'.google.cloud.ta" - + "sks.v2beta3.RetryConfig\0226\n\005state\030\006 \001(\0162\'" - + ".google.cloud.tasks.v2beta3.Queue.State\022" - + ".\n\npurge_time\030\007 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022+\n\010task_ttl\030\010 \001(\0132\031.google.proto" - + "buf.Duration\0220\n\rtombstone_ttl\030\t \001(\0132\031.go" - + "ogle.protobuf.Duration\022X\n\032stackdriver_lo" - + "gging_config\030\n \001(\01324.google.cloud.tasks." - + "v2beta3.StackdriverLoggingConfig\0229\n\004type" - + "\030\013 \001(\0162&.google.cloud.tasks.v2beta3.Queu" - + "e.TypeB\003\340A\005\022:\n\005stats\030\014 \001(\0132&.google.clou" - + "d.tasks.v2beta3.QueueStatsB\003\340A\003\"E\n\005State" - + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007RUNNING\020\001\022\n\n\006" - + "PAUSED\020\002\022\014\n\010DISABLED\020\003\"0\n\004Type\022\024\n\020TYPE_U" - + "NSPECIFIED\020\000\022\010\n\004PULL\020\001\022\010\n\004PUSH\020\002:\\\352AY\n\037c" - + "loudtasks.googleapis.com/Queue\0226projects" - + "/{project}/locations/{location}/queues/{" - + "queue}B\014\n\nqueue_type\"j\n\nRateLimits\022!\n\031ma" - + "x_dispatches_per_second\030\001 \001(\001\022\026\n\016max_bur" - + "st_size\030\002 \001(\005\022!\n\031max_concurrent_dispatch" - + "es\030\003 \001(\005\"\321\001\n\013RetryConfig\022\024\n\014max_attempts" - + "\030\001 \001(\005\0225\n\022max_retry_duration\030\002 \001(\0132\031.goo" - + "gle.protobuf.Duration\022.\n\013min_backoff\030\003 \001" - + "(\0132\031.google.protobuf.Duration\022.\n\013max_bac" - + "koff\030\004 \001(\0132\031.google.protobuf.Duration\022\025\n" - + "\rmax_doublings\030\005 \001(\005\"2\n\030StackdriverLoggi" - + "ngConfig\022\026\n\016sampling_ratio\030\001 \001(\001\"\350\001\n\nQue" - + "ueStats\022\030\n\013tasks_count\030\001 \001(\003B\003\340A\003\022F\n\035old" - + "est_estimated_arrival_time\030\002 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\022\'\n\032executed_la" - + "st_minute_count\030\003 \001(\003B\003\340A\003\022(\n\033concurrent" - + "_dispatches_count\030\004 \001(\003B\003\340A\003\022%\n\030effectiv" - + "e_execution_rate\030\005 \001(\001B\003\340A\003Bo\n\036com.googl" - + "e.cloud.tasks.v2beta3B\nQueueProtoP\001Z?goo" - + "gle.golang.org/genproto/googleapis/cloud" - + "/tasks/v2beta3;tasksb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.tasks.v2beta3.TargetProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_tasks_v2beta3_Queue_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_tasks_v2beta3_Queue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_Queue_descriptor, - new java.lang.String[] { - "Name", - "AppEngineHttpQueue", - "RateLimits", - "RetryConfig", - "State", - "PurgeTime", - "TaskTtl", - "TombstoneTtl", - "StackdriverLoggingConfig", - "Type", - "Stats", - "QueueType", - }); - internal_static_google_cloud_tasks_v2beta3_RateLimits_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_tasks_v2beta3_RateLimits_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_RateLimits_descriptor, - new java.lang.String[] { - "MaxDispatchesPerSecond", "MaxBurstSize", "MaxConcurrentDispatches", - }); - internal_static_google_cloud_tasks_v2beta3_RetryConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_tasks_v2beta3_RetryConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_RetryConfig_descriptor, - new java.lang.String[] { - "MaxAttempts", "MaxRetryDuration", "MinBackoff", "MaxBackoff", "MaxDoublings", - }); - internal_static_google_cloud_tasks_v2beta3_StackdriverLoggingConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_tasks_v2beta3_StackdriverLoggingConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_StackdriverLoggingConfig_descriptor, - new java.lang.String[] { - "SamplingRatio", - }); - internal_static_google_cloud_tasks_v2beta3_QueueStats_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_tasks_v2beta3_QueueStats_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_QueueStats_descriptor, - new java.lang.String[] { - "TasksCount", - "OldestEstimatedArrivalTime", - "ExecutedLastMinuteCount", - "ConcurrentDispatchesCount", - "EffectiveExecutionRate", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.tasks.v2beta3.TargetProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueStats.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueStats.java deleted file mode 100644 index 6cb655d1..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueStats.java +++ /dev/null @@ -1,1157 +0,0 @@ -/* - * Copyright 2020 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/queue.proto - -package com.google.cloud.tasks.v2beta3; - -/** - * - * - *
- * Statistics for a queue.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.QueueStats} - */ -public final class QueueStats extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.QueueStats) - QueueStatsOrBuilder { - private static final long serialVersionUID = 0L; - // Use QueueStats.newBuilder() to construct. - private QueueStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private QueueStats() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new QueueStats(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_QueueStats_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_QueueStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.QueueStats.class, - com.google.cloud.tasks.v2beta3.QueueStats.Builder.class); - } - - public static final int TASKS_COUNT_FIELD_NUMBER = 1; - private long tasksCount_; - /** - * - * - *
-   * Output only. An estimation of the number of tasks in the queue, that is, the tasks in
-   * the queue that haven't been executed, the tasks in the queue which the
-   * queue has dispatched but has not yet received a reply for, and the failed
-   * tasks that the queue is retrying.
-   * 
- * - * int64 tasks_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The tasksCount. - */ - @java.lang.Override - public long getTasksCount() { - return tasksCount_; - } - - public static final int OLDEST_ESTIMATED_ARRIVAL_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp oldestEstimatedArrivalTime_; - /** - * - * - *
-   * Output only. An estimation of the nearest time in the future where a task in the queue
-   * is scheduled to be executed.
-   * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the oldestEstimatedArrivalTime field is set. - */ - @java.lang.Override - public boolean hasOldestEstimatedArrivalTime() { - return oldestEstimatedArrivalTime_ != null; - } - /** - * - * - *
-   * Output only. An estimation of the nearest time in the future where a task in the queue
-   * is scheduled to be executed.
-   * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The oldestEstimatedArrivalTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getOldestEstimatedArrivalTime() { - return oldestEstimatedArrivalTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : oldestEstimatedArrivalTime_; - } - /** - * - * - *
-   * Output only. An estimation of the nearest time in the future where a task in the queue
-   * is scheduled to be executed.
-   * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getOldestEstimatedArrivalTimeOrBuilder() { - return getOldestEstimatedArrivalTime(); - } - - public static final int EXECUTED_LAST_MINUTE_COUNT_FIELD_NUMBER = 3; - private long executedLastMinuteCount_; - /** - * - * - *
-   * Output only. The number of tasks that the queue has dispatched and received a reply for
-   * during the last minute. This variable counts both successful and
-   * non-successful executions.
-   * 
- * - * int64 executed_last_minute_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The executedLastMinuteCount. - */ - @java.lang.Override - public long getExecutedLastMinuteCount() { - return executedLastMinuteCount_; - } - - public static final int CONCURRENT_DISPATCHES_COUNT_FIELD_NUMBER = 4; - private long concurrentDispatchesCount_; - /** - * - * - *
-   * Output only. The number of requests that the queue has dispatched but has not received
-   * a reply for yet.
-   * 
- * - * int64 concurrent_dispatches_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The concurrentDispatchesCount. - */ - @java.lang.Override - public long getConcurrentDispatchesCount() { - return concurrentDispatchesCount_; - } - - public static final int EFFECTIVE_EXECUTION_RATE_FIELD_NUMBER = 5; - private double effectiveExecutionRate_; - /** - * - * - *
-   * Output only. The current maximum number of tasks per second executed by the queue.
-   * The maximum value of this variable is controlled by the RateLimits of the
-   * Queue. However, this value could be less to avoid overloading the endpoints
-   * tasks in the queue are targeting.
-   * 
- * - * double effective_execution_rate = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The effectiveExecutionRate. - */ - @java.lang.Override - public double getEffectiveExecutionRate() { - return effectiveExecutionRate_; - } - - 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 (tasksCount_ != 0L) { - output.writeInt64(1, tasksCount_); - } - if (oldestEstimatedArrivalTime_ != null) { - output.writeMessage(2, getOldestEstimatedArrivalTime()); - } - if (executedLastMinuteCount_ != 0L) { - output.writeInt64(3, executedLastMinuteCount_); - } - if (concurrentDispatchesCount_ != 0L) { - output.writeInt64(4, concurrentDispatchesCount_); - } - if (java.lang.Double.doubleToRawLongBits(effectiveExecutionRate_) != 0) { - output.writeDouble(5, effectiveExecutionRate_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tasksCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, tasksCount_); - } - if (oldestEstimatedArrivalTime_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getOldestEstimatedArrivalTime()); - } - if (executedLastMinuteCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, executedLastMinuteCount_); - } - if (concurrentDispatchesCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, concurrentDispatchesCount_); - } - if (java.lang.Double.doubleToRawLongBits(effectiveExecutionRate_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, effectiveExecutionRate_); - } - 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.QueueStats)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.QueueStats other = - (com.google.cloud.tasks.v2beta3.QueueStats) obj; - - if (getTasksCount() != other.getTasksCount()) return false; - if (hasOldestEstimatedArrivalTime() != other.hasOldestEstimatedArrivalTime()) return false; - if (hasOldestEstimatedArrivalTime()) { - if (!getOldestEstimatedArrivalTime().equals(other.getOldestEstimatedArrivalTime())) - return false; - } - if (getExecutedLastMinuteCount() != other.getExecutedLastMinuteCount()) return false; - if (getConcurrentDispatchesCount() != other.getConcurrentDispatchesCount()) return false; - if (java.lang.Double.doubleToLongBits(getEffectiveExecutionRate()) - != java.lang.Double.doubleToLongBits(other.getEffectiveExecutionRate())) 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) + TASKS_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTasksCount()); - if (hasOldestEstimatedArrivalTime()) { - hash = (37 * hash) + OLDEST_ESTIMATED_ARRIVAL_TIME_FIELD_NUMBER; - hash = (53 * hash) + getOldestEstimatedArrivalTime().hashCode(); - } - hash = (37 * hash) + EXECUTED_LAST_MINUTE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getExecutedLastMinuteCount()); - hash = (37 * hash) + CONCURRENT_DISPATCHES_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getConcurrentDispatchesCount()); - hash = (37 * hash) + EFFECTIVE_EXECUTION_RATE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getEffectiveExecutionRate())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.QueueStats parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.QueueStats 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.QueueStats parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.QueueStats 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.QueueStats parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.QueueStats 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.QueueStats parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.QueueStats 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.QueueStats parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.QueueStats 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.QueueStats 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.QueueStats 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.QueueStats 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; - } - /** - * - * - *
-   * Statistics for a queue.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.QueueStats} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.QueueStats) - com.google.cloud.tasks.v2beta3.QueueStatsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_QueueStats_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_QueueStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.QueueStats.class, - com.google.cloud.tasks.v2beta3.QueueStats.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.QueueStats.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - tasksCount_ = 0L; - - if (oldestEstimatedArrivalTimeBuilder_ == null) { - oldestEstimatedArrivalTime_ = null; - } else { - oldestEstimatedArrivalTime_ = null; - oldestEstimatedArrivalTimeBuilder_ = null; - } - executedLastMinuteCount_ = 0L; - - concurrentDispatchesCount_ = 0L; - - effectiveExecutionRate_ = 0D; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_QueueStats_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.QueueStats getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.QueueStats.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.QueueStats build() { - com.google.cloud.tasks.v2beta3.QueueStats result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.QueueStats buildPartial() { - com.google.cloud.tasks.v2beta3.QueueStats result = - new com.google.cloud.tasks.v2beta3.QueueStats(this); - result.tasksCount_ = tasksCount_; - if (oldestEstimatedArrivalTimeBuilder_ == null) { - result.oldestEstimatedArrivalTime_ = oldestEstimatedArrivalTime_; - } else { - result.oldestEstimatedArrivalTime_ = oldestEstimatedArrivalTimeBuilder_.build(); - } - result.executedLastMinuteCount_ = executedLastMinuteCount_; - result.concurrentDispatchesCount_ = concurrentDispatchesCount_; - result.effectiveExecutionRate_ = effectiveExecutionRate_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.QueueStats) { - return mergeFrom((com.google.cloud.tasks.v2beta3.QueueStats) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.QueueStats other) { - if (other == com.google.cloud.tasks.v2beta3.QueueStats.getDefaultInstance()) return this; - if (other.getTasksCount() != 0L) { - setTasksCount(other.getTasksCount()); - } - if (other.hasOldestEstimatedArrivalTime()) { - mergeOldestEstimatedArrivalTime(other.getOldestEstimatedArrivalTime()); - } - if (other.getExecutedLastMinuteCount() != 0L) { - setExecutedLastMinuteCount(other.getExecutedLastMinuteCount()); - } - if (other.getConcurrentDispatchesCount() != 0L) { - setConcurrentDispatchesCount(other.getConcurrentDispatchesCount()); - } - if (other.getEffectiveExecutionRate() != 0D) { - setEffectiveExecutionRate(other.getEffectiveExecutionRate()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - tasksCount_ = input.readInt64(); - - break; - } // case 8 - case 18: - { - input.readMessage( - getOldestEstimatedArrivalTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 24: - { - executedLastMinuteCount_ = input.readInt64(); - - break; - } // case 24 - case 32: - { - concurrentDispatchesCount_ = input.readInt64(); - - break; - } // case 32 - case 41: - { - effectiveExecutionRate_ = input.readDouble(); - - break; - } // case 41 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private long tasksCount_; - /** - * - * - *
-     * Output only. An estimation of the number of tasks in the queue, that is, the tasks in
-     * the queue that haven't been executed, the tasks in the queue which the
-     * queue has dispatched but has not yet received a reply for, and the failed
-     * tasks that the queue is retrying.
-     * 
- * - * int64 tasks_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The tasksCount. - */ - @java.lang.Override - public long getTasksCount() { - return tasksCount_; - } - /** - * - * - *
-     * Output only. An estimation of the number of tasks in the queue, that is, the tasks in
-     * the queue that haven't been executed, the tasks in the queue which the
-     * queue has dispatched but has not yet received a reply for, and the failed
-     * tasks that the queue is retrying.
-     * 
- * - * int64 tasks_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The tasksCount to set. - * @return This builder for chaining. - */ - public Builder setTasksCount(long value) { - - tasksCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. An estimation of the number of tasks in the queue, that is, the tasks in
-     * the queue that haven't been executed, the tasks in the queue which the
-     * queue has dispatched but has not yet received a reply for, and the failed
-     * tasks that the queue is retrying.
-     * 
- * - * int64 tasks_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearTasksCount() { - - tasksCount_ = 0L; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp oldestEstimatedArrivalTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - oldestEstimatedArrivalTimeBuilder_; - /** - * - * - *
-     * Output only. An estimation of the nearest time in the future where a task in the queue
-     * is scheduled to be executed.
-     * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the oldestEstimatedArrivalTime field is set. - */ - public boolean hasOldestEstimatedArrivalTime() { - return oldestEstimatedArrivalTimeBuilder_ != null || oldestEstimatedArrivalTime_ != null; - } - /** - * - * - *
-     * Output only. An estimation of the nearest time in the future where a task in the queue
-     * is scheduled to be executed.
-     * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The oldestEstimatedArrivalTime. - */ - public com.google.protobuf.Timestamp getOldestEstimatedArrivalTime() { - if (oldestEstimatedArrivalTimeBuilder_ == null) { - return oldestEstimatedArrivalTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : oldestEstimatedArrivalTime_; - } else { - return oldestEstimatedArrivalTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. An estimation of the nearest time in the future where a task in the queue
-     * is scheduled to be executed.
-     * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setOldestEstimatedArrivalTime(com.google.protobuf.Timestamp value) { - if (oldestEstimatedArrivalTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oldestEstimatedArrivalTime_ = value; - onChanged(); - } else { - oldestEstimatedArrivalTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. An estimation of the nearest time in the future where a task in the queue
-     * is scheduled to be executed.
-     * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setOldestEstimatedArrivalTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (oldestEstimatedArrivalTimeBuilder_ == null) { - oldestEstimatedArrivalTime_ = builderForValue.build(); - onChanged(); - } else { - oldestEstimatedArrivalTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. An estimation of the nearest time in the future where a task in the queue
-     * is scheduled to be executed.
-     * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeOldestEstimatedArrivalTime(com.google.protobuf.Timestamp value) { - if (oldestEstimatedArrivalTimeBuilder_ == null) { - if (oldestEstimatedArrivalTime_ != null) { - oldestEstimatedArrivalTime_ = - com.google.protobuf.Timestamp.newBuilder(oldestEstimatedArrivalTime_) - .mergeFrom(value) - .buildPartial(); - } else { - oldestEstimatedArrivalTime_ = value; - } - onChanged(); - } else { - oldestEstimatedArrivalTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. An estimation of the nearest time in the future where a task in the queue
-     * is scheduled to be executed.
-     * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearOldestEstimatedArrivalTime() { - if (oldestEstimatedArrivalTimeBuilder_ == null) { - oldestEstimatedArrivalTime_ = null; - onChanged(); - } else { - oldestEstimatedArrivalTime_ = null; - oldestEstimatedArrivalTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. An estimation of the nearest time in the future where a task in the queue
-     * is scheduled to be executed.
-     * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getOldestEstimatedArrivalTimeBuilder() { - - onChanged(); - return getOldestEstimatedArrivalTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. An estimation of the nearest time in the future where a task in the queue
-     * is scheduled to be executed.
-     * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getOldestEstimatedArrivalTimeOrBuilder() { - if (oldestEstimatedArrivalTimeBuilder_ != null) { - return oldestEstimatedArrivalTimeBuilder_.getMessageOrBuilder(); - } else { - return oldestEstimatedArrivalTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : oldestEstimatedArrivalTime_; - } - } - /** - * - * - *
-     * Output only. An estimation of the nearest time in the future where a task in the queue
-     * is scheduled to be executed.
-     * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getOldestEstimatedArrivalTimeFieldBuilder() { - if (oldestEstimatedArrivalTimeBuilder_ == null) { - oldestEstimatedArrivalTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getOldestEstimatedArrivalTime(), getParentForChildren(), isClean()); - oldestEstimatedArrivalTime_ = null; - } - return oldestEstimatedArrivalTimeBuilder_; - } - - private long executedLastMinuteCount_; - /** - * - * - *
-     * Output only. The number of tasks that the queue has dispatched and received a reply for
-     * during the last minute. This variable counts both successful and
-     * non-successful executions.
-     * 
- * - * int64 executed_last_minute_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The executedLastMinuteCount. - */ - @java.lang.Override - public long getExecutedLastMinuteCount() { - return executedLastMinuteCount_; - } - /** - * - * - *
-     * Output only. The number of tasks that the queue has dispatched and received a reply for
-     * during the last minute. This variable counts both successful and
-     * non-successful executions.
-     * 
- * - * int64 executed_last_minute_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The executedLastMinuteCount to set. - * @return This builder for chaining. - */ - public Builder setExecutedLastMinuteCount(long value) { - - executedLastMinuteCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The number of tasks that the queue has dispatched and received a reply for
-     * during the last minute. This variable counts both successful and
-     * non-successful executions.
-     * 
- * - * int64 executed_last_minute_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearExecutedLastMinuteCount() { - - executedLastMinuteCount_ = 0L; - onChanged(); - return this; - } - - private long concurrentDispatchesCount_; - /** - * - * - *
-     * Output only. The number of requests that the queue has dispatched but has not received
-     * a reply for yet.
-     * 
- * - * int64 concurrent_dispatches_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The concurrentDispatchesCount. - */ - @java.lang.Override - public long getConcurrentDispatchesCount() { - return concurrentDispatchesCount_; - } - /** - * - * - *
-     * Output only. The number of requests that the queue has dispatched but has not received
-     * a reply for yet.
-     * 
- * - * int64 concurrent_dispatches_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The concurrentDispatchesCount to set. - * @return This builder for chaining. - */ - public Builder setConcurrentDispatchesCount(long value) { - - concurrentDispatchesCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The number of requests that the queue has dispatched but has not received
-     * a reply for yet.
-     * 
- * - * int64 concurrent_dispatches_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearConcurrentDispatchesCount() { - - concurrentDispatchesCount_ = 0L; - onChanged(); - return this; - } - - private double effectiveExecutionRate_; - /** - * - * - *
-     * Output only. The current maximum number of tasks per second executed by the queue.
-     * The maximum value of this variable is controlled by the RateLimits of the
-     * Queue. However, this value could be less to avoid overloading the endpoints
-     * tasks in the queue are targeting.
-     * 
- * - * double effective_execution_rate = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The effectiveExecutionRate. - */ - @java.lang.Override - public double getEffectiveExecutionRate() { - return effectiveExecutionRate_; - } - /** - * - * - *
-     * Output only. The current maximum number of tasks per second executed by the queue.
-     * The maximum value of this variable is controlled by the RateLimits of the
-     * Queue. However, this value could be less to avoid overloading the endpoints
-     * tasks in the queue are targeting.
-     * 
- * - * double effective_execution_rate = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The effectiveExecutionRate to set. - * @return This builder for chaining. - */ - public Builder setEffectiveExecutionRate(double value) { - - effectiveExecutionRate_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The current maximum number of tasks per second executed by the queue.
-     * The maximum value of this variable is controlled by the RateLimits of the
-     * Queue. However, this value could be less to avoid overloading the endpoints
-     * tasks in the queue are targeting.
-     * 
- * - * double effective_execution_rate = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearEffectiveExecutionRate() { - - effectiveExecutionRate_ = 0D; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.QueueStats) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.QueueStats) - private static final com.google.cloud.tasks.v2beta3.QueueStats DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.QueueStats(); - } - - public static com.google.cloud.tasks.v2beta3.QueueStats getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueueStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.QueueStats getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueStatsOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueStatsOrBuilder.java deleted file mode 100644 index 2ae27c91..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueStatsOrBuilder.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright 2020 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/queue.proto - -package com.google.cloud.tasks.v2beta3; - -public interface QueueStatsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.QueueStats) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. An estimation of the number of tasks in the queue, that is, the tasks in
-   * the queue that haven't been executed, the tasks in the queue which the
-   * queue has dispatched but has not yet received a reply for, and the failed
-   * tasks that the queue is retrying.
-   * 
- * - * int64 tasks_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The tasksCount. - */ - long getTasksCount(); - - /** - * - * - *
-   * Output only. An estimation of the nearest time in the future where a task in the queue
-   * is scheduled to be executed.
-   * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the oldestEstimatedArrivalTime field is set. - */ - boolean hasOldestEstimatedArrivalTime(); - /** - * - * - *
-   * Output only. An estimation of the nearest time in the future where a task in the queue
-   * is scheduled to be executed.
-   * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The oldestEstimatedArrivalTime. - */ - com.google.protobuf.Timestamp getOldestEstimatedArrivalTime(); - /** - * - * - *
-   * Output only. An estimation of the nearest time in the future where a task in the queue
-   * is scheduled to be executed.
-   * 
- * - * - * .google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getOldestEstimatedArrivalTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The number of tasks that the queue has dispatched and received a reply for
-   * during the last minute. This variable counts both successful and
-   * non-successful executions.
-   * 
- * - * int64 executed_last_minute_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The executedLastMinuteCount. - */ - long getExecutedLastMinuteCount(); - - /** - * - * - *
-   * Output only. The number of requests that the queue has dispatched but has not received
-   * a reply for yet.
-   * 
- * - * int64 concurrent_dispatches_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The concurrentDispatchesCount. - */ - long getConcurrentDispatchesCount(); - - /** - * - * - *
-   * Output only. The current maximum number of tasks per second executed by the queue.
-   * The maximum value of this variable is controlled by the RateLimits of the
-   * Queue. However, this value could be less to avoid overloading the endpoints
-   * tasks in the queue are targeting.
-   * 
- * - * double effective_execution_rate = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The effectiveExecutionRate. - */ - double getEffectiveExecutionRate(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RateLimits.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RateLimits.java deleted file mode 100644 index 740504d7..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RateLimits.java +++ /dev/null @@ -1,888 +0,0 @@ -/* - * Copyright 2020 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/queue.proto - -package com.google.cloud.tasks.v2beta3; - -/** - * - * - *
- * Rate limits.
- * This message determines the maximum rate that tasks can be dispatched by a
- * queue, regardless of whether the dispatch is a first task attempt or a retry.
- * Note: The debugging command, [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask], will run a task
- * even if the queue has reached its [RateLimits][google.cloud.tasks.v2beta3.RateLimits].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.RateLimits} - */ -public final class RateLimits extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.RateLimits) - RateLimitsOrBuilder { - private static final long serialVersionUID = 0L; - // Use RateLimits.newBuilder() to construct. - private RateLimits(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RateLimits() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RateLimits(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_RateLimits_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_RateLimits_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.RateLimits.class, - com.google.cloud.tasks.v2beta3.RateLimits.Builder.class); - } - - public static final int MAX_DISPATCHES_PER_SECOND_FIELD_NUMBER = 1; - private double maxDispatchesPerSecond_; - /** - * - * - *
-   * The maximum rate at which tasks are dispatched from this queue.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * * For [App Engine queues][google.cloud.tasks.v2beta3.AppEngineHttpQueue], the maximum allowed value
-   *   is 500.
-   * This field has the same meaning as
-   * [rate in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate).
-   * 
- * - * double max_dispatches_per_second = 1; - * - * @return The maxDispatchesPerSecond. - */ - @java.lang.Override - public double getMaxDispatchesPerSecond() { - return maxDispatchesPerSecond_; - } - - public static final int MAX_BURST_SIZE_FIELD_NUMBER = 2; - private int maxBurstSize_; - /** - * - * - *
-   * The max burst size.
-   * Max burst size limits how fast tasks in queue are processed when
-   * many tasks are in the queue and the rate is high. This field
-   * allows the queue to have a high rate so processing starts shortly
-   * after a task is enqueued, but still limits resource usage when
-   * many tasks are enqueued in a short period of time.
-   * The [token bucket](https://wikipedia.org/wiki/Token_Bucket)
-   * algorithm is used to control the rate of task dispatches. Each
-   * queue has a token bucket that holds tokens, up to the maximum
-   * specified by `max_burst_size`. Each time a task is dispatched, a
-   * token is removed from the bucket. Tasks will be dispatched until
-   * the queue's bucket runs out of tokens. The bucket will be
-   * continuously refilled with new tokens based on
-   * [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second].
-   * The default value of `max_burst_size` is picked by Cloud Tasks
-   * based on the value of
-   * [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second].
-   * The maximum value of `max_burst_size` is 500.
-   * For App Engine queues that were created or updated using
-   * `queue.yaml/xml`, `max_burst_size` is equal to
-   * [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
-   * If
-   * [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] is called on a queue without
-   * explicitly setting a value for `max_burst_size`,
-   * `max_burst_size` value will get updated if
-   * [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] is updating
-   * [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second].
-   * 
- * - * int32 max_burst_size = 2; - * - * @return The maxBurstSize. - */ - @java.lang.Override - public int getMaxBurstSize() { - return maxBurstSize_; - } - - public static final int MAX_CONCURRENT_DISPATCHES_FIELD_NUMBER = 3; - private int maxConcurrentDispatches_; - /** - * - * - *
-   * The maximum number of concurrent tasks that Cloud Tasks allows
-   * to be dispatched for this queue. After this threshold has been
-   * reached, Cloud Tasks stops dispatching tasks until the number of
-   * concurrent requests decreases.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * The maximum allowed value is 5,000.
-   * This field has the same meaning as
-   * [max_concurrent_requests in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests).
-   * 
- * - * int32 max_concurrent_dispatches = 3; - * - * @return The maxConcurrentDispatches. - */ - @java.lang.Override - public int getMaxConcurrentDispatches() { - return maxConcurrentDispatches_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (java.lang.Double.doubleToRawLongBits(maxDispatchesPerSecond_) != 0) { - output.writeDouble(1, maxDispatchesPerSecond_); - } - if (maxBurstSize_ != 0) { - output.writeInt32(2, maxBurstSize_); - } - if (maxConcurrentDispatches_ != 0) { - output.writeInt32(3, maxConcurrentDispatches_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(maxDispatchesPerSecond_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, maxDispatchesPerSecond_); - } - if (maxBurstSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxBurstSize_); - } - if (maxConcurrentDispatches_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxConcurrentDispatches_); - } - size += 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.RateLimits)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.RateLimits other = - (com.google.cloud.tasks.v2beta3.RateLimits) obj; - - if (java.lang.Double.doubleToLongBits(getMaxDispatchesPerSecond()) - != java.lang.Double.doubleToLongBits(other.getMaxDispatchesPerSecond())) return false; - if (getMaxBurstSize() != other.getMaxBurstSize()) return false; - if (getMaxConcurrentDispatches() != other.getMaxConcurrentDispatches()) return false; - if (!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) + MAX_DISPATCHES_PER_SECOND_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMaxDispatchesPerSecond())); - hash = (37 * hash) + MAX_BURST_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getMaxBurstSize(); - hash = (37 * hash) + MAX_CONCURRENT_DISPATCHES_FIELD_NUMBER; - hash = (53 * hash) + getMaxConcurrentDispatches(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.RateLimits parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.RateLimits parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.RateLimits parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.RateLimits parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.RateLimits parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.RateLimits parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.RateLimits parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.RateLimits parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.RateLimits parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.RateLimits parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.RateLimits parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.RateLimits parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta3.RateLimits prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Rate limits.
-   * This message determines the maximum rate that tasks can be dispatched by a
-   * queue, regardless of whether the dispatch is a first task attempt or a retry.
-   * Note: The debugging command, [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask], will run a task
-   * even if the queue has reached its [RateLimits][google.cloud.tasks.v2beta3.RateLimits].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.RateLimits} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.RateLimits) - com.google.cloud.tasks.v2beta3.RateLimitsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_RateLimits_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_RateLimits_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.RateLimits.class, - com.google.cloud.tasks.v2beta3.RateLimits.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.RateLimits.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - maxDispatchesPerSecond_ = 0D; - - maxBurstSize_ = 0; - - maxConcurrentDispatches_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_RateLimits_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.RateLimits getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.RateLimits.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.RateLimits build() { - com.google.cloud.tasks.v2beta3.RateLimits result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.RateLimits buildPartial() { - com.google.cloud.tasks.v2beta3.RateLimits result = - new com.google.cloud.tasks.v2beta3.RateLimits(this); - result.maxDispatchesPerSecond_ = maxDispatchesPerSecond_; - result.maxBurstSize_ = maxBurstSize_; - result.maxConcurrentDispatches_ = maxConcurrentDispatches_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.RateLimits) { - return mergeFrom((com.google.cloud.tasks.v2beta3.RateLimits) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.RateLimits other) { - if (other == com.google.cloud.tasks.v2beta3.RateLimits.getDefaultInstance()) return this; - if (other.getMaxDispatchesPerSecond() != 0D) { - setMaxDispatchesPerSecond(other.getMaxDispatchesPerSecond()); - } - if (other.getMaxBurstSize() != 0) { - setMaxBurstSize(other.getMaxBurstSize()); - } - if (other.getMaxConcurrentDispatches() != 0) { - setMaxConcurrentDispatches(other.getMaxConcurrentDispatches()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 9: - { - maxDispatchesPerSecond_ = input.readDouble(); - - break; - } // case 9 - case 16: - { - maxBurstSize_ = input.readInt32(); - - break; - } // case 16 - case 24: - { - maxConcurrentDispatches_ = input.readInt32(); - - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private double maxDispatchesPerSecond_; - /** - * - * - *
-     * The maximum rate at which tasks are dispatched from this queue.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * * For [App Engine queues][google.cloud.tasks.v2beta3.AppEngineHttpQueue], the maximum allowed value
-     *   is 500.
-     * This field has the same meaning as
-     * [rate in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate).
-     * 
- * - * double max_dispatches_per_second = 1; - * - * @return The maxDispatchesPerSecond. - */ - @java.lang.Override - public double getMaxDispatchesPerSecond() { - return maxDispatchesPerSecond_; - } - /** - * - * - *
-     * The maximum rate at which tasks are dispatched from this queue.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * * For [App Engine queues][google.cloud.tasks.v2beta3.AppEngineHttpQueue], the maximum allowed value
-     *   is 500.
-     * This field has the same meaning as
-     * [rate in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate).
-     * 
- * - * double max_dispatches_per_second = 1; - * - * @param value The maxDispatchesPerSecond to set. - * @return This builder for chaining. - */ - public Builder setMaxDispatchesPerSecond(double value) { - - maxDispatchesPerSecond_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum rate at which tasks are dispatched from this queue.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * * For [App Engine queues][google.cloud.tasks.v2beta3.AppEngineHttpQueue], the maximum allowed value
-     *   is 500.
-     * This field has the same meaning as
-     * [rate in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate).
-     * 
- * - * double max_dispatches_per_second = 1; - * - * @return This builder for chaining. - */ - public Builder clearMaxDispatchesPerSecond() { - - maxDispatchesPerSecond_ = 0D; - onChanged(); - return this; - } - - private int maxBurstSize_; - /** - * - * - *
-     * The max burst size.
-     * Max burst size limits how fast tasks in queue are processed when
-     * many tasks are in the queue and the rate is high. This field
-     * allows the queue to have a high rate so processing starts shortly
-     * after a task is enqueued, but still limits resource usage when
-     * many tasks are enqueued in a short period of time.
-     * The [token bucket](https://wikipedia.org/wiki/Token_Bucket)
-     * algorithm is used to control the rate of task dispatches. Each
-     * queue has a token bucket that holds tokens, up to the maximum
-     * specified by `max_burst_size`. Each time a task is dispatched, a
-     * token is removed from the bucket. Tasks will be dispatched until
-     * the queue's bucket runs out of tokens. The bucket will be
-     * continuously refilled with new tokens based on
-     * [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second].
-     * The default value of `max_burst_size` is picked by Cloud Tasks
-     * based on the value of
-     * [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second].
-     * The maximum value of `max_burst_size` is 500.
-     * For App Engine queues that were created or updated using
-     * `queue.yaml/xml`, `max_burst_size` is equal to
-     * [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
-     * If
-     * [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] is called on a queue without
-     * explicitly setting a value for `max_burst_size`,
-     * `max_burst_size` value will get updated if
-     * [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] is updating
-     * [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second].
-     * 
- * - * int32 max_burst_size = 2; - * - * @return The maxBurstSize. - */ - @java.lang.Override - public int getMaxBurstSize() { - return maxBurstSize_; - } - /** - * - * - *
-     * The max burst size.
-     * Max burst size limits how fast tasks in queue are processed when
-     * many tasks are in the queue and the rate is high. This field
-     * allows the queue to have a high rate so processing starts shortly
-     * after a task is enqueued, but still limits resource usage when
-     * many tasks are enqueued in a short period of time.
-     * The [token bucket](https://wikipedia.org/wiki/Token_Bucket)
-     * algorithm is used to control the rate of task dispatches. Each
-     * queue has a token bucket that holds tokens, up to the maximum
-     * specified by `max_burst_size`. Each time a task is dispatched, a
-     * token is removed from the bucket. Tasks will be dispatched until
-     * the queue's bucket runs out of tokens. The bucket will be
-     * continuously refilled with new tokens based on
-     * [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second].
-     * The default value of `max_burst_size` is picked by Cloud Tasks
-     * based on the value of
-     * [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second].
-     * The maximum value of `max_burst_size` is 500.
-     * For App Engine queues that were created or updated using
-     * `queue.yaml/xml`, `max_burst_size` is equal to
-     * [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
-     * If
-     * [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] is called on a queue without
-     * explicitly setting a value for `max_burst_size`,
-     * `max_burst_size` value will get updated if
-     * [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] is updating
-     * [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second].
-     * 
- * - * int32 max_burst_size = 2; - * - * @param value The maxBurstSize to set. - * @return This builder for chaining. - */ - public Builder setMaxBurstSize(int value) { - - maxBurstSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The max burst size.
-     * Max burst size limits how fast tasks in queue are processed when
-     * many tasks are in the queue and the rate is high. This field
-     * allows the queue to have a high rate so processing starts shortly
-     * after a task is enqueued, but still limits resource usage when
-     * many tasks are enqueued in a short period of time.
-     * The [token bucket](https://wikipedia.org/wiki/Token_Bucket)
-     * algorithm is used to control the rate of task dispatches. Each
-     * queue has a token bucket that holds tokens, up to the maximum
-     * specified by `max_burst_size`. Each time a task is dispatched, a
-     * token is removed from the bucket. Tasks will be dispatched until
-     * the queue's bucket runs out of tokens. The bucket will be
-     * continuously refilled with new tokens based on
-     * [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second].
-     * The default value of `max_burst_size` is picked by Cloud Tasks
-     * based on the value of
-     * [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second].
-     * The maximum value of `max_burst_size` is 500.
-     * For App Engine queues that were created or updated using
-     * `queue.yaml/xml`, `max_burst_size` is equal to
-     * [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
-     * If
-     * [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] is called on a queue without
-     * explicitly setting a value for `max_burst_size`,
-     * `max_burst_size` value will get updated if
-     * [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] is updating
-     * [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second].
-     * 
- * - * int32 max_burst_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearMaxBurstSize() { - - maxBurstSize_ = 0; - onChanged(); - return this; - } - - private int maxConcurrentDispatches_; - /** - * - * - *
-     * The maximum number of concurrent tasks that Cloud Tasks allows
-     * to be dispatched for this queue. After this threshold has been
-     * reached, Cloud Tasks stops dispatching tasks until the number of
-     * concurrent requests decreases.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * The maximum allowed value is 5,000.
-     * This field has the same meaning as
-     * [max_concurrent_requests in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests).
-     * 
- * - * int32 max_concurrent_dispatches = 3; - * - * @return The maxConcurrentDispatches. - */ - @java.lang.Override - public int getMaxConcurrentDispatches() { - return maxConcurrentDispatches_; - } - /** - * - * - *
-     * The maximum number of concurrent tasks that Cloud Tasks allows
-     * to be dispatched for this queue. After this threshold has been
-     * reached, Cloud Tasks stops dispatching tasks until the number of
-     * concurrent requests decreases.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * The maximum allowed value is 5,000.
-     * This field has the same meaning as
-     * [max_concurrent_requests in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests).
-     * 
- * - * int32 max_concurrent_dispatches = 3; - * - * @param value The maxConcurrentDispatches to set. - * @return This builder for chaining. - */ - public Builder setMaxConcurrentDispatches(int value) { - - maxConcurrentDispatches_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of concurrent tasks that Cloud Tasks allows
-     * to be dispatched for this queue. After this threshold has been
-     * reached, Cloud Tasks stops dispatching tasks until the number of
-     * concurrent requests decreases.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * The maximum allowed value is 5,000.
-     * This field has the same meaning as
-     * [max_concurrent_requests in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests).
-     * 
- * - * int32 max_concurrent_dispatches = 3; - * - * @return This builder for chaining. - */ - public Builder clearMaxConcurrentDispatches() { - - maxConcurrentDispatches_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.RateLimits) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.RateLimits) - private static final com.google.cloud.tasks.v2beta3.RateLimits DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.RateLimits(); - } - - public static com.google.cloud.tasks.v2beta3.RateLimits getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RateLimits parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.RateLimits getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RateLimitsOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RateLimitsOrBuilder.java deleted file mode 100644 index 98144881..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RateLimitsOrBuilder.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2020 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/queue.proto - -package com.google.cloud.tasks.v2beta3; - -public interface RateLimitsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.RateLimits) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The maximum rate at which tasks are dispatched from this queue.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * * For [App Engine queues][google.cloud.tasks.v2beta3.AppEngineHttpQueue], the maximum allowed value
-   *   is 500.
-   * This field has the same meaning as
-   * [rate in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate).
-   * 
- * - * double max_dispatches_per_second = 1; - * - * @return The maxDispatchesPerSecond. - */ - double getMaxDispatchesPerSecond(); - - /** - * - * - *
-   * The max burst size.
-   * Max burst size limits how fast tasks in queue are processed when
-   * many tasks are in the queue and the rate is high. This field
-   * allows the queue to have a high rate so processing starts shortly
-   * after a task is enqueued, but still limits resource usage when
-   * many tasks are enqueued in a short period of time.
-   * The [token bucket](https://wikipedia.org/wiki/Token_Bucket)
-   * algorithm is used to control the rate of task dispatches. Each
-   * queue has a token bucket that holds tokens, up to the maximum
-   * specified by `max_burst_size`. Each time a task is dispatched, a
-   * token is removed from the bucket. Tasks will be dispatched until
-   * the queue's bucket runs out of tokens. The bucket will be
-   * continuously refilled with new tokens based on
-   * [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second].
-   * The default value of `max_burst_size` is picked by Cloud Tasks
-   * based on the value of
-   * [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second].
-   * The maximum value of `max_burst_size` is 500.
-   * For App Engine queues that were created or updated using
-   * `queue.yaml/xml`, `max_burst_size` is equal to
-   * [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
-   * If
-   * [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] is called on a queue without
-   * explicitly setting a value for `max_burst_size`,
-   * `max_burst_size` value will get updated if
-   * [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] is updating
-   * [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second].
-   * 
- * - * int32 max_burst_size = 2; - * - * @return The maxBurstSize. - */ - int getMaxBurstSize(); - - /** - * - * - *
-   * The maximum number of concurrent tasks that Cloud Tasks allows
-   * to be dispatched for this queue. After this threshold has been
-   * reached, Cloud Tasks stops dispatching tasks until the number of
-   * concurrent requests decreases.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * The maximum allowed value is 5,000.
-   * This field has the same meaning as
-   * [max_concurrent_requests in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests).
-   * 
- * - * int32 max_concurrent_dispatches = 3; - * - * @return The maxConcurrentDispatches. - */ - int getMaxConcurrentDispatches(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequest.java deleted file mode 100644 index 19e944ba..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequest.java +++ /dev/null @@ -1,636 +0,0 @@ -/* - * Copyright 2020 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 [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.ResumeQueueRequest} - */ -public final class ResumeQueueRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.ResumeQueueRequest) - ResumeQueueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResumeQueueRequest.newBuilder() to construct. - private ResumeQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private ResumeQueueRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new ResumeQueueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ResumeQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ResumeQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.ResumeQueueRequest.class, - com.google.cloud.tasks.v2beta3.ResumeQueueRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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.ResumeQueueRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.ResumeQueueRequest other = - (com.google.cloud.tasks.v2beta3.ResumeQueueRequest) obj; - - if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.ResumeQueueRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.ResumeQueueRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ResumeQueueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.ResumeQueueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ResumeQueueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.ResumeQueueRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ResumeQueueRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.ResumeQueueRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ResumeQueueRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.ResumeQueueRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.tasks.v2beta3.ResumeQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.ResumeQueueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.tasks.v2beta3.ResumeQueueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Request message for [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.ResumeQueueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.ResumeQueueRequest) - com.google.cloud.tasks.v2beta3.ResumeQueueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ResumeQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ResumeQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.ResumeQueueRequest.class, - com.google.cloud.tasks.v2beta3.ResumeQueueRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.ResumeQueueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_ResumeQueueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.ResumeQueueRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.ResumeQueueRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.ResumeQueueRequest build() { - com.google.cloud.tasks.v2beta3.ResumeQueueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.ResumeQueueRequest buildPartial() { - com.google.cloud.tasks.v2beta3.ResumeQueueRequest result = - new com.google.cloud.tasks.v2beta3.ResumeQueueRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.ResumeQueueRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta3.ResumeQueueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.ResumeQueueRequest other) { - if (other == com.google.cloud.tasks.v2beta3.ResumeQueueRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The queue name. For example:
-     * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.ResumeQueueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.ResumeQueueRequest) - private static final com.google.cloud.tasks.v2beta3.ResumeQueueRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.ResumeQueueRequest(); - } - - public static com.google.cloud.tasks.v2beta3.ResumeQueueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResumeQueueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.ResumeQueueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequestOrBuilder.java deleted file mode 100644 index 9a447341..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 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; - -public interface ResumeQueueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.ResumeQueueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The queue name. For example:
-   * `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RetryConfig.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RetryConfig.java deleted file mode 100644 index ac210739..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RetryConfig.java +++ /dev/null @@ -1,1913 +0,0 @@ -/* - * Copyright 2020 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/queue.proto - -package com.google.cloud.tasks.v2beta3; - -/** - * - * - *
- * Retry config.
- * These settings determine when a failed task attempt is retried.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.RetryConfig} - */ -public final class RetryConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.RetryConfig) - RetryConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use RetryConfig.newBuilder() to construct. - private RetryConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RetryConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RetryConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_RetryConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_RetryConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.RetryConfig.class, - com.google.cloud.tasks.v2beta3.RetryConfig.Builder.class); - } - - public static final int MAX_ATTEMPTS_FIELD_NUMBER = 1; - private int maxAttempts_; - /** - * - * - *
-   * Number of attempts per task.
-   * Cloud Tasks will attempt the task `max_attempts` times (that is, if the
-   * first attempt fails, then there will be `max_attempts - 1` retries). Must
-   * be >= -1.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * -1 indicates unlimited attempts.
-   * This field has the same meaning as
-   * [task_retry_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * int32 max_attempts = 1; - * - * @return The maxAttempts. - */ - @java.lang.Override - public int getMaxAttempts() { - return maxAttempts_; - } - - public static final int MAX_RETRY_DURATION_FIELD_NUMBER = 2; - private com.google.protobuf.Duration maxRetryDuration_; - /** - * - * - *
-   * If positive, `max_retry_duration` specifies the time limit for
-   * retrying a failed task, measured from when the task was first
-   * attempted. Once `max_retry_duration` time has passed *and* the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts]
-   * times, no further attempts will be made and the task will be
-   * deleted.
-   * If zero, then the task age is unlimited.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_retry_duration` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [task_age_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - * - * @return Whether the maxRetryDuration field is set. - */ - @java.lang.Override - public boolean hasMaxRetryDuration() { - return maxRetryDuration_ != null; - } - /** - * - * - *
-   * If positive, `max_retry_duration` specifies the time limit for
-   * retrying a failed task, measured from when the task was first
-   * attempted. Once `max_retry_duration` time has passed *and* the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts]
-   * times, no further attempts will be made and the task will be
-   * deleted.
-   * If zero, then the task age is unlimited.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_retry_duration` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [task_age_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - * - * @return The maxRetryDuration. - */ - @java.lang.Override - public com.google.protobuf.Duration getMaxRetryDuration() { - return maxRetryDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxRetryDuration_; - } - /** - * - * - *
-   * If positive, `max_retry_duration` specifies the time limit for
-   * retrying a failed task, measured from when the task was first
-   * attempted. Once `max_retry_duration` time has passed *and* the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts]
-   * times, no further attempts will be made and the task will be
-   * deleted.
-   * If zero, then the task age is unlimited.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_retry_duration` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [task_age_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getMaxRetryDurationOrBuilder() { - return getMaxRetryDuration(); - } - - public static final int MIN_BACKOFF_FIELD_NUMBER = 3; - private com.google.protobuf.Duration minBackoff_; - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `min_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [min_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration min_backoff = 3; - * - * @return Whether the minBackoff field is set. - */ - @java.lang.Override - public boolean hasMinBackoff() { - return minBackoff_ != null; - } - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `min_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [min_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration min_backoff = 3; - * - * @return The minBackoff. - */ - @java.lang.Override - public com.google.protobuf.Duration getMinBackoff() { - return minBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() : minBackoff_; - } - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `min_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [min_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration min_backoff = 3; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getMinBackoffOrBuilder() { - return getMinBackoff(); - } - - public static final int MAX_BACKOFF_FIELD_NUMBER = 4; - private com.google.protobuf.Duration maxBackoff_; - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [max_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_backoff = 4; - * - * @return Whether the maxBackoff field is set. - */ - @java.lang.Override - public boolean hasMaxBackoff() { - return maxBackoff_ != null; - } - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [max_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_backoff = 4; - * - * @return The maxBackoff. - */ - @java.lang.Override - public com.google.protobuf.Duration getMaxBackoff() { - return maxBackoff_ == null ? com.google.protobuf.Duration.getDefaultInstance() : maxBackoff_; - } - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [max_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_backoff = 4; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getMaxBackoffOrBuilder() { - return getMaxBackoff(); - } - - public static final int MAX_DOUBLINGS_FIELD_NUMBER = 5; - private int maxDoublings_; - /** - * - * - *
-   * The time between retries will double `max_doublings` times.
-   * A task's retry interval starts at
-   * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff], then doubles
-   * `max_doublings` times, then increases linearly, and finally
-   * retries at intervals of
-   * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] up to
-   * [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts] times.
-   * For example, if [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] is 10s,
-   * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] is 300s, and
-   * `max_doublings` is 3, then the a task will first be retried in
-   * 10s. The retry interval will double three times, and then
-   * increase linearly by 2^3 * 10s.  Finally, the task will retry at
-   * intervals of [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] until the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts]
-   * times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
-   * 240s, 300s, 300s, ....
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field has the same meaning as
-   * [max_doublings in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * int32 max_doublings = 5; - * - * @return The maxDoublings. - */ - @java.lang.Override - public int getMaxDoublings() { - return maxDoublings_; - } - - 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 (maxAttempts_ != 0) { - output.writeInt32(1, maxAttempts_); - } - if (maxRetryDuration_ != null) { - output.writeMessage(2, getMaxRetryDuration()); - } - if (minBackoff_ != null) { - output.writeMessage(3, getMinBackoff()); - } - if (maxBackoff_ != null) { - output.writeMessage(4, getMaxBackoff()); - } - if (maxDoublings_ != 0) { - output.writeInt32(5, maxDoublings_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxAttempts_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, maxAttempts_); - } - if (maxRetryDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxRetryDuration()); - } - if (minBackoff_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMinBackoff()); - } - if (maxBackoff_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMaxBackoff()); - } - if (maxDoublings_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, maxDoublings_); - } - 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.RetryConfig)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.RetryConfig other = - (com.google.cloud.tasks.v2beta3.RetryConfig) obj; - - if (getMaxAttempts() != other.getMaxAttempts()) return false; - if (hasMaxRetryDuration() != other.hasMaxRetryDuration()) return false; - if (hasMaxRetryDuration()) { - if (!getMaxRetryDuration().equals(other.getMaxRetryDuration())) return false; - } - if (hasMinBackoff() != other.hasMinBackoff()) return false; - if (hasMinBackoff()) { - if (!getMinBackoff().equals(other.getMinBackoff())) return false; - } - if (hasMaxBackoff() != other.hasMaxBackoff()) return false; - if (hasMaxBackoff()) { - if (!getMaxBackoff().equals(other.getMaxBackoff())) return false; - } - if (getMaxDoublings() != other.getMaxDoublings()) 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) + MAX_ATTEMPTS_FIELD_NUMBER; - hash = (53 * hash) + getMaxAttempts(); - if (hasMaxRetryDuration()) { - hash = (37 * hash) + MAX_RETRY_DURATION_FIELD_NUMBER; - hash = (53 * hash) + getMaxRetryDuration().hashCode(); - } - if (hasMinBackoff()) { - hash = (37 * hash) + MIN_BACKOFF_FIELD_NUMBER; - hash = (53 * hash) + getMinBackoff().hashCode(); - } - if (hasMaxBackoff()) { - hash = (37 * hash) + MAX_BACKOFF_FIELD_NUMBER; - hash = (53 * hash) + getMaxBackoff().hashCode(); - } - hash = (37 * hash) + MAX_DOUBLINGS_FIELD_NUMBER; - hash = (53 * hash) + getMaxDoublings(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.RetryConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.RetryConfig 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.RetryConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.RetryConfig 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.RetryConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.RetryConfig 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.RetryConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.RetryConfig 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.RetryConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.RetryConfig 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.RetryConfig 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.RetryConfig 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.RetryConfig 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; - } - /** - * - * - *
-   * Retry config.
-   * These settings determine when a failed task attempt is retried.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.RetryConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.RetryConfig) - com.google.cloud.tasks.v2beta3.RetryConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_RetryConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_RetryConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.RetryConfig.class, - com.google.cloud.tasks.v2beta3.RetryConfig.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.RetryConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - maxAttempts_ = 0; - - if (maxRetryDurationBuilder_ == null) { - maxRetryDuration_ = null; - } else { - maxRetryDuration_ = null; - maxRetryDurationBuilder_ = null; - } - if (minBackoffBuilder_ == null) { - minBackoff_ = null; - } else { - minBackoff_ = null; - minBackoffBuilder_ = null; - } - if (maxBackoffBuilder_ == null) { - maxBackoff_ = null; - } else { - maxBackoff_ = null; - maxBackoffBuilder_ = null; - } - maxDoublings_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_RetryConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.RetryConfig getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.RetryConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.RetryConfig build() { - com.google.cloud.tasks.v2beta3.RetryConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.RetryConfig buildPartial() { - com.google.cloud.tasks.v2beta3.RetryConfig result = - new com.google.cloud.tasks.v2beta3.RetryConfig(this); - result.maxAttempts_ = maxAttempts_; - if (maxRetryDurationBuilder_ == null) { - result.maxRetryDuration_ = maxRetryDuration_; - } else { - result.maxRetryDuration_ = maxRetryDurationBuilder_.build(); - } - if (minBackoffBuilder_ == null) { - result.minBackoff_ = minBackoff_; - } else { - result.minBackoff_ = minBackoffBuilder_.build(); - } - if (maxBackoffBuilder_ == null) { - result.maxBackoff_ = maxBackoff_; - } else { - result.maxBackoff_ = maxBackoffBuilder_.build(); - } - result.maxDoublings_ = maxDoublings_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.RetryConfig) { - return mergeFrom((com.google.cloud.tasks.v2beta3.RetryConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.RetryConfig other) { - if (other == com.google.cloud.tasks.v2beta3.RetryConfig.getDefaultInstance()) return this; - if (other.getMaxAttempts() != 0) { - setMaxAttempts(other.getMaxAttempts()); - } - if (other.hasMaxRetryDuration()) { - mergeMaxRetryDuration(other.getMaxRetryDuration()); - } - if (other.hasMinBackoff()) { - mergeMinBackoff(other.getMinBackoff()); - } - if (other.hasMaxBackoff()) { - mergeMaxBackoff(other.getMaxBackoff()); - } - if (other.getMaxDoublings() != 0) { - setMaxDoublings(other.getMaxDoublings()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - maxAttempts_ = input.readInt32(); - - break; - } // case 8 - case 18: - { - input.readMessage( - getMaxRetryDurationFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getMinBackoffFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getMaxBackoffFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 40: - { - maxDoublings_ = input.readInt32(); - - break; - } // case 40 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int maxAttempts_; - /** - * - * - *
-     * Number of attempts per task.
-     * Cloud Tasks will attempt the task `max_attempts` times (that is, if the
-     * first attempt fails, then there will be `max_attempts - 1` retries). Must
-     * be >= -1.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * -1 indicates unlimited attempts.
-     * This field has the same meaning as
-     * [task_retry_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * int32 max_attempts = 1; - * - * @return The maxAttempts. - */ - @java.lang.Override - public int getMaxAttempts() { - return maxAttempts_; - } - /** - * - * - *
-     * Number of attempts per task.
-     * Cloud Tasks will attempt the task `max_attempts` times (that is, if the
-     * first attempt fails, then there will be `max_attempts - 1` retries). Must
-     * be >= -1.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * -1 indicates unlimited attempts.
-     * This field has the same meaning as
-     * [task_retry_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * int32 max_attempts = 1; - * - * @param value The maxAttempts to set. - * @return This builder for chaining. - */ - public Builder setMaxAttempts(int value) { - - maxAttempts_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Number of attempts per task.
-     * Cloud Tasks will attempt the task `max_attempts` times (that is, if the
-     * first attempt fails, then there will be `max_attempts - 1` retries). Must
-     * be >= -1.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * -1 indicates unlimited attempts.
-     * This field has the same meaning as
-     * [task_retry_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * int32 max_attempts = 1; - * - * @return This builder for chaining. - */ - public Builder clearMaxAttempts() { - - maxAttempts_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Duration maxRetryDuration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - maxRetryDurationBuilder_; - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - * - * @return Whether the maxRetryDuration field is set. - */ - public boolean hasMaxRetryDuration() { - return maxRetryDurationBuilder_ != null || maxRetryDuration_ != null; - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - * - * @return The maxRetryDuration. - */ - public com.google.protobuf.Duration getMaxRetryDuration() { - if (maxRetryDurationBuilder_ == null) { - return maxRetryDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxRetryDuration_; - } else { - return maxRetryDurationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - */ - public Builder setMaxRetryDuration(com.google.protobuf.Duration value) { - if (maxRetryDurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maxRetryDuration_ = value; - onChanged(); - } else { - maxRetryDurationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - */ - public Builder setMaxRetryDuration(com.google.protobuf.Duration.Builder builderForValue) { - if (maxRetryDurationBuilder_ == null) { - maxRetryDuration_ = builderForValue.build(); - onChanged(); - } else { - maxRetryDurationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - */ - public Builder mergeMaxRetryDuration(com.google.protobuf.Duration value) { - if (maxRetryDurationBuilder_ == null) { - if (maxRetryDuration_ != null) { - maxRetryDuration_ = - com.google.protobuf.Duration.newBuilder(maxRetryDuration_) - .mergeFrom(value) - .buildPartial(); - } else { - maxRetryDuration_ = value; - } - onChanged(); - } else { - maxRetryDurationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - */ - public Builder clearMaxRetryDuration() { - if (maxRetryDurationBuilder_ == null) { - maxRetryDuration_ = null; - onChanged(); - } else { - maxRetryDuration_ = null; - maxRetryDurationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - */ - public com.google.protobuf.Duration.Builder getMaxRetryDurationBuilder() { - - onChanged(); - return getMaxRetryDurationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - */ - public com.google.protobuf.DurationOrBuilder getMaxRetryDurationOrBuilder() { - if (maxRetryDurationBuilder_ != null) { - return maxRetryDurationBuilder_.getMessageOrBuilder(); - } else { - return maxRetryDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxRetryDuration_; - } - } - /** - * - * - *
-     * If positive, `max_retry_duration` specifies the time limit for
-     * retrying a failed task, measured from when the task was first
-     * attempted. Once `max_retry_duration` time has passed *and* the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts]
-     * times, no further attempts will be made and the task will be
-     * deleted.
-     * If zero, then the task age is unlimited.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_retry_duration` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [task_age_limit in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getMaxRetryDurationFieldBuilder() { - if (maxRetryDurationBuilder_ == null) { - maxRetryDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMaxRetryDuration(), getParentForChildren(), isClean()); - maxRetryDuration_ = null; - } - return maxRetryDurationBuilder_; - } - - private com.google.protobuf.Duration minBackoff_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - minBackoffBuilder_; - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 3; - * - * @return Whether the minBackoff field is set. - */ - public boolean hasMinBackoff() { - return minBackoffBuilder_ != null || minBackoff_ != null; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 3; - * - * @return The minBackoff. - */ - public com.google.protobuf.Duration getMinBackoff() { - if (minBackoffBuilder_ == null) { - return minBackoff_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minBackoff_; - } else { - return minBackoffBuilder_.getMessage(); - } - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 3; - */ - public Builder setMinBackoff(com.google.protobuf.Duration value) { - if (minBackoffBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - minBackoff_ = value; - onChanged(); - } else { - minBackoffBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 3; - */ - public Builder setMinBackoff(com.google.protobuf.Duration.Builder builderForValue) { - if (minBackoffBuilder_ == null) { - minBackoff_ = builderForValue.build(); - onChanged(); - } else { - minBackoffBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 3; - */ - public Builder mergeMinBackoff(com.google.protobuf.Duration value) { - if (minBackoffBuilder_ == null) { - if (minBackoff_ != null) { - minBackoff_ = - com.google.protobuf.Duration.newBuilder(minBackoff_).mergeFrom(value).buildPartial(); - } else { - minBackoff_ = value; - } - onChanged(); - } else { - minBackoffBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 3; - */ - public Builder clearMinBackoff() { - if (minBackoffBuilder_ == null) { - minBackoff_ = null; - onChanged(); - } else { - minBackoff_ = null; - minBackoffBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 3; - */ - public com.google.protobuf.Duration.Builder getMinBackoffBuilder() { - - onChanged(); - return getMinBackoffFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 3; - */ - public com.google.protobuf.DurationOrBuilder getMinBackoffOrBuilder() { - if (minBackoffBuilder_ != null) { - return minBackoffBuilder_.getMessageOrBuilder(); - } else { - return minBackoff_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : minBackoff_; - } - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `min_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [min_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration min_backoff = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getMinBackoffFieldBuilder() { - if (minBackoffBuilder_ == null) { - minBackoffBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMinBackoff(), getParentForChildren(), isClean()); - minBackoff_ = null; - } - return minBackoffBuilder_; - } - - private com.google.protobuf.Duration maxBackoff_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - maxBackoffBuilder_; - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 4; - * - * @return Whether the maxBackoff field is set. - */ - public boolean hasMaxBackoff() { - return maxBackoffBuilder_ != null || maxBackoff_ != null; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 4; - * - * @return The maxBackoff. - */ - public com.google.protobuf.Duration getMaxBackoff() { - if (maxBackoffBuilder_ == null) { - return maxBackoff_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxBackoff_; - } else { - return maxBackoffBuilder_.getMessage(); - } - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 4; - */ - public Builder setMaxBackoff(com.google.protobuf.Duration value) { - if (maxBackoffBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - maxBackoff_ = value; - onChanged(); - } else { - maxBackoffBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 4; - */ - public Builder setMaxBackoff(com.google.protobuf.Duration.Builder builderForValue) { - if (maxBackoffBuilder_ == null) { - maxBackoff_ = builderForValue.build(); - onChanged(); - } else { - maxBackoffBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 4; - */ - public Builder mergeMaxBackoff(com.google.protobuf.Duration value) { - if (maxBackoffBuilder_ == null) { - if (maxBackoff_ != null) { - maxBackoff_ = - com.google.protobuf.Duration.newBuilder(maxBackoff_).mergeFrom(value).buildPartial(); - } else { - maxBackoff_ = value; - } - onChanged(); - } else { - maxBackoffBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 4; - */ - public Builder clearMaxBackoff() { - if (maxBackoffBuilder_ == null) { - maxBackoff_ = null; - onChanged(); - } else { - maxBackoff_ = null; - maxBackoffBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 4; - */ - public com.google.protobuf.Duration.Builder getMaxBackoffBuilder() { - - onChanged(); - return getMaxBackoffFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 4; - */ - public com.google.protobuf.DurationOrBuilder getMaxBackoffOrBuilder() { - if (maxBackoffBuilder_ != null) { - return maxBackoffBuilder_.getMessageOrBuilder(); - } else { - return maxBackoff_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : maxBackoff_; - } - } - /** - * - * - *
-     * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-     * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-     * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-     * retried.
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * `max_backoff` will be truncated to the nearest second.
-     * This field has the same meaning as
-     * [max_backoff_seconds in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * .google.protobuf.Duration max_backoff = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getMaxBackoffFieldBuilder() { - if (maxBackoffBuilder_ == null) { - maxBackoffBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getMaxBackoff(), getParentForChildren(), isClean()); - maxBackoff_ = null; - } - return maxBackoffBuilder_; - } - - private int maxDoublings_; - /** - * - * - *
-     * The time between retries will double `max_doublings` times.
-     * A task's retry interval starts at
-     * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff], then doubles
-     * `max_doublings` times, then increases linearly, and finally
-     * retries at intervals of
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] up to
-     * [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts] times.
-     * For example, if [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] is 10s,
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] is 300s, and
-     * `max_doublings` is 3, then the a task will first be retried in
-     * 10s. The retry interval will double three times, and then
-     * increase linearly by 2^3 * 10s.  Finally, the task will retry at
-     * intervals of [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] until the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts]
-     * times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
-     * 240s, 300s, 300s, ....
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field has the same meaning as
-     * [max_doublings in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * int32 max_doublings = 5; - * - * @return The maxDoublings. - */ - @java.lang.Override - public int getMaxDoublings() { - return maxDoublings_; - } - /** - * - * - *
-     * The time between retries will double `max_doublings` times.
-     * A task's retry interval starts at
-     * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff], then doubles
-     * `max_doublings` times, then increases linearly, and finally
-     * retries at intervals of
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] up to
-     * [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts] times.
-     * For example, if [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] is 10s,
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] is 300s, and
-     * `max_doublings` is 3, then the a task will first be retried in
-     * 10s. The retry interval will double three times, and then
-     * increase linearly by 2^3 * 10s.  Finally, the task will retry at
-     * intervals of [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] until the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts]
-     * times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
-     * 240s, 300s, 300s, ....
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field has the same meaning as
-     * [max_doublings in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * int32 max_doublings = 5; - * - * @param value The maxDoublings to set. - * @return This builder for chaining. - */ - public Builder setMaxDoublings(int value) { - - maxDoublings_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The time between retries will double `max_doublings` times.
-     * A task's retry interval starts at
-     * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff], then doubles
-     * `max_doublings` times, then increases linearly, and finally
-     * retries at intervals of
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] up to
-     * [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts] times.
-     * For example, if [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] is 10s,
-     * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] is 300s, and
-     * `max_doublings` is 3, then the a task will first be retried in
-     * 10s. The retry interval will double three times, and then
-     * increase linearly by 2^3 * 10s.  Finally, the task will retry at
-     * intervals of [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] until the
-     * task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts]
-     * times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
-     * 240s, 300s, 300s, ....
-     * If unspecified when the queue is created, Cloud Tasks will pick the
-     * default.
-     * This field has the same meaning as
-     * [max_doublings in
-     * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-     * 
- * - * int32 max_doublings = 5; - * - * @return This builder for chaining. - */ - public Builder clearMaxDoublings() { - - maxDoublings_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.RetryConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.RetryConfig) - private static final com.google.cloud.tasks.v2beta3.RetryConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.RetryConfig(); - } - - public static com.google.cloud.tasks.v2beta3.RetryConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetryConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.RetryConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RetryConfigOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RetryConfigOrBuilder.java deleted file mode 100644 index 29a36745..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RetryConfigOrBuilder.java +++ /dev/null @@ -1,281 +0,0 @@ -/* - * Copyright 2020 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/queue.proto - -package com.google.cloud.tasks.v2beta3; - -public interface RetryConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.RetryConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Number of attempts per task.
-   * Cloud Tasks will attempt the task `max_attempts` times (that is, if the
-   * first attempt fails, then there will be `max_attempts - 1` retries). Must
-   * be >= -1.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * -1 indicates unlimited attempts.
-   * This field has the same meaning as
-   * [task_retry_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * int32 max_attempts = 1; - * - * @return The maxAttempts. - */ - int getMaxAttempts(); - - /** - * - * - *
-   * If positive, `max_retry_duration` specifies the time limit for
-   * retrying a failed task, measured from when the task was first
-   * attempted. Once `max_retry_duration` time has passed *and* the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts]
-   * times, no further attempts will be made and the task will be
-   * deleted.
-   * If zero, then the task age is unlimited.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_retry_duration` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [task_age_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - * - * @return Whether the maxRetryDuration field is set. - */ - boolean hasMaxRetryDuration(); - /** - * - * - *
-   * If positive, `max_retry_duration` specifies the time limit for
-   * retrying a failed task, measured from when the task was first
-   * attempted. Once `max_retry_duration` time has passed *and* the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts]
-   * times, no further attempts will be made and the task will be
-   * deleted.
-   * If zero, then the task age is unlimited.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_retry_duration` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [task_age_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - * - * @return The maxRetryDuration. - */ - com.google.protobuf.Duration getMaxRetryDuration(); - /** - * - * - *
-   * If positive, `max_retry_duration` specifies the time limit for
-   * retrying a failed task, measured from when the task was first
-   * attempted. Once `max_retry_duration` time has passed *and* the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts]
-   * times, no further attempts will be made and the task will be
-   * deleted.
-   * If zero, then the task age is unlimited.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_retry_duration` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [task_age_limit in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_retry_duration = 2; - */ - com.google.protobuf.DurationOrBuilder getMaxRetryDurationOrBuilder(); - - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `min_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [min_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration min_backoff = 3; - * - * @return Whether the minBackoff field is set. - */ - boolean hasMinBackoff(); - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `min_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [min_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration min_backoff = 3; - * - * @return The minBackoff. - */ - com.google.protobuf.Duration getMinBackoff(); - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `min_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [min_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration min_backoff = 3; - */ - com.google.protobuf.DurationOrBuilder getMinBackoffOrBuilder(); - - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [max_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_backoff = 4; - * - * @return Whether the maxBackoff field is set. - */ - boolean hasMaxBackoff(); - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [max_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_backoff = 4; - * - * @return The maxBackoff. - */ - com.google.protobuf.Duration getMaxBackoff(); - /** - * - * - *
-   * A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between
-   * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and
-   * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails,
-   * if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be
-   * retried.
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * `max_backoff` will be truncated to the nearest second.
-   * This field has the same meaning as
-   * [max_backoff_seconds in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * .google.protobuf.Duration max_backoff = 4; - */ - com.google.protobuf.DurationOrBuilder getMaxBackoffOrBuilder(); - - /** - * - * - *
-   * The time between retries will double `max_doublings` times.
-   * A task's retry interval starts at
-   * [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff], then doubles
-   * `max_doublings` times, then increases linearly, and finally
-   * retries at intervals of
-   * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] up to
-   * [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts] times.
-   * For example, if [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] is 10s,
-   * [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] is 300s, and
-   * `max_doublings` is 3, then the a task will first be retried in
-   * 10s. The retry interval will double three times, and then
-   * increase linearly by 2^3 * 10s.  Finally, the task will retry at
-   * intervals of [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] until the
-   * task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts]
-   * times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s,
-   * 240s, 300s, 300s, ....
-   * If unspecified when the queue is created, Cloud Tasks will pick the
-   * default.
-   * This field has the same meaning as
-   * [max_doublings in
-   * queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
-   * 
- * - * int32 max_doublings = 5; - * - * @return The maxDoublings. - */ - int getMaxDoublings(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequest.java deleted file mode 100644 index b653c1d8..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequest.java +++ /dev/null @@ -1,849 +0,0 @@ -/* - * Copyright 2020 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 forcing a task to run now using
- * [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.RunTaskRequest} - */ -public final class RunTaskRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.RunTaskRequest) - RunTaskRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RunTaskRequest.newBuilder() to construct. - private RunTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RunTaskRequest() { - name_ = ""; - responseView_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RunTaskRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_RunTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_RunTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.RunTaskRequest.class, - com.google.cloud.tasks.v2beta3.RunTaskRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESPONSE_VIEW_FIELD_NUMBER = 2; - private int responseView_; - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta3.Task.View result = - com.google.cloud.tasks.v2beta3.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta3.Task.View.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (responseView_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { - output.writeEnum(2, responseView_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (responseView_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, responseView_); - } - 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.RunTaskRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.RunTaskRequest other = - (com.google.cloud.tasks.v2beta3.RunTaskRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (responseView_ != other.responseView_) 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + RESPONSE_VIEW_FIELD_NUMBER; - hash = (53 * hash) + responseView_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.RunTaskRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.RunTaskRequest 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.RunTaskRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.RunTaskRequest 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.RunTaskRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.RunTaskRequest 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.RunTaskRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.RunTaskRequest 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.RunTaskRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.RunTaskRequest 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.RunTaskRequest 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.RunTaskRequest 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.RunTaskRequest 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 forcing a task to run now using
-   * [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.RunTaskRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.RunTaskRequest) - com.google.cloud.tasks.v2beta3.RunTaskRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_RunTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_RunTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.RunTaskRequest.class, - com.google.cloud.tasks.v2beta3.RunTaskRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.RunTaskRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - responseView_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_RunTaskRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.RunTaskRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.RunTaskRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.RunTaskRequest build() { - com.google.cloud.tasks.v2beta3.RunTaskRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.RunTaskRequest buildPartial() { - com.google.cloud.tasks.v2beta3.RunTaskRequest result = - new com.google.cloud.tasks.v2beta3.RunTaskRequest(this); - result.name_ = name_; - result.responseView_ = responseView_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.RunTaskRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta3.RunTaskRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.RunTaskRequest other) { - if (other == com.google.cloud.tasks.v2beta3.RunTaskRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.responseView_ != 0) { - setResponseViewValue(other.getResponseViewValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - responseView_ = input.readEnum(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The task name. For example:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int responseView_ = 0; - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - @java.lang.Override - public int getResponseViewValue() { - return responseView_; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @param value The enum numeric value on the wire for responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseViewValue(int value) { - - responseView_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @return The responseView. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Task.View getResponseView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta3.Task.View result = - com.google.cloud.tasks.v2beta3.Task.View.valueOf(responseView_); - return result == null ? com.google.cloud.tasks.v2beta3.Task.View.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @param value The responseView to set. - * @return This builder for chaining. - */ - public Builder setResponseView(com.google.cloud.tasks.v2beta3.Task.View value) { - if (value == null) { - throw new NullPointerException(); - } - - responseView_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-     * returned.
-     * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-     * information is retrieved by default because some data, such as
-     * payloads, might be desirable to return only when needed because
-     * of its large size or because of the sensitivity of data that it
-     * contains.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @return This builder for chaining. - */ - public Builder clearResponseView() { - - responseView_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.RunTaskRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.RunTaskRequest) - private static final com.google.cloud.tasks.v2beta3.RunTaskRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.RunTaskRequest(); - } - - public static com.google.cloud.tasks.v2beta3.RunTaskRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunTaskRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.RunTaskRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequestOrBuilder.java deleted file mode 100644 index 1bb6a94d..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequestOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2020 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; - -public interface RunTaskRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.RunTaskRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The task name. For example:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @return The enum numeric value on the wire for responseView. - */ - int getResponseViewValue(); - /** - * - * - *
-   * The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be
-   * returned.
-   * By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-   * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-   * permission on the [Task][google.cloud.tasks.v2beta3.Task] resource.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task.View response_view = 2; - * - * @return The responseView. - */ - com.google.cloud.tasks.v2beta3.Task.View getResponseView(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/StackdriverLoggingConfig.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/StackdriverLoggingConfig.java deleted file mode 100644 index ee8ec2cf..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/StackdriverLoggingConfig.java +++ /dev/null @@ -1,546 +0,0 @@ -/* - * Copyright 2020 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/queue.proto - -package com.google.cloud.tasks.v2beta3; - -/** - * - * - *
- * Configuration options for writing logs to
- * [Stackdriver Logging](https://cloud.google.com/logging/docs/).
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.StackdriverLoggingConfig} - */ -public final class StackdriverLoggingConfig extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.StackdriverLoggingConfig) - StackdriverLoggingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use StackdriverLoggingConfig.newBuilder() to construct. - private StackdriverLoggingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private StackdriverLoggingConfig() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new StackdriverLoggingConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_StackdriverLoggingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_StackdriverLoggingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig.class, - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig.Builder.class); - } - - public static final int SAMPLING_RATIO_FIELD_NUMBER = 1; - private double samplingRatio_; - /** - * - * - *
-   * Specifies the fraction of operations to write to
-   * [Stackdriver Logging](https://cloud.google.com/logging/docs/).
-   * This field may contain any value between 0.0 and 1.0, inclusive.
-   * 0.0 is the default and means that no operations are logged.
-   * 
- * - * double sampling_ratio = 1; - * - * @return The samplingRatio. - */ - @java.lang.Override - public double getSamplingRatio() { - return samplingRatio_; - } - - 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 (java.lang.Double.doubleToRawLongBits(samplingRatio_) != 0) { - output.writeDouble(1, samplingRatio_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Double.doubleToRawLongBits(samplingRatio_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, samplingRatio_); - } - 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.StackdriverLoggingConfig)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig other = - (com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig) obj; - - if (java.lang.Double.doubleToLongBits(getSamplingRatio()) - != java.lang.Double.doubleToLongBits(other.getSamplingRatio())) 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) + SAMPLING_RATIO_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getSamplingRatio())); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig 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.StackdriverLoggingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig 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.StackdriverLoggingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig 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.StackdriverLoggingConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig 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.StackdriverLoggingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig 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.StackdriverLoggingConfig 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.StackdriverLoggingConfig 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.StackdriverLoggingConfig 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; - } - /** - * - * - *
-   * Configuration options for writing logs to
-   * [Stackdriver Logging](https://cloud.google.com/logging/docs/).
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.StackdriverLoggingConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.StackdriverLoggingConfig) - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_StackdriverLoggingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_StackdriverLoggingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig.class, - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - samplingRatio_ = 0D; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.QueueProto - .internal_static_google_cloud_tasks_v2beta3_StackdriverLoggingConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig build() { - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig buildPartial() { - com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig result = - new com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig(this); - result.samplingRatio_ = samplingRatio_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig) { - return mergeFrom((com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig other) { - if (other == com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig.getDefaultInstance()) - return this; - if (other.getSamplingRatio() != 0D) { - setSamplingRatio(other.getSamplingRatio()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 9: - { - samplingRatio_ = input.readDouble(); - - break; - } // case 9 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private double samplingRatio_; - /** - * - * - *
-     * Specifies the fraction of operations to write to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/).
-     * This field may contain any value between 0.0 and 1.0, inclusive.
-     * 0.0 is the default and means that no operations are logged.
-     * 
- * - * double sampling_ratio = 1; - * - * @return The samplingRatio. - */ - @java.lang.Override - public double getSamplingRatio() { - return samplingRatio_; - } - /** - * - * - *
-     * Specifies the fraction of operations to write to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/).
-     * This field may contain any value between 0.0 and 1.0, inclusive.
-     * 0.0 is the default and means that no operations are logged.
-     * 
- * - * double sampling_ratio = 1; - * - * @param value The samplingRatio to set. - * @return This builder for chaining. - */ - public Builder setSamplingRatio(double value) { - - samplingRatio_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies the fraction of operations to write to
-     * [Stackdriver Logging](https://cloud.google.com/logging/docs/).
-     * This field may contain any value between 0.0 and 1.0, inclusive.
-     * 0.0 is the default and means that no operations are logged.
-     * 
- * - * double sampling_ratio = 1; - * - * @return This builder for chaining. - */ - public Builder clearSamplingRatio() { - - samplingRatio_ = 0D; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.StackdriverLoggingConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.StackdriverLoggingConfig) - private static final com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig(); - } - - public static com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StackdriverLoggingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.StackdriverLoggingConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/StackdriverLoggingConfigOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/StackdriverLoggingConfigOrBuilder.java deleted file mode 100644 index ed2107ed..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/StackdriverLoggingConfigOrBuilder.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2020 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/queue.proto - -package com.google.cloud.tasks.v2beta3; - -public interface StackdriverLoggingConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.StackdriverLoggingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Specifies the fraction of operations to write to
-   * [Stackdriver Logging](https://cloud.google.com/logging/docs/).
-   * This field may contain any value between 0.0 and 1.0, inclusive.
-   * 0.0 is the default and means that no operations are logged.
-   * 
- * - * double sampling_ratio = 1; - * - * @return The samplingRatio. - */ - double getSamplingRatio(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TargetProto.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TargetProto.java deleted file mode 100644 index 279f80b8..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TargetProto.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Copyright 2020 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/target.proto - -package com.google.cloud.tasks.v2beta3; - -public final class TargetProto { - private TargetProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_PullMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_PullMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_HttpRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_HttpRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_HttpRequest_HeadersEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_HttpRequest_HeadersEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_AppEngineHttpQueue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_AppEngineHttpQueue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_AppEngineHttpRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_AppEngineHttpRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_AppEngineHttpRequest_HeadersEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_AppEngineHttpRequest_HeadersEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_AppEngineRouting_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_AppEngineRouting_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_OAuthToken_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_OAuthToken_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_OidcToken_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_OidcToken_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n\'google/cloud/tasks/v2beta3/target.prot" - + "o\022\032google.cloud.tasks.v2beta3\"+\n\013PullMes" - + "sage\022\017\n\007payload\030\001 \001(\014\022\013\n\003tag\030\002 \001(\t\"\360\002\n\013H" - + "ttpRequest\022\013\n\003url\030\001 \001(\t\022;\n\013http_method\030\002" - + " \001(\0162&.google.cloud.tasks.v2beta3.HttpMe" - + "thod\022E\n\007headers\030\003 \003(\01324.google.cloud.tas" - + "ks.v2beta3.HttpRequest.HeadersEntry\022\014\n\004b" - + "ody\030\004 \001(\014\022=\n\013oauth_token\030\005 \001(\0132&.google." - + "cloud.tasks.v2beta3.OAuthTokenH\000\022;\n\noidc" - + "_token\030\006 \001(\0132%.google.cloud.tasks.v2beta" - + "3.OidcTokenH\000\032.\n\014HeadersEntry\022\013\n\003key\030\001 \001" - + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\026\n\024authorization_h" - + "eader\"g\n\022AppEngineHttpQueue\022Q\n\033app_engin" - + "e_routing_override\030\001 \001(\0132,.google.cloud." - + "tasks.v2beta3.AppEngineRouting\"\301\002\n\024AppEn" - + "gineHttpRequest\022;\n\013http_method\030\001 \001(\0162&.g" - + "oogle.cloud.tasks.v2beta3.HttpMethod\022H\n\022" - + "app_engine_routing\030\002 \001(\0132,.google.cloud." - + "tasks.v2beta3.AppEngineRouting\022\024\n\014relati" - + "ve_uri\030\003 \001(\t\022N\n\007headers\030\004 \003(\0132=.google.c" - + "loud.tasks.v2beta3.AppEngineHttpRequest." - + "HeadersEntry\022\014\n\004body\030\005 \001(\014\032.\n\014HeadersEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"T\n\020Ap" - + "pEngineRouting\022\017\n\007service\030\001 \001(\t\022\017\n\007versi" - + "on\030\002 \001(\t\022\020\n\010instance\030\003 \001(\t\022\014\n\004host\030\004 \001(\t" - + "\":\n\nOAuthToken\022\035\n\025service_account_email\030" - + "\001 \001(\t\022\r\n\005scope\030\002 \001(\t\"<\n\tOidcToken\022\035\n\025ser" - + "vice_account_email\030\001 \001(\t\022\020\n\010audience\030\002 \001" - + "(\t*s\n\nHttpMethod\022\033\n\027HTTP_METHOD_UNSPECIF" - + "IED\020\000\022\010\n\004POST\020\001\022\007\n\003GET\020\002\022\010\n\004HEAD\020\003\022\007\n\003PU" - + "T\020\004\022\n\n\006DELETE\020\005\022\t\n\005PATCH\020\006\022\013\n\007OPTIONS\020\007B" - + "p\n\036com.google.cloud.tasks.v2beta3B\013Targe" - + "tProtoP\001Z?google.golang.org/genproto/goo" - + "gleapis/cloud/tasks/v2beta3;tasksb\006proto" - + "3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_tasks_v2beta3_PullMessage_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_tasks_v2beta3_PullMessage_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_PullMessage_descriptor, - new java.lang.String[] { - "Payload", "Tag", - }); - internal_static_google_cloud_tasks_v2beta3_HttpRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_tasks_v2beta3_HttpRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_HttpRequest_descriptor, - new java.lang.String[] { - "Url", - "HttpMethod", - "Headers", - "Body", - "OauthToken", - "OidcToken", - "AuthorizationHeader", - }); - internal_static_google_cloud_tasks_v2beta3_HttpRequest_HeadersEntry_descriptor = - internal_static_google_cloud_tasks_v2beta3_HttpRequest_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_tasks_v2beta3_HttpRequest_HeadersEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_HttpRequest_HeadersEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_tasks_v2beta3_AppEngineHttpQueue_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_tasks_v2beta3_AppEngineHttpQueue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_AppEngineHttpQueue_descriptor, - new java.lang.String[] { - "AppEngineRoutingOverride", - }); - internal_static_google_cloud_tasks_v2beta3_AppEngineHttpRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_tasks_v2beta3_AppEngineHttpRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_AppEngineHttpRequest_descriptor, - new java.lang.String[] { - "HttpMethod", "AppEngineRouting", "RelativeUri", "Headers", "Body", - }); - internal_static_google_cloud_tasks_v2beta3_AppEngineHttpRequest_HeadersEntry_descriptor = - internal_static_google_cloud_tasks_v2beta3_AppEngineHttpRequest_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_tasks_v2beta3_AppEngineHttpRequest_HeadersEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_AppEngineHttpRequest_HeadersEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_tasks_v2beta3_AppEngineRouting_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_tasks_v2beta3_AppEngineRouting_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_AppEngineRouting_descriptor, - new java.lang.String[] { - "Service", "Version", "Instance", "Host", - }); - internal_static_google_cloud_tasks_v2beta3_OAuthToken_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_tasks_v2beta3_OAuthToken_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_OAuthToken_descriptor, - new java.lang.String[] { - "ServiceAccountEmail", "Scope", - }); - internal_static_google_cloud_tasks_v2beta3_OidcToken_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_tasks_v2beta3_OidcToken_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_OidcToken_descriptor, - new java.lang.String[] { - "ServiceAccountEmail", "Audience", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Task.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Task.java deleted file mode 100644 index 93575b62..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Task.java +++ /dev/null @@ -1,4017 +0,0 @@ -/* - * Copyright 2020 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/task.proto - -package com.google.cloud.tasks.v2beta3; - -/** - * - * - *
- * A unit of scheduled work.
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.Task} - */ -public final class Task extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.Task) - TaskOrBuilder { - private static final long serialVersionUID = 0L; - // Use Task.newBuilder() to construct. - private Task(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Task() { - name_ = ""; - view_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Task(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.TaskProto - .internal_static_google_cloud_tasks_v2beta3_Task_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.TaskProto - .internal_static_google_cloud_tasks_v2beta3_Task_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.Task.class, - com.google.cloud.tasks.v2beta3.Task.Builder.class); - } - - /** - * - * - *
-   * The view specifies a subset of [Task][google.cloud.tasks.v2beta3.Task] data.
-   * When a task is returned in a response, not all
-   * information is retrieved by default because some data, such as
-   * payloads, might be desirable to return only when needed because
-   * of its large size or because of the sensitivity of data that it
-   * contains.
-   * 
- * - * Protobuf enum {@code google.cloud.tasks.v2beta3.Task.View} - */ - public enum View implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unspecified. Defaults to BASIC.
-     * 
- * - * VIEW_UNSPECIFIED = 0; - */ - VIEW_UNSPECIFIED(0), - /** - * - * - *
-     * The basic view omits fields which can be large or can contain
-     * sensitive data.
-     * This view does not include the
-     * [body in AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body].
-     * Bodies are desirable to return only when needed, because they
-     * can be large and because of the sensitivity of the data that you
-     * choose to store in it.
-     * 
- * - * BASIC = 1; - */ - BASIC(1), - /** - * - * - *
-     * All information is returned.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Queue][google.cloud.tasks.v2beta3.Queue] resource.
-     * 
- * - * FULL = 2; - */ - FULL(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Unspecified. Defaults to BASIC.
-     * 
- * - * VIEW_UNSPECIFIED = 0; - */ - public static final int VIEW_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * The basic view omits fields which can be large or can contain
-     * sensitive data.
-     * This view does not include the
-     * [body in AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body].
-     * Bodies are desirable to return only when needed, because they
-     * can be large and because of the sensitivity of the data that you
-     * choose to store in it.
-     * 
- * - * BASIC = 1; - */ - public static final int BASIC_VALUE = 1; - /** - * - * - *
-     * All information is returned.
-     * Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires
-     * `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
-     * permission on the [Queue][google.cloud.tasks.v2beta3.Queue] resource.
-     * 
- * - * FULL = 2; - */ - public static final int FULL_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static View valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static View forNumber(int value) { - switch (value) { - case 0: - return VIEW_UNSPECIFIED; - case 1: - return BASIC; - case 2: - return FULL; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public View findValueByNumber(int number) { - return View.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.Task.getDescriptor().getEnumTypes().get(0); - } - - private static final View[] VALUES = values(); - - public static View valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private View(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.tasks.v2beta3.Task.View) - } - - private int payloadTypeCase_ = 0; - private java.lang.Object payloadType_; - - public enum PayloadTypeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - APP_ENGINE_HTTP_REQUEST(3), - HTTP_REQUEST(11), - PULL_MESSAGE(13), - PAYLOADTYPE_NOT_SET(0); - private final int value; - - private PayloadTypeCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PayloadTypeCase valueOf(int value) { - return forNumber(value); - } - - public static PayloadTypeCase forNumber(int value) { - switch (value) { - case 3: - return APP_ENGINE_HTTP_REQUEST; - case 11: - return HTTP_REQUEST; - case 13: - return PULL_MESSAGE; - case 0: - return PAYLOADTYPE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public PayloadTypeCase getPayloadTypeCase() { - return PayloadTypeCase.forNumber(payloadTypeCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * The task name.
-   * The task name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the task's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-   *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * The task name.
-   * The task name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the task's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-   *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int APP_ENGINE_HTTP_REQUEST_FIELD_NUMBER = 3; - /** - * - * - *
-   * HTTP request that is sent to the App Engine app handler.
-   * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3; - * - * @return Whether the appEngineHttpRequest field is set. - */ - @java.lang.Override - public boolean hasAppEngineHttpRequest() { - return payloadTypeCase_ == 3; - } - /** - * - * - *
-   * HTTP request that is sent to the App Engine app handler.
-   * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3; - * - * @return The appEngineHttpRequest. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineHttpRequest getAppEngineHttpRequest() { - if (payloadTypeCase_ == 3) { - return (com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) payloadType_; - } - return com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.getDefaultInstance(); - } - /** - * - * - *
-   * HTTP request that is sent to the App Engine app handler.
-   * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineHttpRequestOrBuilder - getAppEngineHttpRequestOrBuilder() { - if (payloadTypeCase_ == 3) { - return (com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) payloadType_; - } - return com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.getDefaultInstance(); - } - - public static final int HTTP_REQUEST_FIELD_NUMBER = 11; - /** - * - * - *
-   * HTTP request that is sent to the task's target.
-   * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2beta3.HttpRequest http_request = 11; - * - * @return Whether the httpRequest field is set. - */ - @java.lang.Override - public boolean hasHttpRequest() { - return payloadTypeCase_ == 11; - } - /** - * - * - *
-   * HTTP request that is sent to the task's target.
-   * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2beta3.HttpRequest http_request = 11; - * - * @return The httpRequest. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.HttpRequest getHttpRequest() { - if (payloadTypeCase_ == 11) { - return (com.google.cloud.tasks.v2beta3.HttpRequest) payloadType_; - } - return com.google.cloud.tasks.v2beta3.HttpRequest.getDefaultInstance(); - } - /** - * - * - *
-   * HTTP request that is sent to the task's target.
-   * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2beta3.HttpRequest http_request = 11; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.HttpRequestOrBuilder getHttpRequestOrBuilder() { - if (payloadTypeCase_ == 11) { - return (com.google.cloud.tasks.v2beta3.HttpRequest) payloadType_; - } - return com.google.cloud.tasks.v2beta3.HttpRequest.getDefaultInstance(); - } - - public static final int PULL_MESSAGE_FIELD_NUMBER = 13; - /** - * - * - *
-   * Pull Message contained in a task in a [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This
-   * payload type cannot be explicitly set through Cloud Tasks API. Its
-   * purpose, currently is to provide backward compatibility with App Engine
-   * Task Queue
-   * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/)
-   * queues to provide a way to inspect contents of pull tasks through the
-   * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask].
-   * 
- * - * .google.cloud.tasks.v2beta3.PullMessage pull_message = 13; - * - * @return Whether the pullMessage field is set. - */ - @java.lang.Override - public boolean hasPullMessage() { - return payloadTypeCase_ == 13; - } - /** - * - * - *
-   * Pull Message contained in a task in a [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This
-   * payload type cannot be explicitly set through Cloud Tasks API. Its
-   * purpose, currently is to provide backward compatibility with App Engine
-   * Task Queue
-   * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/)
-   * queues to provide a way to inspect contents of pull tasks through the
-   * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask].
-   * 
- * - * .google.cloud.tasks.v2beta3.PullMessage pull_message = 13; - * - * @return The pullMessage. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.PullMessage getPullMessage() { - if (payloadTypeCase_ == 13) { - return (com.google.cloud.tasks.v2beta3.PullMessage) payloadType_; - } - return com.google.cloud.tasks.v2beta3.PullMessage.getDefaultInstance(); - } - /** - * - * - *
-   * Pull Message contained in a task in a [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This
-   * payload type cannot be explicitly set through Cloud Tasks API. Its
-   * purpose, currently is to provide backward compatibility with App Engine
-   * Task Queue
-   * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/)
-   * queues to provide a way to inspect contents of pull tasks through the
-   * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask].
-   * 
- * - * .google.cloud.tasks.v2beta3.PullMessage pull_message = 13; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.PullMessageOrBuilder getPullMessageOrBuilder() { - if (payloadTypeCase_ == 13) { - return (com.google.cloud.tasks.v2beta3.PullMessage) payloadType_; - } - return com.google.cloud.tasks.v2beta3.PullMessage.getDefaultInstance(); - } - - public static final int SCHEDULE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp scheduleTime_; - /** - * - * - *
-   * The time when the task is scheduled to be attempted.
-   * For App Engine queues, this is when the task will be attempted or retried.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - * - * @return Whether the scheduleTime field is set. - */ - @java.lang.Override - public boolean hasScheduleTime() { - return scheduleTime_ != null; - } - /** - * - * - *
-   * The time when the task is scheduled to be attempted.
-   * For App Engine queues, this is when the task will be attempted or retried.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - * - * @return The scheduleTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getScheduleTime() { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } - /** - * - * - *
-   * The time when the task is scheduled to be attempted.
-   * For App Engine queues, this is when the task will be attempted or retried.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { - return getScheduleTime(); - } - - public static final int CREATE_TIME_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp createTime_; - /** - * - * - *
-   * Output only. The time that the task was created.
-   * `create_time` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Timestamp create_time = 5; - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - * - * - *
-   * Output only. The time that the task was created.
-   * `create_time` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Timestamp create_time = 5; - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - * - * - *
-   * Output only. The time that the task was created.
-   * `create_time` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Timestamp create_time = 5; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int DISPATCH_DEADLINE_FIELD_NUMBER = 12; - private com.google.protobuf.Duration dispatchDeadline_; - /** - * - * - *
-   * The deadline for requests sent to the worker. If the worker does not
-   * respond by this deadline then the request is cancelled and the attempt
-   * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-   * task according to the [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig].
-   * Note that when the request is cancelled, Cloud Tasks will stop listening
-   * for the response, but whether the worker stops processing depends on the
-   * worker. For example, if the worker is stuck, it may not react to cancelled
-   * requests.
-   * The default and maximum values depend on the type of request:
-   * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 10 minutes. The deadline
-   *   must be in the interval [15 seconds, 30 minutes].
-   * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 0 indicates that the
-   *   request has the default deadline. The default deadline depends on the
-   *   [scaling
-   *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-   *   of the service: 10 minutes for standard apps with automatic scaling, 24
-   *   hours for standard apps with manual and basic scaling, and 60 minutes for
-   *   flex apps. If the request deadline is set, it must be in the interval [15
-   *   seconds, 24 hours 15 seconds]. Regardless of the task's
-   *   `dispatch_deadline`, the app handler will not run for longer than than
-   *   the service's timeout. We recommend setting the `dispatch_deadline` to
-   *   at most a few seconds more than the app handler's timeout. For more
-   *   information see
-   *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-   * `dispatch_deadline` will be truncated to the nearest millisecond. The
-   * deadline is an approximate deadline.
-   * 
- * - * .google.protobuf.Duration dispatch_deadline = 12; - * - * @return Whether the dispatchDeadline field is set. - */ - @java.lang.Override - public boolean hasDispatchDeadline() { - return dispatchDeadline_ != null; - } - /** - * - * - *
-   * The deadline for requests sent to the worker. If the worker does not
-   * respond by this deadline then the request is cancelled and the attempt
-   * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-   * task according to the [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig].
-   * Note that when the request is cancelled, Cloud Tasks will stop listening
-   * for the response, but whether the worker stops processing depends on the
-   * worker. For example, if the worker is stuck, it may not react to cancelled
-   * requests.
-   * The default and maximum values depend on the type of request:
-   * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 10 minutes. The deadline
-   *   must be in the interval [15 seconds, 30 minutes].
-   * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 0 indicates that the
-   *   request has the default deadline. The default deadline depends on the
-   *   [scaling
-   *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-   *   of the service: 10 minutes for standard apps with automatic scaling, 24
-   *   hours for standard apps with manual and basic scaling, and 60 minutes for
-   *   flex apps. If the request deadline is set, it must be in the interval [15
-   *   seconds, 24 hours 15 seconds]. Regardless of the task's
-   *   `dispatch_deadline`, the app handler will not run for longer than than
-   *   the service's timeout. We recommend setting the `dispatch_deadline` to
-   *   at most a few seconds more than the app handler's timeout. For more
-   *   information see
-   *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-   * `dispatch_deadline` will be truncated to the nearest millisecond. The
-   * deadline is an approximate deadline.
-   * 
- * - * .google.protobuf.Duration dispatch_deadline = 12; - * - * @return The dispatchDeadline. - */ - @java.lang.Override - public com.google.protobuf.Duration getDispatchDeadline() { - return dispatchDeadline_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : dispatchDeadline_; - } - /** - * - * - *
-   * The deadline for requests sent to the worker. If the worker does not
-   * respond by this deadline then the request is cancelled and the attempt
-   * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-   * task according to the [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig].
-   * Note that when the request is cancelled, Cloud Tasks will stop listening
-   * for the response, but whether the worker stops processing depends on the
-   * worker. For example, if the worker is stuck, it may not react to cancelled
-   * requests.
-   * The default and maximum values depend on the type of request:
-   * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 10 minutes. The deadline
-   *   must be in the interval [15 seconds, 30 minutes].
-   * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 0 indicates that the
-   *   request has the default deadline. The default deadline depends on the
-   *   [scaling
-   *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-   *   of the service: 10 minutes for standard apps with automatic scaling, 24
-   *   hours for standard apps with manual and basic scaling, and 60 minutes for
-   *   flex apps. If the request deadline is set, it must be in the interval [15
-   *   seconds, 24 hours 15 seconds]. Regardless of the task's
-   *   `dispatch_deadline`, the app handler will not run for longer than than
-   *   the service's timeout. We recommend setting the `dispatch_deadline` to
-   *   at most a few seconds more than the app handler's timeout. For more
-   *   information see
-   *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-   * `dispatch_deadline` will be truncated to the nearest millisecond. The
-   * deadline is an approximate deadline.
-   * 
- * - * .google.protobuf.Duration dispatch_deadline = 12; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getDispatchDeadlineOrBuilder() { - return getDispatchDeadline(); - } - - public static final int DISPATCH_COUNT_FIELD_NUMBER = 6; - private int dispatchCount_; - /** - * - * - *
-   * Output only. The number of attempts dispatched.
-   * This count includes attempts which have been dispatched but haven't
-   * received a response.
-   * 
- * - * int32 dispatch_count = 6; - * - * @return The dispatchCount. - */ - @java.lang.Override - public int getDispatchCount() { - return dispatchCount_; - } - - public static final int RESPONSE_COUNT_FIELD_NUMBER = 7; - private int responseCount_; - /** - * - * - *
-   * Output only. The number of attempts which have received a response.
-   * 
- * - * int32 response_count = 7; - * - * @return The responseCount. - */ - @java.lang.Override - public int getResponseCount() { - return responseCount_; - } - - public static final int FIRST_ATTEMPT_FIELD_NUMBER = 8; - private com.google.cloud.tasks.v2beta3.Attempt firstAttempt_; - /** - * - * - *
-   * Output only. The status of the task's first attempt.
-   * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will be set.
-   * The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information is not retained by Cloud Tasks.
-   * 
- * - * .google.cloud.tasks.v2beta3.Attempt first_attempt = 8; - * - * @return Whether the firstAttempt field is set. - */ - @java.lang.Override - public boolean hasFirstAttempt() { - return firstAttempt_ != null; - } - /** - * - * - *
-   * Output only. The status of the task's first attempt.
-   * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will be set.
-   * The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information is not retained by Cloud Tasks.
-   * 
- * - * .google.cloud.tasks.v2beta3.Attempt first_attempt = 8; - * - * @return The firstAttempt. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Attempt getFirstAttempt() { - return firstAttempt_ == null - ? com.google.cloud.tasks.v2beta3.Attempt.getDefaultInstance() - : firstAttempt_; - } - /** - * - * - *
-   * Output only. The status of the task's first attempt.
-   * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will be set.
-   * The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information is not retained by Cloud Tasks.
-   * 
- * - * .google.cloud.tasks.v2beta3.Attempt first_attempt = 8; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AttemptOrBuilder getFirstAttemptOrBuilder() { - return getFirstAttempt(); - } - - public static final int LAST_ATTEMPT_FIELD_NUMBER = 9; - private com.google.cloud.tasks.v2beta3.Attempt lastAttempt_; - /** - * - * - *
-   * Output only. The status of the task's last attempt.
-   * 
- * - * .google.cloud.tasks.v2beta3.Attempt last_attempt = 9; - * - * @return Whether the lastAttempt field is set. - */ - @java.lang.Override - public boolean hasLastAttempt() { - return lastAttempt_ != null; - } - /** - * - * - *
-   * Output only. The status of the task's last attempt.
-   * 
- * - * .google.cloud.tasks.v2beta3.Attempt last_attempt = 9; - * - * @return The lastAttempt. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Attempt getLastAttempt() { - return lastAttempt_ == null - ? com.google.cloud.tasks.v2beta3.Attempt.getDefaultInstance() - : lastAttempt_; - } - /** - * - * - *
-   * Output only. The status of the task's last attempt.
-   * 
- * - * .google.cloud.tasks.v2beta3.Attempt last_attempt = 9; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AttemptOrBuilder getLastAttemptOrBuilder() { - return getLastAttempt(); - } - - public static final int VIEW_FIELD_NUMBER = 10; - private int view_; - /** - * - * - *
-   * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] has
-   * been returned.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task.View view = 10; - * - * @return The enum numeric value on the wire for view. - */ - @java.lang.Override - public int getViewValue() { - return view_; - } - /** - * - * - *
-   * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] has
-   * been returned.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task.View view = 10; - * - * @return The view. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Task.View getView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta3.Task.View result = - com.google.cloud.tasks.v2beta3.Task.View.valueOf(view_); - return result == null ? com.google.cloud.tasks.v2beta3.Task.View.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (payloadTypeCase_ == 3) { - output.writeMessage(3, (com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) payloadType_); - } - if (scheduleTime_ != null) { - output.writeMessage(4, getScheduleTime()); - } - if (createTime_ != null) { - output.writeMessage(5, getCreateTime()); - } - if (dispatchCount_ != 0) { - output.writeInt32(6, dispatchCount_); - } - if (responseCount_ != 0) { - output.writeInt32(7, responseCount_); - } - if (firstAttempt_ != null) { - output.writeMessage(8, getFirstAttempt()); - } - if (lastAttempt_ != null) { - output.writeMessage(9, getLastAttempt()); - } - if (view_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { - output.writeEnum(10, view_); - } - if (payloadTypeCase_ == 11) { - output.writeMessage(11, (com.google.cloud.tasks.v2beta3.HttpRequest) payloadType_); - } - if (dispatchDeadline_ != null) { - output.writeMessage(12, getDispatchDeadline()); - } - if (payloadTypeCase_ == 13) { - output.writeMessage(13, (com.google.cloud.tasks.v2beta3.PullMessage) payloadType_); - } - 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(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (payloadTypeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) payloadType_); - } - if (scheduleTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getScheduleTime()); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); - } - if (dispatchCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, dispatchCount_); - } - if (responseCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, responseCount_); - } - if (firstAttempt_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getFirstAttempt()); - } - if (lastAttempt_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getLastAttempt()); - } - if (view_ != com.google.cloud.tasks.v2beta3.Task.View.VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, view_); - } - if (payloadTypeCase_ == 11) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, (com.google.cloud.tasks.v2beta3.HttpRequest) payloadType_); - } - if (dispatchDeadline_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getDispatchDeadline()); - } - if (payloadTypeCase_ == 13) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 13, (com.google.cloud.tasks.v2beta3.PullMessage) payloadType_); - } - 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.Task)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.Task other = (com.google.cloud.tasks.v2beta3.Task) obj; - - if (!getName().equals(other.getName())) return false; - if (hasScheduleTime() != other.hasScheduleTime()) return false; - if (hasScheduleTime()) { - if (!getScheduleTime().equals(other.getScheduleTime())) return false; - } - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasDispatchDeadline() != other.hasDispatchDeadline()) return false; - if (hasDispatchDeadline()) { - if (!getDispatchDeadline().equals(other.getDispatchDeadline())) return false; - } - if (getDispatchCount() != other.getDispatchCount()) return false; - if (getResponseCount() != other.getResponseCount()) return false; - if (hasFirstAttempt() != other.hasFirstAttempt()) return false; - if (hasFirstAttempt()) { - if (!getFirstAttempt().equals(other.getFirstAttempt())) return false; - } - if (hasLastAttempt() != other.hasLastAttempt()) return false; - if (hasLastAttempt()) { - if (!getLastAttempt().equals(other.getLastAttempt())) return false; - } - if (view_ != other.view_) return false; - if (!getPayloadTypeCase().equals(other.getPayloadTypeCase())) return false; - switch (payloadTypeCase_) { - case 3: - if (!getAppEngineHttpRequest().equals(other.getAppEngineHttpRequest())) return false; - break; - case 11: - if (!getHttpRequest().equals(other.getHttpRequest())) return false; - break; - case 13: - if (!getPullMessage().equals(other.getPullMessage())) return false; - break; - case 0: - default: - } - 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) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasScheduleTime()) { - hash = (37 * hash) + SCHEDULE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getScheduleTime().hashCode(); - } - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasDispatchDeadline()) { - hash = (37 * hash) + DISPATCH_DEADLINE_FIELD_NUMBER; - hash = (53 * hash) + getDispatchDeadline().hashCode(); - } - hash = (37 * hash) + DISPATCH_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getDispatchCount(); - hash = (37 * hash) + RESPONSE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getResponseCount(); - if (hasFirstAttempt()) { - hash = (37 * hash) + FIRST_ATTEMPT_FIELD_NUMBER; - hash = (53 * hash) + getFirstAttempt().hashCode(); - } - if (hasLastAttempt()) { - hash = (37 * hash) + LAST_ATTEMPT_FIELD_NUMBER; - hash = (53 * hash) + getLastAttempt().hashCode(); - } - hash = (37 * hash) + VIEW_FIELD_NUMBER; - hash = (53 * hash) + view_; - switch (payloadTypeCase_) { - case 3: - hash = (37 * hash) + APP_ENGINE_HTTP_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getAppEngineHttpRequest().hashCode(); - break; - case 11: - hash = (37 * hash) + HTTP_REQUEST_FIELD_NUMBER; - hash = (53 * hash) + getHttpRequest().hashCode(); - break; - case 13: - hash = (37 * hash) + PULL_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getPullMessage().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.Task parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.Task 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.Task parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.Task 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.Task parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.Task 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.Task parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.Task 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.Task parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.Task 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.Task 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.Task 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.Task prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * A unit of scheduled work.
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.Task} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.Task) - com.google.cloud.tasks.v2beta3.TaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.TaskProto - .internal_static_google_cloud_tasks_v2beta3_Task_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.TaskProto - .internal_static_google_cloud_tasks_v2beta3_Task_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.Task.class, - com.google.cloud.tasks.v2beta3.Task.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.Task.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (appEngineHttpRequestBuilder_ != null) { - appEngineHttpRequestBuilder_.clear(); - } - if (httpRequestBuilder_ != null) { - httpRequestBuilder_.clear(); - } - if (pullMessageBuilder_ != null) { - pullMessageBuilder_.clear(); - } - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = null; - } else { - scheduleTime_ = null; - scheduleTimeBuilder_ = null; - } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (dispatchDeadlineBuilder_ == null) { - dispatchDeadline_ = null; - } else { - dispatchDeadline_ = null; - dispatchDeadlineBuilder_ = null; - } - dispatchCount_ = 0; - - responseCount_ = 0; - - if (firstAttemptBuilder_ == null) { - firstAttempt_ = null; - } else { - firstAttempt_ = null; - firstAttemptBuilder_ = null; - } - if (lastAttemptBuilder_ == null) { - lastAttempt_ = null; - } else { - lastAttempt_ = null; - lastAttemptBuilder_ = null; - } - view_ = 0; - - payloadTypeCase_ = 0; - payloadType_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.TaskProto - .internal_static_google_cloud_tasks_v2beta3_Task_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Task getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.Task.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Task build() { - com.google.cloud.tasks.v2beta3.Task result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Task buildPartial() { - com.google.cloud.tasks.v2beta3.Task result = new com.google.cloud.tasks.v2beta3.Task(this); - result.name_ = name_; - if (payloadTypeCase_ == 3) { - if (appEngineHttpRequestBuilder_ == null) { - result.payloadType_ = payloadType_; - } else { - result.payloadType_ = appEngineHttpRequestBuilder_.build(); - } - } - if (payloadTypeCase_ == 11) { - if (httpRequestBuilder_ == null) { - result.payloadType_ = payloadType_; - } else { - result.payloadType_ = httpRequestBuilder_.build(); - } - } - if (payloadTypeCase_ == 13) { - if (pullMessageBuilder_ == null) { - result.payloadType_ = payloadType_; - } else { - result.payloadType_ = pullMessageBuilder_.build(); - } - } - if (scheduleTimeBuilder_ == null) { - result.scheduleTime_ = scheduleTime_; - } else { - result.scheduleTime_ = scheduleTimeBuilder_.build(); - } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (dispatchDeadlineBuilder_ == null) { - result.dispatchDeadline_ = dispatchDeadline_; - } else { - result.dispatchDeadline_ = dispatchDeadlineBuilder_.build(); - } - result.dispatchCount_ = dispatchCount_; - result.responseCount_ = responseCount_; - if (firstAttemptBuilder_ == null) { - result.firstAttempt_ = firstAttempt_; - } else { - result.firstAttempt_ = firstAttemptBuilder_.build(); - } - if (lastAttemptBuilder_ == null) { - result.lastAttempt_ = lastAttempt_; - } else { - result.lastAttempt_ = lastAttemptBuilder_.build(); - } - result.view_ = view_; - result.payloadTypeCase_ = payloadTypeCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.Task) { - return mergeFrom((com.google.cloud.tasks.v2beta3.Task) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.Task other) { - if (other == com.google.cloud.tasks.v2beta3.Task.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasScheduleTime()) { - mergeScheduleTime(other.getScheduleTime()); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasDispatchDeadline()) { - mergeDispatchDeadline(other.getDispatchDeadline()); - } - if (other.getDispatchCount() != 0) { - setDispatchCount(other.getDispatchCount()); - } - if (other.getResponseCount() != 0) { - setResponseCount(other.getResponseCount()); - } - if (other.hasFirstAttempt()) { - mergeFirstAttempt(other.getFirstAttempt()); - } - if (other.hasLastAttempt()) { - mergeLastAttempt(other.getLastAttempt()); - } - if (other.view_ != 0) { - setViewValue(other.getViewValue()); - } - switch (other.getPayloadTypeCase()) { - case APP_ENGINE_HTTP_REQUEST: - { - mergeAppEngineHttpRequest(other.getAppEngineHttpRequest()); - break; - } - case HTTP_REQUEST: - { - mergeHttpRequest(other.getHttpRequest()); - break; - } - case PULL_MESSAGE: - { - mergePullMessage(other.getPullMessage()); - break; - } - case PAYLOADTYPE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 26: - { - input.readMessage( - getAppEngineHttpRequestFieldBuilder().getBuilder(), extensionRegistry); - payloadTypeCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getScheduleTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 48: - { - dispatchCount_ = input.readInt32(); - - break; - } // case 48 - case 56: - { - responseCount_ = input.readInt32(); - - break; - } // case 56 - case 66: - { - input.readMessage(getFirstAttemptFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 66 - case 74: - { - input.readMessage(getLastAttemptFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 74 - case 80: - { - view_ = input.readEnum(); - - break; - } // case 80 - case 90: - { - input.readMessage(getHttpRequestFieldBuilder().getBuilder(), extensionRegistry); - payloadTypeCase_ = 11; - break; - } // case 90 - case 98: - { - input.readMessage( - getDispatchDeadlineFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 98 - case 106: - { - input.readMessage(getPullMessageFieldBuilder().getBuilder(), extensionRegistry); - payloadTypeCase_ = 13; - break; - } // case 106 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int payloadTypeCase_ = 0; - private java.lang.Object payloadType_; - - public PayloadTypeCase getPayloadTypeCase() { - return PayloadTypeCase.forNumber(payloadTypeCase_); - } - - public Builder clearPayloadType() { - payloadTypeCase_ = 0; - payloadType_ = null; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * The task name.
-     * The task name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the task's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-     *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * The task name.
-     * The task name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the task's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-     *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * The task name.
-     * The task name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the task's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-     *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-     * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * The task name.
-     * The task name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the task's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-     *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-     * The task name.
-     * The task name must have the following format:
-     * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-     * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-     *    hyphens (-), colons (:), or periods (.).
-     *    For more information, see
-     *    [Identifying
-     *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-     * * `LOCATION_ID` is the canonical ID for the task's location.
-     *    The list of available locations can be obtained by calling
-     *    [ListLocations][google.cloud.location.Locations.ListLocations].
-     *    For more information, see https://cloud.google.com/about/locations/.
-     * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-     *   hyphens (-). The maximum length is 100 characters.
-     * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-     *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-     * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.AppEngineHttpRequest, - com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.Builder, - com.google.cloud.tasks.v2beta3.AppEngineHttpRequestOrBuilder> - appEngineHttpRequestBuilder_; - /** - * - * - *
-     * HTTP request that is sent to the App Engine app handler.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3; - * - * @return Whether the appEngineHttpRequest field is set. - */ - @java.lang.Override - public boolean hasAppEngineHttpRequest() { - return payloadTypeCase_ == 3; - } - /** - * - * - *
-     * HTTP request that is sent to the App Engine app handler.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3; - * - * @return The appEngineHttpRequest. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineHttpRequest getAppEngineHttpRequest() { - if (appEngineHttpRequestBuilder_ == null) { - if (payloadTypeCase_ == 3) { - return (com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) payloadType_; - } - return com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.getDefaultInstance(); - } else { - if (payloadTypeCase_ == 3) { - return appEngineHttpRequestBuilder_.getMessage(); - } - return com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.getDefaultInstance(); - } - } - /** - * - * - *
-     * HTTP request that is sent to the App Engine app handler.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3; - */ - public Builder setAppEngineHttpRequest( - com.google.cloud.tasks.v2beta3.AppEngineHttpRequest value) { - if (appEngineHttpRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payloadType_ = value; - onChanged(); - } else { - appEngineHttpRequestBuilder_.setMessage(value); - } - payloadTypeCase_ = 3; - return this; - } - /** - * - * - *
-     * HTTP request that is sent to the App Engine app handler.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3; - */ - public Builder setAppEngineHttpRequest( - com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.Builder builderForValue) { - if (appEngineHttpRequestBuilder_ == null) { - payloadType_ = builderForValue.build(); - onChanged(); - } else { - appEngineHttpRequestBuilder_.setMessage(builderForValue.build()); - } - payloadTypeCase_ = 3; - return this; - } - /** - * - * - *
-     * HTTP request that is sent to the App Engine app handler.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3; - */ - public Builder mergeAppEngineHttpRequest( - com.google.cloud.tasks.v2beta3.AppEngineHttpRequest value) { - if (appEngineHttpRequestBuilder_ == null) { - if (payloadTypeCase_ == 3 - && payloadType_ - != com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.getDefaultInstance()) { - payloadType_ = - com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.newBuilder( - (com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) payloadType_) - .mergeFrom(value) - .buildPartial(); - } else { - payloadType_ = value; - } - onChanged(); - } else { - if (payloadTypeCase_ == 3) { - appEngineHttpRequestBuilder_.mergeFrom(value); - } else { - appEngineHttpRequestBuilder_.setMessage(value); - } - } - payloadTypeCase_ = 3; - return this; - } - /** - * - * - *
-     * HTTP request that is sent to the App Engine app handler.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3; - */ - public Builder clearAppEngineHttpRequest() { - if (appEngineHttpRequestBuilder_ == null) { - if (payloadTypeCase_ == 3) { - payloadTypeCase_ = 0; - payloadType_ = null; - onChanged(); - } - } else { - if (payloadTypeCase_ == 3) { - payloadTypeCase_ = 0; - payloadType_ = null; - } - appEngineHttpRequestBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * HTTP request that is sent to the App Engine app handler.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3; - */ - public com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.Builder - getAppEngineHttpRequestBuilder() { - return getAppEngineHttpRequestFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * HTTP request that is sent to the App Engine app handler.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.AppEngineHttpRequestOrBuilder - getAppEngineHttpRequestOrBuilder() { - if ((payloadTypeCase_ == 3) && (appEngineHttpRequestBuilder_ != null)) { - return appEngineHttpRequestBuilder_.getMessageOrBuilder(); - } else { - if (payloadTypeCase_ == 3) { - return (com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) payloadType_; - } - return com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.getDefaultInstance(); - } - } - /** - * - * - *
-     * HTTP request that is sent to the App Engine app handler.
-     * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.AppEngineHttpRequest, - com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.Builder, - com.google.cloud.tasks.v2beta3.AppEngineHttpRequestOrBuilder> - getAppEngineHttpRequestFieldBuilder() { - if (appEngineHttpRequestBuilder_ == null) { - if (!(payloadTypeCase_ == 3)) { - payloadType_ = com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.getDefaultInstance(); - } - appEngineHttpRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.AppEngineHttpRequest, - com.google.cloud.tasks.v2beta3.AppEngineHttpRequest.Builder, - com.google.cloud.tasks.v2beta3.AppEngineHttpRequestOrBuilder>( - (com.google.cloud.tasks.v2beta3.AppEngineHttpRequest) payloadType_, - getParentForChildren(), - isClean()); - payloadType_ = null; - } - payloadTypeCase_ = 3; - onChanged(); - ; - return appEngineHttpRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.HttpRequest, - com.google.cloud.tasks.v2beta3.HttpRequest.Builder, - com.google.cloud.tasks.v2beta3.HttpRequestOrBuilder> - httpRequestBuilder_; - /** - * - * - *
-     * HTTP request that is sent to the task's target.
-     * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta3.HttpRequest http_request = 11; - * - * @return Whether the httpRequest field is set. - */ - @java.lang.Override - public boolean hasHttpRequest() { - return payloadTypeCase_ == 11; - } - /** - * - * - *
-     * HTTP request that is sent to the task's target.
-     * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta3.HttpRequest http_request = 11; - * - * @return The httpRequest. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.HttpRequest getHttpRequest() { - if (httpRequestBuilder_ == null) { - if (payloadTypeCase_ == 11) { - return (com.google.cloud.tasks.v2beta3.HttpRequest) payloadType_; - } - return com.google.cloud.tasks.v2beta3.HttpRequest.getDefaultInstance(); - } else { - if (payloadTypeCase_ == 11) { - return httpRequestBuilder_.getMessage(); - } - return com.google.cloud.tasks.v2beta3.HttpRequest.getDefaultInstance(); - } - } - /** - * - * - *
-     * HTTP request that is sent to the task's target.
-     * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta3.HttpRequest http_request = 11; - */ - public Builder setHttpRequest(com.google.cloud.tasks.v2beta3.HttpRequest value) { - if (httpRequestBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payloadType_ = value; - onChanged(); - } else { - httpRequestBuilder_.setMessage(value); - } - payloadTypeCase_ = 11; - return this; - } - /** - * - * - *
-     * HTTP request that is sent to the task's target.
-     * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta3.HttpRequest http_request = 11; - */ - public Builder setHttpRequest( - com.google.cloud.tasks.v2beta3.HttpRequest.Builder builderForValue) { - if (httpRequestBuilder_ == null) { - payloadType_ = builderForValue.build(); - onChanged(); - } else { - httpRequestBuilder_.setMessage(builderForValue.build()); - } - payloadTypeCase_ = 11; - return this; - } - /** - * - * - *
-     * HTTP request that is sent to the task's target.
-     * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta3.HttpRequest http_request = 11; - */ - public Builder mergeHttpRequest(com.google.cloud.tasks.v2beta3.HttpRequest value) { - if (httpRequestBuilder_ == null) { - if (payloadTypeCase_ == 11 - && payloadType_ != com.google.cloud.tasks.v2beta3.HttpRequest.getDefaultInstance()) { - payloadType_ = - com.google.cloud.tasks.v2beta3.HttpRequest.newBuilder( - (com.google.cloud.tasks.v2beta3.HttpRequest) payloadType_) - .mergeFrom(value) - .buildPartial(); - } else { - payloadType_ = value; - } - onChanged(); - } else { - if (payloadTypeCase_ == 11) { - httpRequestBuilder_.mergeFrom(value); - } else { - httpRequestBuilder_.setMessage(value); - } - } - payloadTypeCase_ = 11; - return this; - } - /** - * - * - *
-     * HTTP request that is sent to the task's target.
-     * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta3.HttpRequest http_request = 11; - */ - public Builder clearHttpRequest() { - if (httpRequestBuilder_ == null) { - if (payloadTypeCase_ == 11) { - payloadTypeCase_ = 0; - payloadType_ = null; - onChanged(); - } - } else { - if (payloadTypeCase_ == 11) { - payloadTypeCase_ = 0; - payloadType_ = null; - } - httpRequestBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * HTTP request that is sent to the task's target.
-     * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta3.HttpRequest http_request = 11; - */ - public com.google.cloud.tasks.v2beta3.HttpRequest.Builder getHttpRequestBuilder() { - return getHttpRequestFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * HTTP request that is sent to the task's target.
-     * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta3.HttpRequest http_request = 11; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.HttpRequestOrBuilder getHttpRequestOrBuilder() { - if ((payloadTypeCase_ == 11) && (httpRequestBuilder_ != null)) { - return httpRequestBuilder_.getMessageOrBuilder(); - } else { - if (payloadTypeCase_ == 11) { - return (com.google.cloud.tasks.v2beta3.HttpRequest) payloadType_; - } - return com.google.cloud.tasks.v2beta3.HttpRequest.getDefaultInstance(); - } - } - /** - * - * - *
-     * HTTP request that is sent to the task's target.
-     * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set.
-     * 
- * - * .google.cloud.tasks.v2beta3.HttpRequest http_request = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.HttpRequest, - com.google.cloud.tasks.v2beta3.HttpRequest.Builder, - com.google.cloud.tasks.v2beta3.HttpRequestOrBuilder> - getHttpRequestFieldBuilder() { - if (httpRequestBuilder_ == null) { - if (!(payloadTypeCase_ == 11)) { - payloadType_ = com.google.cloud.tasks.v2beta3.HttpRequest.getDefaultInstance(); - } - httpRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.HttpRequest, - com.google.cloud.tasks.v2beta3.HttpRequest.Builder, - com.google.cloud.tasks.v2beta3.HttpRequestOrBuilder>( - (com.google.cloud.tasks.v2beta3.HttpRequest) payloadType_, - getParentForChildren(), - isClean()); - payloadType_ = null; - } - payloadTypeCase_ = 11; - onChanged(); - ; - return httpRequestBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.PullMessage, - com.google.cloud.tasks.v2beta3.PullMessage.Builder, - com.google.cloud.tasks.v2beta3.PullMessageOrBuilder> - pullMessageBuilder_; - /** - * - * - *
-     * Pull Message contained in a task in a [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This
-     * payload type cannot be explicitly set through Cloud Tasks API. Its
-     * purpose, currently is to provide backward compatibility with App Engine
-     * Task Queue
-     * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/)
-     * queues to provide a way to inspect contents of pull tasks through the
-     * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask].
-     * 
- * - * .google.cloud.tasks.v2beta3.PullMessage pull_message = 13; - * - * @return Whether the pullMessage field is set. - */ - @java.lang.Override - public boolean hasPullMessage() { - return payloadTypeCase_ == 13; - } - /** - * - * - *
-     * Pull Message contained in a task in a [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This
-     * payload type cannot be explicitly set through Cloud Tasks API. Its
-     * purpose, currently is to provide backward compatibility with App Engine
-     * Task Queue
-     * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/)
-     * queues to provide a way to inspect contents of pull tasks through the
-     * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask].
-     * 
- * - * .google.cloud.tasks.v2beta3.PullMessage pull_message = 13; - * - * @return The pullMessage. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.PullMessage getPullMessage() { - if (pullMessageBuilder_ == null) { - if (payloadTypeCase_ == 13) { - return (com.google.cloud.tasks.v2beta3.PullMessage) payloadType_; - } - return com.google.cloud.tasks.v2beta3.PullMessage.getDefaultInstance(); - } else { - if (payloadTypeCase_ == 13) { - return pullMessageBuilder_.getMessage(); - } - return com.google.cloud.tasks.v2beta3.PullMessage.getDefaultInstance(); - } - } - /** - * - * - *
-     * Pull Message contained in a task in a [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This
-     * payload type cannot be explicitly set through Cloud Tasks API. Its
-     * purpose, currently is to provide backward compatibility with App Engine
-     * Task Queue
-     * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/)
-     * queues to provide a way to inspect contents of pull tasks through the
-     * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask].
-     * 
- * - * .google.cloud.tasks.v2beta3.PullMessage pull_message = 13; - */ - public Builder setPullMessage(com.google.cloud.tasks.v2beta3.PullMessage value) { - if (pullMessageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payloadType_ = value; - onChanged(); - } else { - pullMessageBuilder_.setMessage(value); - } - payloadTypeCase_ = 13; - return this; - } - /** - * - * - *
-     * Pull Message contained in a task in a [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This
-     * payload type cannot be explicitly set through Cloud Tasks API. Its
-     * purpose, currently is to provide backward compatibility with App Engine
-     * Task Queue
-     * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/)
-     * queues to provide a way to inspect contents of pull tasks through the
-     * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask].
-     * 
- * - * .google.cloud.tasks.v2beta3.PullMessage pull_message = 13; - */ - public Builder setPullMessage( - com.google.cloud.tasks.v2beta3.PullMessage.Builder builderForValue) { - if (pullMessageBuilder_ == null) { - payloadType_ = builderForValue.build(); - onChanged(); - } else { - pullMessageBuilder_.setMessage(builderForValue.build()); - } - payloadTypeCase_ = 13; - return this; - } - /** - * - * - *
-     * Pull Message contained in a task in a [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This
-     * payload type cannot be explicitly set through Cloud Tasks API. Its
-     * purpose, currently is to provide backward compatibility with App Engine
-     * Task Queue
-     * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/)
-     * queues to provide a way to inspect contents of pull tasks through the
-     * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask].
-     * 
- * - * .google.cloud.tasks.v2beta3.PullMessage pull_message = 13; - */ - public Builder mergePullMessage(com.google.cloud.tasks.v2beta3.PullMessage value) { - if (pullMessageBuilder_ == null) { - if (payloadTypeCase_ == 13 - && payloadType_ != com.google.cloud.tasks.v2beta3.PullMessage.getDefaultInstance()) { - payloadType_ = - com.google.cloud.tasks.v2beta3.PullMessage.newBuilder( - (com.google.cloud.tasks.v2beta3.PullMessage) payloadType_) - .mergeFrom(value) - .buildPartial(); - } else { - payloadType_ = value; - } - onChanged(); - } else { - if (payloadTypeCase_ == 13) { - pullMessageBuilder_.mergeFrom(value); - } else { - pullMessageBuilder_.setMessage(value); - } - } - payloadTypeCase_ = 13; - return this; - } - /** - * - * - *
-     * Pull Message contained in a task in a [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This
-     * payload type cannot be explicitly set through Cloud Tasks API. Its
-     * purpose, currently is to provide backward compatibility with App Engine
-     * Task Queue
-     * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/)
-     * queues to provide a way to inspect contents of pull tasks through the
-     * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask].
-     * 
- * - * .google.cloud.tasks.v2beta3.PullMessage pull_message = 13; - */ - public Builder clearPullMessage() { - if (pullMessageBuilder_ == null) { - if (payloadTypeCase_ == 13) { - payloadTypeCase_ = 0; - payloadType_ = null; - onChanged(); - } - } else { - if (payloadTypeCase_ == 13) { - payloadTypeCase_ = 0; - payloadType_ = null; - } - pullMessageBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Pull Message contained in a task in a [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This
-     * payload type cannot be explicitly set through Cloud Tasks API. Its
-     * purpose, currently is to provide backward compatibility with App Engine
-     * Task Queue
-     * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/)
-     * queues to provide a way to inspect contents of pull tasks through the
-     * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask].
-     * 
- * - * .google.cloud.tasks.v2beta3.PullMessage pull_message = 13; - */ - public com.google.cloud.tasks.v2beta3.PullMessage.Builder getPullMessageBuilder() { - return getPullMessageFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Pull Message contained in a task in a [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This
-     * payload type cannot be explicitly set through Cloud Tasks API. Its
-     * purpose, currently is to provide backward compatibility with App Engine
-     * Task Queue
-     * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/)
-     * queues to provide a way to inspect contents of pull tasks through the
-     * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask].
-     * 
- * - * .google.cloud.tasks.v2beta3.PullMessage pull_message = 13; - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.PullMessageOrBuilder getPullMessageOrBuilder() { - if ((payloadTypeCase_ == 13) && (pullMessageBuilder_ != null)) { - return pullMessageBuilder_.getMessageOrBuilder(); - } else { - if (payloadTypeCase_ == 13) { - return (com.google.cloud.tasks.v2beta3.PullMessage) payloadType_; - } - return com.google.cloud.tasks.v2beta3.PullMessage.getDefaultInstance(); - } - } - /** - * - * - *
-     * Pull Message contained in a task in a [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This
-     * payload type cannot be explicitly set through Cloud Tasks API. Its
-     * purpose, currently is to provide backward compatibility with App Engine
-     * Task Queue
-     * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/)
-     * queues to provide a way to inspect contents of pull tasks through the
-     * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask].
-     * 
- * - * .google.cloud.tasks.v2beta3.PullMessage pull_message = 13; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.PullMessage, - com.google.cloud.tasks.v2beta3.PullMessage.Builder, - com.google.cloud.tasks.v2beta3.PullMessageOrBuilder> - getPullMessageFieldBuilder() { - if (pullMessageBuilder_ == null) { - if (!(payloadTypeCase_ == 13)) { - payloadType_ = com.google.cloud.tasks.v2beta3.PullMessage.getDefaultInstance(); - } - pullMessageBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.PullMessage, - com.google.cloud.tasks.v2beta3.PullMessage.Builder, - com.google.cloud.tasks.v2beta3.PullMessageOrBuilder>( - (com.google.cloud.tasks.v2beta3.PullMessage) payloadType_, - getParentForChildren(), - isClean()); - payloadType_ = null; - } - payloadTypeCase_ = 13; - onChanged(); - ; - return pullMessageBuilder_; - } - - private com.google.protobuf.Timestamp scheduleTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - scheduleTimeBuilder_; - /** - * - * - *
-     * The time when the task is scheduled to be attempted.
-     * For App Engine queues, this is when the task will be attempted or retried.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - * - * @return Whether the scheduleTime field is set. - */ - public boolean hasScheduleTime() { - return scheduleTimeBuilder_ != null || scheduleTime_ != null; - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted.
-     * For App Engine queues, this is when the task will be attempted or retried.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - * - * @return The scheduleTime. - */ - public com.google.protobuf.Timestamp getScheduleTime() { - if (scheduleTimeBuilder_ == null) { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } else { - return scheduleTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted.
-     * For App Engine queues, this is when the task will be attempted or retried.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - */ - public Builder setScheduleTime(com.google.protobuf.Timestamp value) { - if (scheduleTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduleTime_ = value; - onChanged(); - } else { - scheduleTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted.
-     * For App Engine queues, this is when the task will be attempted or retried.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - */ - public Builder setScheduleTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = builderForValue.build(); - onChanged(); - } else { - scheduleTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted.
-     * For App Engine queues, this is when the task will be attempted or retried.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - */ - public Builder mergeScheduleTime(com.google.protobuf.Timestamp value) { - if (scheduleTimeBuilder_ == null) { - if (scheduleTime_ != null) { - scheduleTime_ = - com.google.protobuf.Timestamp.newBuilder(scheduleTime_) - .mergeFrom(value) - .buildPartial(); - } else { - scheduleTime_ = value; - } - onChanged(); - } else { - scheduleTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted.
-     * For App Engine queues, this is when the task will be attempted or retried.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - */ - public Builder clearScheduleTime() { - if (scheduleTimeBuilder_ == null) { - scheduleTime_ = null; - onChanged(); - } else { - scheduleTime_ = null; - scheduleTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted.
-     * For App Engine queues, this is when the task will be attempted or retried.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - */ - public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { - - onChanged(); - return getScheduleTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted.
-     * For App Engine queues, this is when the task will be attempted or retried.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - */ - public com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder() { - if (scheduleTimeBuilder_ != null) { - return scheduleTimeBuilder_.getMessageOrBuilder(); - } else { - return scheduleTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : scheduleTime_; - } - } - /** - * - * - *
-     * The time when the task is scheduled to be attempted.
-     * For App Engine queues, this is when the task will be attempted or retried.
-     * `schedule_time` will be truncated to the nearest microsecond.
-     * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getScheduleTimeFieldBuilder() { - if (scheduleTimeBuilder_ == null) { - scheduleTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getScheduleTime(), getParentForChildren(), isClean()); - scheduleTime_ = null; - } - return scheduleTimeBuilder_; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 5; - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 5; - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 5; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 5; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 5; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 5; - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 5; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 5; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - /** - * - * - *
-     * Output only. The time that the task was created.
-     * `create_time` will be truncated to the nearest second.
-     * 
- * - * .google.protobuf.Timestamp create_time = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Duration dispatchDeadline_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - dispatchDeadlineBuilder_; - /** - * - * - *
-     * The deadline for requests sent to the worker. If the worker does not
-     * respond by this deadline then the request is cancelled and the attempt
-     * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-     * task according to the [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig].
-     * Note that when the request is cancelled, Cloud Tasks will stop listening
-     * for the response, but whether the worker stops processing depends on the
-     * worker. For example, if the worker is stuck, it may not react to cancelled
-     * requests.
-     * The default and maximum values depend on the type of request:
-     * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 10 minutes. The deadline
-     *   must be in the interval [15 seconds, 30 minutes].
-     * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 0 indicates that the
-     *   request has the default deadline. The default deadline depends on the
-     *   [scaling
-     *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-     *   of the service: 10 minutes for standard apps with automatic scaling, 24
-     *   hours for standard apps with manual and basic scaling, and 60 minutes for
-     *   flex apps. If the request deadline is set, it must be in the interval [15
-     *   seconds, 24 hours 15 seconds]. Regardless of the task's
-     *   `dispatch_deadline`, the app handler will not run for longer than than
-     *   the service's timeout. We recommend setting the `dispatch_deadline` to
-     *   at most a few seconds more than the app handler's timeout. For more
-     *   information see
-     *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-     * `dispatch_deadline` will be truncated to the nearest millisecond. The
-     * deadline is an approximate deadline.
-     * 
- * - * .google.protobuf.Duration dispatch_deadline = 12; - * - * @return Whether the dispatchDeadline field is set. - */ - public boolean hasDispatchDeadline() { - return dispatchDeadlineBuilder_ != null || dispatchDeadline_ != null; - } - /** - * - * - *
-     * The deadline for requests sent to the worker. If the worker does not
-     * respond by this deadline then the request is cancelled and the attempt
-     * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-     * task according to the [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig].
-     * Note that when the request is cancelled, Cloud Tasks will stop listening
-     * for the response, but whether the worker stops processing depends on the
-     * worker. For example, if the worker is stuck, it may not react to cancelled
-     * requests.
-     * The default and maximum values depend on the type of request:
-     * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 10 minutes. The deadline
-     *   must be in the interval [15 seconds, 30 minutes].
-     * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 0 indicates that the
-     *   request has the default deadline. The default deadline depends on the
-     *   [scaling
-     *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-     *   of the service: 10 minutes for standard apps with automatic scaling, 24
-     *   hours for standard apps with manual and basic scaling, and 60 minutes for
-     *   flex apps. If the request deadline is set, it must be in the interval [15
-     *   seconds, 24 hours 15 seconds]. Regardless of the task's
-     *   `dispatch_deadline`, the app handler will not run for longer than than
-     *   the service's timeout. We recommend setting the `dispatch_deadline` to
-     *   at most a few seconds more than the app handler's timeout. For more
-     *   information see
-     *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-     * `dispatch_deadline` will be truncated to the nearest millisecond. The
-     * deadline is an approximate deadline.
-     * 
- * - * .google.protobuf.Duration dispatch_deadline = 12; - * - * @return The dispatchDeadline. - */ - public com.google.protobuf.Duration getDispatchDeadline() { - if (dispatchDeadlineBuilder_ == null) { - return dispatchDeadline_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : dispatchDeadline_; - } else { - return dispatchDeadlineBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The deadline for requests sent to the worker. If the worker does not
-     * respond by this deadline then the request is cancelled and the attempt
-     * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-     * task according to the [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig].
-     * Note that when the request is cancelled, Cloud Tasks will stop listening
-     * for the response, but whether the worker stops processing depends on the
-     * worker. For example, if the worker is stuck, it may not react to cancelled
-     * requests.
-     * The default and maximum values depend on the type of request:
-     * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 10 minutes. The deadline
-     *   must be in the interval [15 seconds, 30 minutes].
-     * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 0 indicates that the
-     *   request has the default deadline. The default deadline depends on the
-     *   [scaling
-     *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-     *   of the service: 10 minutes for standard apps with automatic scaling, 24
-     *   hours for standard apps with manual and basic scaling, and 60 minutes for
-     *   flex apps. If the request deadline is set, it must be in the interval [15
-     *   seconds, 24 hours 15 seconds]. Regardless of the task's
-     *   `dispatch_deadline`, the app handler will not run for longer than than
-     *   the service's timeout. We recommend setting the `dispatch_deadline` to
-     *   at most a few seconds more than the app handler's timeout. For more
-     *   information see
-     *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-     * `dispatch_deadline` will be truncated to the nearest millisecond. The
-     * deadline is an approximate deadline.
-     * 
- * - * .google.protobuf.Duration dispatch_deadline = 12; - */ - public Builder setDispatchDeadline(com.google.protobuf.Duration value) { - if (dispatchDeadlineBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dispatchDeadline_ = value; - onChanged(); - } else { - dispatchDeadlineBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The deadline for requests sent to the worker. If the worker does not
-     * respond by this deadline then the request is cancelled and the attempt
-     * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-     * task according to the [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig].
-     * Note that when the request is cancelled, Cloud Tasks will stop listening
-     * for the response, but whether the worker stops processing depends on the
-     * worker. For example, if the worker is stuck, it may not react to cancelled
-     * requests.
-     * The default and maximum values depend on the type of request:
-     * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 10 minutes. The deadline
-     *   must be in the interval [15 seconds, 30 minutes].
-     * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 0 indicates that the
-     *   request has the default deadline. The default deadline depends on the
-     *   [scaling
-     *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-     *   of the service: 10 minutes for standard apps with automatic scaling, 24
-     *   hours for standard apps with manual and basic scaling, and 60 minutes for
-     *   flex apps. If the request deadline is set, it must be in the interval [15
-     *   seconds, 24 hours 15 seconds]. Regardless of the task's
-     *   `dispatch_deadline`, the app handler will not run for longer than than
-     *   the service's timeout. We recommend setting the `dispatch_deadline` to
-     *   at most a few seconds more than the app handler's timeout. For more
-     *   information see
-     *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-     * `dispatch_deadline` will be truncated to the nearest millisecond. The
-     * deadline is an approximate deadline.
-     * 
- * - * .google.protobuf.Duration dispatch_deadline = 12; - */ - public Builder setDispatchDeadline(com.google.protobuf.Duration.Builder builderForValue) { - if (dispatchDeadlineBuilder_ == null) { - dispatchDeadline_ = builderForValue.build(); - onChanged(); - } else { - dispatchDeadlineBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The deadline for requests sent to the worker. If the worker does not
-     * respond by this deadline then the request is cancelled and the attempt
-     * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-     * task according to the [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig].
-     * Note that when the request is cancelled, Cloud Tasks will stop listening
-     * for the response, but whether the worker stops processing depends on the
-     * worker. For example, if the worker is stuck, it may not react to cancelled
-     * requests.
-     * The default and maximum values depend on the type of request:
-     * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 10 minutes. The deadline
-     *   must be in the interval [15 seconds, 30 minutes].
-     * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 0 indicates that the
-     *   request has the default deadline. The default deadline depends on the
-     *   [scaling
-     *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-     *   of the service: 10 minutes for standard apps with automatic scaling, 24
-     *   hours for standard apps with manual and basic scaling, and 60 minutes for
-     *   flex apps. If the request deadline is set, it must be in the interval [15
-     *   seconds, 24 hours 15 seconds]. Regardless of the task's
-     *   `dispatch_deadline`, the app handler will not run for longer than than
-     *   the service's timeout. We recommend setting the `dispatch_deadline` to
-     *   at most a few seconds more than the app handler's timeout. For more
-     *   information see
-     *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-     * `dispatch_deadline` will be truncated to the nearest millisecond. The
-     * deadline is an approximate deadline.
-     * 
- * - * .google.protobuf.Duration dispatch_deadline = 12; - */ - public Builder mergeDispatchDeadline(com.google.protobuf.Duration value) { - if (dispatchDeadlineBuilder_ == null) { - if (dispatchDeadline_ != null) { - dispatchDeadline_ = - com.google.protobuf.Duration.newBuilder(dispatchDeadline_) - .mergeFrom(value) - .buildPartial(); - } else { - dispatchDeadline_ = value; - } - onChanged(); - } else { - dispatchDeadlineBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The deadline for requests sent to the worker. If the worker does not
-     * respond by this deadline then the request is cancelled and the attempt
-     * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-     * task according to the [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig].
-     * Note that when the request is cancelled, Cloud Tasks will stop listening
-     * for the response, but whether the worker stops processing depends on the
-     * worker. For example, if the worker is stuck, it may not react to cancelled
-     * requests.
-     * The default and maximum values depend on the type of request:
-     * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 10 minutes. The deadline
-     *   must be in the interval [15 seconds, 30 minutes].
-     * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 0 indicates that the
-     *   request has the default deadline. The default deadline depends on the
-     *   [scaling
-     *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-     *   of the service: 10 minutes for standard apps with automatic scaling, 24
-     *   hours for standard apps with manual and basic scaling, and 60 minutes for
-     *   flex apps. If the request deadline is set, it must be in the interval [15
-     *   seconds, 24 hours 15 seconds]. Regardless of the task's
-     *   `dispatch_deadline`, the app handler will not run for longer than than
-     *   the service's timeout. We recommend setting the `dispatch_deadline` to
-     *   at most a few seconds more than the app handler's timeout. For more
-     *   information see
-     *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-     * `dispatch_deadline` will be truncated to the nearest millisecond. The
-     * deadline is an approximate deadline.
-     * 
- * - * .google.protobuf.Duration dispatch_deadline = 12; - */ - public Builder clearDispatchDeadline() { - if (dispatchDeadlineBuilder_ == null) { - dispatchDeadline_ = null; - onChanged(); - } else { - dispatchDeadline_ = null; - dispatchDeadlineBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The deadline for requests sent to the worker. If the worker does not
-     * respond by this deadline then the request is cancelled and the attempt
-     * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-     * task according to the [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig].
-     * Note that when the request is cancelled, Cloud Tasks will stop listening
-     * for the response, but whether the worker stops processing depends on the
-     * worker. For example, if the worker is stuck, it may not react to cancelled
-     * requests.
-     * The default and maximum values depend on the type of request:
-     * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 10 minutes. The deadline
-     *   must be in the interval [15 seconds, 30 minutes].
-     * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 0 indicates that the
-     *   request has the default deadline. The default deadline depends on the
-     *   [scaling
-     *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-     *   of the service: 10 minutes for standard apps with automatic scaling, 24
-     *   hours for standard apps with manual and basic scaling, and 60 minutes for
-     *   flex apps. If the request deadline is set, it must be in the interval [15
-     *   seconds, 24 hours 15 seconds]. Regardless of the task's
-     *   `dispatch_deadline`, the app handler will not run for longer than than
-     *   the service's timeout. We recommend setting the `dispatch_deadline` to
-     *   at most a few seconds more than the app handler's timeout. For more
-     *   information see
-     *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-     * `dispatch_deadline` will be truncated to the nearest millisecond. The
-     * deadline is an approximate deadline.
-     * 
- * - * .google.protobuf.Duration dispatch_deadline = 12; - */ - public com.google.protobuf.Duration.Builder getDispatchDeadlineBuilder() { - - onChanged(); - return getDispatchDeadlineFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The deadline for requests sent to the worker. If the worker does not
-     * respond by this deadline then the request is cancelled and the attempt
-     * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-     * task according to the [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig].
-     * Note that when the request is cancelled, Cloud Tasks will stop listening
-     * for the response, but whether the worker stops processing depends on the
-     * worker. For example, if the worker is stuck, it may not react to cancelled
-     * requests.
-     * The default and maximum values depend on the type of request:
-     * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 10 minutes. The deadline
-     *   must be in the interval [15 seconds, 30 minutes].
-     * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 0 indicates that the
-     *   request has the default deadline. The default deadline depends on the
-     *   [scaling
-     *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-     *   of the service: 10 minutes for standard apps with automatic scaling, 24
-     *   hours for standard apps with manual and basic scaling, and 60 minutes for
-     *   flex apps. If the request deadline is set, it must be in the interval [15
-     *   seconds, 24 hours 15 seconds]. Regardless of the task's
-     *   `dispatch_deadline`, the app handler will not run for longer than than
-     *   the service's timeout. We recommend setting the `dispatch_deadline` to
-     *   at most a few seconds more than the app handler's timeout. For more
-     *   information see
-     *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-     * `dispatch_deadline` will be truncated to the nearest millisecond. The
-     * deadline is an approximate deadline.
-     * 
- * - * .google.protobuf.Duration dispatch_deadline = 12; - */ - public com.google.protobuf.DurationOrBuilder getDispatchDeadlineOrBuilder() { - if (dispatchDeadlineBuilder_ != null) { - return dispatchDeadlineBuilder_.getMessageOrBuilder(); - } else { - return dispatchDeadline_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : dispatchDeadline_; - } - } - /** - * - * - *
-     * The deadline for requests sent to the worker. If the worker does not
-     * respond by this deadline then the request is cancelled and the attempt
-     * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-     * task according to the [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig].
-     * Note that when the request is cancelled, Cloud Tasks will stop listening
-     * for the response, but whether the worker stops processing depends on the
-     * worker. For example, if the worker is stuck, it may not react to cancelled
-     * requests.
-     * The default and maximum values depend on the type of request:
-     * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 10 minutes. The deadline
-     *   must be in the interval [15 seconds, 30 minutes].
-     * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 0 indicates that the
-     *   request has the default deadline. The default deadline depends on the
-     *   [scaling
-     *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-     *   of the service: 10 minutes for standard apps with automatic scaling, 24
-     *   hours for standard apps with manual and basic scaling, and 60 minutes for
-     *   flex apps. If the request deadline is set, it must be in the interval [15
-     *   seconds, 24 hours 15 seconds]. Regardless of the task's
-     *   `dispatch_deadline`, the app handler will not run for longer than than
-     *   the service's timeout. We recommend setting the `dispatch_deadline` to
-     *   at most a few seconds more than the app handler's timeout. For more
-     *   information see
-     *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-     * `dispatch_deadline` will be truncated to the nearest millisecond. The
-     * deadline is an approximate deadline.
-     * 
- * - * .google.protobuf.Duration dispatch_deadline = 12; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getDispatchDeadlineFieldBuilder() { - if (dispatchDeadlineBuilder_ == null) { - dispatchDeadlineBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getDispatchDeadline(), getParentForChildren(), isClean()); - dispatchDeadline_ = null; - } - return dispatchDeadlineBuilder_; - } - - private int dispatchCount_; - /** - * - * - *
-     * Output only. The number of attempts dispatched.
-     * This count includes attempts which have been dispatched but haven't
-     * received a response.
-     * 
- * - * int32 dispatch_count = 6; - * - * @return The dispatchCount. - */ - @java.lang.Override - public int getDispatchCount() { - return dispatchCount_; - } - /** - * - * - *
-     * Output only. The number of attempts dispatched.
-     * This count includes attempts which have been dispatched but haven't
-     * received a response.
-     * 
- * - * int32 dispatch_count = 6; - * - * @param value The dispatchCount to set. - * @return This builder for chaining. - */ - public Builder setDispatchCount(int value) { - - dispatchCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The number of attempts dispatched.
-     * This count includes attempts which have been dispatched but haven't
-     * received a response.
-     * 
- * - * int32 dispatch_count = 6; - * - * @return This builder for chaining. - */ - public Builder clearDispatchCount() { - - dispatchCount_ = 0; - onChanged(); - return this; - } - - private int responseCount_; - /** - * - * - *
-     * Output only. The number of attempts which have received a response.
-     * 
- * - * int32 response_count = 7; - * - * @return The responseCount. - */ - @java.lang.Override - public int getResponseCount() { - return responseCount_; - } - /** - * - * - *
-     * Output only. The number of attempts which have received a response.
-     * 
- * - * int32 response_count = 7; - * - * @param value The responseCount to set. - * @return This builder for chaining. - */ - public Builder setResponseCount(int value) { - - responseCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The number of attempts which have received a response.
-     * 
- * - * int32 response_count = 7; - * - * @return This builder for chaining. - */ - public Builder clearResponseCount() { - - responseCount_ = 0; - onChanged(); - return this; - } - - private com.google.cloud.tasks.v2beta3.Attempt firstAttempt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.Attempt, - com.google.cloud.tasks.v2beta3.Attempt.Builder, - com.google.cloud.tasks.v2beta3.AttemptOrBuilder> - firstAttemptBuilder_; - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will be set.
-     * The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information is not retained by Cloud Tasks.
-     * 
- * - * .google.cloud.tasks.v2beta3.Attempt first_attempt = 8; - * - * @return Whether the firstAttempt field is set. - */ - public boolean hasFirstAttempt() { - return firstAttemptBuilder_ != null || firstAttempt_ != null; - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will be set.
-     * The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information is not retained by Cloud Tasks.
-     * 
- * - * .google.cloud.tasks.v2beta3.Attempt first_attempt = 8; - * - * @return The firstAttempt. - */ - public com.google.cloud.tasks.v2beta3.Attempt getFirstAttempt() { - if (firstAttemptBuilder_ == null) { - return firstAttempt_ == null - ? com.google.cloud.tasks.v2beta3.Attempt.getDefaultInstance() - : firstAttempt_; - } else { - return firstAttemptBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will be set.
-     * The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information is not retained by Cloud Tasks.
-     * 
- * - * .google.cloud.tasks.v2beta3.Attempt first_attempt = 8; - */ - public Builder setFirstAttempt(com.google.cloud.tasks.v2beta3.Attempt value) { - if (firstAttemptBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - firstAttempt_ = value; - onChanged(); - } else { - firstAttemptBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will be set.
-     * The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information is not retained by Cloud Tasks.
-     * 
- * - * .google.cloud.tasks.v2beta3.Attempt first_attempt = 8; - */ - public Builder setFirstAttempt(com.google.cloud.tasks.v2beta3.Attempt.Builder builderForValue) { - if (firstAttemptBuilder_ == null) { - firstAttempt_ = builderForValue.build(); - onChanged(); - } else { - firstAttemptBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will be set.
-     * The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information is not retained by Cloud Tasks.
-     * 
- * - * .google.cloud.tasks.v2beta3.Attempt first_attempt = 8; - */ - public Builder mergeFirstAttempt(com.google.cloud.tasks.v2beta3.Attempt value) { - if (firstAttemptBuilder_ == null) { - if (firstAttempt_ != null) { - firstAttempt_ = - com.google.cloud.tasks.v2beta3.Attempt.newBuilder(firstAttempt_) - .mergeFrom(value) - .buildPartial(); - } else { - firstAttempt_ = value; - } - onChanged(); - } else { - firstAttemptBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will be set.
-     * The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information is not retained by Cloud Tasks.
-     * 
- * - * .google.cloud.tasks.v2beta3.Attempt first_attempt = 8; - */ - public Builder clearFirstAttempt() { - if (firstAttemptBuilder_ == null) { - firstAttempt_ = null; - onChanged(); - } else { - firstAttempt_ = null; - firstAttemptBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will be set.
-     * The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information is not retained by Cloud Tasks.
-     * 
- * - * .google.cloud.tasks.v2beta3.Attempt first_attempt = 8; - */ - public com.google.cloud.tasks.v2beta3.Attempt.Builder getFirstAttemptBuilder() { - - onChanged(); - return getFirstAttemptFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will be set.
-     * The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information is not retained by Cloud Tasks.
-     * 
- * - * .google.cloud.tasks.v2beta3.Attempt first_attempt = 8; - */ - public com.google.cloud.tasks.v2beta3.AttemptOrBuilder getFirstAttemptOrBuilder() { - if (firstAttemptBuilder_ != null) { - return firstAttemptBuilder_.getMessageOrBuilder(); - } else { - return firstAttempt_ == null - ? com.google.cloud.tasks.v2beta3.Attempt.getDefaultInstance() - : firstAttempt_; - } - } - /** - * - * - *
-     * Output only. The status of the task's first attempt.
-     * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will be set.
-     * The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information is not retained by Cloud Tasks.
-     * 
- * - * .google.cloud.tasks.v2beta3.Attempt first_attempt = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.Attempt, - com.google.cloud.tasks.v2beta3.Attempt.Builder, - com.google.cloud.tasks.v2beta3.AttemptOrBuilder> - getFirstAttemptFieldBuilder() { - if (firstAttemptBuilder_ == null) { - firstAttemptBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.Attempt, - com.google.cloud.tasks.v2beta3.Attempt.Builder, - com.google.cloud.tasks.v2beta3.AttemptOrBuilder>( - getFirstAttempt(), getParentForChildren(), isClean()); - firstAttempt_ = null; - } - return firstAttemptBuilder_; - } - - private com.google.cloud.tasks.v2beta3.Attempt lastAttempt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.Attempt, - com.google.cloud.tasks.v2beta3.Attempt.Builder, - com.google.cloud.tasks.v2beta3.AttemptOrBuilder> - lastAttemptBuilder_; - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * 
- * - * .google.cloud.tasks.v2beta3.Attempt last_attempt = 9; - * - * @return Whether the lastAttempt field is set. - */ - public boolean hasLastAttempt() { - return lastAttemptBuilder_ != null || lastAttempt_ != null; - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * 
- * - * .google.cloud.tasks.v2beta3.Attempt last_attempt = 9; - * - * @return The lastAttempt. - */ - public com.google.cloud.tasks.v2beta3.Attempt getLastAttempt() { - if (lastAttemptBuilder_ == null) { - return lastAttempt_ == null - ? com.google.cloud.tasks.v2beta3.Attempt.getDefaultInstance() - : lastAttempt_; - } else { - return lastAttemptBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * 
- * - * .google.cloud.tasks.v2beta3.Attempt last_attempt = 9; - */ - public Builder setLastAttempt(com.google.cloud.tasks.v2beta3.Attempt value) { - if (lastAttemptBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lastAttempt_ = value; - onChanged(); - } else { - lastAttemptBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * 
- * - * .google.cloud.tasks.v2beta3.Attempt last_attempt = 9; - */ - public Builder setLastAttempt(com.google.cloud.tasks.v2beta3.Attempt.Builder builderForValue) { - if (lastAttemptBuilder_ == null) { - lastAttempt_ = builderForValue.build(); - onChanged(); - } else { - lastAttemptBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * 
- * - * .google.cloud.tasks.v2beta3.Attempt last_attempt = 9; - */ - public Builder mergeLastAttempt(com.google.cloud.tasks.v2beta3.Attempt value) { - if (lastAttemptBuilder_ == null) { - if (lastAttempt_ != null) { - lastAttempt_ = - com.google.cloud.tasks.v2beta3.Attempt.newBuilder(lastAttempt_) - .mergeFrom(value) - .buildPartial(); - } else { - lastAttempt_ = value; - } - onChanged(); - } else { - lastAttemptBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * 
- * - * .google.cloud.tasks.v2beta3.Attempt last_attempt = 9; - */ - public Builder clearLastAttempt() { - if (lastAttemptBuilder_ == null) { - lastAttempt_ = null; - onChanged(); - } else { - lastAttempt_ = null; - lastAttemptBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * 
- * - * .google.cloud.tasks.v2beta3.Attempt last_attempt = 9; - */ - public com.google.cloud.tasks.v2beta3.Attempt.Builder getLastAttemptBuilder() { - - onChanged(); - return getLastAttemptFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * 
- * - * .google.cloud.tasks.v2beta3.Attempt last_attempt = 9; - */ - public com.google.cloud.tasks.v2beta3.AttemptOrBuilder getLastAttemptOrBuilder() { - if (lastAttemptBuilder_ != null) { - return lastAttemptBuilder_.getMessageOrBuilder(); - } else { - return lastAttempt_ == null - ? com.google.cloud.tasks.v2beta3.Attempt.getDefaultInstance() - : lastAttempt_; - } - } - /** - * - * - *
-     * Output only. The status of the task's last attempt.
-     * 
- * - * .google.cloud.tasks.v2beta3.Attempt last_attempt = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.Attempt, - com.google.cloud.tasks.v2beta3.Attempt.Builder, - com.google.cloud.tasks.v2beta3.AttemptOrBuilder> - getLastAttemptFieldBuilder() { - if (lastAttemptBuilder_ == null) { - lastAttemptBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.Attempt, - com.google.cloud.tasks.v2beta3.Attempt.Builder, - com.google.cloud.tasks.v2beta3.AttemptOrBuilder>( - getLastAttempt(), getParentForChildren(), isClean()); - lastAttempt_ = null; - } - return lastAttemptBuilder_; - } - - private int view_ = 0; - /** - * - * - *
-     * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] has
-     * been returned.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View view = 10; - * - * @return The enum numeric value on the wire for view. - */ - @java.lang.Override - public int getViewValue() { - return view_; - } - /** - * - * - *
-     * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] has
-     * been returned.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View view = 10; - * - * @param value The enum numeric value on the wire for view to set. - * @return This builder for chaining. - */ - public Builder setViewValue(int value) { - - view_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] has
-     * been returned.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View view = 10; - * - * @return The view. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Task.View getView() { - @SuppressWarnings("deprecation") - com.google.cloud.tasks.v2beta3.Task.View result = - com.google.cloud.tasks.v2beta3.Task.View.valueOf(view_); - return result == null ? com.google.cloud.tasks.v2beta3.Task.View.UNRECOGNIZED : result; - } - /** - * - * - *
-     * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] has
-     * been returned.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View view = 10; - * - * @param value The view to set. - * @return This builder for chaining. - */ - public Builder setView(com.google.cloud.tasks.v2beta3.Task.View value) { - if (value == null) { - throw new NullPointerException(); - } - - view_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] has
-     * been returned.
-     * 
- * - * .google.cloud.tasks.v2beta3.Task.View view = 10; - * - * @return This builder for chaining. - */ - public Builder clearView() { - - view_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.cloud.tasks.v2beta3.Task) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.Task) - private static final com.google.cloud.tasks.v2beta3.Task DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.Task(); - } - - public static com.google.cloud.tasks.v2beta3.Task getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Task parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Task getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskName.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskName.java deleted file mode 100644 index 061715f4..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskName.java +++ /dev/null @@ -1,257 +0,0 @@ -/* - * Copyright 2022 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.v2beta3; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class TaskName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_QUEUE_TASK = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/queues/{queue}/tasks/{task}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String queue; - private final String task; - - @Deprecated - protected TaskName() { - project = null; - location = null; - queue = null; - task = null; - } - - private TaskName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - queue = Preconditions.checkNotNull(builder.getQueue()); - task = Preconditions.checkNotNull(builder.getTask()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getQueue() { - return queue; - } - - public String getTask() { - return task; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static TaskName of(String project, String location, String queue, String task) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setQueue(queue) - .setTask(task) - .build(); - } - - public static String format(String project, String location, String queue, String task) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setQueue(queue) - .setTask(task) - .build() - .toString(); - } - - public static TaskName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_QUEUE_TASK.validatedMatch( - formattedString, "TaskName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("queue"), - matchMap.get("task")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (TaskName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_QUEUE_TASK.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - if (queue != null) { - fieldMapBuilder.put("queue", queue); - } - if (task != null) { - fieldMapBuilder.put("task", task); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_QUEUE_TASK.instantiate( - "project", project, "location", location, "queue", queue, "task", task); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - TaskName that = ((TaskName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.queue, that.queue) - && Objects.equals(this.task, that.task); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - h *= 1000003; - h ^= Objects.hashCode(queue); - h *= 1000003; - h ^= Objects.hashCode(task); - return h; - } - - /** Builder for projects/{project}/locations/{location}/queues/{queue}/tasks/{task}. */ - public static class Builder { - private String project; - private String location; - private String queue; - private String task; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getQueue() { - return queue; - } - - public String getTask() { - return task; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setQueue(String queue) { - this.queue = queue; - return this; - } - - public Builder setTask(String task) { - this.task = task; - return this; - } - - private Builder(TaskName taskName) { - this.project = taskName.project; - this.location = taskName.location; - this.queue = taskName.queue; - this.task = taskName.task; - } - - public TaskName build() { - return new TaskName(this); - } - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskOrBuilder.java deleted file mode 100644 index 674d4ee6..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskOrBuilder.java +++ /dev/null @@ -1,533 +0,0 @@ -/* - * Copyright 2020 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/task.proto - -package com.google.cloud.tasks.v2beta3; - -public interface TaskOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.Task) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * The task name.
-   * The task name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the task's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-   *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask].
-   * The task name.
-   * The task name must have the following format:
-   * `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
-   * * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
-   *    hyphens (-), colons (:), or periods (.).
-   *    For more information, see
-   *    [Identifying
-   *    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
-   * * `LOCATION_ID` is the canonical ID for the task's location.
-   *    The list of available locations can be obtained by calling
-   *    [ListLocations][google.cloud.location.Locations.ListLocations].
-   *    For more information, see https://cloud.google.com/about/locations/.
-   * * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
-   *   hyphens (-). The maximum length is 100 characters.
-   * * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
-   *   hyphens (-), or underscores (_). The maximum length is 500 characters.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * HTTP request that is sent to the App Engine app handler.
-   * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3; - * - * @return Whether the appEngineHttpRequest field is set. - */ - boolean hasAppEngineHttpRequest(); - /** - * - * - *
-   * HTTP request that is sent to the App Engine app handler.
-   * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3; - * - * @return The appEngineHttpRequest. - */ - com.google.cloud.tasks.v2beta3.AppEngineHttpRequest getAppEngineHttpRequest(); - /** - * - * - *
-   * HTTP request that is sent to the App Engine app handler.
-   * An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2beta3.AppEngineHttpRequest app_engine_http_request = 3; - */ - com.google.cloud.tasks.v2beta3.AppEngineHttpRequestOrBuilder getAppEngineHttpRequestOrBuilder(); - - /** - * - * - *
-   * HTTP request that is sent to the task's target.
-   * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2beta3.HttpRequest http_request = 11; - * - * @return Whether the httpRequest field is set. - */ - boolean hasHttpRequest(); - /** - * - * - *
-   * HTTP request that is sent to the task's target.
-   * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2beta3.HttpRequest http_request = 11; - * - * @return The httpRequest. - */ - com.google.cloud.tasks.v2beta3.HttpRequest getHttpRequest(); - /** - * - * - *
-   * HTTP request that is sent to the task's target.
-   * An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set.
-   * 
- * - * .google.cloud.tasks.v2beta3.HttpRequest http_request = 11; - */ - com.google.cloud.tasks.v2beta3.HttpRequestOrBuilder getHttpRequestOrBuilder(); - - /** - * - * - *
-   * Pull Message contained in a task in a [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This
-   * payload type cannot be explicitly set through Cloud Tasks API. Its
-   * purpose, currently is to provide backward compatibility with App Engine
-   * Task Queue
-   * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/)
-   * queues to provide a way to inspect contents of pull tasks through the
-   * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask].
-   * 
- * - * .google.cloud.tasks.v2beta3.PullMessage pull_message = 13; - * - * @return Whether the pullMessage field is set. - */ - boolean hasPullMessage(); - /** - * - * - *
-   * Pull Message contained in a task in a [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This
-   * payload type cannot be explicitly set through Cloud Tasks API. Its
-   * purpose, currently is to provide backward compatibility with App Engine
-   * Task Queue
-   * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/)
-   * queues to provide a way to inspect contents of pull tasks through the
-   * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask].
-   * 
- * - * .google.cloud.tasks.v2beta3.PullMessage pull_message = 13; - * - * @return The pullMessage. - */ - com.google.cloud.tasks.v2beta3.PullMessage getPullMessage(); - /** - * - * - *
-   * Pull Message contained in a task in a [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This
-   * payload type cannot be explicitly set through Cloud Tasks API. Its
-   * purpose, currently is to provide backward compatibility with App Engine
-   * Task Queue
-   * [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/)
-   * queues to provide a way to inspect contents of pull tasks through the
-   * [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask].
-   * 
- * - * .google.cloud.tasks.v2beta3.PullMessage pull_message = 13; - */ - com.google.cloud.tasks.v2beta3.PullMessageOrBuilder getPullMessageOrBuilder(); - - /** - * - * - *
-   * The time when the task is scheduled to be attempted.
-   * For App Engine queues, this is when the task will be attempted or retried.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - * - * @return Whether the scheduleTime field is set. - */ - boolean hasScheduleTime(); - /** - * - * - *
-   * The time when the task is scheduled to be attempted.
-   * For App Engine queues, this is when the task will be attempted or retried.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - * - * @return The scheduleTime. - */ - com.google.protobuf.Timestamp getScheduleTime(); - /** - * - * - *
-   * The time when the task is scheduled to be attempted.
-   * For App Engine queues, this is when the task will be attempted or retried.
-   * `schedule_time` will be truncated to the nearest microsecond.
-   * 
- * - * .google.protobuf.Timestamp schedule_time = 4; - */ - com.google.protobuf.TimestampOrBuilder getScheduleTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The time that the task was created.
-   * `create_time` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Timestamp create_time = 5; - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - * - * - *
-   * Output only. The time that the task was created.
-   * `create_time` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Timestamp create_time = 5; - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - * - * - *
-   * Output only. The time that the task was created.
-   * `create_time` will be truncated to the nearest second.
-   * 
- * - * .google.protobuf.Timestamp create_time = 5; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * The deadline for requests sent to the worker. If the worker does not
-   * respond by this deadline then the request is cancelled and the attempt
-   * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-   * task according to the [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig].
-   * Note that when the request is cancelled, Cloud Tasks will stop listening
-   * for the response, but whether the worker stops processing depends on the
-   * worker. For example, if the worker is stuck, it may not react to cancelled
-   * requests.
-   * The default and maximum values depend on the type of request:
-   * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 10 minutes. The deadline
-   *   must be in the interval [15 seconds, 30 minutes].
-   * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 0 indicates that the
-   *   request has the default deadline. The default deadline depends on the
-   *   [scaling
-   *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-   *   of the service: 10 minutes for standard apps with automatic scaling, 24
-   *   hours for standard apps with manual and basic scaling, and 60 minutes for
-   *   flex apps. If the request deadline is set, it must be in the interval [15
-   *   seconds, 24 hours 15 seconds]. Regardless of the task's
-   *   `dispatch_deadline`, the app handler will not run for longer than than
-   *   the service's timeout. We recommend setting the `dispatch_deadline` to
-   *   at most a few seconds more than the app handler's timeout. For more
-   *   information see
-   *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-   * `dispatch_deadline` will be truncated to the nearest millisecond. The
-   * deadline is an approximate deadline.
-   * 
- * - * .google.protobuf.Duration dispatch_deadline = 12; - * - * @return Whether the dispatchDeadline field is set. - */ - boolean hasDispatchDeadline(); - /** - * - * - *
-   * The deadline for requests sent to the worker. If the worker does not
-   * respond by this deadline then the request is cancelled and the attempt
-   * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-   * task according to the [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig].
-   * Note that when the request is cancelled, Cloud Tasks will stop listening
-   * for the response, but whether the worker stops processing depends on the
-   * worker. For example, if the worker is stuck, it may not react to cancelled
-   * requests.
-   * The default and maximum values depend on the type of request:
-   * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 10 minutes. The deadline
-   *   must be in the interval [15 seconds, 30 minutes].
-   * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 0 indicates that the
-   *   request has the default deadline. The default deadline depends on the
-   *   [scaling
-   *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-   *   of the service: 10 minutes for standard apps with automatic scaling, 24
-   *   hours for standard apps with manual and basic scaling, and 60 minutes for
-   *   flex apps. If the request deadline is set, it must be in the interval [15
-   *   seconds, 24 hours 15 seconds]. Regardless of the task's
-   *   `dispatch_deadline`, the app handler will not run for longer than than
-   *   the service's timeout. We recommend setting the `dispatch_deadline` to
-   *   at most a few seconds more than the app handler's timeout. For more
-   *   information see
-   *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-   * `dispatch_deadline` will be truncated to the nearest millisecond. The
-   * deadline is an approximate deadline.
-   * 
- * - * .google.protobuf.Duration dispatch_deadline = 12; - * - * @return The dispatchDeadline. - */ - com.google.protobuf.Duration getDispatchDeadline(); - /** - * - * - *
-   * The deadline for requests sent to the worker. If the worker does not
-   * respond by this deadline then the request is cancelled and the attempt
-   * is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
-   * task according to the [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig].
-   * Note that when the request is cancelled, Cloud Tasks will stop listening
-   * for the response, but whether the worker stops processing depends on the
-   * worker. For example, if the worker is stuck, it may not react to cancelled
-   * requests.
-   * The default and maximum values depend on the type of request:
-   * * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 10 minutes. The deadline
-   *   must be in the interval [15 seconds, 30 minutes].
-   * * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 0 indicates that the
-   *   request has the default deadline. The default deadline depends on the
-   *   [scaling
-   *   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
-   *   of the service: 10 minutes for standard apps with automatic scaling, 24
-   *   hours for standard apps with manual and basic scaling, and 60 minutes for
-   *   flex apps. If the request deadline is set, it must be in the interval [15
-   *   seconds, 24 hours 15 seconds]. Regardless of the task's
-   *   `dispatch_deadline`, the app handler will not run for longer than than
-   *   the service's timeout. We recommend setting the `dispatch_deadline` to
-   *   at most a few seconds more than the app handler's timeout. For more
-   *   information see
-   *   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
-   * `dispatch_deadline` will be truncated to the nearest millisecond. The
-   * deadline is an approximate deadline.
-   * 
- * - * .google.protobuf.Duration dispatch_deadline = 12; - */ - com.google.protobuf.DurationOrBuilder getDispatchDeadlineOrBuilder(); - - /** - * - * - *
-   * Output only. The number of attempts dispatched.
-   * This count includes attempts which have been dispatched but haven't
-   * received a response.
-   * 
- * - * int32 dispatch_count = 6; - * - * @return The dispatchCount. - */ - int getDispatchCount(); - - /** - * - * - *
-   * Output only. The number of attempts which have received a response.
-   * 
- * - * int32 response_count = 7; - * - * @return The responseCount. - */ - int getResponseCount(); - - /** - * - * - *
-   * Output only. The status of the task's first attempt.
-   * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will be set.
-   * The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information is not retained by Cloud Tasks.
-   * 
- * - * .google.cloud.tasks.v2beta3.Attempt first_attempt = 8; - * - * @return Whether the firstAttempt field is set. - */ - boolean hasFirstAttempt(); - /** - * - * - *
-   * Output only. The status of the task's first attempt.
-   * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will be set.
-   * The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information is not retained by Cloud Tasks.
-   * 
- * - * .google.cloud.tasks.v2beta3.Attempt first_attempt = 8; - * - * @return The firstAttempt. - */ - com.google.cloud.tasks.v2beta3.Attempt getFirstAttempt(); - /** - * - * - *
-   * Output only. The status of the task's first attempt.
-   * Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will be set.
-   * The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information is not retained by Cloud Tasks.
-   * 
- * - * .google.cloud.tasks.v2beta3.Attempt first_attempt = 8; - */ - com.google.cloud.tasks.v2beta3.AttemptOrBuilder getFirstAttemptOrBuilder(); - - /** - * - * - *
-   * Output only. The status of the task's last attempt.
-   * 
- * - * .google.cloud.tasks.v2beta3.Attempt last_attempt = 9; - * - * @return Whether the lastAttempt field is set. - */ - boolean hasLastAttempt(); - /** - * - * - *
-   * Output only. The status of the task's last attempt.
-   * 
- * - * .google.cloud.tasks.v2beta3.Attempt last_attempt = 9; - * - * @return The lastAttempt. - */ - com.google.cloud.tasks.v2beta3.Attempt getLastAttempt(); - /** - * - * - *
-   * Output only. The status of the task's last attempt.
-   * 
- * - * .google.cloud.tasks.v2beta3.Attempt last_attempt = 9; - */ - com.google.cloud.tasks.v2beta3.AttemptOrBuilder getLastAttemptOrBuilder(); - - /** - * - * - *
-   * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] has
-   * been returned.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task.View view = 10; - * - * @return The enum numeric value on the wire for view. - */ - int getViewValue(); - /** - * - * - *
-   * Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] has
-   * been returned.
-   * 
- * - * .google.cloud.tasks.v2beta3.Task.View view = 10; - * - * @return The view. - */ - com.google.cloud.tasks.v2beta3.Task.View getView(); - - public com.google.cloud.tasks.v2beta3.Task.PayloadTypeCase getPayloadTypeCase(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskProto.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskProto.java deleted file mode 100644 index 35a52e32..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskProto.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright 2020 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/task.proto - -package com.google.cloud.tasks.v2beta3; - -public final class TaskProto { - private TaskProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_Task_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_Task_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_tasks_v2beta3_Attempt_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_tasks_v2beta3_Attempt_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n%google/cloud/tasks/v2beta3/task.proto\022" - + "\032google.cloud.tasks.v2beta3\032\031google/api/" - + "resource.proto\032\'google/cloud/tasks/v2bet" - + "a3/target.proto\032\036google/protobuf/duratio" - + "n.proto\032\037google/protobuf/timestamp.proto" - + "\032\027google/rpc/status.proto\"\216\006\n\004Task\022\014\n\004na" - + "me\030\001 \001(\t\022S\n\027app_engine_http_request\030\003 \001(" - + "\01320.google.cloud.tasks.v2beta3.AppEngine" - + "HttpRequestH\000\022?\n\014http_request\030\013 \001(\0132\'.go" - + "ogle.cloud.tasks.v2beta3.HttpRequestH\000\022?" - + "\n\014pull_message\030\r \001(\0132\'.google.cloud.task" - + "s.v2beta3.PullMessageH\000\0221\n\rschedule_time" - + "\030\004 \001(\0132\032.google.protobuf.Timestamp\022/\n\013cr" - + "eate_time\030\005 \001(\0132\032.google.protobuf.Timest" - + "amp\0224\n\021dispatch_deadline\030\014 \001(\0132\031.google." - + "protobuf.Duration\022\026\n\016dispatch_count\030\006 \001(" - + "\005\022\026\n\016response_count\030\007 \001(\005\022:\n\rfirst_attem" - + "pt\030\010 \001(\0132#.google.cloud.tasks.v2beta3.At" - + "tempt\0229\n\014last_attempt\030\t \001(\0132#.google.clo" - + "ud.tasks.v2beta3.Attempt\0223\n\004view\030\n \001(\0162%" - + ".google.cloud.tasks.v2beta3.Task.View\"1\n" - + "\004View\022\024\n\020VIEW_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010" - + "\n\004FULL\020\002:h\352Ae\n\036cloudtasks.googleapis.com" - + "/Task\022Cprojects/{project}/locations/{loc" - + "ation}/queues/{queue}/tasks/{task}B\016\n\014pa" - + "yload_type\"\317\001\n\007Attempt\0221\n\rschedule_time\030" - + "\001 \001(\0132\032.google.protobuf.Timestamp\0221\n\rdis" - + "patch_time\030\002 \001(\0132\032.google.protobuf.Times" - + "tamp\0221\n\rresponse_time\030\003 \001(\0132\032.google.pro" - + "tobuf.Timestamp\022+\n\017response_status\030\004 \001(\013" - + "2\022.google.rpc.StatusBn\n\036com.google.cloud" - + ".tasks.v2beta3B\tTaskProtoP\001Z?google.gola" - + "ng.org/genproto/googleapis/cloud/tasks/v" - + "2beta3;tasksb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.tasks.v2beta3.TargetProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_tasks_v2beta3_Task_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_tasks_v2beta3_Task_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_Task_descriptor, - new java.lang.String[] { - "Name", - "AppEngineHttpRequest", - "HttpRequest", - "PullMessage", - "ScheduleTime", - "CreateTime", - "DispatchDeadline", - "DispatchCount", - "ResponseCount", - "FirstAttempt", - "LastAttempt", - "View", - "PayloadType", - }); - internal_static_google_cloud_tasks_v2beta3_Attempt_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_tasks_v2beta3_Attempt_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_tasks_v2beta3_Attempt_descriptor, - new java.lang.String[] { - "ScheduleTime", "DispatchTime", "ResponseTime", "ResponseStatus", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.tasks.v2beta3.TargetProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/UpdateQueueRequest.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/UpdateQueueRequest.java deleted file mode 100644 index bf068dff..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/UpdateQueueRequest.java +++ /dev/null @@ -1,1032 +0,0 @@ -/* - * Copyright 2020 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 [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue].
- * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.UpdateQueueRequest} - */ -public final class UpdateQueueRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.tasks.v2beta3.UpdateQueueRequest) - UpdateQueueRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateQueueRequest.newBuilder() to construct. - private UpdateQueueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UpdateQueueRequest() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateQueueRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_UpdateQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_UpdateQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.UpdateQueueRequest.class, - com.google.cloud.tasks.v2beta3.UpdateQueueRequest.Builder.class); - } - - public static final int QUEUE_FIELD_NUMBER = 1; - private com.google.cloud.tasks.v2beta3.Queue queue_; - /** - * - * - *
-   * Required. The queue to create or update.
-   * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] must be specified.
-   * Output only fields cannot be modified using UpdateQueue.
-   * Any value specified for an output only field will be ignored.
-   * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] cannot be changed.
-   * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the queue field is set. - */ - @java.lang.Override - public boolean hasQueue() { - return queue_ != null; - } - /** - * - * - *
-   * Required. The queue to create or update.
-   * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] must be specified.
-   * Output only fields cannot be modified using UpdateQueue.
-   * Any value specified for an output only field will be ignored.
-   * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] cannot be changed.
-   * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The queue. - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.Queue getQueue() { - return queue_ == null ? com.google.cloud.tasks.v2beta3.Queue.getDefaultInstance() : queue_; - } - /** - * - * - *
-   * Required. The queue to create or update.
-   * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] must be specified.
-   * Output only fields cannot be modified using UpdateQueue.
-   * Any value specified for an output only field will be ignored.
-   * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] cannot be changed.
-   * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.tasks.v2beta3.QueueOrBuilder getQueueOrBuilder() { - return getQueue(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * - * - *
-   * A mask used to specify which fields of the queue are being updated.
-   * If empty, then all fields will be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * - * - *
-   * A mask used to specify which fields of the queue are being updated.
-   * If empty, then all fields will be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * - * - *
-   * A mask used to specify which fields of the queue are being updated.
-   * If empty, then all fields will be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - 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 (queue_ != null) { - output.writeMessage(1, getQueue()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (queue_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getQueue()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - 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.UpdateQueueRequest)) { - return super.equals(obj); - } - com.google.cloud.tasks.v2beta3.UpdateQueueRequest other = - (com.google.cloud.tasks.v2beta3.UpdateQueueRequest) obj; - - if (hasQueue() != other.hasQueue()) return false; - if (hasQueue()) { - if (!getQueue().equals(other.getQueue())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasQueue()) { - hash = (37 * hash) + QUEUE_FIELD_NUMBER; - hash = (53 * hash) + getQueue().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.tasks.v2beta3.UpdateQueueRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.UpdateQueueRequest 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.UpdateQueueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.UpdateQueueRequest 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.UpdateQueueRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.tasks.v2beta3.UpdateQueueRequest 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.UpdateQueueRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.UpdateQueueRequest 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.UpdateQueueRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.tasks.v2beta3.UpdateQueueRequest 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.UpdateQueueRequest 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.UpdateQueueRequest 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.UpdateQueueRequest 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 [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue].
-   * 
- * - * Protobuf type {@code google.cloud.tasks.v2beta3.UpdateQueueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.tasks.v2beta3.UpdateQueueRequest) - com.google.cloud.tasks.v2beta3.UpdateQueueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_UpdateQueueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_UpdateQueueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.tasks.v2beta3.UpdateQueueRequest.class, - com.google.cloud.tasks.v2beta3.UpdateQueueRequest.Builder.class); - } - - // Construct using com.google.cloud.tasks.v2beta3.UpdateQueueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (queueBuilder_ == null) { - queue_ = null; - } else { - queue_ = null; - queueBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.tasks.v2beta3.CloudTasksProto - .internal_static_google_cloud_tasks_v2beta3_UpdateQueueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.UpdateQueueRequest getDefaultInstanceForType() { - return com.google.cloud.tasks.v2beta3.UpdateQueueRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.UpdateQueueRequest build() { - com.google.cloud.tasks.v2beta3.UpdateQueueRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.UpdateQueueRequest buildPartial() { - com.google.cloud.tasks.v2beta3.UpdateQueueRequest result = - new com.google.cloud.tasks.v2beta3.UpdateQueueRequest(this); - if (queueBuilder_ == null) { - result.queue_ = queue_; - } else { - result.queue_ = queueBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.tasks.v2beta3.UpdateQueueRequest) { - return mergeFrom((com.google.cloud.tasks.v2beta3.UpdateQueueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.tasks.v2beta3.UpdateQueueRequest other) { - if (other == com.google.cloud.tasks.v2beta3.UpdateQueueRequest.getDefaultInstance()) - return this; - if (other.hasQueue()) { - mergeQueue(other.getQueue()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getQueueFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.cloud.tasks.v2beta3.Queue queue_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.Queue, - com.google.cloud.tasks.v2beta3.Queue.Builder, - com.google.cloud.tasks.v2beta3.QueueOrBuilder> - queueBuilder_; - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the queue field is set. - */ - public boolean hasQueue() { - return queueBuilder_ != null || queue_ != null; - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The queue. - */ - public com.google.cloud.tasks.v2beta3.Queue getQueue() { - if (queueBuilder_ == null) { - return queue_ == null ? com.google.cloud.tasks.v2beta3.Queue.getDefaultInstance() : queue_; - } else { - return queueBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setQueue(com.google.cloud.tasks.v2beta3.Queue value) { - if (queueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queue_ = value; - onChanged(); - } else { - queueBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setQueue(com.google.cloud.tasks.v2beta3.Queue.Builder builderForValue) { - if (queueBuilder_ == null) { - queue_ = builderForValue.build(); - onChanged(); - } else { - queueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeQueue(com.google.cloud.tasks.v2beta3.Queue value) { - if (queueBuilder_ == null) { - if (queue_ != null) { - queue_ = - com.google.cloud.tasks.v2beta3.Queue.newBuilder(queue_) - .mergeFrom(value) - .buildPartial(); - } else { - queue_ = value; - } - onChanged(); - } else { - queueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearQueue() { - if (queueBuilder_ == null) { - queue_ = null; - onChanged(); - } else { - queue_ = null; - queueBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.tasks.v2beta3.Queue.Builder getQueueBuilder() { - - onChanged(); - return getQueueFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.tasks.v2beta3.QueueOrBuilder getQueueOrBuilder() { - if (queueBuilder_ != null) { - return queueBuilder_.getMessageOrBuilder(); - } else { - return queue_ == null ? com.google.cloud.tasks.v2beta3.Queue.getDefaultInstance() : queue_; - } - } - /** - * - * - *
-     * Required. The queue to create or update.
-     * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] must be specified.
-     * Output only fields cannot be modified using UpdateQueue.
-     * Any value specified for an output only field will be ignored.
-     * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] cannot be changed.
-     * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.Queue, - com.google.cloud.tasks.v2beta3.Queue.Builder, - com.google.cloud.tasks.v2beta3.QueueOrBuilder> - getQueueFieldBuilder() { - if (queueBuilder_ == null) { - queueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.tasks.v2beta3.Queue, - com.google.cloud.tasks.v2beta3.Queue.Builder, - com.google.cloud.tasks.v2beta3.QueueOrBuilder>( - getQueue(), getParentForChildren(), isClean()); - queue_ = null; - } - return queueBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - /** - * - * - *
-     * A mask used to specify which fields of the queue are being updated.
-     * If empty, then all fields will be updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - @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.UpdateQueueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.tasks.v2beta3.UpdateQueueRequest) - private static final com.google.cloud.tasks.v2beta3.UpdateQueueRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.tasks.v2beta3.UpdateQueueRequest(); - } - - public static com.google.cloud.tasks.v2beta3.UpdateQueueRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateQueueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.tasks.v2beta3.UpdateQueueRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/UpdateQueueRequestOrBuilder.java b/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/UpdateQueueRequestOrBuilder.java deleted file mode 100644 index 3e6869a9..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/UpdateQueueRequestOrBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2020 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; - -public interface UpdateQueueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.tasks.v2beta3.UpdateQueueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The queue to create or update.
-   * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] must be specified.
-   * Output only fields cannot be modified using UpdateQueue.
-   * Any value specified for an output only field will be ignored.
-   * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] cannot be changed.
-   * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the queue field is set. - */ - boolean hasQueue(); - /** - * - * - *
-   * Required. The queue to create or update.
-   * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] must be specified.
-   * Output only fields cannot be modified using UpdateQueue.
-   * Any value specified for an output only field will be ignored.
-   * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] cannot be changed.
-   * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The queue. - */ - com.google.cloud.tasks.v2beta3.Queue getQueue(); - /** - * - * - *
-   * Required. The queue to create or update.
-   * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] must be specified.
-   * Output only fields cannot be modified using UpdateQueue.
-   * Any value specified for an output only field will be ignored.
-   * The queue's [name][google.cloud.tasks.v2beta3.Queue.name] cannot be changed.
-   * 
- * - * .google.cloud.tasks.v2beta3.Queue queue = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.tasks.v2beta3.QueueOrBuilder getQueueOrBuilder(); - - /** - * - * - *
-   * A mask used to specify which fields of the queue are being updated.
-   * If empty, then all fields will be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * - * - *
-   * A mask used to specify which fields of the queue are being updated.
-   * If empty, then all fields will be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * - * - *
-   * A mask used to specify which fields of the queue are being updated.
-   * If empty, then all fields will be updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/cloudtasks.proto b/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/cloudtasks.proto deleted file mode 100644 index 81e2098d..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/cloudtasks.proto +++ /dev/null @@ -1,666 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.tasks.v2beta3; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/tasks/v2beta3/queue.proto"; -import "google/cloud/tasks/v2beta3/task.proto"; -import "google/iam/v1/iam_policy.proto"; -import "google/iam/v1/policy.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks"; -option java_multiple_files = true; -option java_outer_classname = "CloudTasksProto"; -option java_package = "com.google.cloud.tasks.v2beta3"; -option objc_class_prefix = "TASKS"; - -// Cloud Tasks allows developers to manage the execution of background -// work in their applications. -service CloudTasks { - option (google.api.default_host) = "cloudtasks.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Lists queues. - // - // Queues are returned in lexicographical order. - rpc ListQueues(ListQueuesRequest) returns (ListQueuesResponse) { - option (google.api.http) = { - get: "/v2beta3/{parent=projects/*/locations/*}/queues" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets a queue. - rpc GetQueue(GetQueueRequest) returns (Queue) { - option (google.api.http) = { - get: "/v2beta3/{name=projects/*/locations/*/queues/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a queue. - // - // Queues created with this method allow tasks to live for a maximum of 31 - // days. After a task is 31 days old, the task will be deleted regardless of whether - // it was dispatched or not. - // - // WARNING: Using this method may have unintended side effects if you are - // using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. - // Read - // [Overview of Queue Management and - // queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using - // this method. - rpc CreateQueue(CreateQueueRequest) returns (Queue) { - option (google.api.http) = { - post: "/v2beta3/{parent=projects/*/locations/*}/queues" - body: "queue" - }; - option (google.api.method_signature) = "parent,queue"; - } - - // Updates a queue. - // - // This method creates the queue if it does not exist and updates - // the queue if it does exist. - // - // Queues created with this method allow tasks to live for a maximum of 31 - // days. After a task is 31 days old, the task will be deleted regardless of whether - // it was dispatched or not. - // - // WARNING: Using this method may have unintended side effects if you are - // using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. - // Read - // [Overview of Queue Management and - // queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using - // this method. - rpc UpdateQueue(UpdateQueueRequest) returns (Queue) { - option (google.api.http) = { - patch: "/v2beta3/{queue.name=projects/*/locations/*/queues/*}" - body: "queue" - }; - option (google.api.method_signature) = "queue,update_mask"; - } - - // Deletes a queue. - // - // This command will delete the queue even if it has tasks in it. - // - // Note: If you delete a queue, a queue with the same name can't be created - // for 7 days. - // - // WARNING: Using this method may have unintended side effects if you are - // using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. - // Read - // [Overview of Queue Management and - // queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using - // this method. - rpc DeleteQueue(DeleteQueueRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v2beta3/{name=projects/*/locations/*/queues/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Purges a queue by deleting all of its tasks. - // - // All tasks created before this method is called are permanently deleted. - // - // Purge operations can take up to one minute to take effect. Tasks - // might be dispatched before the purge takes effect. A purge is irreversible. - rpc PurgeQueue(PurgeQueueRequest) returns (Queue) { - option (google.api.http) = { - post: "/v2beta3/{name=projects/*/locations/*/queues/*}:purge" - body: "*" - }; - option (google.api.method_signature) = "name"; - } - - // Pauses the queue. - // - // If a queue is paused then the system will stop dispatching tasks - // until the queue is resumed via - // [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue]. Tasks can still be added - // when the queue is paused. A queue is paused if its - // [state][google.cloud.tasks.v2beta3.Queue.state] is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED]. - rpc PauseQueue(PauseQueueRequest) returns (Queue) { - option (google.api.http) = { - post: "/v2beta3/{name=projects/*/locations/*/queues/*}:pause" - body: "*" - }; - option (google.api.method_signature) = "name"; - } - - // Resume a queue. - // - // This method resumes a queue after it has been - // [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED] or - // [DISABLED][google.cloud.tasks.v2beta3.Queue.State.DISABLED]. The state of a queue is stored - // in the queue's [state][google.cloud.tasks.v2beta3.Queue.state]; after calling this method it - // will be set to [RUNNING][google.cloud.tasks.v2beta3.Queue.State.RUNNING]. - // - // WARNING: Resuming many high-QPS queues at the same time can - // lead to target overloading. If you are resuming high-QPS - // queues, follow the 500/50/5 pattern described in - // [Managing Cloud Tasks Scaling - // Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling). - rpc ResumeQueue(ResumeQueueRequest) returns (Queue) { - option (google.api.http) = { - post: "/v2beta3/{name=projects/*/locations/*/queues/*}:resume" - body: "*" - }; - option (google.api.method_signature) = "name"; - } - - // Gets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. - // Returns an empty policy if the resource exists and does not have a policy - // set. - // - // Authorization requires the following - // [Google IAM](https://cloud.google.com/iam) permission on the specified - // resource parent: - // - // * `cloudtasks.queues.getIamPolicy` - rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { - option (google.api.http) = { - post: "/v2beta3/{resource=projects/*/locations/*/queues/*}:getIamPolicy" - body: "*" - }; - option (google.api.method_signature) = "resource"; - } - - // Sets the access control policy for a [Queue][google.cloud.tasks.v2beta3.Queue]. Replaces any existing - // policy. - // - // Note: The Cloud Console does not check queue-level IAM permissions yet. - // Project-level permissions are required to use the Cloud Console. - // - // Authorization requires the following - // [Google IAM](https://cloud.google.com/iam) permission on the specified - // resource parent: - // - // * `cloudtasks.queues.setIamPolicy` - rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { - option (google.api.http) = { - post: "/v2beta3/{resource=projects/*/locations/*/queues/*}:setIamPolicy" - body: "*" - }; - option (google.api.method_signature) = "resource,policy"; - } - - // Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta3.Queue]. - // If the resource does not exist, this will return an empty set of - // permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error. - // - // Note: This operation is designed to be used for building permission-aware - // UIs and command-line tools, not for authorization checking. This operation - // may "fail open" without warning. - rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { - option (google.api.http) = { - post: "/v2beta3/{resource=projects/*/locations/*/queues/*}:testIamPermissions" - body: "*" - }; - option (google.api.method_signature) = "resource,permissions"; - } - - // Lists the tasks in a queue. - // - // By default, only the [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC] view is retrieved - // due to performance considerations; - // [response_view][google.cloud.tasks.v2beta3.ListTasksRequest.response_view] controls the - // subset of information which is returned. - // - // The tasks may be returned in any order. The ordering may change at any - // time. - rpc ListTasks(ListTasksRequest) returns (ListTasksResponse) { - option (google.api.http) = { - get: "/v2beta3/{parent=projects/*/locations/*/queues/*}/tasks" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets a task. - rpc GetTask(GetTaskRequest) returns (Task) { - option (google.api.http) = { - get: "/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a task and adds it to a queue. - // - // Tasks cannot be updated after creation; there is no UpdateTask command. - // - // * The maximum task size is 100KB. - rpc CreateTask(CreateTaskRequest) returns (Task) { - option (google.api.http) = { - post: "/v2beta3/{parent=projects/*/locations/*/queues/*}/tasks" - body: "*" - }; - option (google.api.method_signature) = "parent,task"; - } - - // Deletes a task. - // - // A task can be deleted if it is scheduled or dispatched. A task - // cannot be deleted if it has executed successfully or permanently - // failed. - rpc DeleteTask(DeleteTaskRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Forces a task to run now. - // - // When this method is called, Cloud Tasks will dispatch the task, even if - // the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta3.RateLimits] or - // is [PAUSED][google.cloud.tasks.v2beta3.Queue.State.PAUSED]. - // - // This command is meant to be used for manual debugging. For - // example, [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] can be used to retry a failed - // task after a fix has been made or to manually force a task to be - // dispatched now. - // - // The dispatched task is returned. That is, the task that is returned - // contains the [status][Task.status] after the task is dispatched but - // before the task is received by its target. - // - // If Cloud Tasks receives a successful response from the task's - // target, then the task will be deleted; otherwise the task's - // [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] will be reset to the time that - // [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] was called plus the retry delay specified - // in the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig]. - // - // [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask] returns - // [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a - // task that has already succeeded or permanently failed. - rpc RunTask(RunTaskRequest) returns (Task) { - option (google.api.http) = { - post: "/v2beta3/{name=projects/*/locations/*/queues/*/tasks/*}:run" - body: "*" - }; - option (google.api.method_signature) = "name"; - } -} - -// Request message for [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues]. -message ListQueuesRequest { - // Required. The location name. - // For example: `projects/PROJECT_ID/locations/LOCATION_ID` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "cloudtasks.googleapis.com/Queue" - } - ]; - - // `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta3.Queue] - // field can be used as a filter and several operators as supported. - // For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as - // described in - // [Stackdriver's Advanced Logs - // Filters](https://cloud.google.com/logging/docs/view/advanced_filters). - // - // Sample filter "state: PAUSED". - // - // Note that using filters might cause fewer queues than the - // requested page_size to be returned. - string filter = 2; - - // Requested page size. - // - // The maximum page size is 9800. If unspecified, the page size will - // be the maximum. Fewer queues than requested might be returned, - // even if more queues exist; use the - // [next_page_token][google.cloud.tasks.v2beta3.ListQueuesResponse.next_page_token] in the - // response to determine if more queues exist. - int32 page_size = 3; - - // A token identifying the page of results to return. - // - // To request the first page results, page_token must be empty. To - // request the next page of results, page_token must be the value of - // [next_page_token][google.cloud.tasks.v2beta3.ListQueuesResponse.next_page_token] returned - // from the previous call to [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues] - // method. It is an error to switch the value of the - // [filter][google.cloud.tasks.v2beta3.ListQueuesRequest.filter] while iterating through pages. - string page_token = 4; - - // Optional. Read mask is used for a more granular control over what the API returns. - // If the mask is not present all fields will be returned except - // [Queue.stats]. [Queue.stats] will be returned only if it was explicitly - // specified in the mask. - google.protobuf.FieldMask read_mask = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// Response message for [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues]. -message ListQueuesResponse { - // The list of queues. - repeated Queue queues = 1; - - // A token to retrieve next page of results. - // - // To return the next page of results, call - // [ListQueues][google.cloud.tasks.v2beta3.CloudTasks.ListQueues] with this value as the - // [page_token][google.cloud.tasks.v2beta3.ListQueuesRequest.page_token]. - // - // If the next_page_token is empty, there are no more results. - // - // The page token is valid for only 2 hours. - string next_page_token = 2; -} - -// Request message for [GetQueue][google.cloud.tasks.v2beta3.CloudTasks.GetQueue]. -message GetQueueRequest { - // Required. The resource name of the queue. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Queue" - } - ]; - - // Optional. Read mask is used for a more granular control over what the API returns. - // If the mask is not present all fields will be returned except - // [Queue.stats]. [Queue.stats] will be returned only if it was explicitly - // specified in the mask. - google.protobuf.FieldMask read_mask = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// Request message for [CreateQueue][google.cloud.tasks.v2beta3.CloudTasks.CreateQueue]. -message CreateQueueRequest { - // Required. The location name in which the queue will be created. - // For example: `projects/PROJECT_ID/locations/LOCATION_ID` - // - // The list of allowed locations can be obtained by calling Cloud - // Tasks' implementation of - // [ListLocations][google.cloud.location.Locations.ListLocations]. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "cloudtasks.googleapis.com/Queue" - } - ]; - - // Required. The queue to create. - // - // [Queue's name][google.cloud.tasks.v2beta3.Queue.name] cannot be the same as an existing queue. - Queue queue = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue]. -message UpdateQueueRequest { - // Required. The queue to create or update. - // - // The queue's [name][google.cloud.tasks.v2beta3.Queue.name] must be specified. - // - // Output only fields cannot be modified using UpdateQueue. - // Any value specified for an output only field will be ignored. - // The queue's [name][google.cloud.tasks.v2beta3.Queue.name] cannot be changed. - Queue queue = 1 [(google.api.field_behavior) = REQUIRED]; - - // A mask used to specify which fields of the queue are being updated. - // - // If empty, then all fields will be updated. - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for [DeleteQueue][google.cloud.tasks.v2beta3.CloudTasks.DeleteQueue]. -message DeleteQueueRequest { - // Required. The queue name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Queue" - } - ]; -} - -// Request message for [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue]. -message PurgeQueueRequest { - // Required. The queue name. For example: - // `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Queue" - } - ]; -} - -// Request message for [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue]. -message PauseQueueRequest { - // Required. The queue name. For example: - // `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Queue" - } - ]; -} - -// Request message for [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue]. -message ResumeQueueRequest { - // Required. The queue name. For example: - // `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Queue" - } - ]; -} - -// Request message for listing tasks using [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks]. -message ListTasksRequest { - // Required. The queue name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "cloudtasks.googleapis.com/Task" - } - ]; - - // The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be - // returned. - // - // By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all - // information is retrieved by default because some data, such as - // payloads, might be desirable to return only when needed because - // of its large size or because of the sensitivity of data that it - // contains. - // - // Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires - // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) - // permission on the [Task][google.cloud.tasks.v2beta3.Task] resource. - Task.View response_view = 2; - - // Maximum page size. - // - // Fewer tasks than requested might be returned, even if more tasks exist; use - // [next_page_token][google.cloud.tasks.v2beta3.ListTasksResponse.next_page_token] in the response to - // determine if more tasks exist. - // - // The maximum page size is 1000. If unspecified, the page size will be the - // maximum. - int32 page_size = 3; - - // A token identifying the page of results to return. - // - // To request the first page results, page_token must be empty. To - // request the next page of results, page_token must be the value of - // [next_page_token][google.cloud.tasks.v2beta3.ListTasksResponse.next_page_token] returned - // from the previous call to [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks] - // method. - // - // The page token is valid for only 2 hours. - string page_token = 4; -} - -// Response message for listing tasks using [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks]. -message ListTasksResponse { - // The list of tasks. - repeated Task tasks = 1; - - // A token to retrieve next page of results. - // - // To return the next page of results, call - // [ListTasks][google.cloud.tasks.v2beta3.CloudTasks.ListTasks] with this value as the - // [page_token][google.cloud.tasks.v2beta3.ListTasksRequest.page_token]. - // - // If the next_page_token is empty, there are no more results. - string next_page_token = 2; -} - -// Request message for getting a task using [GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask]. -message GetTaskRequest { - // Required. The task name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Task" - } - ]; - - // The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be - // returned. - // - // By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all - // information is retrieved by default because some data, such as - // payloads, might be desirable to return only when needed because - // of its large size or because of the sensitivity of data that it - // contains. - // - // Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires - // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) - // permission on the [Task][google.cloud.tasks.v2beta3.Task] resource. - Task.View response_view = 2; -} - -// Request message for [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. -message CreateTaskRequest { - // Required. The queue name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - // - // The queue must already exist. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "cloudtasks.googleapis.com/Task" - } - ]; - - // Required. The task to add. - // - // Task names have the following format: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. - // The user can optionally specify a task [name][google.cloud.tasks.v2beta3.Task.name]. If a - // name is not specified then the system will generate a random - // unique task id, which will be set in the task returned in the - // [response][google.cloud.tasks.v2beta3.Task.name]. - // - // If [schedule_time][google.cloud.tasks.v2beta3.Task.schedule_time] is not set or is in the - // past then Cloud Tasks will set it to the current time. - // - // Task De-duplication: - // - // Explicitly specifying a task ID enables task de-duplication. If - // a task's ID is identical to that of an existing task or a task - // that was deleted or executed recently then the call will fail - // with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. - // If the task's queue was created using Cloud Tasks, then another task with - // the same name can't be created for ~1hour after the original task was - // deleted or executed. If the task's queue was created using queue.yaml or - // queue.xml, then another task with the same name can't be created - // for ~9days after the original task was deleted or executed. - // - // Because there is an extra lookup cost to identify duplicate task - // names, these [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] calls have significantly - // increased latency. Using hashed strings for the task id or for - // the prefix of the task id is recommended. Choosing task ids that - // are sequential or have sequential prefixes, for example using a - // timestamp, causes an increase in latency and error rates in all - // task commands. The infrastructure relies on an approximately - // uniform distribution of task ids to store and serve tasks - // efficiently. - Task task = 2 [(google.api.field_behavior) = REQUIRED]; - - // The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be - // returned. - // - // By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all - // information is retrieved by default because some data, such as - // payloads, might be desirable to return only when needed because - // of its large size or because of the sensitivity of data that it - // contains. - // - // Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires - // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) - // permission on the [Task][google.cloud.tasks.v2beta3.Task] resource. - Task.View response_view = 3; -} - -// Request message for deleting a task using -// [DeleteTask][google.cloud.tasks.v2beta3.CloudTasks.DeleteTask]. -message DeleteTaskRequest { - // Required. The task name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Task" - } - ]; -} - -// Request message for forcing a task to run now using -// [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask]. -message RunTaskRequest { - // Required. The task name. For example: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudtasks.googleapis.com/Task" - } - ]; - - // The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] will be - // returned. - // - // By default response_view is [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC]; not all - // information is retrieved by default because some data, such as - // payloads, might be desirable to return only when needed because - // of its large size or because of the sensitivity of data that it - // contains. - // - // Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires - // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) - // permission on the [Task][google.cloud.tasks.v2beta3.Task] resource. - Task.View response_view = 2; -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/queue.proto b/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/queue.proto deleted file mode 100644 index f892852b..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/queue.proto +++ /dev/null @@ -1,434 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.tasks.v2beta3; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/tasks/v2beta3/target.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks"; -option java_multiple_files = true; -option java_outer_classname = "QueueProto"; -option java_package = "com.google.cloud.tasks.v2beta3"; - -// A queue is a container of related tasks. Queues are configured to manage -// how those tasks are dispatched. Configurable properties include rate limits, -// retry options, queue types, and others. -message Queue { - option (google.api.resource) = { - type: "cloudtasks.googleapis.com/Queue" - pattern: "projects/{project}/locations/{location}/queues/{queue}" - }; - - // State of the queue. - enum State { - // Unspecified state. - STATE_UNSPECIFIED = 0; - - // The queue is running. Tasks can be dispatched. - // - // If the queue was created using Cloud Tasks and the queue has - // had no activity (method calls or task dispatches) for 30 days, - // the queue may take a few minutes to re-activate. Some method - // calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and - // tasks may not be dispatched for a few minutes until the queue - // has been re-activated. - RUNNING = 1; - - // Tasks are paused by the user. If the queue is paused then Cloud - // Tasks will stop delivering tasks from it, but more tasks can - // still be added to it by the user. - PAUSED = 2; - - // The queue is disabled. - // - // A queue becomes `DISABLED` when - // [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref) - // or - // [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref) - // is uploaded which does not contain the queue. You cannot directly disable - // a queue. - // - // When a queue is disabled, tasks can still be added to a queue - // but the tasks are not dispatched. - // - // To permanently delete this queue and all of its tasks, call - // [DeleteQueue][google.cloud.tasks.v2beta3.CloudTasks.DeleteQueue]. - DISABLED = 3; - } - - // The type of the queue. - enum Type { - // Default value. - TYPE_UNSPECIFIED = 0; - - // A pull queue. - PULL = 1; - - // A push queue. - PUSH = 2; - } - - // Caller-specified and required in [CreateQueue][google.cloud.tasks.v2beta3.CloudTasks.CreateQueue], - // after which it becomes output only. - // - // The queue name. - // - // The queue name must have the following format: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` - // - // * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), - // hyphens (-), colons (:), or periods (.). - // For more information, see - // [Identifying - // projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) - // * `LOCATION_ID` is the canonical ID for the queue's location. - // The list of available locations can be obtained by calling - // [ListLocations][google.cloud.location.Locations.ListLocations]. - // For more information, see https://cloud.google.com/about/locations/. - // * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or - // hyphens (-). The maximum length is 100 characters. - string name = 1; - - oneof queue_type { - // [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] settings apply only to - // [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest] in this queue. - // [Http tasks][google.cloud.tasks.v2beta3.HttpRequest] are not affected by this proto. - AppEngineHttpQueue app_engine_http_queue = 3; - } - - // Rate limits for task dispatches. - // - // [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] are - // related because they both control task attempts. However they control task - // attempts in different ways: - // - // * [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] controls the total rate of - // dispatches from a queue (i.e. all traffic dispatched from the - // queue, regardless of whether the dispatch is from a first - // attempt or a retry). - // * [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls what happens to - // particular a task after its first attempt fails. That is, - // [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls task retries (the - // second attempt, third attempt, etc). - // - // The queue's actual dispatch rate is the result of: - // - // * Number of tasks in the queue - // * User-specified throttling: [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits], - // [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config], and the - // [queue's state][google.cloud.tasks.v2beta3.Queue.state]. - // * System throttling due to `429` (Too Many Requests) or `503` (Service - // Unavailable) responses from the worker, high error rates, or to smooth - // sudden large traffic spikes. - RateLimits rate_limits = 4; - - // Settings that determine the retry behavior. - // - // * For tasks created using Cloud Tasks: the queue-level retry settings - // apply to all tasks in the queue that were created using Cloud Tasks. - // Retry settings cannot be set on individual tasks. - // * For tasks created using the App Engine SDK: the queue-level retry - // settings apply to all tasks in the queue which do not have retry settings - // explicitly set on the task and were created by the App Engine SDK. See - // [App Engine - // documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks). - RetryConfig retry_config = 5; - - // Output only. The state of the queue. - // - // `state` can only be changed by calling - // [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue], - // [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading - // [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref). - // [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] cannot be used to change `state`. - State state = 6; - - // Output only. The last time this queue was purged. - // - // All tasks that were [created][google.cloud.tasks.v2beta3.Task.create_time] before this time - // were purged. - // - // A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue], the - // [App Engine Task Queue SDK, or the Cloud - // Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue). - // - // Purge time will be truncated to the nearest microsecond. Purge - // time will be unset if the queue has never been purged. - google.protobuf.Timestamp purge_time = 7; - - // The maximum amount of time that a task will be retained in - // this queue. - // - // Queues created by Cloud Tasks have a default `task_ttl` of 31 days. - // After a task has lived for `task_ttl`, the task will be deleted - // regardless of whether it was dispatched or not. - // - // The `task_ttl` for queues created via queue.yaml/xml is equal to the - // maximum duration because there is a - // [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for - // these queues. To view the maximum valid duration, see the documentation for - // [Duration][google.protobuf.Duration]. - google.protobuf.Duration task_ttl = 8; - - // The task tombstone time to live (TTL). - // - // After a task is deleted or executed, the task's tombstone is - // retained for the length of time specified by `tombstone_ttl`. - // The tombstone is used by task de-duplication; another task with the same - // name can't be created until the tombstone has expired. For more information - // about task de-duplication, see the documentation for - // [CreateTaskRequest][google.cloud.tasks.v2beta3.CreateTaskRequest.task]. - // - // Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour. - google.protobuf.Duration tombstone_ttl = 9; - - // Configuration options for writing logs to - // [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this - // field is unset, then no logs are written. - StackdriverLoggingConfig stackdriver_logging_config = 10; - - // Immutable. The type of a queue (push or pull). - // - // `Queue.type` is an immutable property of the queue that is set at the queue - // creation time. When left unspecified, the default value of `PUSH` is - // selected. - Type type = 11 [(google.api.field_behavior) = IMMUTABLE]; - - // Output only. The realtime, informational statistics for a queue. In order - // to receive the statistics the caller should include this field in the - // FieldMask. - QueueStats stats = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Rate limits. -// -// This message determines the maximum rate that tasks can be dispatched by a -// queue, regardless of whether the dispatch is a first task attempt or a retry. -// -// Note: The debugging command, [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask], will run a task -// even if the queue has reached its [RateLimits][google.cloud.tasks.v2beta3.RateLimits]. -message RateLimits { - // The maximum rate at which tasks are dispatched from this queue. - // - // If unspecified when the queue is created, Cloud Tasks will pick the - // default. - // - // * For [App Engine queues][google.cloud.tasks.v2beta3.AppEngineHttpQueue], the maximum allowed value - // is 500. - // - // - // This field has the same meaning as - // [rate in - // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate). - double max_dispatches_per_second = 1; - - // The max burst size. - // - // Max burst size limits how fast tasks in queue are processed when - // many tasks are in the queue and the rate is high. This field - // allows the queue to have a high rate so processing starts shortly - // after a task is enqueued, but still limits resource usage when - // many tasks are enqueued in a short period of time. - // - // The [token bucket](https://wikipedia.org/wiki/Token_Bucket) - // algorithm is used to control the rate of task dispatches. Each - // queue has a token bucket that holds tokens, up to the maximum - // specified by `max_burst_size`. Each time a task is dispatched, a - // token is removed from the bucket. Tasks will be dispatched until - // the queue's bucket runs out of tokens. The bucket will be - // continuously refilled with new tokens based on - // [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second]. - // - // The default value of `max_burst_size` is picked by Cloud Tasks - // based on the value of - // [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second]. - // - // The maximum value of `max_burst_size` is 500. - // - // For App Engine queues that were created or updated using - // `queue.yaml/xml`, `max_burst_size` is equal to - // [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size). - // If - // [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] is called on a queue without - // explicitly setting a value for `max_burst_size`, - // `max_burst_size` value will get updated if - // [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] is updating - // [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second]. - // - int32 max_burst_size = 2; - - // The maximum number of concurrent tasks that Cloud Tasks allows - // to be dispatched for this queue. After this threshold has been - // reached, Cloud Tasks stops dispatching tasks until the number of - // concurrent requests decreases. - // - // If unspecified when the queue is created, Cloud Tasks will pick the - // default. - // - // - // The maximum allowed value is 5,000. - // - // - // This field has the same meaning as - // [max_concurrent_requests in - // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests). - int32 max_concurrent_dispatches = 3; -} - -// Retry config. -// -// These settings determine when a failed task attempt is retried. -message RetryConfig { - // Number of attempts per task. - // - // Cloud Tasks will attempt the task `max_attempts` times (that is, if the - // first attempt fails, then there will be `max_attempts - 1` retries). Must - // be >= -1. - // - // If unspecified when the queue is created, Cloud Tasks will pick the - // default. - // - // -1 indicates unlimited attempts. - // - // This field has the same meaning as - // [task_retry_limit in - // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). - int32 max_attempts = 1; - - // If positive, `max_retry_duration` specifies the time limit for - // retrying a failed task, measured from when the task was first - // attempted. Once `max_retry_duration` time has passed *and* the - // task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts] - // times, no further attempts will be made and the task will be - // deleted. - // - // If zero, then the task age is unlimited. - // - // If unspecified when the queue is created, Cloud Tasks will pick the - // default. - // - // - // `max_retry_duration` will be truncated to the nearest second. - // - // This field has the same meaning as - // [task_age_limit in - // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). - google.protobuf.Duration max_retry_duration = 2; - - // A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between - // [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and - // [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, - // if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be - // retried. - // - // If unspecified when the queue is created, Cloud Tasks will pick the - // default. - // - // - // `min_backoff` will be truncated to the nearest second. - // - // This field has the same meaning as - // [min_backoff_seconds in - // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). - google.protobuf.Duration min_backoff = 3; - - // A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between - // [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and - // [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, - // if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be - // retried. - // - // If unspecified when the queue is created, Cloud Tasks will pick the - // default. - // - // - // `max_backoff` will be truncated to the nearest second. - // - // This field has the same meaning as - // [max_backoff_seconds in - // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). - google.protobuf.Duration max_backoff = 4; - - // The time between retries will double `max_doublings` times. - // - // A task's retry interval starts at - // [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff], then doubles - // `max_doublings` times, then increases linearly, and finally - // retries at intervals of - // [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] up to - // [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts] times. - // - // For example, if [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] is 10s, - // [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] is 300s, and - // `max_doublings` is 3, then the a task will first be retried in - // 10s. The retry interval will double three times, and then - // increase linearly by 2^3 * 10s. Finally, the task will retry at - // intervals of [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] until the - // task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts] - // times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s, - // 240s, 300s, 300s, .... - // - // If unspecified when the queue is created, Cloud Tasks will pick the - // default. - // - // - // This field has the same meaning as - // [max_doublings in - // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). - int32 max_doublings = 5; -} - -// Configuration options for writing logs to -// [Stackdriver Logging](https://cloud.google.com/logging/docs/). -message StackdriverLoggingConfig { - // Specifies the fraction of operations to write to - // [Stackdriver Logging](https://cloud.google.com/logging/docs/). - // This field may contain any value between 0.0 and 1.0, inclusive. - // 0.0 is the default and means that no operations are logged. - double sampling_ratio = 1; -} - -// Statistics for a queue. -message QueueStats { - // Output only. An estimation of the number of tasks in the queue, that is, the tasks in - // the queue that haven't been executed, the tasks in the queue which the - // queue has dispatched but has not yet received a reply for, and the failed - // tasks that the queue is retrying. - int64 tasks_count = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. An estimation of the nearest time in the future where a task in the queue - // is scheduled to be executed. - google.protobuf.Timestamp oldest_estimated_arrival_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The number of tasks that the queue has dispatched and received a reply for - // during the last minute. This variable counts both successful and - // non-successful executions. - int64 executed_last_minute_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The number of requests that the queue has dispatched but has not received - // a reply for yet. - int64 concurrent_dispatches_count = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The current maximum number of tasks per second executed by the queue. - // The maximum value of this variable is controlled by the RateLimits of the - // Queue. However, this value could be less to avoid overloading the endpoints - // tasks in the queue are targeting. - double effective_execution_rate = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/target.proto b/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/target.proto deleted file mode 100644 index efebfedf..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/target.proto +++ /dev/null @@ -1,459 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.tasks.v2beta3; - - -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks"; -option java_multiple_files = true; -option java_outer_classname = "TargetProto"; -option java_package = "com.google.cloud.tasks.v2beta3"; - -// Pull Message. -// -// This proto can only be used for tasks in a queue which has -// [PULL][google.cloud.tasks.v2beta3.Queue.type] type. It currently exists for backwards compatibility with -// the App Engine Task Queue SDK. This message type maybe returned with methods -// [list][google.cloud.tasks.v2beta3.CloudTask.ListTasks] and -// [get][google.cloud.tasks.v2beta3.CloudTask.ListTasks], when the response view -// is [FULL][google.cloud.tasks.v2beta3.Task.View.Full]. -message PullMessage { - // A data payload consumed by the worker to execute the task. - bytes payload = 1; - - // The tasks's tag. - // - // The tag is less than 500 characters. - // - // SDK compatibility: Although the SDK allows tags to be either - // string or - // [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-), - // only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8 - // encoded, the tag will be empty when the task is returned by Cloud Tasks. - string tag = 2; -} - -// HTTP request. -// -// The task will be pushed to the worker as an HTTP request. If the worker -// or the redirected worker acknowledges the task by returning a successful HTTP -// response code ([`200` - `299`]), the task will be removed from the queue. If -// any other HTTP response code is returned or no response is received, the -// task will be retried according to the following: -// -// * User-specified throttling: [retry configuration][google.cloud.tasks.v2beta3.Queue.retry_config], -// [rate limits][google.cloud.tasks.v2beta3.Queue.rate_limits], and the [queue's state][google.cloud.tasks.v2beta3.Queue.state]. -// -// * System throttling: To prevent the worker from overloading, Cloud Tasks may -// temporarily reduce the queue's effective rate. User-specified settings -// will not be changed. -// -// System throttling happens because: -// -// * Cloud Tasks backs off on all errors. Normally the backoff specified in -// [rate limits][google.cloud.tasks.v2beta3.Queue.rate_limits] will be used. But if the worker returns -// `429` (Too Many Requests), `503` (Service Unavailable), or the rate of -// errors is high, Cloud Tasks will use a higher backoff rate. The retry -// specified in the `Retry-After` HTTP response header is considered. -// -// * To prevent traffic spikes and to smooth sudden increases in traffic, -// dispatches ramp up slowly when the queue is newly created or idle and -// if large numbers of tasks suddenly become available to dispatch (due to -// spikes in create task rates, the queue being unpaused, or many tasks -// that are scheduled at the same time). -message HttpRequest { - // Required. The full url path that the request will be sent to. - // - // This string must begin with either "http://" or "https://". Some examples - // are: `http://acme.com` and `https://acme.com/sales:8080`. Cloud Tasks will - // encode some characters for safety and compatibility. The maximum allowed - // URL length is 2083 characters after encoding. - // - // The `Location` header response from a redirect response [`300` - `399`] - // may be followed. The redirect is not counted as a separate attempt. - string url = 1; - - // The HTTP method to use for the request. The default is POST. - HttpMethod http_method = 2; - - // HTTP request headers. - // - // This map contains the header field names and values. - // Headers can be set when the - // [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. - // - // These headers represent a subset of the headers that will accompany the - // task's HTTP request. Some HTTP request headers will be ignored or replaced. - // - // A partial list of headers that will be ignored or replaced is: - // - // * Host: This will be computed by Cloud Tasks and derived from - // [HttpRequest.url][google.cloud.tasks.v2beta3.HttpRequest.url]. - // * Content-Length: This will be computed by Cloud Tasks. - // * User-Agent: This will be set to `"Google-Cloud-Tasks"`. - // * `X-Google-*`: Google use only. - // * `X-AppEngine-*`: Google use only. - // - // `Content-Type` won't be set by Cloud Tasks. You can explicitly set - // `Content-Type` to a media type when the - // [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. - // For example, `Content-Type` can be set to `"application/octet-stream"` or - // `"application/json"`. - // - // Headers which can have multiple values (according to RFC2616) can be - // specified using comma-separated values. - // - // The size of the headers must be less than 80KB. - map headers = 3; - - // HTTP request body. - // - // A request body is allowed only if the - // [HTTP method][google.cloud.tasks.v2beta3.HttpRequest.http_method] is POST, PUT, or PATCH. It is an - // error to set body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2beta3.HttpMethod]. - bytes body = 4; - - // The mode for generating an `Authorization` header for HTTP requests. - // - // If specified, all `Authorization` headers in the [HttpRequest.headers][google.cloud.tasks.v2beta3.HttpRequest.headers] - // field will be overridden. - oneof authorization_header { - // If specified, an - // [OAuth token](https://developers.google.com/identity/protocols/OAuth2) - // will be generated and attached as an `Authorization` header in the HTTP - // request. - // - // This type of authorization should generally only be used when calling - // Google APIs hosted on *.googleapis.com. - OAuthToken oauth_token = 5; - - // If specified, an - // [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) - // token will be generated and attached as an `Authorization` header in the - // HTTP request. - // - // This type of authorization can be used for many scenarios, including - // calling Cloud Run, or endpoints where you intend to validate the token - // yourself. - OidcToken oidc_token = 6; - } -} - -// App Engine HTTP queue. -// -// The task will be delivered to the App Engine application hostname -// specified by its [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] and [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest]. -// The documentation for [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] explains how the -// task's host URL is constructed. -// -// Using [AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] requires -// [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control) -// Google IAM permission for the project -// and the following scope: -// -// `https://www.googleapis.com/auth/cloud-platform` -message AppEngineHttpQueue { - // Overrides for the - // [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing]. - // - // If set, `app_engine_routing_override` is used for all tasks in - // the queue, no matter what the setting is for the - // [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing]. - AppEngineRouting app_engine_routing_override = 1; -} - -// App Engine HTTP request. -// -// The message defines the HTTP request that is sent to an App Engine app when -// the task is dispatched. -// -// Using [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] requires -// [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control) -// Google IAM permission for the project -// and the following scope: -// -// `https://www.googleapis.com/auth/cloud-platform` -// -// The task will be delivered to the App Engine app which belongs to the same -// project as the queue. For more information, see -// [How Requests are -// Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) -// and how routing is affected by -// [dispatch -// files](https://cloud.google.com/appengine/docs/python/config/dispatchref). -// Traffic is encrypted during transport and never leaves Google datacenters. -// Because this traffic is carried over a communication mechanism internal to -// Google, you cannot explicitly set the protocol (for example, HTTP or HTTPS). -// The request to the handler, however, will appear to have used the HTTP -// protocol. -// -// The [AppEngineRouting][google.cloud.tasks.v2beta3.AppEngineRouting] used to construct the URL that the task is -// delivered to can be set at the queue-level or task-level: -// -// * If set, -// [app_engine_routing_override][google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override] -// is used for all tasks in the queue, no matter what the setting -// is for the -// [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing]. -// -// -// The `url` that the task will be sent to is: -// -// * `url =` [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] `+` -// [relative_uri][google.cloud.tasks.v2beta3.AppEngineHttpRequest.relative_uri] -// -// Tasks can be dispatched to secure app handlers, unsecure app handlers, and -// URIs restricted with -// [`login: -// admin`](https://cloud.google.com/appengine/docs/standard/python/config/appref). -// Because tasks are not run as any user, they cannot be dispatched to URIs -// restricted with -// [`login: -// required`](https://cloud.google.com/appengine/docs/standard/python/config/appref) -// Task dispatches also do not follow redirects. -// -// The task attempt has succeeded if the app's request handler returns an HTTP -// response code in the range [`200` - `299`]. The task attempt has failed if -// the app's handler returns a non-2xx response code or Cloud Tasks does -// not receive response before the [deadline][google.cloud.tasks.v2beta3.Task.dispatch_deadline]. Failed -// tasks will be retried according to the -// [retry configuration][google.cloud.tasks.v2beta3.Queue.retry_config]. `503` (Service Unavailable) is -// considered an App Engine system error instead of an application error and -// will cause Cloud Tasks' traffic congestion control to temporarily throttle -// the queue's dispatches. Unlike other types of task targets, a `429` (Too Many -// Requests) response from an app handler does not cause traffic congestion -// control to throttle the queue. -message AppEngineHttpRequest { - // The HTTP method to use for the request. The default is POST. - // - // The app's request handler for the task's target URL must be able to handle - // HTTP requests with this http_method, otherwise the task attempt fails with - // error code 405 (Method Not Allowed). See [Writing a push task request - // handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler) - // and the App Engine documentation for your runtime on [How Requests are - // Handled](https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled). - HttpMethod http_method = 1; - - // Task-level setting for App Engine routing. - // - // If set, - // [app_engine_routing_override][google.cloud.tasks.v2beta3.AppEngineHttpQueue.app_engine_routing_override] - // is used for all tasks in the queue, no matter what the setting is for the - // [task-level app_engine_routing][google.cloud.tasks.v2beta3.AppEngineHttpRequest.app_engine_routing]. - AppEngineRouting app_engine_routing = 2; - - // The relative URI. - // - // The relative URI must begin with "/" and must be a valid HTTP relative URI. - // It can contain a path and query string arguments. - // If the relative URI is empty, then the root path "/" will be used. - // No spaces are allowed, and the maximum length allowed is 2083 characters. - string relative_uri = 3; - - // HTTP request headers. - // - // This map contains the header field names and values. - // Headers can be set when the - // [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. - // Repeated headers are not supported but a header value can contain commas. - // - // Cloud Tasks sets some headers to default values: - // - // * `User-Agent`: By default, this header is - // `"AppEngine-Google; (+http://code.google.com/appengine)"`. - // This header can be modified, but Cloud Tasks will append - // `"AppEngine-Google; (+http://code.google.com/appengine)"` to the - // modified `User-Agent`. - // - // If the task has a [body][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body], Cloud - // Tasks sets the following headers: - // - // * `Content-Type`: By default, the `Content-Type` header is set to - // `"application/octet-stream"`. The default can be overridden by explicitly - // setting `Content-Type` to a particular media type when the - // [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. - // For example, `Content-Type` can be set to `"application/json"`. - // * `Content-Length`: This is computed by Cloud Tasks. This value is - // output only. It cannot be changed. - // - // The headers below cannot be set or overridden: - // - // * `Host` - // * `X-Google-*` - // * `X-AppEngine-*` - // - // In addition, Cloud Tasks sets some headers when the task is dispatched, - // such as headers containing information about the task; see - // [request - // headers](https://cloud.google.com/tasks/docs/creating-appengine-handlers#reading_request_headers). - // These headers are set only when the task is dispatched, so they are not - // visible when the task is returned in a Cloud Tasks response. - // - // Although there is no specific limit for the maximum number of headers or - // the size, there is a limit on the maximum size of the [Task][google.cloud.tasks.v2beta3.Task]. For more - // information, see the [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask] documentation. - map headers = 4; - - // HTTP request body. - // - // A request body is allowed only if the HTTP method is POST or PUT. It is - // an error to set a body on a task with an incompatible [HttpMethod][google.cloud.tasks.v2beta3.HttpMethod]. - bytes body = 5; -} - -// App Engine Routing. -// -// Defines routing characteristics specific to App Engine - service, version, -// and instance. -// -// For more information about services, versions, and instances see -// [An Overview of App -// Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine), -// [Microservices Architecture on Google App -// Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine), -// [App Engine Standard request -// routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed), -// and [App Engine Flex request -// routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). -message AppEngineRouting { - // App service. - // - // By default, the task is sent to the service which is the default - // service when the task is attempted. - // - // For some queues or tasks which were created using the App Engine - // Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable - // into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service], - // [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and - // [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks - // which were created using the App Engine SDK use a custom domain - // name; custom domains are not parsed by Cloud Tasks. If - // [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then - // [service][google.cloud.tasks.v2beta3.AppEngineRouting.service], - // [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and - // [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string. - string service = 1; - - // App version. - // - // By default, the task is sent to the version which is the default - // version when the task is attempted. - // - // For some queues or tasks which were created using the App Engine - // Task Queue API, [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable - // into [service][google.cloud.tasks.v2beta3.AppEngineRouting.service], - // [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and - // [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. For example, some tasks - // which were created using the App Engine SDK use a custom domain - // name; custom domains are not parsed by Cloud Tasks. If - // [host][google.cloud.tasks.v2beta3.AppEngineRouting.host] is not parsable, then - // [service][google.cloud.tasks.v2beta3.AppEngineRouting.service], - // [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], and - // [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance] are the empty string. - string version = 2; - - // App instance. - // - // By default, the task is sent to an instance which is available when - // the task is attempted. - // - // Requests can only be sent to a specific instance if - // [manual scaling is used in App Engine - // Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). - // App Engine Flex does not support instances. For more information, see - // [App Engine Standard request - // routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) - // and [App Engine Flex request - // routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). - string instance = 3; - - // Output only. The host that the task is sent to. - // - // The host is constructed from the domain name of the app associated with - // the queue's project ID (for example .appspot.com), and the - // [service][google.cloud.tasks.v2beta3.AppEngineRouting.service], [version][google.cloud.tasks.v2beta3.AppEngineRouting.version], - // and [instance][google.cloud.tasks.v2beta3.AppEngineRouting.instance]. Tasks which were created using - // the App Engine SDK might have a custom domain name. - // - // For more information, see - // [How Requests are - // Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). - string host = 4; -} - -// The HTTP method used to execute the task. -enum HttpMethod { - // HTTP method unspecified - HTTP_METHOD_UNSPECIFIED = 0; - - // HTTP POST - POST = 1; - - // HTTP GET - GET = 2; - - // HTTP HEAD - HEAD = 3; - - // HTTP PUT - PUT = 4; - - // HTTP DELETE - DELETE = 5; - - // HTTP PATCH - PATCH = 6; - - // HTTP OPTIONS - OPTIONS = 7; -} - -// Contains information needed for generating an -// [OAuth token](https://developers.google.com/identity/protocols/OAuth2). -// This type of authorization should generally only be used when calling Google -// APIs hosted on *.googleapis.com. -message OAuthToken { - // [Service account email](https://cloud.google.com/iam/docs/service-accounts) - // to be used for generating OAuth token. - // The service account must be within the same project as the queue. The - // caller must have iam.serviceAccounts.actAs permission for the service - // account. - string service_account_email = 1; - - // OAuth scope to be used for generating OAuth access token. - // If not specified, "https://www.googleapis.com/auth/cloud-platform" - // will be used. - string scope = 2; -} - -// Contains information needed for generating an -// [OpenID Connect -// token](https://developers.google.com/identity/protocols/OpenIDConnect). -// This type of authorization can be used for many scenarios, including -// calling Cloud Run, or endpoints where you intend to validate the token -// yourself. -message OidcToken { - // [Service account email](https://cloud.google.com/iam/docs/service-accounts) - // to be used for generating OIDC token. - // The service account must be within the same project as the queue. The - // caller must have iam.serviceAccounts.actAs permission for the service - // account. - string service_account_email = 1; - - // Audience to be used when generating OIDC token. If not specified, the URI - // specified in target will be used. - string audience = 2; -} diff --git a/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/task.proto b/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/task.proto deleted file mode 100644 index b491b5aa..00000000 --- a/proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/task.proto +++ /dev/null @@ -1,200 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.cloud.tasks.v2beta3; - -import "google/api/resource.proto"; -import "google/cloud/tasks/v2beta3/target.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; -import "google/rpc/status.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/tasks/v2beta3;tasks"; -option java_multiple_files = true; -option java_outer_classname = "TaskProto"; -option java_package = "com.google.cloud.tasks.v2beta3"; - -// A unit of scheduled work. -message Task { - option (google.api.resource) = { - type: "cloudtasks.googleapis.com/Task" - pattern: "projects/{project}/locations/{location}/queues/{queue}/tasks/{task}" - }; - - // The view specifies a subset of [Task][google.cloud.tasks.v2beta3.Task] data. - // - // When a task is returned in a response, not all - // information is retrieved by default because some data, such as - // payloads, might be desirable to return only when needed because - // of its large size or because of the sensitivity of data that it - // contains. - enum View { - // Unspecified. Defaults to BASIC. - VIEW_UNSPECIFIED = 0; - - // The basic view omits fields which can be large or can contain - // sensitive data. - // - // This view does not include the - // [body in AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest.body]. - // Bodies are desirable to return only when needed, because they - // can be large and because of the sensitivity of the data that you - // choose to store in it. - BASIC = 1; - - // All information is returned. - // - // Authorization for [FULL][google.cloud.tasks.v2beta3.Task.View.FULL] requires - // `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) - // permission on the [Queue][google.cloud.tasks.v2beta3.Queue] resource. - FULL = 2; - } - - // Optionally caller-specified in [CreateTask][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. - // - // The task name. - // - // The task name must have the following format: - // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID` - // - // * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), - // hyphens (-), colons (:), or periods (.). - // For more information, see - // [Identifying - // projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) - // * `LOCATION_ID` is the canonical ID for the task's location. - // The list of available locations can be obtained by calling - // [ListLocations][google.cloud.location.Locations.ListLocations]. - // For more information, see https://cloud.google.com/about/locations/. - // * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or - // hyphens (-). The maximum length is 100 characters. - // * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), - // hyphens (-), or underscores (_). The maximum length is 500 characters. - string name = 1; - - // Required. The message to send to the worker. - oneof payload_type { - // HTTP request that is sent to the App Engine app handler. - // - // An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta3.AppEngineHttpRequest] set. - AppEngineHttpRequest app_engine_http_request = 3; - - // HTTP request that is sent to the task's target. - // - // An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2beta3.HttpRequest] set. - HttpRequest http_request = 11; - - // Pull Message contained in a task in a [PULL][google.cloud.tasks.v2beta3.Queue.type] queue type. This - // payload type cannot be explicitly set through Cloud Tasks API. Its - // purpose, currently is to provide backward compatibility with App Engine - // Task Queue - // [pull](https://cloud.google.com/appengine/docs/standard/java/taskqueue/pull/) - // queues to provide a way to inspect contents of pull tasks through the - // [CloudTasks.GetTask][google.cloud.tasks.v2beta3.CloudTasks.GetTask]. - PullMessage pull_message = 13; - } - - // The time when the task is scheduled to be attempted. - // - // For App Engine queues, this is when the task will be attempted or retried. - // - // `schedule_time` will be truncated to the nearest microsecond. - google.protobuf.Timestamp schedule_time = 4; - - // Output only. The time that the task was created. - // - // `create_time` will be truncated to the nearest second. - google.protobuf.Timestamp create_time = 5; - - // The deadline for requests sent to the worker. If the worker does not - // respond by this deadline then the request is cancelled and the attempt - // is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the - // task according to the [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig]. - // - // Note that when the request is cancelled, Cloud Tasks will stop listening - // for the response, but whether the worker stops processing depends on the - // worker. For example, if the worker is stuck, it may not react to cancelled - // requests. - // - // The default and maximum values depend on the type of request: - // - // * For [HTTP tasks][google.cloud.tasks.v2beta3.HttpRequest], the default is 10 minutes. The deadline - // must be in the interval [15 seconds, 30 minutes]. - // - // * For [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest], 0 indicates that the - // request has the default deadline. The default deadline depends on the - // [scaling - // type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling) - // of the service: 10 minutes for standard apps with automatic scaling, 24 - // hours for standard apps with manual and basic scaling, and 60 minutes for - // flex apps. If the request deadline is set, it must be in the interval [15 - // seconds, 24 hours 15 seconds]. Regardless of the task's - // `dispatch_deadline`, the app handler will not run for longer than than - // the service's timeout. We recommend setting the `dispatch_deadline` to - // at most a few seconds more than the app handler's timeout. For more - // information see - // [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts). - // - // `dispatch_deadline` will be truncated to the nearest millisecond. The - // deadline is an approximate deadline. - google.protobuf.Duration dispatch_deadline = 12; - - // Output only. The number of attempts dispatched. - // - // This count includes attempts which have been dispatched but haven't - // received a response. - int32 dispatch_count = 6; - - // Output only. The number of attempts which have received a response. - int32 response_count = 7; - - // Output only. The status of the task's first attempt. - // - // Only [dispatch_time][google.cloud.tasks.v2beta3.Attempt.dispatch_time] will be set. - // The other [Attempt][google.cloud.tasks.v2beta3.Attempt] information is not retained by Cloud Tasks. - Attempt first_attempt = 8; - - // Output only. The status of the task's last attempt. - Attempt last_attempt = 9; - - // Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta3.Task] has - // been returned. - View view = 10; -} - -// The status of a task attempt. -message Attempt { - // Output only. The time that this attempt was scheduled. - // - // `schedule_time` will be truncated to the nearest microsecond. - google.protobuf.Timestamp schedule_time = 1; - - // Output only. The time that this attempt was dispatched. - // - // `dispatch_time` will be truncated to the nearest microsecond. - google.protobuf.Timestamp dispatch_time = 2; - - // Output only. The time that this attempt response was received. - // - // `response_time` will be truncated to the nearest microsecond. - google.protobuf.Timestamp response_time = 3; - - // Output only. The response from the worker for this attempt. - // - // If `response_time` is unset, then the task has not been attempted or is - // currently running and the `response_status` field is meaningless. - google.rpc.Status response_status = 4; -} diff --git a/renovate.json b/renovate.json deleted file mode 100644 index 60f70eae..00000000 --- a/renovate.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "enabled": false, - "extends": [ - ":separateMajorReleases", - ":combinePatchMinorReleases", - ":ignoreUnstable", - ":prImmediately", - ":updateNotScheduled", - ":automergeDisabled", - ":ignoreModulesAndTests", - ":maintainLockFilesDisabled", - ":autodetectPinVersions" - ], - "ignorePaths": [".kokoro/requirements.txt"], - "packageRules": [ - { - "packagePatterns": [ - "^com.google.guava:" - ], - "versionScheme": "docker" - }, - { - "packagePatterns": [ - "*" - ], - "semanticCommitType": "deps", - "semanticCommitScope": null - }, - { - "packagePatterns": [ - "^org.apache.maven", - "^org.jacoco:", - "^org.codehaus.mojo:", - "^org.sonatype.plugins:", - "^com.coveo:", - "^com.google.cloud:google-cloud-shared-config" - ], - "semanticCommitType": "build", - "semanticCommitScope": "deps" - }, - { - "packagePatterns": [ - "^com.google.cloud:google-cloud-tasks", - "^com.google.cloud:libraries-bom", - "^com.google.cloud.samples:shared-configuration" - ], - "semanticCommitType": "chore", - "semanticCommitScope": "deps" - }, - { - "packagePatterns": [ - "^junit:junit", - "^com.google.truth:truth", - "^org.mockito:mockito-core", - "^org.objenesis:objenesis", - "^com.google.cloud:google-cloud-conformance-tests" - ], - "semanticCommitType": "test", - "semanticCommitScope": "deps" - }, - { - "packagePatterns": [ - "^com.google.cloud:google-cloud-" - ], - "ignoreUnstable": false - }, - { - "packagePatterns": [ - "^com.fasterxml.jackson.core" - ], - "groupName": "jackson dependencies" - } - ], - "semanticCommits": true, - "dependencyDashboard": true -} diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml deleted file mode 100644 index a681df49..00000000 --- a/samples/install-without-bom/pom.xml +++ /dev/null @@ -1,84 +0,0 @@ - - - 4.0.0 - com.google.cloud - cloudtasks-install-without-bom - jar - Google Cloud Tasks Install Without Bom - https://github.com/googleapis/java-tasks - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - - - - com.google.cloud - google-cloud-tasks - 2.3.12 - - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.3 - test - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.3.0 - - - add-snippets-source - - add-source - - - - ../snippets/src/main/java - - - - - add-snippets-tests - - add-test-source - - - - ../snippets/src/test/java - - - - - - - - diff --git a/samples/native-image-sample/README.md b/samples/native-image-sample/README.md deleted file mode 100644 index 4ac48e60..00000000 --- a/samples/native-image-sample/README.md +++ /dev/null @@ -1,157 +0,0 @@ -# Cloud Tasks Sample Application with Native Image - -The Cloud Tasks sample application demonstrates some common operations with -[Google Cloud Tasks](https://cloud.google.com/tasks) and is compatible with -Native Image compilation. - -This application will create a new queue called `graal-test-queue` if it does -not already exist. -It will then submit a new task to this queue. - -## Setup Instructions - -You will need to follow these prerequisite steps in order to run these samples: - -1. If you have not already, [create a Google Cloud Platform Project](https://cloud.google.com/resource-manager/docs/creating-managing-projects#creating_a_project). - -2. Install the [Google Cloud SDK](https://cloud.google.com/sdk/) which will allow you to run the sample with your project's credentials. - - Once installed, log in with Application Default Credentials using the following command: - - ``` - gcloud auth application-default login - ``` - - **Note:** Authenticating with Application Default Credentials is convenient to use during development, but we recommend [alternate methods of authentication](https://cloud.google.com/docs/authentication/production) during production use. - -3. Install the native image compiler. - - You can follow the [official installation instructions](https://www.graalvm.org/docs/getting-started/#install-graalvm). - After following the instructions, ensure that you install the Native Image extension installed by running: - - ``` - gu install native-image - ``` - - Once you finish following the instructions, verify that the default version of Java is set to the correct version by running `java -version` in a terminal. - - You will see something similar to the below output: - - ``` - $ java -version - - openjdk version "17.0.3" 2022-04-19 - OpenJDK Runtime Environment GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06) - OpenJDK 64-Bit Server VM GraalVM CE 22.1.0 (build 17.0.3+7-jvmci-22.1-b06, mixed mode, sharing) - - ``` - -4. [Enable the Cloud Tasks APIs](https://console.cloud.google.com/apis/api/cloudtasks.googleapis.com). - -### Run with Native Image Compilation - -Navigate to this directory in a new terminal. - -1. The project uses an environment variable `LOCATION_ID` to run the test. Set the environment variable by calling: - - ``` - export LOCATION_ID=us-east1 - ``` - -2. Compile the application using the native image Compiler. This step may take a few minutes. - - ``` - $ mvn package -P native - ``` - - - -3. Run the application: - - ``` - $ ./target/native-image-sample - ``` - -4. The application runs through some basic Cloud Tasks operations (create queue, create task) and then prints some results of the operations. - - ``` - Test queue ready: name: "projects/xxxxxxxxxx/locations/us-central1/queues/graal-test-queue-4009" - rate_limits { - max_dispatches_per_second: 500.0 - max_burst_size: 100 - max_concurrent_dispatches: 1 - } - retry_config { - max_attempts: 100 - min_backoff { - nanos: 100000000 - } - max_backoff { - seconds: 3600 - } - max_doublings: 16 - } - state: RUNNING - - Created task: name: "projects/xxxxxxxxxx/locations/us-central1/queues/graal-test-queue-4009/tasks/5886258204485021611" - http_request { - url: "https://google.com/" - http_method: GET - headers { - key: "User-Agent" - value: "Google-Cloud-Tasks" - } - } - schedule_time { - seconds: 1613189391 - nanos: 486293000 - } - create_time { - seconds: 1613189391 - } - dispatch_deadline { - seconds: 600 - } - view: BASIC - - Queue purged - Queue deleted - ``` - -5. Run the test in the project in the native-image mode - - ``` - $ export LOCATION_ID=us-east1 && mvn test -P native - ... - [INFO] ------------------------------------------------------- - [INFO] T E S T S - [INFO] ------------------------------------------------------- - [INFO] Running com.example.tasks.ITNativeImageTasksSample - ... - [INFO] --- native-maven-plugin:0.9.9:test (test-native) @ native-image-sample --- - [INFO] ==================== - [INFO] Initializing project: native-image-sample - ... - com.example.tasks.ITNativeImageTasksSample > testRunSampleApplication SUCCESSFUL - - - Test run finished after 1025 ms - [ 3 containers found ] - [ 0 containers skipped ] - [ 3 containers started ] - [ 0 containers aborted ] - [ 3 containers successful ] - [ 0 containers failed ] - [ 1 tests found ] - [ 0 tests skipped ] - [ 1 tests started ] - [ 0 tests aborted ] - [ 1 tests successful ] - [ 0 tests failed ] - - [INFO] ------------------------------------------------------------------------ - [INFO] BUILD SUCCESS - [INFO] ------------------------------------------------------------------------ - [INFO] Total time: 02:27 min - ... - ``` diff --git a/samples/native-image-sample/pom.xml b/samples/native-image-sample/pom.xml deleted file mode 100644 index 8c2dea68..00000000 --- a/samples/native-image-sample/pom.xml +++ /dev/null @@ -1,142 +0,0 @@ - - - 4.0.0 - com.example.tasks - native-image-sample - Native Image Sample - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - - 1.8 - 1.8 - UTF-8 - - - - - - com.google.cloud - libraries-bom - 26.1.4 - pom - import - - - - - - - com.google.cloud - google-cloud-core - - - com.google.cloud - google-cloud-tasks - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.3 - test - - - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - com.example.TasksSampleApplication - - - - - - - - - - native - - - org.junit.vintage - junit-vintage-engine - 5.9.1 - - - org.graalvm.buildtools - junit-platform-native - 0.9.14 - test - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - 2.22.2 - - - **/IT* - - - - - org.graalvm.buildtools - native-maven-plugin - 0.9.14 - true - - com.example.tasks.TasksSampleApplication - - --no-fallback - --no-server - - - - - build-native - - build - test - - package - - - test-native - - test - - test - - - - - - - - \ No newline at end of file diff --git a/samples/native-image-sample/src/main/java/com/example/tasks/TasksSampleApplication.java b/samples/native-image-sample/src/main/java/com/example/tasks/TasksSampleApplication.java deleted file mode 100644 index de736aa8..00000000 --- a/samples/native-image-sample/src/main/java/com/example/tasks/TasksSampleApplication.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.tasks; - -import com.google.cloud.ServiceOptions; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.CreateQueueRequest; -import com.google.cloud.tasks.v2.HttpMethod; -import com.google.cloud.tasks.v2.HttpRequest; -import com.google.cloud.tasks.v2.LocationName; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.QueueName; -import com.google.cloud.tasks.v2.RateLimits; -import com.google.cloud.tasks.v2.Task; -import java.io.IOException; -import java.util.UUID; - -/** Sample application demonstrating Native Image compatibility with Google Cloud Tasks APIs. */ -public class TasksSampleApplication { - /** - * Queue name randomness added to avoid FAILED_PRECONDITION: The queue cannot be created because a - * queue with this name existed too recently. - */ - private static final String GRAALVM_TEST_QUEUE_NAME = "graal-test-queue-"; - - private static final String LOCATION_ID = System.getenv("LOCATION_ID"); - - /** Runs the Cloud Tasks sample application. */ - public static void main(String[] args) throws IOException { - String projectId = ServiceOptions.getDefaultProjectId(); - LocationName parent = LocationName.of(projectId, LOCATION_ID); - QueueName queueName = - QueueName.of( - parent.getProject(), - parent.getLocation(), - GRAALVM_TEST_QUEUE_NAME + UUID.randomUUID().toString()); - - try (CloudTasksClient client = CloudTasksClient.create()) { - // Create queue - Queue queue = - Queue.newBuilder() - .setName(queueName.toString()) - .setRateLimits(RateLimits.newBuilder().setMaxConcurrentDispatches(1).build()) - .build(); - - CreateQueueRequest createQueueRequest = - CreateQueueRequest.newBuilder().setParent(parent.toString()).setQueue(queue).build(); - - Queue createdQueue = client.createQueue(createQueueRequest); - System.out.println("Test queue ready: " + createdQueue); - - // Create task - HttpRequest taskTarget = - HttpRequest.newBuilder() - .setUrl("https://google.com") - .setHttpMethod(HttpMethod.GET) - .build(); - - Task taskRequest = Task.newBuilder().setHttpRequest(taskTarget).build(); - Task task = client.createTask(queueName, taskRequest); - System.out.println("Created task: " + task); - - // Cleanup - client.purgeQueue(queueName); - System.out.println("Queue purged"); - - client.deleteQueue(queueName); - System.out.println("Queue deleted"); - } - } -} diff --git a/samples/native-image-sample/src/test/java/com/example/tasks/ITNativeImageTasksSample.java b/samples/native-image-sample/src/test/java/com/example/tasks/ITNativeImageTasksSample.java deleted file mode 100644 index 70e91ffa..00000000 --- a/samples/native-image-sample/src/test/java/com/example/tasks/ITNativeImageTasksSample.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.example.tasks; - -import static com.google.common.truth.Truth.assertThat; - -import java.io.ByteArrayOutputStream; -import java.io.PrintStream; -import org.junit.Before; -import org.junit.Test; - -public class ITNativeImageTasksSample { - private ByteArrayOutputStream bout; - - @Before - public void setUp() throws Exception { - bout = new ByteArrayOutputStream(); - System.setOut(new PrintStream(bout)); - } - - @Test - public void testRunSampleApplication() throws Exception { - TasksSampleApplication.main(new String[] {}); - String output = bout.toString(); - assertThat(output).contains("Test queue ready"); - assertThat(output).contains("Queue purged"); - assertThat(output).contains("Queue deleted"); - } -} diff --git a/samples/pom.xml b/samples/pom.xml deleted file mode 100644 index e2f2f6fe..00000000 --- a/samples/pom.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-cloudtasks-samples - 0.0.1-SNAPSHOT - pom - Google Cloud Tasks Samples Parent - https://github.com/googleapis/java-tasks - - Java idiomatic client for Google Cloud Platform services. - - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - install-without-bom - snapshot - snippets - native-image-sample - - - - - - org.apache.maven.plugins - maven-deploy-plugin - 3.0.0 - - true - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 - - true - - - - - diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml deleted file mode 100644 index 97cf4485..00000000 --- a/samples/snapshot/pom.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - 4.0.0 - com.google.cloud - cloudtasks-snapshot - jar - Google Cloud Tasks Snapshot Samples - https://github.com/googleapis/java-tasks - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - - - com.google.cloud - google-cloud-tasks - 2.3.12 - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.3 - test - - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.3.0 - - - add-snippets-source - - add-source - - - - ../snippets/src/main/java - - - - - add-snippets-tests - - add-test-source - - - - ../snippets/src/test/java - - - - - - - - \ No newline at end of file diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java deleted file mode 100644 index f097d66a..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_create_setcredentialsprovider_sync] -import com.google.api.gax.core.FixedCredentialsProvider; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.CloudTasksSettings; -import com.google.cloud.tasks.v2.myCredentials; - -public class SyncCreateSetCredentialsProvider { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider(); - } - - public static void syncCreateSetCredentialsProvider() 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 - CloudTasksSettings cloudTasksSettings = - CloudTasksSettings.newBuilder() - .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) - .build(); - CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); - } -} -// [END tasks_v2_generated_cloudtasksclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index a5da0873..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_create_setcredentialsprovider1_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.CloudTasksSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() 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 - CloudTasksSettings cloudTasksSettings = - CloudTasksSettings.newBuilder() - .setTransportChannelProvider( - CloudTasksSettings.defaultHttpJsonTransportProviderBuilder().build()) - .build(); - CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); - } -} -// [END tasks_v2_generated_cloudtasksclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetEndpoint.java deleted file mode 100644 index 902d57d1..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/create/SyncCreateSetEndpoint.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_create_setendpoint_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.CloudTasksSettings; -import com.google.cloud.tasks.v2.myEndpoint; - -public class SyncCreateSetEndpoint { - - public static void main(String[] args) throws Exception { - syncCreateSetEndpoint(); - } - - public static void syncCreateSetEndpoint() 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 - CloudTasksSettings cloudTasksSettings = - CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build(); - CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); - } -} -// [END tasks_v2_generated_cloudtasksclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/AsyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/AsyncCreateQueue.java deleted file mode 100644 index e1dd8293..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/AsyncCreateQueue.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_createqueue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.CreateQueueRequest; -import com.google.cloud.tasks.v2.LocationName; -import com.google.cloud.tasks.v2.Queue; - -public class AsyncCreateQueue { - - public static void main(String[] args) throws Exception { - asyncCreateQueue(); - } - - public static void asyncCreateQueue() 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()) { - CreateQueueRequest request = - CreateQueueRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setQueue(Queue.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.createQueueCallable().futureCall(request); - // Do something. - Queue response = future.get(); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_createqueue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueue.java deleted file mode 100644 index 24ac21c7..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueue.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_createqueue_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.CreateQueueRequest; -import com.google.cloud.tasks.v2.LocationName; -import com.google.cloud.tasks.v2.Queue; - -public class SyncCreateQueue { - - public static void main(String[] args) throws Exception { - syncCreateQueue(); - } - - public static void syncCreateQueue() 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()) { - CreateQueueRequest request = - CreateQueueRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setQueue(Queue.newBuilder().build()) - .build(); - Queue response = cloudTasksClient.createQueue(request); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_createqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java deleted file mode 100644 index 3dbc0328..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_createqueue_locationnamequeue_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.LocationName; -import com.google.cloud.tasks.v2.Queue; - -public class SyncCreateQueueLocationnameQueue { - - public static void main(String[] args) throws Exception { - syncCreateQueueLocationnameQueue(); - } - - public static void syncCreateQueueLocationnameQueue() 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()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Queue queue = Queue.newBuilder().build(); - Queue response = cloudTasksClient.createQueue(parent, queue); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_createqueue_locationnamequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java deleted file mode 100644 index 76afd65b..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_createqueue_stringqueue_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.LocationName; -import com.google.cloud.tasks.v2.Queue; - -public class SyncCreateQueueStringQueue { - - public static void main(String[] args) throws Exception { - syncCreateQueueStringQueue(); - } - - public static void syncCreateQueueStringQueue() 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()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - Queue queue = Queue.newBuilder().build(); - Queue response = cloudTasksClient.createQueue(parent, queue); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_createqueue_stringqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/AsyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/AsyncCreateTask.java deleted file mode 100644 index 34daa0ac..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/AsyncCreateTask.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_createtask_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.CreateTaskRequest; -import com.google.cloud.tasks.v2.QueueName; -import com.google.cloud.tasks.v2.Task; - -public class AsyncCreateTask { - - public static void main(String[] args) throws Exception { - asyncCreateTask(); - } - - public static void asyncCreateTask() 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()) { - CreateTaskRequest request = - CreateTaskRequest.newBuilder() - .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setTask(Task.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.createTaskCallable().futureCall(request); - // Do something. - Task response = future.get(); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_createtask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTask.java deleted file mode 100644 index 73960c2b..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTask.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_createtask_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.CreateTaskRequest; -import com.google.cloud.tasks.v2.QueueName; -import com.google.cloud.tasks.v2.Task; - -public class SyncCreateTask { - - public static void main(String[] args) throws Exception { - syncCreateTask(); - } - - public static void syncCreateTask() 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()) { - CreateTaskRequest request = - CreateTaskRequest.newBuilder() - .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setTask(Task.newBuilder().build()) - .build(); - Task response = cloudTasksClient.createTask(request); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_createtask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java deleted file mode 100644 index 1baa3d2b..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_createtask_queuenametask_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.QueueName; -import com.google.cloud.tasks.v2.Task; - -public class SyncCreateTaskQueuenameTask { - - public static void main(String[] args) throws Exception { - syncCreateTaskQueuenameTask(); - } - - public static void syncCreateTaskQueuenameTask() 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()) { - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Task task = Task.newBuilder().build(); - Task response = cloudTasksClient.createTask(parent, task); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_createtask_queuenametask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java deleted file mode 100644 index 560ab33b..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_createtask_stringtask_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.QueueName; -import com.google.cloud.tasks.v2.Task; - -public class SyncCreateTaskStringTask { - - public static void main(String[] args) throws Exception { - syncCreateTaskStringTask(); - } - - public static void syncCreateTaskStringTask() 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()) { - String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Task task = Task.newBuilder().build(); - Task response = cloudTasksClient.createTask(parent, task); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_createtask_stringtask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java deleted file mode 100644 index ee8d9eae..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_deletequeue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.DeleteQueueRequest; -import com.google.cloud.tasks.v2.QueueName; -import com.google.protobuf.Empty; - -public class AsyncDeleteQueue { - - public static void main(String[] args) throws Exception { - asyncDeleteQueue(); - } - - public static void asyncDeleteQueue() 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()) { - DeleteQueueRequest request = - DeleteQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - ApiFuture future = cloudTasksClient.deleteQueueCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_deletequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueue.java deleted file mode 100644 index 3f370b97..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueue.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_deletequeue_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.DeleteQueueRequest; -import com.google.cloud.tasks.v2.QueueName; -import com.google.protobuf.Empty; - -public class SyncDeleteQueue { - - public static void main(String[] args) throws Exception { - syncDeleteQueue(); - } - - public static void syncDeleteQueue() 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()) { - DeleteQueueRequest request = - DeleteQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - cloudTasksClient.deleteQueue(request); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_deletequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java deleted file mode 100644 index 960c9456..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_deletequeue_queuename_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.QueueName; -import com.google.protobuf.Empty; - -public class SyncDeleteQueueQueuename { - - public static void main(String[] args) throws Exception { - syncDeleteQueueQueuename(); - } - - public static void syncDeleteQueueQueuename() 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()) { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - cloudTasksClient.deleteQueue(name); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_deletequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java deleted file mode 100644 index b963df07..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_deletequeue_string_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.QueueName; -import com.google.protobuf.Empty; - -public class SyncDeleteQueueString { - - public static void main(String[] args) throws Exception { - syncDeleteQueueString(); - } - - public static void syncDeleteQueueString() 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()) { - String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - cloudTasksClient.deleteQueue(name); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_deletequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/AsyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/AsyncDeleteTask.java deleted file mode 100644 index e259fe10..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/AsyncDeleteTask.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_deletetask_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.DeleteTaskRequest; -import com.google.cloud.tasks.v2.TaskName; -import com.google.protobuf.Empty; - -public class AsyncDeleteTask { - - public static void main(String[] args) throws Exception { - asyncDeleteTask(); - } - - public static void asyncDeleteTask() 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()) { - DeleteTaskRequest request = - DeleteTaskRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .build(); - ApiFuture future = cloudTasksClient.deleteTaskCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_deletetask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTask.java deleted file mode 100644 index bf4c5a4a..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTask.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_deletetask_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.DeleteTaskRequest; -import com.google.cloud.tasks.v2.TaskName; -import com.google.protobuf.Empty; - -public class SyncDeleteTask { - - public static void main(String[] args) throws Exception { - syncDeleteTask(); - } - - public static void syncDeleteTask() 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()) { - DeleteTaskRequest request = - DeleteTaskRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .build(); - cloudTasksClient.deleteTask(request); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_deletetask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskString.java deleted file mode 100644 index aeae8ccf..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_deletetask_string_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.TaskName; -import com.google.protobuf.Empty; - -public class SyncDeleteTaskString { - - public static void main(String[] args) throws Exception { - syncDeleteTaskString(); - } - - public static void syncDeleteTaskString() 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()) { - String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); - cloudTasksClient.deleteTask(name); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_deletetask_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java deleted file mode 100644 index 092b0ef7..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_deletetask_taskname_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.TaskName; -import com.google.protobuf.Empty; - -public class SyncDeleteTaskTaskname { - - public static void main(String[] args) throws Exception { - syncDeleteTaskTaskname(); - } - - public static void syncDeleteTaskTaskname() 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()) { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - cloudTasksClient.deleteTask(name); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_deletetask_taskname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java deleted file mode 100644 index 454f77ad..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_getiampolicy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.QueueName; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.GetPolicyOptions; -import com.google.iam.v1.Policy; - -public class AsyncGetIamPolicy { - - public static void main(String[] args) throws Exception { - asyncGetIamPolicy(); - } - - public static void asyncGetIamPolicy() 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()) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.getIamPolicyCallable().futureCall(request); - // Do something. - Policy response = future.get(); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_getiampolicy_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java deleted file mode 100644 index 95f353d0..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_getiampolicy_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.QueueName; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.GetPolicyOptions; -import com.google.iam.v1.Policy; - -public class SyncGetIamPolicy { - - public static void main(String[] args) throws Exception { - syncGetIamPolicy(); - } - - public static void syncGetIamPolicy() 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()) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - Policy response = cloudTasksClient.getIamPolicy(request); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_getiampolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java deleted file mode 100644 index 949f438f..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_getiampolicy_resourcename_sync] -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.QueueName; -import com.google.iam.v1.Policy; - -public class SyncGetIamPolicyResourcename { - - public static void main(String[] args) throws Exception { - syncGetIamPolicyResourcename(); - } - - public static void syncGetIamPolicyResourcename() 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()) { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Policy response = cloudTasksClient.getIamPolicy(resource); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_getiampolicy_resourcename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java deleted file mode 100644 index 58a98b0d..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_getiampolicy_string_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.QueueName; -import com.google.iam.v1.Policy; - -public class SyncGetIamPolicyString { - - public static void main(String[] args) throws Exception { - syncGetIamPolicyString(); - } - - public static void syncGetIamPolicyString() 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()) { - String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Policy response = cloudTasksClient.getIamPolicy(resource); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_getiampolicy_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/AsyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/AsyncGetQueue.java deleted file mode 100644 index 950fc984..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/AsyncGetQueue.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_getqueue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.GetQueueRequest; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.QueueName; - -public class AsyncGetQueue { - - public static void main(String[] args) throws Exception { - asyncGetQueue(); - } - - public static void asyncGetQueue() 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()) { - GetQueueRequest request = - GetQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - ApiFuture future = cloudTasksClient.getQueueCallable().futureCall(request); - // Do something. - Queue response = future.get(); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_getqueue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueue.java deleted file mode 100644 index d8c186fb..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueue.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_getqueue_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.GetQueueRequest; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.QueueName; - -public class SyncGetQueue { - - public static void main(String[] args) throws Exception { - syncGetQueue(); - } - - public static void syncGetQueue() 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()) { - GetQueueRequest request = - GetQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - Queue response = cloudTasksClient.getQueue(request); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_getqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java deleted file mode 100644 index 9963770c..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_getqueue_queuename_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.QueueName; - -public class SyncGetQueueQueuename { - - public static void main(String[] args) throws Exception { - syncGetQueueQueuename(); - } - - public static void syncGetQueueQueuename() 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()) { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Queue response = cloudTasksClient.getQueue(name); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_getqueue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueString.java deleted file mode 100644 index 22dda68e..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/getqueue/SyncGetQueueString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_getqueue_string_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.QueueName; - -public class SyncGetQueueString { - - public static void main(String[] args) throws Exception { - syncGetQueueString(); - } - - public static void syncGetQueueString() 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()) { - String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Queue response = cloudTasksClient.getQueue(name); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_getqueue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/AsyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/AsyncGetTask.java deleted file mode 100644 index 5e110eb6..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/AsyncGetTask.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_gettask_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.GetTaskRequest; -import com.google.cloud.tasks.v2.Task; -import com.google.cloud.tasks.v2.TaskName; - -public class AsyncGetTask { - - public static void main(String[] args) throws Exception { - asyncGetTask(); - } - - public static void asyncGetTask() 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()) { - GetTaskRequest request = - GetTaskRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .build(); - ApiFuture future = cloudTasksClient.getTaskCallable().futureCall(request); - // Do something. - Task response = future.get(); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_gettask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTask.java deleted file mode 100644 index b99a00ff..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTask.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_gettask_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.GetTaskRequest; -import com.google.cloud.tasks.v2.Task; -import com.google.cloud.tasks.v2.TaskName; - -public class SyncGetTask { - - public static void main(String[] args) throws Exception { - syncGetTask(); - } - - public static void syncGetTask() 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()) { - GetTaskRequest request = - GetTaskRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .build(); - Task response = cloudTasksClient.getTask(request); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_gettask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskString.java deleted file mode 100644 index a1c9844c..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_gettask_string_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.Task; -import com.google.cloud.tasks.v2.TaskName; - -public class SyncGetTaskString { - - public static void main(String[] args) throws Exception { - syncGetTaskString(); - } - - public static void syncGetTaskString() 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()) { - String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); - Task response = cloudTasksClient.getTask(name); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_gettask_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskTaskname.java deleted file mode 100644 index fc687b2c..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/gettask/SyncGetTaskTaskname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_gettask_taskname_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.Task; -import com.google.cloud.tasks.v2.TaskName; - -public class SyncGetTaskTaskname { - - public static void main(String[] args) throws Exception { - syncGetTaskTaskname(); - } - - public static void syncGetTaskTaskname() 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()) { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - Task response = cloudTasksClient.getTask(name); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_gettask_taskname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueues.java deleted file mode 100644 index 31f07c0a..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueues.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_listqueues_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.ListQueuesRequest; -import com.google.cloud.tasks.v2.LocationName; -import com.google.cloud.tasks.v2.Queue; - -public class AsyncListQueues { - - public static void main(String[] args) throws Exception { - asyncListQueues(); - } - - public static void asyncListQueues() 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()) { - ListQueuesRequest request = - ListQueuesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - ApiFuture future = cloudTasksClient.listQueuesPagedCallable().futureCall(request); - // Do something. - for (Queue element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2_generated_cloudtasksclient_listqueues_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java deleted file mode 100644 index 6370aba4..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_listqueues_paged_async] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.ListQueuesRequest; -import com.google.cloud.tasks.v2.ListQueuesResponse; -import com.google.cloud.tasks.v2.LocationName; -import com.google.cloud.tasks.v2.Queue; -import com.google.common.base.Strings; - -public class AsyncListQueuesPaged { - - public static void main(String[] args) throws Exception { - asyncListQueuesPaged(); - } - - public static void asyncListQueuesPaged() 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()) { - ListQueuesRequest request = - ListQueuesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - while (true) { - ListQueuesResponse response = cloudTasksClient.listQueuesCallable().call(request); - for (Queue element : response.getQueuesList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END tasks_v2_generated_cloudtasksclient_listqueues_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueues.java deleted file mode 100644 index 2d843256..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueues.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_listqueues_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.ListQueuesRequest; -import com.google.cloud.tasks.v2.LocationName; -import com.google.cloud.tasks.v2.Queue; - -public class SyncListQueues { - - public static void main(String[] args) throws Exception { - syncListQueues(); - } - - public static void syncListQueues() 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()) { - ListQueuesRequest request = - ListQueuesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - for (Queue element : cloudTasksClient.listQueues(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2_generated_cloudtasksclient_listqueues_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java deleted file mode 100644 index 93944890..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_listqueues_locationname_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.LocationName; -import com.google.cloud.tasks.v2.Queue; - -public class SyncListQueuesLocationname { - - public static void main(String[] args) throws Exception { - syncListQueuesLocationname(); - } - - public static void syncListQueuesLocationname() 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()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2_generated_cloudtasksclient_listqueues_locationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesString.java deleted file mode 100644 index 21b0c380..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listqueues/SyncListQueuesString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_listqueues_string_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.LocationName; -import com.google.cloud.tasks.v2.Queue; - -public class SyncListQueuesString { - - public static void main(String[] args) throws Exception { - syncListQueuesString(); - } - - public static void syncListQueuesString() 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()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2_generated_cloudtasksclient_listqueues_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasks.java deleted file mode 100644 index 40c31e55..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasks.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_listtasks_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.ListTasksRequest; -import com.google.cloud.tasks.v2.QueueName; -import com.google.cloud.tasks.v2.Task; - -public class AsyncListTasks { - - public static void main(String[] args) throws Exception { - asyncListTasks(); - } - - public static void asyncListTasks() 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()) { - ListTasksRequest request = - ListTasksRequest.newBuilder() - .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - ApiFuture future = cloudTasksClient.listTasksPagedCallable().futureCall(request); - // Do something. - for (Task element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2_generated_cloudtasksclient_listtasks_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasksPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasksPaged.java deleted file mode 100644 index 518df7f0..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/AsyncListTasksPaged.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_listtasks_paged_async] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.ListTasksRequest; -import com.google.cloud.tasks.v2.ListTasksResponse; -import com.google.cloud.tasks.v2.QueueName; -import com.google.cloud.tasks.v2.Task; -import com.google.common.base.Strings; - -public class AsyncListTasksPaged { - - public static void main(String[] args) throws Exception { - asyncListTasksPaged(); - } - - public static void asyncListTasksPaged() 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()) { - ListTasksRequest request = - ListTasksRequest.newBuilder() - .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - while (true) { - ListTasksResponse response = cloudTasksClient.listTasksCallable().call(request); - for (Task element : response.getTasksList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END tasks_v2_generated_cloudtasksclient_listtasks_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasks.java deleted file mode 100644 index 2972c9ea..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasks.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_listtasks_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.ListTasksRequest; -import com.google.cloud.tasks.v2.QueueName; -import com.google.cloud.tasks.v2.Task; - -public class SyncListTasks { - - public static void main(String[] args) throws Exception { - syncListTasks(); - } - - public static void syncListTasks() 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()) { - ListTasksRequest request = - ListTasksRequest.newBuilder() - .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - for (Task element : cloudTasksClient.listTasks(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2_generated_cloudtasksclient_listtasks_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksQueuename.java deleted file mode 100644 index a5c8d8cc..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksQueuename.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_listtasks_queuename_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.QueueName; -import com.google.cloud.tasks.v2.Task; - -public class SyncListTasksQueuename { - - public static void main(String[] args) throws Exception { - syncListTasksQueuename(); - } - - public static void syncListTasksQueuename() 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()) { - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2_generated_cloudtasksclient_listtasks_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksString.java deleted file mode 100644 index c3338b8c..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/listtasks/SyncListTasksString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_listtasks_string_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.QueueName; -import com.google.cloud.tasks.v2.Task; - -public class SyncListTasksString { - - public static void main(String[] args) throws Exception { - syncListTasksString(); - } - - public static void syncListTasksString() 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()) { - String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2_generated_cloudtasksclient_listtasks_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/AsyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/AsyncPauseQueue.java deleted file mode 100644 index 6f44153c..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/AsyncPauseQueue.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_pausequeue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.PauseQueueRequest; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.QueueName; - -public class AsyncPauseQueue { - - public static void main(String[] args) throws Exception { - asyncPauseQueue(); - } - - public static void asyncPauseQueue() 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()) { - PauseQueueRequest request = - PauseQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - ApiFuture future = cloudTasksClient.pauseQueueCallable().futureCall(request); - // Do something. - Queue response = future.get(); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_pausequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueue.java deleted file mode 100644 index 3ca80bf4..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueue.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_pausequeue_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.PauseQueueRequest; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.QueueName; - -public class SyncPauseQueue { - - public static void main(String[] args) throws Exception { - syncPauseQueue(); - } - - public static void syncPauseQueue() 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()) { - PauseQueueRequest request = - PauseQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - Queue response = cloudTasksClient.pauseQueue(request); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_pausequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java deleted file mode 100644 index ebccf9d4..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_pausequeue_queuename_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.QueueName; - -public class SyncPauseQueueQueuename { - - public static void main(String[] args) throws Exception { - syncPauseQueueQueuename(); - } - - public static void syncPauseQueueQueuename() 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()) { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Queue response = cloudTasksClient.pauseQueue(name); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_pausequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueString.java deleted file mode 100644 index caba7348..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/pausequeue/SyncPauseQueueString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_pausequeue_string_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.QueueName; - -public class SyncPauseQueueString { - - public static void main(String[] args) throws Exception { - syncPauseQueueString(); - } - - public static void syncPauseQueueString() 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()) { - String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Queue response = cloudTasksClient.pauseQueue(name); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_pausequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java deleted file mode 100644 index 23616da3..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_purgequeue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.PurgeQueueRequest; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.QueueName; - -public class AsyncPurgeQueue { - - public static void main(String[] args) throws Exception { - asyncPurgeQueue(); - } - - public static void asyncPurgeQueue() 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()) { - PurgeQueueRequest request = - PurgeQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - ApiFuture future = cloudTasksClient.purgeQueueCallable().futureCall(request); - // Do something. - Queue response = future.get(); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_purgequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueue.java deleted file mode 100644 index 30356ca7..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueue.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_purgequeue_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.PurgeQueueRequest; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.QueueName; - -public class SyncPurgeQueue { - - public static void main(String[] args) throws Exception { - syncPurgeQueue(); - } - - public static void syncPurgeQueue() 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()) { - PurgeQueueRequest request = - PurgeQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - Queue response = cloudTasksClient.purgeQueue(request); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_purgequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java deleted file mode 100644 index 1996b5be..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_purgequeue_queuename_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.QueueName; - -public class SyncPurgeQueueQueuename { - - public static void main(String[] args) throws Exception { - syncPurgeQueueQueuename(); - } - - public static void syncPurgeQueueQueuename() 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()) { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Queue response = cloudTasksClient.purgeQueue(name); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_purgequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java deleted file mode 100644 index 7161a99a..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_purgequeue_string_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.QueueName; - -public class SyncPurgeQueueString { - - public static void main(String[] args) throws Exception { - syncPurgeQueueString(); - } - - public static void syncPurgeQueueString() 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()) { - String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Queue response = cloudTasksClient.purgeQueue(name); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_purgequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/AsyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/AsyncResumeQueue.java deleted file mode 100644 index c63525a9..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/AsyncResumeQueue.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_resumequeue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.QueueName; -import com.google.cloud.tasks.v2.ResumeQueueRequest; - -public class AsyncResumeQueue { - - public static void main(String[] args) throws Exception { - asyncResumeQueue(); - } - - public static void asyncResumeQueue() 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()) { - ResumeQueueRequest request = - ResumeQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - ApiFuture future = cloudTasksClient.resumeQueueCallable().futureCall(request); - // Do something. - Queue response = future.get(); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_resumequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueue.java deleted file mode 100644 index 995c3435..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueue.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_resumequeue_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.QueueName; -import com.google.cloud.tasks.v2.ResumeQueueRequest; - -public class SyncResumeQueue { - - public static void main(String[] args) throws Exception { - syncResumeQueue(); - } - - public static void syncResumeQueue() 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()) { - ResumeQueueRequest request = - ResumeQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - Queue response = cloudTasksClient.resumeQueue(request); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_resumequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java deleted file mode 100644 index cbbc6986..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_resumequeue_queuename_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.QueueName; - -public class SyncResumeQueueQueuename { - - public static void main(String[] args) throws Exception { - syncResumeQueueQueuename(); - } - - public static void syncResumeQueueQueuename() 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()) { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Queue response = cloudTasksClient.resumeQueue(name); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_resumequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueString.java deleted file mode 100644 index f2c84a58..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/resumequeue/SyncResumeQueueString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_resumequeue_string_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.QueueName; - -public class SyncResumeQueueString { - - public static void main(String[] args) throws Exception { - syncResumeQueueString(); - } - - public static void syncResumeQueueString() 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()) { - String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Queue response = cloudTasksClient.resumeQueue(name); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_resumequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/AsyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/AsyncRunTask.java deleted file mode 100644 index 02ccf00e..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/AsyncRunTask.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_runtask_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.RunTaskRequest; -import com.google.cloud.tasks.v2.Task; -import com.google.cloud.tasks.v2.TaskName; - -public class AsyncRunTask { - - public static void main(String[] args) throws Exception { - asyncRunTask(); - } - - public static void asyncRunTask() 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()) { - RunTaskRequest request = - RunTaskRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .build(); - ApiFuture future = cloudTasksClient.runTaskCallable().futureCall(request); - // Do something. - Task response = future.get(); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_runtask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTask.java deleted file mode 100644 index 5bce1fae..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTask.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_runtask_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.RunTaskRequest; -import com.google.cloud.tasks.v2.Task; -import com.google.cloud.tasks.v2.TaskName; - -public class SyncRunTask { - - public static void main(String[] args) throws Exception { - syncRunTask(); - } - - public static void syncRunTask() 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()) { - RunTaskRequest request = - RunTaskRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .build(); - Task response = cloudTasksClient.runTask(request); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_runtask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskString.java deleted file mode 100644 index cbe96606..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_runtask_string_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.Task; -import com.google.cloud.tasks.v2.TaskName; - -public class SyncRunTaskString { - - public static void main(String[] args) throws Exception { - syncRunTaskString(); - } - - public static void syncRunTaskString() 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()) { - String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); - Task response = cloudTasksClient.runTask(name); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_runtask_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskTaskname.java deleted file mode 100644 index 3b22e063..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/runtask/SyncRunTaskTaskname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_runtask_taskname_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.Task; -import com.google.cloud.tasks.v2.TaskName; - -public class SyncRunTaskTaskname { - - public static void main(String[] args) throws Exception { - syncRunTaskTaskname(); - } - - public static void syncRunTaskTaskname() 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()) { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - Task response = cloudTasksClient.runTask(name); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_runtask_taskname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java deleted file mode 100644 index 5160c33a..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_setiampolicy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.QueueName; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.protobuf.FieldMask; - -public class AsyncSetIamPolicy { - - public static void main(String[] args) throws Exception { - asyncSetIamPolicy(); - } - - public static void asyncSetIamPolicy() 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()) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.setIamPolicyCallable().futureCall(request); - // Do something. - Policy response = future.get(); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_setiampolicy_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java deleted file mode 100644 index 789562e7..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_setiampolicy_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.QueueName; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.protobuf.FieldMask; - -public class SyncSetIamPolicy { - - public static void main(String[] args) throws Exception { - syncSetIamPolicy(); - } - - public static void syncSetIamPolicy() 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()) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Policy response = cloudTasksClient.setIamPolicy(request); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_setiampolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java deleted file mode 100644 index 3f24bd63..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_setiampolicy_resourcenamepolicy_sync] -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.QueueName; -import com.google.iam.v1.Policy; - -public class SyncSetIamPolicyResourcenamePolicy { - - public static void main(String[] args) throws Exception { - syncSetIamPolicyResourcenamePolicy(); - } - - public static void syncSetIamPolicyResourcenamePolicy() 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()) { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Policy policy = Policy.newBuilder().build(); - Policy response = cloudTasksClient.setIamPolicy(resource, policy); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_setiampolicy_resourcenamepolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java deleted file mode 100644 index b5badab6..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_setiampolicy_stringpolicy_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.QueueName; -import com.google.iam.v1.Policy; - -public class SyncSetIamPolicyStringPolicy { - - public static void main(String[] args) throws Exception { - syncSetIamPolicyStringPolicy(); - } - - public static void syncSetIamPolicyStringPolicy() 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()) { - String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Policy policy = Policy.newBuilder().build(); - Policy response = cloudTasksClient.setIamPolicy(resource, policy); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_setiampolicy_stringpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java deleted file mode 100644 index c372a8d5..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_testiampermissions_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.QueueName; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import java.util.ArrayList; - -public class AsyncTestIamPermissions { - - public static void main(String[] args) throws Exception { - asyncTestIamPermissions(); - } - - public static void asyncTestIamPermissions() 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()) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .addAllPermissions(new ArrayList()) - .build(); - ApiFuture future = - cloudTasksClient.testIamPermissionsCallable().futureCall(request); - // Do something. - TestIamPermissionsResponse response = future.get(); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_testiampermissions_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java deleted file mode 100644 index 34cf547a..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_testiampermissions_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.QueueName; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import java.util.ArrayList; - -public class SyncTestIamPermissions { - - public static void main(String[] args) throws Exception { - syncTestIamPermissions(); - } - - public static void syncTestIamPermissions() 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()) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .addAllPermissions(new ArrayList()) - .build(); - TestIamPermissionsResponse response = cloudTasksClient.testIamPermissions(request); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_testiampermissions_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java deleted file mode 100644 index c894eedc..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_testiampermissions_resourcenameliststring_sync] -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.QueueName; -import com.google.iam.v1.TestIamPermissionsResponse; -import java.util.ArrayList; -import java.util.List; - -public class SyncTestIamPermissionsResourcenameListstring { - - public static void main(String[] args) throws Exception { - syncTestIamPermissionsResourcenameListstring(); - } - - public static void syncTestIamPermissionsResourcenameListstring() 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()) { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - List permissions = new ArrayList<>(); - TestIamPermissionsResponse response = - cloudTasksClient.testIamPermissions(resource, permissions); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_testiampermissions_resourcenameliststring_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java deleted file mode 100644 index 1f757802..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_testiampermissions_stringliststring_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.QueueName; -import com.google.iam.v1.TestIamPermissionsResponse; -import java.util.ArrayList; -import java.util.List; - -public class SyncTestIamPermissionsStringListstring { - - public static void main(String[] args) throws Exception { - syncTestIamPermissionsStringListstring(); - } - - public static void syncTestIamPermissionsStringListstring() 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()) { - String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - List permissions = new ArrayList<>(); - TestIamPermissionsResponse response = - cloudTasksClient.testIamPermissions(resource, permissions); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_testiampermissions_stringliststring_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java deleted file mode 100644 index ceba1aa7..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_updatequeue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.UpdateQueueRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateQueue { - - public static void main(String[] args) throws Exception { - asyncUpdateQueue(); - } - - public static void asyncUpdateQueue() 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()) { - UpdateQueueRequest request = - UpdateQueueRequest.newBuilder() - .setQueue(Queue.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.updateQueueCallable().futureCall(request); - // Do something. - Queue response = future.get(); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_updatequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueue.java deleted file mode 100644 index 85804280..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueue.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_updatequeue_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.Queue; -import com.google.cloud.tasks.v2.UpdateQueueRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateQueue { - - public static void main(String[] args) throws Exception { - syncUpdateQueue(); - } - - public static void syncUpdateQueue() 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()) { - UpdateQueueRequest request = - UpdateQueueRequest.newBuilder() - .setQueue(Queue.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Queue response = cloudTasksClient.updateQueue(request); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_updatequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java deleted file mode 100644 index c549376b..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtasksclient_updatequeue_queuefieldmask_sync] -import com.google.cloud.tasks.v2.CloudTasksClient; -import com.google.cloud.tasks.v2.Queue; -import com.google.protobuf.FieldMask; - -public class SyncUpdateQueueQueueFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateQueueQueueFieldmask(); - } - - public static void syncUpdateQueueQueueFieldmask() 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()) { - Queue queue = Queue.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Queue response = cloudTasksClient.updateQueue(queue, updateMask); - } - } -} -// [END tasks_v2_generated_cloudtasksclient_updatequeue_queuefieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtaskssettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtaskssettings/getqueue/SyncGetQueue.java deleted file mode 100644 index 720367aa..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/cloudtaskssettings/getqueue/SyncGetQueue.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 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.v2.samples; - -// [START tasks_v2_generated_cloudtaskssettings_getqueue_sync] -import com.google.cloud.tasks.v2.CloudTasksSettings; -import java.time.Duration; - -public class SyncGetQueue { - - public static void main(String[] args) throws Exception { - syncGetQueue(); - } - - public static void syncGetQueue() 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 - CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder(); - cloudTasksSettingsBuilder - .getQueueSettings() - .setRetrySettings( - cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build(); - } -} -// [END tasks_v2_generated_cloudtaskssettings_getqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java deleted file mode 100644 index 51115470..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 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.v2.stub.samples; - -// [START tasks_v2_generated_cloudtasksstubsettings_getqueue_sync] -import com.google.cloud.tasks.v2.stub.CloudTasksStubSettings; -import java.time.Duration; - -public class SyncGetQueue { - - public static void main(String[] args) throws Exception { - syncGetQueue(); - } - - public static void syncGetQueue() 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 - CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder(); - cloudTasksSettingsBuilder - .getQueueSettings() - .setRetrySettings( - cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build(); - } -} -// [END tasks_v2_generated_cloudtasksstubsettings_getqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/AsyncAcknowledgeTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/AsyncAcknowledgeTask.java deleted file mode 100644 index fae03a61..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/AsyncAcknowledgeTask.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_acknowledgetask_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.TaskName; -import com.google.protobuf.Empty; -import com.google.protobuf.Timestamp; - -public class AsyncAcknowledgeTask { - - public static void main(String[] args) throws Exception { - asyncAcknowledgeTask(); - } - - public static void asyncAcknowledgeTask() 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()) { - AcknowledgeTaskRequest request = - AcknowledgeTaskRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.acknowledgeTaskCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_acknowledgetask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTask.java deleted file mode 100644 index 8302c280..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTask.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_acknowledgetask_sync] -import com.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.TaskName; -import com.google.protobuf.Empty; -import com.google.protobuf.Timestamp; - -public class SyncAcknowledgeTask { - - public static void main(String[] args) throws Exception { - syncAcknowledgeTask(); - } - - public static void syncAcknowledgeTask() 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()) { - AcknowledgeTaskRequest request = - AcknowledgeTaskRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .build(); - cloudTasksClient.acknowledgeTask(request); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_acknowledgetask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskStringTimestamp.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskStringTimestamp.java deleted file mode 100644 index 0a89d220..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskStringTimestamp.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_acknowledgetask_stringtimestamp_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.TaskName; -import com.google.protobuf.Empty; -import com.google.protobuf.Timestamp; - -public class SyncAcknowledgeTaskStringTimestamp { - - public static void main(String[] args) throws Exception { - syncAcknowledgeTaskStringTimestamp(); - } - - public static void syncAcknowledgeTaskStringTimestamp() 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()) { - String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - cloudTasksClient.acknowledgeTask(name, scheduleTime); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_acknowledgetask_stringtimestamp_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskTasknameTimestamp.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskTasknameTimestamp.java deleted file mode 100644 index 82e330c2..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/acknowledgetask/SyncAcknowledgeTaskTasknameTimestamp.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_acknowledgetask_tasknametimestamp_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.TaskName; -import com.google.protobuf.Empty; -import com.google.protobuf.Timestamp; - -public class SyncAcknowledgeTaskTasknameTimestamp { - - public static void main(String[] args) throws Exception { - syncAcknowledgeTaskTasknameTimestamp(); - } - - public static void syncAcknowledgeTaskTasknameTimestamp() 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()) { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - cloudTasksClient.acknowledgeTask(name, scheduleTime); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_acknowledgetask_tasknametimestamp_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/AsyncCancelLease.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/AsyncCancelLease.java deleted file mode 100644 index e618e1f0..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/AsyncCancelLease.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_cancellease_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta2.CancelLeaseRequest; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Task; -import com.google.cloud.tasks.v2beta2.TaskName; -import com.google.protobuf.Timestamp; - -public class AsyncCancelLease { - - public static void main(String[] args) throws Exception { - asyncCancelLease(); - } - - public static void asyncCancelLease() 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()) { - CancelLeaseRequest request = - CancelLeaseRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.cancelLeaseCallable().futureCall(request); - // Do something. - Task response = future.get(); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_cancellease_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLease.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLease.java deleted file mode 100644 index 9323041b..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLease.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_cancellease_sync] -import com.google.cloud.tasks.v2beta2.CancelLeaseRequest; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Task; -import com.google.cloud.tasks.v2beta2.TaskName; -import com.google.protobuf.Timestamp; - -public class SyncCancelLease { - - public static void main(String[] args) throws Exception { - syncCancelLease(); - } - - public static void syncCancelLease() 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()) { - CancelLeaseRequest request = - CancelLeaseRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .build(); - Task response = cloudTasksClient.cancelLease(request); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_cancellease_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseStringTimestamp.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseStringTimestamp.java deleted file mode 100644 index b28a6da1..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseStringTimestamp.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_cancellease_stringtimestamp_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Task; -import com.google.cloud.tasks.v2beta2.TaskName; -import com.google.protobuf.Timestamp; - -public class SyncCancelLeaseStringTimestamp { - - public static void main(String[] args) throws Exception { - syncCancelLeaseStringTimestamp(); - } - - public static void syncCancelLeaseStringTimestamp() 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()) { - String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - Task response = cloudTasksClient.cancelLease(name, scheduleTime); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_cancellease_stringtimestamp_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseTasknameTimestamp.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseTasknameTimestamp.java deleted file mode 100644 index 8bf8ed7c..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/cancellease/SyncCancelLeaseTasknameTimestamp.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_cancellease_tasknametimestamp_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Task; -import com.google.cloud.tasks.v2beta2.TaskName; -import com.google.protobuf.Timestamp; - -public class SyncCancelLeaseTasknameTimestamp { - - public static void main(String[] args) throws Exception { - syncCancelLeaseTasknameTimestamp(); - } - - public static void syncCancelLeaseTasknameTimestamp() 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()) { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - Task response = cloudTasksClient.cancelLease(name, scheduleTime); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_cancellease_tasknametimestamp_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java deleted file mode 100644 index 9adafb3a..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_create_setcredentialsprovider_sync] -import com.google.api.gax.core.FixedCredentialsProvider; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.CloudTasksSettings; -import com.google.cloud.tasks.v2beta2.myCredentials; - -public class SyncCreateSetCredentialsProvider { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider(); - } - - public static void syncCreateSetCredentialsProvider() 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 - CloudTasksSettings cloudTasksSettings = - CloudTasksSettings.newBuilder() - .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) - .build(); - CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 2970d6f9..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_create_setcredentialsprovider1_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.CloudTasksSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() 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 - CloudTasksSettings cloudTasksSettings = - CloudTasksSettings.newBuilder() - .setTransportChannelProvider( - CloudTasksSettings.defaultHttpJsonTransportProviderBuilder().build()) - .build(); - CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetEndpoint.java deleted file mode 100644 index 0e87ed2e..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/create/SyncCreateSetEndpoint.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_create_setendpoint_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.CloudTasksSettings; -import com.google.cloud.tasks.v2beta2.myEndpoint; - -public class SyncCreateSetEndpoint { - - public static void main(String[] args) throws Exception { - syncCreateSetEndpoint(); - } - - public static void syncCreateSetEndpoint() 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 - CloudTasksSettings cloudTasksSettings = - CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build(); - CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/AsyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/AsyncCreateQueue.java deleted file mode 100644 index 107fdbc4..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/AsyncCreateQueue.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_createqueue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.CreateQueueRequest; -import com.google.cloud.tasks.v2beta2.LocationName; -import com.google.cloud.tasks.v2beta2.Queue; - -public class AsyncCreateQueue { - - public static void main(String[] args) throws Exception { - asyncCreateQueue(); - } - - public static void asyncCreateQueue() 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()) { - CreateQueueRequest request = - CreateQueueRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setQueue(Queue.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.createQueueCallable().futureCall(request); - // Do something. - Queue response = future.get(); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_createqueue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueue.java deleted file mode 100644 index a2b1e635..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueue.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_createqueue_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.CreateQueueRequest; -import com.google.cloud.tasks.v2beta2.LocationName; -import com.google.cloud.tasks.v2beta2.Queue; - -public class SyncCreateQueue { - - public static void main(String[] args) throws Exception { - syncCreateQueue(); - } - - public static void syncCreateQueue() 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()) { - CreateQueueRequest request = - CreateQueueRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setQueue(Queue.newBuilder().build()) - .build(); - Queue response = cloudTasksClient.createQueue(request); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_createqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java deleted file mode 100644 index 6de0aff7..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_createqueue_locationnamequeue_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.LocationName; -import com.google.cloud.tasks.v2beta2.Queue; - -public class SyncCreateQueueLocationnameQueue { - - public static void main(String[] args) throws Exception { - syncCreateQueueLocationnameQueue(); - } - - public static void syncCreateQueueLocationnameQueue() 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()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Queue queue = Queue.newBuilder().build(); - Queue response = cloudTasksClient.createQueue(parent, queue); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_createqueue_locationnamequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java deleted file mode 100644 index 56ce4232..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_createqueue_stringqueue_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.LocationName; -import com.google.cloud.tasks.v2beta2.Queue; - -public class SyncCreateQueueStringQueue { - - public static void main(String[] args) throws Exception { - syncCreateQueueStringQueue(); - } - - public static void syncCreateQueueStringQueue() 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()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - Queue queue = Queue.newBuilder().build(); - Queue response = cloudTasksClient.createQueue(parent, queue); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_createqueue_stringqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/AsyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/AsyncCreateTask.java deleted file mode 100644 index 30be5be4..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/AsyncCreateTask.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_createtask_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.CreateTaskRequest; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.cloud.tasks.v2beta2.Task; - -public class AsyncCreateTask { - - public static void main(String[] args) throws Exception { - asyncCreateTask(); - } - - public static void asyncCreateTask() 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()) { - CreateTaskRequest request = - CreateTaskRequest.newBuilder() - .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setTask(Task.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.createTaskCallable().futureCall(request); - // Do something. - Task response = future.get(); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_createtask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTask.java deleted file mode 100644 index 99aadb75..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTask.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_createtask_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.CreateTaskRequest; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.cloud.tasks.v2beta2.Task; - -public class SyncCreateTask { - - public static void main(String[] args) throws Exception { - syncCreateTask(); - } - - public static void syncCreateTask() 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()) { - CreateTaskRequest request = - CreateTaskRequest.newBuilder() - .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setTask(Task.newBuilder().build()) - .build(); - Task response = cloudTasksClient.createTask(request); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_createtask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java deleted file mode 100644 index fbe38473..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_createtask_queuenametask_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.cloud.tasks.v2beta2.Task; - -public class SyncCreateTaskQueuenameTask { - - public static void main(String[] args) throws Exception { - syncCreateTaskQueuenameTask(); - } - - public static void syncCreateTaskQueuenameTask() 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()) { - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Task task = Task.newBuilder().build(); - Task response = cloudTasksClient.createTask(parent, task); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_createtask_queuenametask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java deleted file mode 100644 index 0cac0e33..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/createtask/SyncCreateTaskStringTask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_createtask_stringtask_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.cloud.tasks.v2beta2.Task; - -public class SyncCreateTaskStringTask { - - public static void main(String[] args) throws Exception { - syncCreateTaskStringTask(); - } - - public static void syncCreateTaskStringTask() 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()) { - String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Task task = Task.newBuilder().build(); - Task response = cloudTasksClient.createTask(parent, task); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_createtask_stringtask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java deleted file mode 100644 index 29d3c2cc..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/AsyncDeleteQueue.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_deletequeue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.DeleteQueueRequest; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.protobuf.Empty; - -public class AsyncDeleteQueue { - - public static void main(String[] args) throws Exception { - asyncDeleteQueue(); - } - - public static void asyncDeleteQueue() 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()) { - DeleteQueueRequest request = - DeleteQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - ApiFuture future = cloudTasksClient.deleteQueueCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_deletequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueue.java deleted file mode 100644 index de067ffd..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueue.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_deletequeue_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.DeleteQueueRequest; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.protobuf.Empty; - -public class SyncDeleteQueue { - - public static void main(String[] args) throws Exception { - syncDeleteQueue(); - } - - public static void syncDeleteQueue() 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()) { - DeleteQueueRequest request = - DeleteQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - cloudTasksClient.deleteQueue(request); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_deletequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java deleted file mode 100644 index 5d3028aa..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_deletequeue_queuename_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.protobuf.Empty; - -public class SyncDeleteQueueQueuename { - - public static void main(String[] args) throws Exception { - syncDeleteQueueQueuename(); - } - - public static void syncDeleteQueueQueuename() 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()) { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - cloudTasksClient.deleteQueue(name); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_deletequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java deleted file mode 100644 index ea5f346e..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletequeue/SyncDeleteQueueString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_deletequeue_string_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.protobuf.Empty; - -public class SyncDeleteQueueString { - - public static void main(String[] args) throws Exception { - syncDeleteQueueString(); - } - - public static void syncDeleteQueueString() 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()) { - String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - cloudTasksClient.deleteQueue(name); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_deletequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/AsyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/AsyncDeleteTask.java deleted file mode 100644 index e256d5aa..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/AsyncDeleteTask.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_deletetask_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.DeleteTaskRequest; -import com.google.cloud.tasks.v2beta2.TaskName; -import com.google.protobuf.Empty; - -public class AsyncDeleteTask { - - public static void main(String[] args) throws Exception { - asyncDeleteTask(); - } - - public static void asyncDeleteTask() 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()) { - DeleteTaskRequest request = - DeleteTaskRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .build(); - ApiFuture future = cloudTasksClient.deleteTaskCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_deletetask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTask.java deleted file mode 100644 index 856a0e16..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTask.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_deletetask_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.DeleteTaskRequest; -import com.google.cloud.tasks.v2beta2.TaskName; -import com.google.protobuf.Empty; - -public class SyncDeleteTask { - - public static void main(String[] args) throws Exception { - syncDeleteTask(); - } - - public static void syncDeleteTask() 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()) { - DeleteTaskRequest request = - DeleteTaskRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .build(); - cloudTasksClient.deleteTask(request); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_deletetask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskString.java deleted file mode 100644 index 3e654f62..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_deletetask_string_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.TaskName; -import com.google.protobuf.Empty; - -public class SyncDeleteTaskString { - - public static void main(String[] args) throws Exception { - syncDeleteTaskString(); - } - - public static void syncDeleteTaskString() 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()) { - String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); - cloudTasksClient.deleteTask(name); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_deletetask_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java deleted file mode 100644 index 3d12a3b0..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_deletetask_taskname_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.TaskName; -import com.google.protobuf.Empty; - -public class SyncDeleteTaskTaskname { - - public static void main(String[] args) throws Exception { - syncDeleteTaskTaskname(); - } - - public static void syncDeleteTaskTaskname() 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()) { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - cloudTasksClient.deleteTask(name); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_deletetask_taskname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java deleted file mode 100644 index 25212550..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_getiampolicy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.GetPolicyOptions; -import com.google.iam.v1.Policy; - -public class AsyncGetIamPolicy { - - public static void main(String[] args) throws Exception { - asyncGetIamPolicy(); - } - - public static void asyncGetIamPolicy() 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()) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.getIamPolicyCallable().futureCall(request); - // Do something. - Policy response = future.get(); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_getiampolicy_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java deleted file mode 100644 index 47d0afd0..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_getiampolicy_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.GetPolicyOptions; -import com.google.iam.v1.Policy; - -public class SyncGetIamPolicy { - - public static void main(String[] args) throws Exception { - syncGetIamPolicy(); - } - - public static void syncGetIamPolicy() 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()) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - Policy response = cloudTasksClient.getIamPolicy(request); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_getiampolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java deleted file mode 100644 index b773f9ad..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_getiampolicy_resourcename_sync] -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.iam.v1.Policy; - -public class SyncGetIamPolicyResourcename { - - public static void main(String[] args) throws Exception { - syncGetIamPolicyResourcename(); - } - - public static void syncGetIamPolicyResourcename() 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()) { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Policy response = cloudTasksClient.getIamPolicy(resource); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_getiampolicy_resourcename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java deleted file mode 100644 index 664e3ef2..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_getiampolicy_string_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.iam.v1.Policy; - -public class SyncGetIamPolicyString { - - public static void main(String[] args) throws Exception { - syncGetIamPolicyString(); - } - - public static void syncGetIamPolicyString() 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()) { - String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Policy response = cloudTasksClient.getIamPolicy(resource); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_getiampolicy_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/AsyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/AsyncGetQueue.java deleted file mode 100644 index 3f91261c..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/AsyncGetQueue.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_getqueue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.GetQueueRequest; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.protobuf.FieldMask; - -public class AsyncGetQueue { - - public static void main(String[] args) throws Exception { - asyncGetQueue(); - } - - public static void asyncGetQueue() 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()) { - GetQueueRequest request = - GetQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setReadMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.getQueueCallable().futureCall(request); - // Do something. - Queue response = future.get(); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_getqueue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueue.java deleted file mode 100644 index 5ffdcd88..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueue.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_getqueue_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.GetQueueRequest; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.protobuf.FieldMask; - -public class SyncGetQueue { - - public static void main(String[] args) throws Exception { - syncGetQueue(); - } - - public static void syncGetQueue() 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()) { - GetQueueRequest request = - GetQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setReadMask(FieldMask.newBuilder().build()) - .build(); - Queue response = cloudTasksClient.getQueue(request); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_getqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java deleted file mode 100644 index 8e26d72c..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueQueuename.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_getqueue_queuename_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.QueueName; - -public class SyncGetQueueQueuename { - - public static void main(String[] args) throws Exception { - syncGetQueueQueuename(); - } - - public static void syncGetQueueQueuename() 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()) { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Queue response = cloudTasksClient.getQueue(name); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_getqueue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueString.java deleted file mode 100644 index 644874bb..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/getqueue/SyncGetQueueString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_getqueue_string_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.QueueName; - -public class SyncGetQueueString { - - public static void main(String[] args) throws Exception { - syncGetQueueString(); - } - - public static void syncGetQueueString() 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()) { - String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Queue response = cloudTasksClient.getQueue(name); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_getqueue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/AsyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/AsyncGetTask.java deleted file mode 100644 index 075be549..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/AsyncGetTask.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_gettask_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.GetTaskRequest; -import com.google.cloud.tasks.v2beta2.Task; -import com.google.cloud.tasks.v2beta2.TaskName; - -public class AsyncGetTask { - - public static void main(String[] args) throws Exception { - asyncGetTask(); - } - - public static void asyncGetTask() 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()) { - GetTaskRequest request = - GetTaskRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .build(); - ApiFuture future = cloudTasksClient.getTaskCallable().futureCall(request); - // Do something. - Task response = future.get(); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_gettask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTask.java deleted file mode 100644 index f87863a9..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTask.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_gettask_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.GetTaskRequest; -import com.google.cloud.tasks.v2beta2.Task; -import com.google.cloud.tasks.v2beta2.TaskName; - -public class SyncGetTask { - - public static void main(String[] args) throws Exception { - syncGetTask(); - } - - public static void syncGetTask() 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()) { - GetTaskRequest request = - GetTaskRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .build(); - Task response = cloudTasksClient.getTask(request); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_gettask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskString.java deleted file mode 100644 index 8937a692..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_gettask_string_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Task; -import com.google.cloud.tasks.v2beta2.TaskName; - -public class SyncGetTaskString { - - public static void main(String[] args) throws Exception { - syncGetTaskString(); - } - - public static void syncGetTaskString() 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()) { - String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); - Task response = cloudTasksClient.getTask(name); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_gettask_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskTaskname.java deleted file mode 100644 index 7defa994..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/gettask/SyncGetTaskTaskname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_gettask_taskname_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Task; -import com.google.cloud.tasks.v2beta2.TaskName; - -public class SyncGetTaskTaskname { - - public static void main(String[] args) throws Exception { - syncGetTaskTaskname(); - } - - public static void syncGetTaskTaskname() 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()) { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - Task response = cloudTasksClient.getTask(name); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_gettask_taskname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/AsyncLeaseTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/AsyncLeaseTasks.java deleted file mode 100644 index 6e0a7d7f..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/AsyncLeaseTasks.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_leasetasks_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.LeaseTasksRequest; -import com.google.cloud.tasks.v2beta2.LeaseTasksResponse; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.protobuf.Duration; - -public class AsyncLeaseTasks { - - public static void main(String[] args) throws Exception { - asyncLeaseTasks(); - } - - public static void asyncLeaseTasks() 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()) { - LeaseTasksRequest request = - LeaseTasksRequest.newBuilder() - .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setMaxTasks(-233969421) - .setLeaseDuration(Duration.newBuilder().build()) - .setFilter("filter-1274492040") - .build(); - ApiFuture future = - cloudTasksClient.leaseTasksCallable().futureCall(request); - // Do something. - LeaseTasksResponse response = future.get(); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_leasetasks_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasks.java deleted file mode 100644 index f080538a..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasks.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_leasetasks_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.LeaseTasksRequest; -import com.google.cloud.tasks.v2beta2.LeaseTasksResponse; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.protobuf.Duration; - -public class SyncLeaseTasks { - - public static void main(String[] args) throws Exception { - syncLeaseTasks(); - } - - public static void syncLeaseTasks() 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()) { - LeaseTasksRequest request = - LeaseTasksRequest.newBuilder() - .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setMaxTasks(-233969421) - .setLeaseDuration(Duration.newBuilder().build()) - .setFilter("filter-1274492040") - .build(); - LeaseTasksResponse response = cloudTasksClient.leaseTasks(request); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_leasetasks_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksQueuenameDuration.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksQueuenameDuration.java deleted file mode 100644 index e54769b0..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksQueuenameDuration.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_leasetasks_queuenameduration_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.LeaseTasksResponse; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.protobuf.Duration; - -public class SyncLeaseTasksQueuenameDuration { - - public static void main(String[] args) throws Exception { - syncLeaseTasksQueuenameDuration(); - } - - public static void syncLeaseTasksQueuenameDuration() 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()) { - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Duration leaseDuration = Duration.newBuilder().build(); - LeaseTasksResponse response = cloudTasksClient.leaseTasks(parent, leaseDuration); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_leasetasks_queuenameduration_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksStringDuration.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksStringDuration.java deleted file mode 100644 index 66b6bf63..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/leasetasks/SyncLeaseTasksStringDuration.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_leasetasks_stringduration_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.LeaseTasksResponse; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.protobuf.Duration; - -public class SyncLeaseTasksStringDuration { - - public static void main(String[] args) throws Exception { - syncLeaseTasksStringDuration(); - } - - public static void syncLeaseTasksStringDuration() 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()) { - String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Duration leaseDuration = Duration.newBuilder().build(); - LeaseTasksResponse response = cloudTasksClient.leaseTasks(parent, leaseDuration); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_leasetasks_stringduration_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueues.java deleted file mode 100644 index 0fceeb02..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueues.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_listqueues_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.ListQueuesRequest; -import com.google.cloud.tasks.v2beta2.LocationName; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.protobuf.FieldMask; - -public class AsyncListQueues { - - public static void main(String[] args) throws Exception { - asyncListQueues(); - } - - public static void asyncListQueues() 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()) { - ListQueuesRequest request = - ListQueuesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setReadMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.listQueuesPagedCallable().futureCall(request); - // Do something. - for (Queue element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_listqueues_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java deleted file mode 100644 index de86a5ed..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/AsyncListQueuesPaged.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_listqueues_paged_async] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.ListQueuesRequest; -import com.google.cloud.tasks.v2beta2.ListQueuesResponse; -import com.google.cloud.tasks.v2beta2.LocationName; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.common.base.Strings; -import com.google.protobuf.FieldMask; - -public class AsyncListQueuesPaged { - - public static void main(String[] args) throws Exception { - asyncListQueuesPaged(); - } - - public static void asyncListQueuesPaged() 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()) { - ListQueuesRequest request = - ListQueuesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setReadMask(FieldMask.newBuilder().build()) - .build(); - while (true) { - ListQueuesResponse response = cloudTasksClient.listQueuesCallable().call(request); - for (Queue element : response.getQueuesList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_listqueues_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueues.java deleted file mode 100644 index a4fa0906..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueues.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_listqueues_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.ListQueuesRequest; -import com.google.cloud.tasks.v2beta2.LocationName; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.protobuf.FieldMask; - -public class SyncListQueues { - - public static void main(String[] args) throws Exception { - syncListQueues(); - } - - public static void syncListQueues() 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()) { - ListQueuesRequest request = - ListQueuesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setReadMask(FieldMask.newBuilder().build()) - .build(); - for (Queue element : cloudTasksClient.listQueues(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_listqueues_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java deleted file mode 100644 index 7bf61591..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesLocationname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_listqueues_locationname_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.LocationName; -import com.google.cloud.tasks.v2beta2.Queue; - -public class SyncListQueuesLocationname { - - public static void main(String[] args) throws Exception { - syncListQueuesLocationname(); - } - - public static void syncListQueuesLocationname() 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()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_listqueues_locationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesString.java deleted file mode 100644 index bacae6ba..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listqueues/SyncListQueuesString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_listqueues_string_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.LocationName; -import com.google.cloud.tasks.v2beta2.Queue; - -public class SyncListQueuesString { - - public static void main(String[] args) throws Exception { - syncListQueuesString(); - } - - public static void syncListQueuesString() 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()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_listqueues_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasks.java deleted file mode 100644 index 79898982..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasks.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_listtasks_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.ListTasksRequest; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.cloud.tasks.v2beta2.Task; - -public class AsyncListTasks { - - public static void main(String[] args) throws Exception { - asyncListTasks(); - } - - public static void asyncListTasks() 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()) { - ListTasksRequest request = - ListTasksRequest.newBuilder() - .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - ApiFuture future = cloudTasksClient.listTasksPagedCallable().futureCall(request); - // Do something. - for (Task element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_listtasks_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasksPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasksPaged.java deleted file mode 100644 index 2cd906df..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/AsyncListTasksPaged.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_listtasks_paged_async] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.ListTasksRequest; -import com.google.cloud.tasks.v2beta2.ListTasksResponse; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.cloud.tasks.v2beta2.Task; -import com.google.common.base.Strings; - -public class AsyncListTasksPaged { - - public static void main(String[] args) throws Exception { - asyncListTasksPaged(); - } - - public static void asyncListTasksPaged() 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()) { - ListTasksRequest request = - ListTasksRequest.newBuilder() - .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - while (true) { - ListTasksResponse response = cloudTasksClient.listTasksCallable().call(request); - for (Task element : response.getTasksList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_listtasks_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasks.java deleted file mode 100644 index e41dcb39..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasks.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_listtasks_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.ListTasksRequest; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.cloud.tasks.v2beta2.Task; - -public class SyncListTasks { - - public static void main(String[] args) throws Exception { - syncListTasks(); - } - - public static void syncListTasks() 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()) { - ListTasksRequest request = - ListTasksRequest.newBuilder() - .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - for (Task element : cloudTasksClient.listTasks(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_listtasks_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksQueuename.java deleted file mode 100644 index befebcdc..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksQueuename.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_listtasks_queuename_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.cloud.tasks.v2beta2.Task; - -public class SyncListTasksQueuename { - - public static void main(String[] args) throws Exception { - syncListTasksQueuename(); - } - - public static void syncListTasksQueuename() 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()) { - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_listtasks_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksString.java deleted file mode 100644 index 299ff85a..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/listtasks/SyncListTasksString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_listtasks_string_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.cloud.tasks.v2beta2.Task; - -public class SyncListTasksString { - - public static void main(String[] args) throws Exception { - syncListTasksString(); - } - - public static void syncListTasksString() 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()) { - String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_listtasks_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/AsyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/AsyncPauseQueue.java deleted file mode 100644 index 047044b2..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/AsyncPauseQueue.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_pausequeue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.PauseQueueRequest; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.QueueName; - -public class AsyncPauseQueue { - - public static void main(String[] args) throws Exception { - asyncPauseQueue(); - } - - public static void asyncPauseQueue() 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()) { - PauseQueueRequest request = - PauseQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - ApiFuture future = cloudTasksClient.pauseQueueCallable().futureCall(request); - // Do something. - Queue response = future.get(); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_pausequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueue.java deleted file mode 100644 index 7615206a..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueue.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_pausequeue_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.PauseQueueRequest; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.QueueName; - -public class SyncPauseQueue { - - public static void main(String[] args) throws Exception { - syncPauseQueue(); - } - - public static void syncPauseQueue() 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()) { - PauseQueueRequest request = - PauseQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - Queue response = cloudTasksClient.pauseQueue(request); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_pausequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java deleted file mode 100644 index b8887ed3..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_pausequeue_queuename_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.QueueName; - -public class SyncPauseQueueQueuename { - - public static void main(String[] args) throws Exception { - syncPauseQueueQueuename(); - } - - public static void syncPauseQueueQueuename() 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()) { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Queue response = cloudTasksClient.pauseQueue(name); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_pausequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueString.java deleted file mode 100644 index 687bbde3..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/pausequeue/SyncPauseQueueString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_pausequeue_string_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.QueueName; - -public class SyncPauseQueueString { - - public static void main(String[] args) throws Exception { - syncPauseQueueString(); - } - - public static void syncPauseQueueString() 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()) { - String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Queue response = cloudTasksClient.pauseQueue(name); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_pausequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java deleted file mode 100644 index 1f2a71bb..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/AsyncPurgeQueue.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_purgequeue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.PurgeQueueRequest; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.QueueName; - -public class AsyncPurgeQueue { - - public static void main(String[] args) throws Exception { - asyncPurgeQueue(); - } - - public static void asyncPurgeQueue() 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()) { - PurgeQueueRequest request = - PurgeQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - ApiFuture future = cloudTasksClient.purgeQueueCallable().futureCall(request); - // Do something. - Queue response = future.get(); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_purgequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueue.java deleted file mode 100644 index 504ea5b1..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueue.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_purgequeue_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.PurgeQueueRequest; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.QueueName; - -public class SyncPurgeQueue { - - public static void main(String[] args) throws Exception { - syncPurgeQueue(); - } - - public static void syncPurgeQueue() 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()) { - PurgeQueueRequest request = - PurgeQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - Queue response = cloudTasksClient.purgeQueue(request); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_purgequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java deleted file mode 100644 index 7bc29f3e..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_purgequeue_queuename_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.QueueName; - -public class SyncPurgeQueueQueuename { - - public static void main(String[] args) throws Exception { - syncPurgeQueueQueuename(); - } - - public static void syncPurgeQueueQueuename() 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()) { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Queue response = cloudTasksClient.purgeQueue(name); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_purgequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java deleted file mode 100644 index 53c1b0ca..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/purgequeue/SyncPurgeQueueString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_purgequeue_string_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.QueueName; - -public class SyncPurgeQueueString { - - public static void main(String[] args) throws Exception { - syncPurgeQueueString(); - } - - public static void syncPurgeQueueString() 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()) { - String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Queue response = cloudTasksClient.purgeQueue(name); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_purgequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/AsyncRenewLease.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/AsyncRenewLease.java deleted file mode 100644 index 7b93b15d..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/AsyncRenewLease.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_renewlease_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.RenewLeaseRequest; -import com.google.cloud.tasks.v2beta2.Task; -import com.google.cloud.tasks.v2beta2.TaskName; -import com.google.protobuf.Duration; -import com.google.protobuf.Timestamp; - -public class AsyncRenewLease { - - public static void main(String[] args) throws Exception { - asyncRenewLease(); - } - - public static void asyncRenewLease() 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()) { - RenewLeaseRequest request = - RenewLeaseRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setLeaseDuration(Duration.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.renewLeaseCallable().futureCall(request); - // Do something. - Task response = future.get(); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_renewlease_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLease.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLease.java deleted file mode 100644 index 3493cea1..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLease.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_renewlease_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.RenewLeaseRequest; -import com.google.cloud.tasks.v2beta2.Task; -import com.google.cloud.tasks.v2beta2.TaskName; -import com.google.protobuf.Duration; -import com.google.protobuf.Timestamp; - -public class SyncRenewLease { - - public static void main(String[] args) throws Exception { - syncRenewLease(); - } - - public static void syncRenewLease() 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()) { - RenewLeaseRequest request = - RenewLeaseRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .setScheduleTime(Timestamp.newBuilder().build()) - .setLeaseDuration(Duration.newBuilder().build()) - .build(); - Task response = cloudTasksClient.renewLease(request); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_renewlease_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseStringTimestampDuration.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseStringTimestampDuration.java deleted file mode 100644 index d52eeb68..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseStringTimestampDuration.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_renewlease_stringtimestampduration_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Task; -import com.google.cloud.tasks.v2beta2.TaskName; -import com.google.protobuf.Duration; -import com.google.protobuf.Timestamp; - -public class SyncRenewLeaseStringTimestampDuration { - - public static void main(String[] args) throws Exception { - syncRenewLeaseStringTimestampDuration(); - } - - public static void syncRenewLeaseStringTimestampDuration() 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()) { - String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - Duration leaseDuration = Duration.newBuilder().build(); - Task response = cloudTasksClient.renewLease(name, scheduleTime, leaseDuration); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_renewlease_stringtimestampduration_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseTasknameTimestampDuration.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseTasknameTimestampDuration.java deleted file mode 100644 index 9e553755..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/renewlease/SyncRenewLeaseTasknameTimestampDuration.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_renewlease_tasknametimestampduration_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Task; -import com.google.cloud.tasks.v2beta2.TaskName; -import com.google.protobuf.Duration; -import com.google.protobuf.Timestamp; - -public class SyncRenewLeaseTasknameTimestampDuration { - - public static void main(String[] args) throws Exception { - syncRenewLeaseTasknameTimestampDuration(); - } - - public static void syncRenewLeaseTasknameTimestampDuration() 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()) { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - Timestamp scheduleTime = Timestamp.newBuilder().build(); - Duration leaseDuration = Duration.newBuilder().build(); - Task response = cloudTasksClient.renewLease(name, scheduleTime, leaseDuration); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_renewlease_tasknametimestampduration_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/AsyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/AsyncResumeQueue.java deleted file mode 100644 index a929b67e..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/AsyncResumeQueue.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_resumequeue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.cloud.tasks.v2beta2.ResumeQueueRequest; - -public class AsyncResumeQueue { - - public static void main(String[] args) throws Exception { - asyncResumeQueue(); - } - - public static void asyncResumeQueue() 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()) { - ResumeQueueRequest request = - ResumeQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - ApiFuture future = cloudTasksClient.resumeQueueCallable().futureCall(request); - // Do something. - Queue response = future.get(); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_resumequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueue.java deleted file mode 100644 index 44b55199..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueue.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_resumequeue_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.cloud.tasks.v2beta2.ResumeQueueRequest; - -public class SyncResumeQueue { - - public static void main(String[] args) throws Exception { - syncResumeQueue(); - } - - public static void syncResumeQueue() 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()) { - ResumeQueueRequest request = - ResumeQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - Queue response = cloudTasksClient.resumeQueue(request); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_resumequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java deleted file mode 100644 index c868c197..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_resumequeue_queuename_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.QueueName; - -public class SyncResumeQueueQueuename { - - public static void main(String[] args) throws Exception { - syncResumeQueueQueuename(); - } - - public static void syncResumeQueueQueuename() 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()) { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Queue response = cloudTasksClient.resumeQueue(name); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_resumequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueString.java deleted file mode 100644 index c77f3a9d..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/resumequeue/SyncResumeQueueString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_resumequeue_string_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.QueueName; - -public class SyncResumeQueueString { - - public static void main(String[] args) throws Exception { - syncResumeQueueString(); - } - - public static void syncResumeQueueString() 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()) { - String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Queue response = cloudTasksClient.resumeQueue(name); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_resumequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/AsyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/AsyncRunTask.java deleted file mode 100644 index 927e71ab..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/AsyncRunTask.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_runtask_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.RunTaskRequest; -import com.google.cloud.tasks.v2beta2.Task; -import com.google.cloud.tasks.v2beta2.TaskName; - -public class AsyncRunTask { - - public static void main(String[] args) throws Exception { - asyncRunTask(); - } - - public static void asyncRunTask() 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()) { - RunTaskRequest request = - RunTaskRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .build(); - ApiFuture future = cloudTasksClient.runTaskCallable().futureCall(request); - // Do something. - Task response = future.get(); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_runtask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTask.java deleted file mode 100644 index 83dfefb5..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTask.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_runtask_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.RunTaskRequest; -import com.google.cloud.tasks.v2beta2.Task; -import com.google.cloud.tasks.v2beta2.TaskName; - -public class SyncRunTask { - - public static void main(String[] args) throws Exception { - syncRunTask(); - } - - public static void syncRunTask() 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()) { - RunTaskRequest request = - RunTaskRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .build(); - Task response = cloudTasksClient.runTask(request); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_runtask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskString.java deleted file mode 100644 index fb583c72..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_runtask_string_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Task; -import com.google.cloud.tasks.v2beta2.TaskName; - -public class SyncRunTaskString { - - public static void main(String[] args) throws Exception { - syncRunTaskString(); - } - - public static void syncRunTaskString() 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()) { - String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); - Task response = cloudTasksClient.runTask(name); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_runtask_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskTaskname.java deleted file mode 100644 index 54af3af7..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/runtask/SyncRunTaskTaskname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_runtask_taskname_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Task; -import com.google.cloud.tasks.v2beta2.TaskName; - -public class SyncRunTaskTaskname { - - public static void main(String[] args) throws Exception { - syncRunTaskTaskname(); - } - - public static void syncRunTaskTaskname() 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()) { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - Task response = cloudTasksClient.runTask(name); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_runtask_taskname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java deleted file mode 100644 index 7564530c..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_setiampolicy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.protobuf.FieldMask; - -public class AsyncSetIamPolicy { - - public static void main(String[] args) throws Exception { - asyncSetIamPolicy(); - } - - public static void asyncSetIamPolicy() 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()) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.setIamPolicyCallable().futureCall(request); - // Do something. - Policy response = future.get(); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_setiampolicy_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java deleted file mode 100644 index 390e72fa..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_setiampolicy_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.protobuf.FieldMask; - -public class SyncSetIamPolicy { - - public static void main(String[] args) throws Exception { - syncSetIamPolicy(); - } - - public static void syncSetIamPolicy() 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()) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Policy response = cloudTasksClient.setIamPolicy(request); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_setiampolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java deleted file mode 100644 index c6cb131d..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_setiampolicy_resourcenamepolicy_sync] -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.iam.v1.Policy; - -public class SyncSetIamPolicyResourcenamePolicy { - - public static void main(String[] args) throws Exception { - syncSetIamPolicyResourcenamePolicy(); - } - - public static void syncSetIamPolicyResourcenamePolicy() 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()) { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Policy policy = Policy.newBuilder().build(); - Policy response = cloudTasksClient.setIamPolicy(resource, policy); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_setiampolicy_resourcenamepolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java deleted file mode 100644 index c68a4241..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_setiampolicy_stringpolicy_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.iam.v1.Policy; - -public class SyncSetIamPolicyStringPolicy { - - public static void main(String[] args) throws Exception { - syncSetIamPolicyStringPolicy(); - } - - public static void syncSetIamPolicyStringPolicy() 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()) { - String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Policy policy = Policy.newBuilder().build(); - Policy response = cloudTasksClient.setIamPolicy(resource, policy); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_setiampolicy_stringpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java deleted file mode 100644 index 9a608bf9..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_testiampermissions_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import java.util.ArrayList; - -public class AsyncTestIamPermissions { - - public static void main(String[] args) throws Exception { - asyncTestIamPermissions(); - } - - public static void asyncTestIamPermissions() 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()) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .addAllPermissions(new ArrayList()) - .build(); - ApiFuture future = - cloudTasksClient.testIamPermissionsCallable().futureCall(request); - // Do something. - TestIamPermissionsResponse response = future.get(); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_testiampermissions_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java deleted file mode 100644 index 6e0f87a3..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_testiampermissions_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import java.util.ArrayList; - -public class SyncTestIamPermissions { - - public static void main(String[] args) throws Exception { - syncTestIamPermissions(); - } - - public static void syncTestIamPermissions() 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()) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .addAllPermissions(new ArrayList()) - .build(); - TestIamPermissionsResponse response = cloudTasksClient.testIamPermissions(request); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_testiampermissions_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java deleted file mode 100644 index 4b471894..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_testiampermissions_resourcenameliststring_sync] -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.iam.v1.TestIamPermissionsResponse; -import java.util.ArrayList; -import java.util.List; - -public class SyncTestIamPermissionsResourcenameListstring { - - public static void main(String[] args) throws Exception { - syncTestIamPermissionsResourcenameListstring(); - } - - public static void syncTestIamPermissionsResourcenameListstring() 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()) { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - List permissions = new ArrayList<>(); - TestIamPermissionsResponse response = - cloudTasksClient.testIamPermissions(resource, permissions); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_testiampermissions_resourcenameliststring_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java deleted file mode 100644 index 7329dca4..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_testiampermissions_stringliststring_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.QueueName; -import com.google.iam.v1.TestIamPermissionsResponse; -import java.util.ArrayList; -import java.util.List; - -public class SyncTestIamPermissionsStringListstring { - - public static void main(String[] args) throws Exception { - syncTestIamPermissionsStringListstring(); - } - - public static void syncTestIamPermissionsStringListstring() 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()) { - String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - List permissions = new ArrayList<>(); - TestIamPermissionsResponse response = - cloudTasksClient.testIamPermissions(resource, permissions); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_testiampermissions_stringliststring_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java deleted file mode 100644 index 52ecbe9a..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/AsyncUpdateQueue.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_updatequeue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.UpdateQueueRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateQueue { - - public static void main(String[] args) throws Exception { - asyncUpdateQueue(); - } - - public static void asyncUpdateQueue() 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()) { - UpdateQueueRequest request = - UpdateQueueRequest.newBuilder() - .setQueue(Queue.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.updateQueueCallable().futureCall(request); - // Do something. - Queue response = future.get(); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_updatequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueue.java deleted file mode 100644 index a44f3ef3..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueue.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_updatequeue_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.cloud.tasks.v2beta2.UpdateQueueRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateQueue { - - public static void main(String[] args) throws Exception { - syncUpdateQueue(); - } - - public static void syncUpdateQueue() 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()) { - UpdateQueueRequest request = - UpdateQueueRequest.newBuilder() - .setQueue(Queue.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Queue response = cloudTasksClient.updateQueue(request); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_updatequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java deleted file mode 100644 index 935decf7..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtasksclient_updatequeue_queuefieldmask_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksClient; -import com.google.cloud.tasks.v2beta2.Queue; -import com.google.protobuf.FieldMask; - -public class SyncUpdateQueueQueueFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateQueueQueueFieldmask(); - } - - public static void syncUpdateQueueQueueFieldmask() 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()) { - Queue queue = Queue.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Queue response = cloudTasksClient.updateQueue(queue, updateMask); - } - } -} -// [END tasks_v2beta2_generated_cloudtasksclient_updatequeue_queuefieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtaskssettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtaskssettings/getqueue/SyncGetQueue.java deleted file mode 100644 index dc1c35da..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/cloudtaskssettings/getqueue/SyncGetQueue.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 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 tasks_v2beta2_generated_cloudtaskssettings_getqueue_sync] -import com.google.cloud.tasks.v2beta2.CloudTasksSettings; -import java.time.Duration; - -public class SyncGetQueue { - - public static void main(String[] args) throws Exception { - syncGetQueue(); - } - - public static void syncGetQueue() 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 - CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder(); - cloudTasksSettingsBuilder - .getQueueSettings() - .setRetrySettings( - cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build(); - } -} -// [END tasks_v2beta2_generated_cloudtaskssettings_getqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java deleted file mode 100644 index b652c10f..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta2/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 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.stub.samples; - -// [START tasks_v2beta2_generated_cloudtasksstubsettings_getqueue_sync] -import com.google.cloud.tasks.v2beta2.stub.CloudTasksStubSettings; -import java.time.Duration; - -public class SyncGetQueue { - - public static void main(String[] args) throws Exception { - syncGetQueue(); - } - - public static void syncGetQueue() 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 - CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder(); - cloudTasksSettingsBuilder - .getQueueSettings() - .setRetrySettings( - cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build(); - } -} -// [END tasks_v2beta2_generated_cloudtasksstubsettings_getqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java deleted file mode 100644 index 1d909e16..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_create_setcredentialsprovider_sync] -import com.google.api.gax.core.FixedCredentialsProvider; -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.CloudTasksSettings; -import com.google.cloud.tasks.v2beta3.myCredentials; - -public class SyncCreateSetCredentialsProvider { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider(); - } - - public static void syncCreateSetCredentialsProvider() 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 - CloudTasksSettings cloudTasksSettings = - CloudTasksSettings.newBuilder() - .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) - .build(); - CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_create_setcredentialsprovider_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index e62a6f6c..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_create_setcredentialsprovider1_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.CloudTasksSettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() 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 - CloudTasksSettings cloudTasksSettings = - CloudTasksSettings.newBuilder() - .setTransportChannelProvider( - CloudTasksSettings.defaultHttpJsonTransportProviderBuilder().build()) - .build(); - CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_create_setcredentialsprovider1_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetEndpoint.java deleted file mode 100644 index 0e9f6c71..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/create/SyncCreateSetEndpoint.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_create_setendpoint_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.CloudTasksSettings; -import com.google.cloud.tasks.v2beta3.myEndpoint; - -public class SyncCreateSetEndpoint { - - public static void main(String[] args) throws Exception { - syncCreateSetEndpoint(); - } - - public static void syncCreateSetEndpoint() 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 - CloudTasksSettings cloudTasksSettings = - CloudTasksSettings.newBuilder().setEndpoint(myEndpoint).build(); - CloudTasksClient cloudTasksClient = CloudTasksClient.create(cloudTasksSettings); - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_create_setendpoint_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/AsyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/AsyncCreateQueue.java deleted file mode 100644 index 50a1886e..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/AsyncCreateQueue.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_createqueue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.CreateQueueRequest; -import com.google.cloud.tasks.v2beta3.LocationName; -import com.google.cloud.tasks.v2beta3.Queue; - -public class AsyncCreateQueue { - - public static void main(String[] args) throws Exception { - asyncCreateQueue(); - } - - public static void asyncCreateQueue() 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()) { - CreateQueueRequest request = - CreateQueueRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setQueue(Queue.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.createQueueCallable().futureCall(request); - // Do something. - Queue response = future.get(); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_createqueue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueue.java deleted file mode 100644 index 33dd1518..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueue.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_createqueue_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.CreateQueueRequest; -import com.google.cloud.tasks.v2beta3.LocationName; -import com.google.cloud.tasks.v2beta3.Queue; - -public class SyncCreateQueue { - - public static void main(String[] args) throws Exception { - syncCreateQueue(); - } - - public static void syncCreateQueue() 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()) { - CreateQueueRequest request = - CreateQueueRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setQueue(Queue.newBuilder().build()) - .build(); - Queue response = cloudTasksClient.createQueue(request); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_createqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java deleted file mode 100644 index 6a2a56b1..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueLocationnameQueue.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_createqueue_locationnamequeue_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.LocationName; -import com.google.cloud.tasks.v2beta3.Queue; - -public class SyncCreateQueueLocationnameQueue { - - public static void main(String[] args) throws Exception { - syncCreateQueueLocationnameQueue(); - } - - public static void syncCreateQueueLocationnameQueue() 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()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Queue queue = Queue.newBuilder().build(); - Queue response = cloudTasksClient.createQueue(parent, queue); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_createqueue_locationnamequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java deleted file mode 100644 index 6fe3b0b0..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createqueue/SyncCreateQueueStringQueue.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_createqueue_stringqueue_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.LocationName; -import com.google.cloud.tasks.v2beta3.Queue; - -public class SyncCreateQueueStringQueue { - - public static void main(String[] args) throws Exception { - syncCreateQueueStringQueue(); - } - - public static void syncCreateQueueStringQueue() 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()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - Queue queue = Queue.newBuilder().build(); - Queue response = cloudTasksClient.createQueue(parent, queue); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_createqueue_stringqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/AsyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/AsyncCreateTask.java deleted file mode 100644 index 5958a903..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/AsyncCreateTask.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_createtask_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.CreateTaskRequest; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.cloud.tasks.v2beta3.Task; - -public class AsyncCreateTask { - - public static void main(String[] args) throws Exception { - asyncCreateTask(); - } - - public static void asyncCreateTask() 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()) { - CreateTaskRequest request = - CreateTaskRequest.newBuilder() - .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setTask(Task.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.createTaskCallable().futureCall(request); - // Do something. - Task response = future.get(); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_createtask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTask.java deleted file mode 100644 index 872a00f3..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTask.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_createtask_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.CreateTaskRequest; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.cloud.tasks.v2beta3.Task; - -public class SyncCreateTask { - - public static void main(String[] args) throws Exception { - syncCreateTask(); - } - - public static void syncCreateTask() 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()) { - CreateTaskRequest request = - CreateTaskRequest.newBuilder() - .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setTask(Task.newBuilder().build()) - .build(); - Task response = cloudTasksClient.createTask(request); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_createtask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java deleted file mode 100644 index a1ff8829..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskQueuenameTask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_createtask_queuenametask_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.cloud.tasks.v2beta3.Task; - -public class SyncCreateTaskQueuenameTask { - - public static void main(String[] args) throws Exception { - syncCreateTaskQueuenameTask(); - } - - public static void syncCreateTaskQueuenameTask() 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()) { - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Task task = Task.newBuilder().build(); - Task response = cloudTasksClient.createTask(parent, task); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_createtask_queuenametask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskStringTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskStringTask.java deleted file mode 100644 index 9185d530..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/createtask/SyncCreateTaskStringTask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_createtask_stringtask_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.cloud.tasks.v2beta3.Task; - -public class SyncCreateTaskStringTask { - - public static void main(String[] args) throws Exception { - syncCreateTaskStringTask(); - } - - public static void syncCreateTaskStringTask() 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()) { - String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Task task = Task.newBuilder().build(); - Task response = cloudTasksClient.createTask(parent, task); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_createtask_stringtask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/AsyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/AsyncDeleteQueue.java deleted file mode 100644 index 709a14ba..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/AsyncDeleteQueue.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_deletequeue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.DeleteQueueRequest; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.protobuf.Empty; - -public class AsyncDeleteQueue { - - public static void main(String[] args) throws Exception { - asyncDeleteQueue(); - } - - public static void asyncDeleteQueue() 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()) { - DeleteQueueRequest request = - DeleteQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - ApiFuture future = cloudTasksClient.deleteQueueCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_deletequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueue.java deleted file mode 100644 index cf2e3094..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueue.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_deletequeue_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.DeleteQueueRequest; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.protobuf.Empty; - -public class SyncDeleteQueue { - - public static void main(String[] args) throws Exception { - syncDeleteQueue(); - } - - public static void syncDeleteQueue() 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()) { - DeleteQueueRequest request = - DeleteQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - cloudTasksClient.deleteQueue(request); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_deletequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java deleted file mode 100644 index 2bbd1614..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueQueuename.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_deletequeue_queuename_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.protobuf.Empty; - -public class SyncDeleteQueueQueuename { - - public static void main(String[] args) throws Exception { - syncDeleteQueueQueuename(); - } - - public static void syncDeleteQueueQueuename() 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()) { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - cloudTasksClient.deleteQueue(name); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_deletequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueString.java deleted file mode 100644 index 00515075..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletequeue/SyncDeleteQueueString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_deletequeue_string_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.protobuf.Empty; - -public class SyncDeleteQueueString { - - public static void main(String[] args) throws Exception { - syncDeleteQueueString(); - } - - public static void syncDeleteQueueString() 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()) { - String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - cloudTasksClient.deleteQueue(name); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_deletequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/AsyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/AsyncDeleteTask.java deleted file mode 100644 index bfb260f3..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/AsyncDeleteTask.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_deletetask_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.DeleteTaskRequest; -import com.google.cloud.tasks.v2beta3.TaskName; -import com.google.protobuf.Empty; - -public class AsyncDeleteTask { - - public static void main(String[] args) throws Exception { - asyncDeleteTask(); - } - - public static void asyncDeleteTask() 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()) { - DeleteTaskRequest request = - DeleteTaskRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .build(); - ApiFuture future = cloudTasksClient.deleteTaskCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_deletetask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTask.java deleted file mode 100644 index 75695d39..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTask.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_deletetask_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.DeleteTaskRequest; -import com.google.cloud.tasks.v2beta3.TaskName; -import com.google.protobuf.Empty; - -public class SyncDeleteTask { - - public static void main(String[] args) throws Exception { - syncDeleteTask(); - } - - public static void syncDeleteTask() 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()) { - DeleteTaskRequest request = - DeleteTaskRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .build(); - cloudTasksClient.deleteTask(request); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_deletetask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskString.java deleted file mode 100644 index 5c5189a5..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_deletetask_string_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.TaskName; -import com.google.protobuf.Empty; - -public class SyncDeleteTaskString { - - public static void main(String[] args) throws Exception { - syncDeleteTaskString(); - } - - public static void syncDeleteTaskString() 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()) { - String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); - cloudTasksClient.deleteTask(name); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_deletetask_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java deleted file mode 100644 index be33b8c5..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/deletetask/SyncDeleteTaskTaskname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_deletetask_taskname_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.TaskName; -import com.google.protobuf.Empty; - -public class SyncDeleteTaskTaskname { - - public static void main(String[] args) throws Exception { - syncDeleteTaskTaskname(); - } - - public static void syncDeleteTaskTaskname() 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()) { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - cloudTasksClient.deleteTask(name); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_deletetask_taskname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java deleted file mode 100644 index 08e2d88e..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/AsyncGetIamPolicy.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_getiampolicy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.GetPolicyOptions; -import com.google.iam.v1.Policy; - -public class AsyncGetIamPolicy { - - public static void main(String[] args) throws Exception { - asyncGetIamPolicy(); - } - - public static void asyncGetIamPolicy() 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()) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.getIamPolicyCallable().futureCall(request); - // Do something. - Policy response = future.get(); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_getiampolicy_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java deleted file mode 100644 index cf2bb0c0..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicy.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_getiampolicy_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.GetPolicyOptions; -import com.google.iam.v1.Policy; - -public class SyncGetIamPolicy { - - public static void main(String[] args) throws Exception { - syncGetIamPolicy(); - } - - public static void syncGetIamPolicy() 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()) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - Policy response = cloudTasksClient.getIamPolicy(request); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_getiampolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java deleted file mode 100644 index 5c68d929..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyResourcename.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_getiampolicy_resourcename_sync] -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.iam.v1.Policy; - -public class SyncGetIamPolicyResourcename { - - public static void main(String[] args) throws Exception { - syncGetIamPolicyResourcename(); - } - - public static void syncGetIamPolicyResourcename() 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()) { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Policy response = cloudTasksClient.getIamPolicy(resource); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_getiampolicy_resourcename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java deleted file mode 100644 index 3556a288..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getiampolicy/SyncGetIamPolicyString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_getiampolicy_string_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.iam.v1.Policy; - -public class SyncGetIamPolicyString { - - public static void main(String[] args) throws Exception { - syncGetIamPolicyString(); - } - - public static void syncGetIamPolicyString() 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()) { - String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Policy response = cloudTasksClient.getIamPolicy(resource); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_getiampolicy_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/AsyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/AsyncGetQueue.java deleted file mode 100644 index 8db66b4a..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/AsyncGetQueue.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_getqueue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.GetQueueRequest; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.protobuf.FieldMask; - -public class AsyncGetQueue { - - public static void main(String[] args) throws Exception { - asyncGetQueue(); - } - - public static void asyncGetQueue() 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()) { - GetQueueRequest request = - GetQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setReadMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.getQueueCallable().futureCall(request); - // Do something. - Queue response = future.get(); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_getqueue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueue.java deleted file mode 100644 index da4fb946..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueue.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_getqueue_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.GetQueueRequest; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.protobuf.FieldMask; - -public class SyncGetQueue { - - public static void main(String[] args) throws Exception { - syncGetQueue(); - } - - public static void syncGetQueue() 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()) { - GetQueueRequest request = - GetQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setReadMask(FieldMask.newBuilder().build()) - .build(); - Queue response = cloudTasksClient.getQueue(request); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_getqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueQueuename.java deleted file mode 100644 index 37596206..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueQueuename.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_getqueue_queuename_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.QueueName; - -public class SyncGetQueueQueuename { - - public static void main(String[] args) throws Exception { - syncGetQueueQueuename(); - } - - public static void syncGetQueueQueuename() 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()) { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Queue response = cloudTasksClient.getQueue(name); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_getqueue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueString.java deleted file mode 100644 index 7b1903f5..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/getqueue/SyncGetQueueString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_getqueue_string_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.QueueName; - -public class SyncGetQueueString { - - public static void main(String[] args) throws Exception { - syncGetQueueString(); - } - - public static void syncGetQueueString() 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()) { - String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Queue response = cloudTasksClient.getQueue(name); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_getqueue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/AsyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/AsyncGetTask.java deleted file mode 100644 index 11afd445..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/AsyncGetTask.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_gettask_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.GetTaskRequest; -import com.google.cloud.tasks.v2beta3.Task; -import com.google.cloud.tasks.v2beta3.TaskName; - -public class AsyncGetTask { - - public static void main(String[] args) throws Exception { - asyncGetTask(); - } - - public static void asyncGetTask() 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()) { - GetTaskRequest request = - GetTaskRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .build(); - ApiFuture future = cloudTasksClient.getTaskCallable().futureCall(request); - // Do something. - Task response = future.get(); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_gettask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTask.java deleted file mode 100644 index dc289704..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTask.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_gettask_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.GetTaskRequest; -import com.google.cloud.tasks.v2beta3.Task; -import com.google.cloud.tasks.v2beta3.TaskName; - -public class SyncGetTask { - - public static void main(String[] args) throws Exception { - syncGetTask(); - } - - public static void syncGetTask() 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()) { - GetTaskRequest request = - GetTaskRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .build(); - Task response = cloudTasksClient.getTask(request); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_gettask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskString.java deleted file mode 100644 index 07dba2e6..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_gettask_string_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.Task; -import com.google.cloud.tasks.v2beta3.TaskName; - -public class SyncGetTaskString { - - public static void main(String[] args) throws Exception { - syncGetTaskString(); - } - - public static void syncGetTaskString() 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()) { - String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); - Task response = cloudTasksClient.getTask(name); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_gettask_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskTaskname.java deleted file mode 100644 index 1b067cf4..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/gettask/SyncGetTaskTaskname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_gettask_taskname_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.Task; -import com.google.cloud.tasks.v2beta3.TaskName; - -public class SyncGetTaskTaskname { - - public static void main(String[] args) throws Exception { - syncGetTaskTaskname(); - } - - public static void syncGetTaskTaskname() 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()) { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - Task response = cloudTasksClient.getTask(name); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_gettask_taskname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueues.java deleted file mode 100644 index 2bf90e0b..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueues.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_listqueues_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.ListQueuesRequest; -import com.google.cloud.tasks.v2beta3.LocationName; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.protobuf.FieldMask; - -public class AsyncListQueues { - - public static void main(String[] args) throws Exception { - asyncListQueues(); - } - - public static void asyncListQueues() 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()) { - ListQueuesRequest request = - ListQueuesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setReadMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.listQueuesPagedCallable().futureCall(request); - // Do something. - for (Queue element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_listqueues_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueuesPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueuesPaged.java deleted file mode 100644 index 743ddbb6..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/AsyncListQueuesPaged.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_listqueues_paged_async] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.ListQueuesRequest; -import com.google.cloud.tasks.v2beta3.ListQueuesResponse; -import com.google.cloud.tasks.v2beta3.LocationName; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.common.base.Strings; -import com.google.protobuf.FieldMask; - -public class AsyncListQueuesPaged { - - public static void main(String[] args) throws Exception { - asyncListQueuesPaged(); - } - - public static void asyncListQueuesPaged() 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()) { - ListQueuesRequest request = - ListQueuesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setReadMask(FieldMask.newBuilder().build()) - .build(); - while (true) { - ListQueuesResponse response = cloudTasksClient.listQueuesCallable().call(request); - for (Queue element : response.getQueuesList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_listqueues_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueues.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueues.java deleted file mode 100644 index 1c5049ac..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueues.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_listqueues_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.ListQueuesRequest; -import com.google.cloud.tasks.v2beta3.LocationName; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.protobuf.FieldMask; - -public class SyncListQueues { - - public static void main(String[] args) throws Exception { - syncListQueues(); - } - - public static void syncListQueues() 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()) { - ListQueuesRequest request = - ListQueuesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setReadMask(FieldMask.newBuilder().build()) - .build(); - for (Queue element : cloudTasksClient.listQueues(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_listqueues_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesLocationname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesLocationname.java deleted file mode 100644 index 383333be..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesLocationname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_listqueues_locationname_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.LocationName; -import com.google.cloud.tasks.v2beta3.Queue; - -public class SyncListQueuesLocationname { - - public static void main(String[] args) throws Exception { - syncListQueuesLocationname(); - } - - public static void syncListQueuesLocationname() 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()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_listqueues_locationname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesString.java deleted file mode 100644 index 7fcf90f5..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listqueues/SyncListQueuesString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_listqueues_string_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.LocationName; -import com.google.cloud.tasks.v2beta3.Queue; - -public class SyncListQueuesString { - - public static void main(String[] args) throws Exception { - syncListQueuesString(); - } - - public static void syncListQueuesString() 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()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_listqueues_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasks.java deleted file mode 100644 index ceadcaaa..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasks.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_listtasks_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.ListTasksRequest; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.cloud.tasks.v2beta3.Task; - -public class AsyncListTasks { - - public static void main(String[] args) throws Exception { - asyncListTasks(); - } - - public static void asyncListTasks() 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()) { - ListTasksRequest request = - ListTasksRequest.newBuilder() - .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - ApiFuture future = cloudTasksClient.listTasksPagedCallable().futureCall(request); - // Do something. - for (Task element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_listtasks_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasksPaged.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasksPaged.java deleted file mode 100644 index a789178e..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/AsyncListTasksPaged.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_listtasks_paged_async] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.ListTasksRequest; -import com.google.cloud.tasks.v2beta3.ListTasksResponse; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.cloud.tasks.v2beta3.Task; -import com.google.common.base.Strings; - -public class AsyncListTasksPaged { - - public static void main(String[] args) throws Exception { - asyncListTasksPaged(); - } - - public static void asyncListTasksPaged() 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()) { - ListTasksRequest request = - ListTasksRequest.newBuilder() - .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - while (true) { - ListTasksResponse response = cloudTasksClient.listTasksCallable().call(request); - for (Task element : response.getTasksList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_listtasks_paged_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasks.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasks.java deleted file mode 100644 index fa50cc55..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasks.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_listtasks_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.ListTasksRequest; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.cloud.tasks.v2beta3.Task; - -public class SyncListTasks { - - public static void main(String[] args) throws Exception { - syncListTasks(); - } - - public static void syncListTasks() 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()) { - ListTasksRequest request = - ListTasksRequest.newBuilder() - .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - for (Task element : cloudTasksClient.listTasks(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_listtasks_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksQueuename.java deleted file mode 100644 index 9ac21fab..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksQueuename.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_listtasks_queuename_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.cloud.tasks.v2beta3.Task; - -public class SyncListTasksQueuename { - - public static void main(String[] args) throws Exception { - syncListTasksQueuename(); - } - - public static void syncListTasksQueuename() 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()) { - QueueName parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_listtasks_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksString.java deleted file mode 100644 index 5b41d5ad..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/listtasks/SyncListTasksString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_listtasks_string_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.cloud.tasks.v2beta3.Task; - -public class SyncListTasksString { - - public static void main(String[] args) throws Exception { - syncListTasksString(); - } - - public static void syncListTasksString() 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()) { - String parent = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - for (Task element : cloudTasksClient.listTasks(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_listtasks_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/AsyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/AsyncPauseQueue.java deleted file mode 100644 index 1851741d..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/AsyncPauseQueue.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_pausequeue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.PauseQueueRequest; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.QueueName; - -public class AsyncPauseQueue { - - public static void main(String[] args) throws Exception { - asyncPauseQueue(); - } - - public static void asyncPauseQueue() 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()) { - PauseQueueRequest request = - PauseQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - ApiFuture future = cloudTasksClient.pauseQueueCallable().futureCall(request); - // Do something. - Queue response = future.get(); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_pausequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueue.java deleted file mode 100644 index faac88d5..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueue.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_pausequeue_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.PauseQueueRequest; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.QueueName; - -public class SyncPauseQueue { - - public static void main(String[] args) throws Exception { - syncPauseQueue(); - } - - public static void syncPauseQueue() 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()) { - PauseQueueRequest request = - PauseQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - Queue response = cloudTasksClient.pauseQueue(request); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_pausequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java deleted file mode 100644 index 9c8ea5df..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueQueuename.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_pausequeue_queuename_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.QueueName; - -public class SyncPauseQueueQueuename { - - public static void main(String[] args) throws Exception { - syncPauseQueueQueuename(); - } - - public static void syncPauseQueueQueuename() 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()) { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Queue response = cloudTasksClient.pauseQueue(name); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_pausequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueString.java deleted file mode 100644 index c430267d..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/pausequeue/SyncPauseQueueString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_pausequeue_string_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.QueueName; - -public class SyncPauseQueueString { - - public static void main(String[] args) throws Exception { - syncPauseQueueString(); - } - - public static void syncPauseQueueString() 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()) { - String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Queue response = cloudTasksClient.pauseQueue(name); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_pausequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/AsyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/AsyncPurgeQueue.java deleted file mode 100644 index 55d7ceed..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/AsyncPurgeQueue.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_purgequeue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.PurgeQueueRequest; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.QueueName; - -public class AsyncPurgeQueue { - - public static void main(String[] args) throws Exception { - asyncPurgeQueue(); - } - - public static void asyncPurgeQueue() 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()) { - PurgeQueueRequest request = - PurgeQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - ApiFuture future = cloudTasksClient.purgeQueueCallable().futureCall(request); - // Do something. - Queue response = future.get(); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_purgequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueue.java deleted file mode 100644 index a361aa5f..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueue.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_purgequeue_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.PurgeQueueRequest; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.QueueName; - -public class SyncPurgeQueue { - - public static void main(String[] args) throws Exception { - syncPurgeQueue(); - } - - public static void syncPurgeQueue() 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()) { - PurgeQueueRequest request = - PurgeQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - Queue response = cloudTasksClient.purgeQueue(request); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_purgequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java deleted file mode 100644 index 8940cfb0..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueQueuename.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_purgequeue_queuename_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.QueueName; - -public class SyncPurgeQueueQueuename { - - public static void main(String[] args) throws Exception { - syncPurgeQueueQueuename(); - } - - public static void syncPurgeQueueQueuename() 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()) { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Queue response = cloudTasksClient.purgeQueue(name); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_purgequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueString.java deleted file mode 100644 index 7133a864..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/purgequeue/SyncPurgeQueueString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_purgequeue_string_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.QueueName; - -public class SyncPurgeQueueString { - - public static void main(String[] args) throws Exception { - syncPurgeQueueString(); - } - - public static void syncPurgeQueueString() 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()) { - String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Queue response = cloudTasksClient.purgeQueue(name); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_purgequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/AsyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/AsyncResumeQueue.java deleted file mode 100644 index ea380afc..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/AsyncResumeQueue.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_resumequeue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.cloud.tasks.v2beta3.ResumeQueueRequest; - -public class AsyncResumeQueue { - - public static void main(String[] args) throws Exception { - asyncResumeQueue(); - } - - public static void asyncResumeQueue() 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()) { - ResumeQueueRequest request = - ResumeQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - ApiFuture future = cloudTasksClient.resumeQueueCallable().futureCall(request); - // Do something. - Queue response = future.get(); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_resumequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueue.java deleted file mode 100644 index 127b49fd..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueue.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_resumequeue_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.cloud.tasks.v2beta3.ResumeQueueRequest; - -public class SyncResumeQueue { - - public static void main(String[] args) throws Exception { - syncResumeQueue(); - } - - public static void syncResumeQueue() 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()) { - ResumeQueueRequest request = - ResumeQueueRequest.newBuilder() - .setName(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .build(); - Queue response = cloudTasksClient.resumeQueue(request); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_resumequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java deleted file mode 100644 index a192c962..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueQueuename.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_resumequeue_queuename_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.QueueName; - -public class SyncResumeQueueQueuename { - - public static void main(String[] args) throws Exception { - syncResumeQueueQueuename(); - } - - public static void syncResumeQueueQueuename() 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()) { - QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Queue response = cloudTasksClient.resumeQueue(name); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_resumequeue_queuename_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueString.java deleted file mode 100644 index 01b4cb82..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/resumequeue/SyncResumeQueueString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_resumequeue_string_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.QueueName; - -public class SyncResumeQueueString { - - public static void main(String[] args) throws Exception { - syncResumeQueueString(); - } - - public static void syncResumeQueueString() 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()) { - String name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Queue response = cloudTasksClient.resumeQueue(name); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_resumequeue_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/AsyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/AsyncRunTask.java deleted file mode 100644 index 5f9e2e5e..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/AsyncRunTask.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_runtask_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.RunTaskRequest; -import com.google.cloud.tasks.v2beta3.Task; -import com.google.cloud.tasks.v2beta3.TaskName; - -public class AsyncRunTask { - - public static void main(String[] args) throws Exception { - asyncRunTask(); - } - - public static void asyncRunTask() 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()) { - RunTaskRequest request = - RunTaskRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .build(); - ApiFuture future = cloudTasksClient.runTaskCallable().futureCall(request); - // Do something. - Task response = future.get(); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_runtask_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTask.java deleted file mode 100644 index e12f1c3c..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTask.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_runtask_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.RunTaskRequest; -import com.google.cloud.tasks.v2beta3.Task; -import com.google.cloud.tasks.v2beta3.TaskName; - -public class SyncRunTask { - - public static void main(String[] args) throws Exception { - syncRunTask(); - } - - public static void syncRunTask() 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()) { - RunTaskRequest request = - RunTaskRequest.newBuilder() - .setName(TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString()) - .build(); - Task response = cloudTasksClient.runTask(request); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_runtask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskString.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskString.java deleted file mode 100644 index 64fb38ac..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_runtask_string_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.Task; -import com.google.cloud.tasks.v2beta3.TaskName; - -public class SyncRunTaskString { - - public static void main(String[] args) throws Exception { - syncRunTaskString(); - } - - public static void syncRunTaskString() 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()) { - String name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]").toString(); - Task response = cloudTasksClient.runTask(name); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_runtask_string_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskTaskname.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskTaskname.java deleted file mode 100644 index 09d2ea56..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/runtask/SyncRunTaskTaskname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_runtask_taskname_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.Task; -import com.google.cloud.tasks.v2beta3.TaskName; - -public class SyncRunTaskTaskname { - - public static void main(String[] args) throws Exception { - syncRunTaskTaskname(); - } - - public static void syncRunTaskTaskname() 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()) { - TaskName name = TaskName.of("[PROJECT]", "[LOCATION]", "[QUEUE]", "[TASK]"); - Task response = cloudTasksClient.runTask(name); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_runtask_taskname_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java deleted file mode 100644 index c23eb249..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/AsyncSetIamPolicy.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_setiampolicy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.protobuf.FieldMask; - -public class AsyncSetIamPolicy { - - public static void main(String[] args) throws Exception { - asyncSetIamPolicy(); - } - - public static void asyncSetIamPolicy() 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()) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.setIamPolicyCallable().futureCall(request); - // Do something. - Policy response = future.get(); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_setiampolicy_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java deleted file mode 100644 index f0ddfaa5..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicy.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_setiampolicy_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.protobuf.FieldMask; - -public class SyncSetIamPolicy { - - public static void main(String[] args) throws Exception { - syncSetIamPolicy(); - } - - public static void syncSetIamPolicy() 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()) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Policy response = cloudTasksClient.setIamPolicy(request); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_setiampolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java deleted file mode 100644 index c2e17cd7..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_setiampolicy_resourcenamepolicy_sync] -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.iam.v1.Policy; - -public class SyncSetIamPolicyResourcenamePolicy { - - public static void main(String[] args) throws Exception { - syncSetIamPolicyResourcenamePolicy(); - } - - public static void syncSetIamPolicyResourcenamePolicy() 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()) { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - Policy policy = Policy.newBuilder().build(); - Policy response = cloudTasksClient.setIamPolicy(resource, policy); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_setiampolicy_resourcenamepolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java deleted file mode 100644 index a3d1ca90..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/setiampolicy/SyncSetIamPolicyStringPolicy.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_setiampolicy_stringpolicy_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.iam.v1.Policy; - -public class SyncSetIamPolicyStringPolicy { - - public static void main(String[] args) throws Exception { - syncSetIamPolicyStringPolicy(); - } - - public static void syncSetIamPolicyStringPolicy() 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()) { - String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - Policy policy = Policy.newBuilder().build(); - Policy response = cloudTasksClient.setIamPolicy(resource, policy); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_setiampolicy_stringpolicy_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java deleted file mode 100644 index 34b12fad..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/AsyncTestIamPermissions.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_testiampermissions_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import java.util.ArrayList; - -public class AsyncTestIamPermissions { - - public static void main(String[] args) throws Exception { - asyncTestIamPermissions(); - } - - public static void asyncTestIamPermissions() 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()) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .addAllPermissions(new ArrayList()) - .build(); - ApiFuture future = - cloudTasksClient.testIamPermissionsCallable().futureCall(request); - // Do something. - TestIamPermissionsResponse response = future.get(); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_testiampermissions_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java deleted file mode 100644 index d55ce480..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissions.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_testiampermissions_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import java.util.ArrayList; - -public class SyncTestIamPermissions { - - public static void main(String[] args) throws Exception { - syncTestIamPermissions(); - } - - public static void syncTestIamPermissions() 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()) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString()) - .addAllPermissions(new ArrayList()) - .build(); - TestIamPermissionsResponse response = cloudTasksClient.testIamPermissions(request); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_testiampermissions_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java deleted file mode 100644 index d9ec06c3..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsResourcenameListstring.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_testiampermissions_resourcenameliststring_sync] -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.iam.v1.TestIamPermissionsResponse; -import java.util.ArrayList; -import java.util.List; - -public class SyncTestIamPermissionsResourcenameListstring { - - public static void main(String[] args) throws Exception { - syncTestIamPermissionsResourcenameListstring(); - } - - public static void syncTestIamPermissionsResourcenameListstring() 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()) { - ResourceName resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]"); - List permissions = new ArrayList<>(); - TestIamPermissionsResponse response = - cloudTasksClient.testIamPermissions(resource, permissions); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_testiampermissions_resourcenameliststring_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java deleted file mode 100644 index a59396ab..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/testiampermissions/SyncTestIamPermissionsStringListstring.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_testiampermissions_stringliststring_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.QueueName; -import com.google.iam.v1.TestIamPermissionsResponse; -import java.util.ArrayList; -import java.util.List; - -public class SyncTestIamPermissionsStringListstring { - - public static void main(String[] args) throws Exception { - syncTestIamPermissionsStringListstring(); - } - - public static void syncTestIamPermissionsStringListstring() 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()) { - String resource = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString(); - List permissions = new ArrayList<>(); - TestIamPermissionsResponse response = - cloudTasksClient.testIamPermissions(resource, permissions); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_testiampermissions_stringliststring_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/AsyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/AsyncUpdateQueue.java deleted file mode 100644 index 2d705109..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/AsyncUpdateQueue.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_updatequeue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.UpdateQueueRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateQueue { - - public static void main(String[] args) throws Exception { - asyncUpdateQueue(); - } - - public static void asyncUpdateQueue() 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()) { - UpdateQueueRequest request = - UpdateQueueRequest.newBuilder() - .setQueue(Queue.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = cloudTasksClient.updateQueueCallable().futureCall(request); - // Do something. - Queue response = future.get(); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_updatequeue_async] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueue.java deleted file mode 100644 index 86760baa..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueue.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_updatequeue_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.cloud.tasks.v2beta3.UpdateQueueRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateQueue { - - public static void main(String[] args) throws Exception { - syncUpdateQueue(); - } - - public static void syncUpdateQueue() 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()) { - UpdateQueueRequest request = - UpdateQueueRequest.newBuilder() - .setQueue(Queue.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Queue response = cloudTasksClient.updateQueue(request); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_updatequeue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java deleted file mode 100644 index a971e25a..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtasksclient/updatequeue/SyncUpdateQueueQueueFieldmask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtasksclient_updatequeue_queuefieldmask_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksClient; -import com.google.cloud.tasks.v2beta3.Queue; -import com.google.protobuf.FieldMask; - -public class SyncUpdateQueueQueueFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateQueueQueueFieldmask(); - } - - public static void syncUpdateQueueQueueFieldmask() 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()) { - Queue queue = Queue.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Queue response = cloudTasksClient.updateQueue(queue, updateMask); - } - } -} -// [END tasks_v2beta3_generated_cloudtasksclient_updatequeue_queuefieldmask_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtaskssettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtaskssettings/getqueue/SyncGetQueue.java deleted file mode 100644 index 3b35dfe1..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/cloudtaskssettings/getqueue/SyncGetQueue.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.samples; - -// [START tasks_v2beta3_generated_cloudtaskssettings_getqueue_sync] -import com.google.cloud.tasks.v2beta3.CloudTasksSettings; -import java.time.Duration; - -public class SyncGetQueue { - - public static void main(String[] args) throws Exception { - syncGetQueue(); - } - - public static void syncGetQueue() 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 - CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder(); - cloudTasksSettingsBuilder - .getQueueSettings() - .setRetrySettings( - cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build(); - } -} -// [END tasks_v2beta3_generated_cloudtaskssettings_getqueue_sync] diff --git a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java b/samples/snippets/generated/com/google/cloud/tasks/v2beta3/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java deleted file mode 100644 index 89225654..00000000 --- a/samples/snippets/generated/com/google/cloud/tasks/v2beta3/stub/cloudtasksstubsettings/getqueue/SyncGetQueue.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 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.v2beta3.stub.samples; - -// [START tasks_v2beta3_generated_cloudtasksstubsettings_getqueue_sync] -import com.google.cloud.tasks.v2beta3.stub.CloudTasksStubSettings; -import java.time.Duration; - -public class SyncGetQueue { - - public static void main(String[] args) throws Exception { - syncGetQueue(); - } - - public static void syncGetQueue() 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 - CloudTasksStubSettings.Builder cloudTasksSettingsBuilder = CloudTasksStubSettings.newBuilder(); - cloudTasksSettingsBuilder - .getQueueSettings() - .setRetrySettings( - cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - CloudTasksStubSettings cloudTasksSettings = cloudTasksSettingsBuilder.build(); - } -} -// [END tasks_v2beta3_generated_cloudtasksstubsettings_getqueue_sync] diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml deleted file mode 100644 index 246eb82c..00000000 --- a/samples/snippets/pom.xml +++ /dev/null @@ -1,60 +0,0 @@ - - - 4.0.0 - com.google.cloud - cloudtasks-snippets - jar - Google Cloud Tasks Snippets - https://github.com/googleapis/java-tasks - - - - com.google.cloud.samples - shared-configuration - 1.2.0 - - - - 1.8 - 1.8 - UTF-8 - - - - - - - - com.google.cloud - libraries-bom - 26.1.4 - pom - import - - - - - - - com.google.cloud - google-cloud-tasks - - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.3 - test - - - diff --git a/synth.metadata b/synth.metadata deleted file mode 100644 index 36fc3f94..00000000 --- a/synth.metadata +++ /dev/null @@ -1,378 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/java-tasks.git", - "sha": "92797a8ff7f51115ad333eb6e25b7d0caeb4e3cc" - } - }, - { - "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "e1738ee972b49fd0c4d4718b035444495142b781", - "internalRef": "391407209" - } - }, - { - "git": { - "name": "synthtool", - "remote": "https://github.com/googleapis/synthtool.git", - "sha": "ad7fd76e17bf9494a3e47ff9cf445f61564432e0" - } - } - ], - "destinations": [ - { - "client": { - "source": "googleapis", - "apiName": "tasks", - "apiVersion": "v2beta2", - "language": "java", - "generator": "bazel" - } - }, - { - "client": { - "source": "googleapis", - "apiName": "tasks", - "apiVersion": "v2beta3", - "language": "java", - "generator": "bazel" - } - }, - { - "client": { - "source": "googleapis", - "apiName": "tasks", - "apiVersion": "v2", - "language": "java", - "generator": "bazel" - } - } - ], - "generatedFiles": [ - ".github/CODEOWNERS", - ".github/ISSUE_TEMPLATE/bug_report.md", - ".github/ISSUE_TEMPLATE/feature_request.md", - ".github/ISSUE_TEMPLATE/support_request.md", - ".github/PULL_REQUEST_TEMPLATE.md", - ".github/blunderbuss.yml", - ".github/generated-files-bot.yml", - ".github/readme/synth.py", - ".github/release-please.yml", - ".github/release-trigger.yml", - ".github/snippet-bot.yml", - ".github/sync-repo-settings.yaml", - ".github/trusted-contribution.yml", - ".github/workflows/approve-readme.yaml", - ".github/workflows/auto-release.yaml", - ".github/workflows/ci.yaml", - ".github/workflows/samples.yaml", - ".kokoro/build.bat", - ".kokoro/coerce_logs.sh", - ".kokoro/common.cfg", - ".kokoro/common.sh", - ".kokoro/continuous/common.cfg", - ".kokoro/continuous/java8.cfg", - ".kokoro/continuous/readme.cfg", - ".kokoro/dependencies.sh", - ".kokoro/nightly/common.cfg", - ".kokoro/nightly/integration.cfg", - ".kokoro/nightly/java11.cfg", - ".kokoro/nightly/java7.cfg", - ".kokoro/nightly/java8-osx.cfg", - ".kokoro/nightly/java8-win.cfg", - ".kokoro/nightly/java8.cfg", - ".kokoro/nightly/samples.cfg", - ".kokoro/populate-secrets.sh", - ".kokoro/presubmit/clirr.cfg", - ".kokoro/presubmit/common.cfg", - ".kokoro/presubmit/dependencies.cfg", - ".kokoro/presubmit/integration.cfg", - ".kokoro/presubmit/java11.cfg", - ".kokoro/presubmit/java7.cfg", - ".kokoro/presubmit/java8-osx.cfg", - ".kokoro/presubmit/java8-win.cfg", - ".kokoro/presubmit/java8.cfg", - ".kokoro/presubmit/linkage-monitor.cfg", - ".kokoro/presubmit/lint.cfg", - ".kokoro/presubmit/samples.cfg", - ".kokoro/readme.sh", - ".kokoro/release/bump_snapshot.cfg", - ".kokoro/release/common.cfg", - ".kokoro/release/common.sh", - ".kokoro/release/drop.cfg", - ".kokoro/release/drop.sh", - ".kokoro/release/promote.cfg", - ".kokoro/release/promote.sh", - ".kokoro/release/publish_javadoc.cfg", - ".kokoro/release/publish_javadoc.sh", - ".kokoro/release/publish_javadoc11.cfg", - ".kokoro/release/publish_javadoc11.sh", - ".kokoro/release/snapshot.cfg", - ".kokoro/release/snapshot.sh", - ".kokoro/release/stage.cfg", - ".kokoro/release/stage.sh", - ".kokoro/trampoline.sh", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.md", - "LICENSE", - "SECURITY.md", - "codecov.yaml", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksSettings.java", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/gapic_metadata.json", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/package-info.java", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStub.java", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/CloudTasksStubSettings.java", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksCallableFactory.java", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/GrpcCloudTasksStub.java", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksClient.java", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksSettings.java", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/gapic_metadata.json", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/package-info.java", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStub.java", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/CloudTasksStubSettings.java", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksCallableFactory.java", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/GrpcCloudTasksStub.java", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksSettings.java", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/gapic_metadata.json", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/package-info.java", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStub.java", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/CloudTasksStubSettings.java", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksCallableFactory.java", - "google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/GrpcCloudTasksStub.java", - "google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/CloudTasksClientTest.java", - "google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasks.java", - "google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2/MockCloudTasksImpl.java", - "google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/CloudTasksClientTest.java", - "google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasks.java", - "google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta2/MockCloudTasksImpl.java", - "google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksClientTest.java", - "google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasks.java", - "google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/MockCloudTasksImpl.java", - "grpc-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksGrpc.java", - "grpc-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksGrpc.java", - "grpc-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksGrpc.java", - "java.header", - "license-checks.xml", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequest.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineHttpRequestOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRouting.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AppEngineRoutingOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Attempt.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/AttemptOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CloudTasksProto.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequest.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateQueueRequestOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequest.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/CreateTaskRequestOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequest.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteQueueRequestOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequest.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/DeleteTaskRequestOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequest.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetQueueRequestOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequest.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/GetTaskRequestOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpMethod.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequest.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/HttpRequestOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequest.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesRequestOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponse.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListQueuesResponseOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequest.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksRequestOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponse.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ListTasksResponseOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/LocationName.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthToken.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OAuthTokenOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcToken.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/OidcTokenOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequest.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PauseQueueRequestOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequest.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/PurgeQueueRequestOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Queue.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueName.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/QueueProto.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RateLimits.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RateLimitsOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequest.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ResumeQueueRequestOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RetryConfig.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RetryConfigOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequest.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/RunTaskRequestOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/StackdriverLoggingConfig.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/StackdriverLoggingConfigOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TargetProto.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/Task.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskProto.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/UpdateQueueRequest.java", - "proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/UpdateQueueRequestOrBuilder.java", - "proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/cloudtasks.proto", - "proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/queue.proto", - "proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/target.proto", - "proto-google-cloud-tasks-v2/src/main/proto/google/cloud/tasks/v2/task.proto", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequest.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AcknowledgeTaskRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequest.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpTarget.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineHttpTargetOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRouting.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AppEngineRoutingOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AttemptStatus.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/AttemptStatusOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequest.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CancelLeaseRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CloudTasksProto.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequest.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateQueueRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequest.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/CreateTaskRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequest.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteQueueRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequest.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/DeleteTaskRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequest.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetQueueRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequest.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/GetTaskRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/HttpMethod.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequest.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksResponse.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LeaseTasksResponseOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequest.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponse.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListQueuesResponseOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequest.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponse.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ListTasksResponseOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/LocationName.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequest.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PauseQueueRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessage.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullMessageOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullTarget.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PullTargetOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequest.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/PurgeQueueRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Queue.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueName.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueProto.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueStats.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/QueueStatsOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RateLimits.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RateLimitsOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequest.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RenewLeaseRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequest.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ResumeQueueRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfig.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RetryConfigOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequest.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/RunTaskRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TargetProto.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/Task.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskName.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskProto.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskStatus.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/TaskStatusOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/UpdateQueueRequest.java", - "proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/UpdateQueueRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/cloudtasks.proto", - "proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/queue.proto", - "proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/target.proto", - "proto-google-cloud-tasks-v2beta2/src/main/proto/google/cloud/tasks/v2beta2/task.proto", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpQueue.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpQueueOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequest.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineHttpRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRouting.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AppEngineRoutingOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Attempt.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/AttemptOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksProto.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequest.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateQueueRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequest.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/CreateTaskRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequest.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteQueueRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequest.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/DeleteTaskRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequest.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetQueueRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequest.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/GetTaskRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpMethod.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequest.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/HttpRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequest.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponse.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListQueuesResponseOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequest.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponse.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ListTasksResponseOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/LocationName.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthToken.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OAuthTokenOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcToken.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/OidcTokenOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequest.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PauseQueueRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessage.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PullMessageOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequest.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/PurgeQueueRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Queue.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueName.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueProto.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueStats.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/QueueStatsOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RateLimits.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RateLimitsOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequest.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ResumeQueueRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RetryConfig.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RetryConfigOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequest.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/RunTaskRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/StackdriverLoggingConfig.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/StackdriverLoggingConfigOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TargetProto.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/Task.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskName.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/TaskProto.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/UpdateQueueRequest.java", - "proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/UpdateQueueRequestOrBuilder.java", - "proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/cloudtasks.proto", - "proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/queue.proto", - "proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/target.proto", - "proto-google-cloud-tasks-v2beta3/src/main/proto/google/cloud/tasks/v2beta3/task.proto", - "renovate.json", - "samples/install-without-bom/pom.xml", - "samples/pom.xml", - "samples/snapshot/pom.xml", - "samples/snippets/pom.xml" - ] -} \ No newline at end of file diff --git a/versions.txt b/versions.txt deleted file mode 100644 index ad03e22a..00000000 --- a/versions.txt +++ /dev/null @@ -1,10 +0,0 @@ -# Format: -# module:released-version:current-version - -google-cloud-tasks:2.3.12:2.3.12 -grpc-google-cloud-tasks-v2beta3:0.93.12:0.93.12 -grpc-google-cloud-tasks-v2beta2:0.93.12:0.93.12 -grpc-google-cloud-tasks-v2:2.3.12:2.3.12 -proto-google-cloud-tasks-v2beta3:0.93.12:0.93.12 -proto-google-cloud-tasks-v2beta2:0.93.12:0.93.12 -proto-google-cloud-tasks-v2:2.3.12:2.3.12